fixes for drideOS
This commit is contained in:
parent
a71ba92e59
commit
6c10b36794
|
@ -14,7 +14,7 @@ on_chroot << EOF
|
||||||
systemctl disable hwclock.sh
|
systemctl disable hwclock.sh
|
||||||
systemctl disable nfs-common
|
systemctl disable nfs-common
|
||||||
systemctl disable rpcbind
|
systemctl disable rpcbind
|
||||||
systemctl disable ssh
|
systemctl enable ssh
|
||||||
systemctl enable regenerate_ssh_host_keys
|
systemctl enable regenerate_ssh_host_keys
|
||||||
systemctl enable apply_noobs_os_config
|
systemctl enable apply_noobs_os_config
|
||||||
systemctl enable resize2fs_once
|
systemctl enable resize2fs_once
|
||||||
|
@ -120,7 +120,8 @@ sudo make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
# remove the installation file
|
# remove the installation file
|
||||||
|
cd /
|
||||||
|
sudo rm opencv-3.1.0.zip
|
||||||
|
|
||||||
|
|
||||||
# Install Node
|
# Install Node
|
||||||
|
@ -140,18 +141,22 @@ cd Cardigan
|
||||||
# make the video dir writable
|
# make the video dir writable
|
||||||
sudo chmod 777 -R modules/video/
|
sudo chmod 777 -R modules/video/
|
||||||
|
|
||||||
|
# clone dride-ws
|
||||||
|
cd dride-ws
|
||||||
|
sudo git clone --depth 1 https://github.com/dride/dride-ws.git
|
||||||
|
|
||||||
|
cd /
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "========== Install picamera ============"
|
echo "========== Install picamera ============"
|
||||||
sudo pip install "picamera[array]"
|
sudo pip install "picamera[array]"
|
||||||
# enable camera on raspi-config
|
# enable camera on raspi-config
|
||||||
grep "start_x=1" /boot/config.txt
|
echo "" >> /boot/config.txt
|
||||||
if grep "start_x=1" /boot/config.txt
|
echo "#enable piCaera" >> /boot/config.txt
|
||||||
then
|
echo "start_x=1" >> /boot/config.txt
|
||||||
echo "Already enabled."
|
|
||||||
else
|
|
||||||
sed -i "s/start_x=0/start_x=1/g" /boot/config.txt
|
|
||||||
reboot
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "========== Install omxplayer ============"
|
echo "========== Install omxplayer ============"
|
||||||
sudo apt-get install omxplayer -y
|
sudo apt-get install omxplayer -y
|
||||||
|
|
Loading…
Reference in New Issue
Block a user