Middle-level
Images setup + connection instructions
First steps on your pc:
- Get Raspbian Buster lite
- Flash it onto SD card
- Add an empty ssh file into there called
ssh
- Connect -
ssh [email protected]
, passwordraspberry
Next steps on PI:
sudo raspi-config
-> config network (wifi connection to get to the internet)sudo raspi-config
-> advanced -> expand filesystemsudo apt-get update
- Install python 3.8.1:
sudo -i
apt-get install python3-dev libffi-dev libssl-dev -y
wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tar.xz
tar xJf Python-3.8.1.tar.xz
cd Python-3.8.1
./configure
make
make install
- Update python tools
sudo python3.8 -m pip install --upgrade pip setuptools
- Install git
sudo apt-get install git
- Pull raspberry-pi code
git clone https://github.com/ncl-ROVers/raspberry-pi.git
- Install the code
cd raspberry-pi/ && sudo python3.8 -m pip install .
- Add the following
startup.service
into/etc/systemd/system
:
[Unit]
Description=Running ncl_rovers
ConditionPathExists=/usr/local/lib/python3.8/site-packages/ncl_rovers/.autostart
[Service]
Type=forking
ExecStart=/bin/sh /usr/local/lib/python3.8/site-packages/ncl_rovers/.autostart start
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
- Run the following commands:
sudo systemctl daemon-reload
sudo systemctl enable startup.service
- Reboot
sudo reboot
- Verify everything is fine:
ps aux | grep ncl_rovers
ornetstat -tulpn
- Connect from surface - you can find out IP with
hostname -I
command (will start with192
)