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.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem updating true git
#1
Hi
When following the instructions I get stuck here...I dont know why?

tc@box:~/delete$ git clone git://github.com/pypilot/pypilot
Cloning into 'pypilot'...
fatal: Unable to look up github.com (port 9418) (Temporary failure in name resolution)

Has been the same for a few days so it doesnt feel temporary.

Regards
Johan
  Reply
#2
Could you try this url?

https://github.com/pypilot/pypilot.git
  Reply
#3
(09-29-2019, 08:16 PM)seandepagnier Wrote: Could you try this url?

https://github.com/pypilot/pypilot.git

I get this output

tc@box:~/delete$ git clone https://github.com/pypilot/pypilot.git
Cloning into 'pypilot'...
fatal: Unable to find remote helper for 'https'

and if using git clone git://github.com/pypilot/pypilot.git I get the same fault as before

I have a raspberrypi 4 that I ssh from and that one is connected to internet true a lte router if that matters? 
I did build the pypilot opencpn pluggin on the raspberry pi 4.

Johan

Johan
  Reply
#4
unfortunately you would have to git clone the https address on a different machine, say openplotter. From tc you could then pull from the pypilot repository on openplotter.

I will try to install the https helper in future tinypilot versions...
  Reply
#5
(09-30-2019, 09:40 PM)seandepagnier Wrote: unfortunately you would have to git clone the https address on a different machine, say openplotter.  From tc you could then pull from the pypilot repository on openplotter.

I will try to install the https helper in future tinypilot versions...

Will see if I can manage....
Am I understanding right that I run the git clone command on a raspberry pi. But what command do I use on when I have ssh in to the tc?

Maybe I will wait for the tc image........

Johan
  Reply
#6
git clone user@hostname:pypilot

This works if user can ssh to hostname and pypilot repo is in home directory
  Reply
#7
(10-01-2019, 01: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


Forum Jump:


Users browsing this thread: 1 Guest(s)