(2019-10-01, 06:44 PM)seandepagnier Wrote: git clone user@hostname:pypilot
This works if user can ssh to hostname and pypilot repo is in home directory
For what it's worth the script below can be used to run on any linux machine (e.g. openplotter or your ubuntu laptop) to update pypilot on tinypilot remotely, provided you know its IP address:
Code:
git clone https://github.com/pypilot/pypilot
git clone --depth 1 https://github.com/pypilot/pypilot_data
cp -rv pypilot_data/* pypilot
scp -r pypilot/ tc@192.168.178.38:~/pypilot_git/
ssh tc@192.168.178.38 "cd pypilot_git; . pypilot.build; sudo reboot"
Of course, replace the IP address given with that of your tinypilot. The tc password is pypilot by default. It leaves no mess, after a reboot the temporary files are gone. If you want to revert back to the original version, run this:
Code:
ssh tc@192.168.178.38 "cd pypilot; . pypilot.build; sudo reboot"
If your machine does not have git you have to install it yourself. In my experience when https:// does not work you can replace it with git:// but I'm too lazy to figure out why.