|
|
|
@ -2,10 +2,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
echo -e "\ninstallation script for CubeSatSim v1.1\n"
|
|
|
|
echo -e "\ninstallation script for CubeSatSim v1.1\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FILE=/home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
|
|
|
|
echo "$FILE exists."
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "creating $FILE"
|
|
|
|
|
|
|
|
echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CubeSatSim/config -c -n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CubeSatSim/config -l -n
|
|
|
|
|
|
|
|
|
|
|
|
sudo apt-get update && sudo apt-get dist-upgrade -y
|
|
|
|
sudo apt-get update && sudo apt-get dist-upgrade -y
|
|
|
|
|
|
|
|
|
|
|
|
# removed wiringpi and python-picamera python3-picamera
|
|
|
|
# removed wiringpi and python-picamera python3-picamera
|
|
|
|
sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev
|
|
|
|
sudo apt-get install -y git libasound2-dev i2c-tools build-essential libgd-dev libmagic-dev minicom
|
|
|
|
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
cd /tmp
|
|
|
|
|
|
|
|
|
|
|
|
@ -39,16 +51,6 @@ else
|
|
|
|
echo "ARG1=f" > .mode
|
|
|
|
echo "ARG1=f" > .mode
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FILE=/home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
if [ -f "$FILE" ]; then
|
|
|
|
|
|
|
|
echo "$FILE exists."
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "creating $FILE"
|
|
|
|
|
|
|
|
echo "AMSAT 1 0.0 0.0" > /home/pi/CubeSatSim/sim.cfg
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd
|
|
|
|
cd
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/alanbjohnston/direwolf.git
|
|
|
|
git clone https://github.com/alanbjohnston/direwolf.git
|
|
|
|
@ -160,10 +162,6 @@ sudo raspi-config nonint do_legacy 0
|
|
|
|
sudo sed -i 's/ rootwait/ rootwait modules-load=dwc2,g_ether/g' /boot/cmdline.txt
|
|
|
|
sudo sed -i 's/ rootwait/ rootwait modules-load=dwc2,g_ether/g' /boot/cmdline.txt
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
CubeSatSim/config -c -n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CubeSatSim/config -l -n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Would you like to reboot to complete the installation (y/n)?"
|
|
|
|
echo "Would you like to reboot to complete the installation (y/n)?"
|
|
|
|
|
|
|
|
|
|
|
|
read -r ANS
|
|
|
|
read -r ANS
|
|
|
|
|