This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem updating true git
#7
(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.
Reply


Messages In This Thread
Problem updating true git - by Jlsail - 2019-09-29, 11:10 PM
RE: Problem updating true git - by seandepagnier - 2019-09-30, 01:16 AM
RE: Problem updating true git - by Jlsail - 2019-09-30, 01:41 AM
RE: Problem updating true git - by seandepagnier - 2019-10-01, 02:40 AM
RE: Problem updating true git - by Jlsail - 2019-10-01, 05:25 PM
RE: Problem updating true git - by seandepagnier - 2019-10-01, 06:44 PM
RE: Problem updating true git - by ironman - 2019-11-01, 02:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)