Skip to content

Instantly share code, notes, and snippets.

View vonthecreator's full-sized avatar
☢️
loading...

Munashe vonthecreator

☢️
loading...
  • Canada
View GitHub Profile
/usr/bin/pi_sync
cd /home/{user_name}/Downloads/pi_sync/
echo $(curl -s icanhazip.com) #retrieve IPv6 IP for line 4 (sync.sh)
cd /home/{user_name}/Downloads/pi_sync/ #Step 2.a: Change directory
#Step 2.b: Change line 5 to your raspberry PI's local IP address. 
chmod +x sync.sh #Step 2.c: Make sync.sh executable
mv sync.sh pi_sync #Step 2.d: Rename file
sudo cp sync.sh /usr/bin/ #Step 2.e: Copy file
ssh-copy-id -i .ssh/id_rsa.pub -p22 pi@{your_local_ip_address}