Rinilyn Posted January 7, 2018 Share Posted January 7, 2018 um this is embarassing but i cant find out how to install git on my nano( can't git clone). i tried: opkg install git -d sd opkg install git-http -d sd even https. (im getting unknown package) what's the command? Link to comment Share on other sites More sharing options...
Forkish Posted January 7, 2018 Share Posted January 7, 2018 OpenWrt: Install git with HTTPS support opk update && opk install git git-http Link to comment Share on other sites More sharing options...
Rinilyn Posted January 8, 2018 Author Share Posted January 8, 2018 opk not found Link to comment Share on other sites More sharing options...
Rinilyn Posted January 8, 2018 Author Share Posted January 8, 2018 Link to comment Share on other sites More sharing options...
Just_a_User Posted January 8, 2018 Share Posted January 8, 2018 1 hour ago, Rinilyn said: opk not found just add the 'g' :) - 'opkg update && opkg install git git-http' In your screen shot you show your issue. - you must update the package lists before installing anything by running 'opkg update' Link to comment Share on other sites More sharing options...
Rinilyn Posted January 9, 2018 Author Share Posted January 9, 2018 okay. theres this issue when its installing and using cat or grep, its not looking at the sd directory. its going to root and is giving something like: grep '/usr/lib/opkg/info/git.control or cat: can't open '/usr/lib/opkg/info/git-http.list': No such file or directory. Its looking at the wrong path and when i manually try to type grep /sd/usr/lib/opkg/info/git.control it gets stuck. can i somehow fix this path issue? still cant get git or anything to install Link to comment Share on other sites More sharing options...
Just_a_User Posted January 9, 2018 Share Posted January 9, 2018 29 minutes ago, Rinilyn said: can i somehow fix this path issue? still cant get git or anything to install It just needs linking. ln -s /sd/usr/bin/git /usr/bin/git ln -s /sd/usr/bin/git-shell /usr/bin/git-shell ln -s /sd/usr/bin/git-upload-pack /usr/bin/git-upload-pack ln -s /sd/usr/bin/git-upload-archive /usr/bin/git-upload-archive ln -s /sd/usr/bin/git-receive-pack /usr/bin/git-receive-pack Link to comment Share on other sites More sharing options...
Rinilyn Posted January 9, 2018 Author Share Posted January 9, 2018 Cloning into EvilPortalNano'... warning: templates not found /usr/share/git-core/templates fatal: Unable to find remote helper for 'https' @Just_a_User help here please,sorry for the trouble Link to comment Share on other sites More sharing options...
Just_a_User Posted January 9, 2018 Share Posted January 9, 2018 9 hours ago, Rinilyn said: help here please,sorry for the trouble It used to work without issue, I suspect something with ssl - to bypass the issue for now replace your link "https://" with "git://". I will have a further look when I get a moment. - maybe someone else has already looked at it or solved it. Think it works OK on my tetra so im thinking its just files in wrong folders or similar. Link to comment Share on other sites More sharing options...
Rinilyn Posted January 10, 2018 Author Share Posted January 10, 2018 yea i googled and already tried that. it is some kind of fix yes,but not i the case when i need to use git checkout That's why i asked. i am trying to clone this: EvilPortalNano ill post the fix if i find anything. Link to comment Share on other sites More sharing options...
Just_a_User Posted January 10, 2018 Share Posted January 10, 2018 20 minutes ago, Rinilyn said: That's why i asked. i am trying to clone this: EvilPortalNano You can also git clone/checkout it to your PC and transfer it to the pineapple after - I do this often. I use filezilla as im a GUI junkie but you can also SCP over ssh. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.