| layout | default |
|---|---|
| title | Oasis Software Setup Instructions |
| description | Oasis Software Setup Instructions |
- Flash Image
- Initial SSH Connection
- Configure IP Address
- Configure Hostname
- SSH Key Setup
- Pull Latest Code
- Configure Desktop IP
- Configure Feeder
-
Download the oasis201 image from the lab google drive.
-
Flash the oasis201 image to a 64GB SD card using Etcher or Win32 Disk Imager.
-
Connect to the new oasis via SSH using the default credentials.
ssh pi@192.168.137.201Password:
raspberry
-
Open the DHCP configuration file.
nano /etc/dhcpcd.conf -
Set the static IP address line to the desired oasis ID (replace
XXXwith the desired oasis number, e.g.209).static ip_address=192.168.137.XXX -
Save and close the file.
-
Open the hostname file.
sudo nano /etc/hostname -
Set the hostname to match the desired oasis ID (e.g.
oasis209if the IP address ends in209). -
Save and close the file, then reboot.
sudo reboot
-
If you have not yet generated an SSH key on the desktop, generate one first, then continue to step 2. Otherwise, go straight to step 2.
ssh-keygen -t rsa -b 4096Press Enter to accept the default file location (
~/.ssh/id_rsa) and optionally set a passphrase when prompted. -
If you have already generated an SSH key on the desktop, copy it to the oasis (replace
XXXwith the oasis ID). Enter the passwordraspberrywhen prompted.ssh-copy-id pi@192.168.137.XXX
-
The oasis image should already contain a folder called
oasis_pi. Navigate to it.cd oasis_pi -
Pull the latest code from the
Oasis_Pibranch of the cellworld_habitat_pi repository.git pull
-
Open
maze-terminal2.pyand verify that the desktop IP address is set to192.168.137.22. If your desktop has a different IP address, update it accordingly.nano maze-terminal2.py
-
Open the feeder calibration file.
nano feeder.cal -
Set the file contents as follows:
- Line 1: The duration in seconds required to deliver the desired reward amount. Now might be a good time to calibrate the oasis ;)
- Line 2: The oasis ID number (e.g.
209foroasis209).