Appendix: Function of the Server Installation Scripts

Share for us
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

You may have a question: What do the installation scripts do when we install the server on the Raspberry Pi by them? So here let’s check the detailed steps.

1. Install pip      

apt-get install python-pip 

2. Use pip to install django

sudo pip install django

3. Install i2c-tools and python-smbus

sudo apt-get install i2c-tools python-smbus –y 

4. Install PiCar drivers

cd ~/ 
git clone -–recursive https://github.com/sunfounder/SunFounder_PiCar.git 
cd SunFounder_PiCar 
sudo python setup.py install 




5. Download source code

cd ~/ 
git clone https://github.com/sunfounder/SunFounder_PiCar-V.git 

6. Copy the MJPG-Streamer file to system directory

cd ~/SunFounder_PiCar-V 
sudo cp mjpg-streamer/mjpg_streamer /usr/local/bin 
sudo cp mjpg-streamer/output_http.so /usr/local/lib/ 
sudo cp mjpg-streamer/input_file.so /usr/local/lib/ 
sudo cp mjpg-streamer/input_uvc.so /usr/local/lib/ 
sudo cp -R mjpg-streamer/www /usr/local/www 

7. Export paths

export LD_LIBRARY_PATH=/usr/local/lib/ >> ~/.bashrc 
export LD_LIBRARY_PATH=/usr/local/lib/ >> ~/.profile 
source ~/.bashrc 

8. Enable I2C1

Edit the file /boot/config.txt:

sudo nano /boot/config.txt 

Add the line in the end:

dtparam=i2c_arm=on 

9. Reboot            

sudo reboot 

Copyright Notice

All contents including but not limited to texts, images, and code in this manual are owned by the SunFounder Company. You should only use it for personal study, investigation, enjoyment, or other non-commercial or nonprofit purposes, under the related regulations and copyrights laws, without infringing the legal rights of the author and relevant right holders. For any individual or organization that uses these for commercial profit without permission, the Company reserves the right to take legal action.