OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: Jean-Yves on May 24, 2017, 05:41:49 pm

Title: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Jean-Yves on May 24, 2017, 05:41:49 pm
Hi,

A couple of questions:

1) for an ArcaOS installation in VirtualBox (64-bit OS X host), which git-all package should I use - there seem to be several with very similar version numbers.

2) I need to set up ssh so that I can create keys to communicate with my gitlab repos. However, unlike with Linux and OS X where ssh is baked in, I am not sure how to set this up under ArcaOS? I'd also be very grateful for any advice on what are the best client tools currently available. 

Many thanks.  :)


Thanks
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Jean-Yves on May 24, 2017, 08:10:17 pm
Actually I might nit need ssh. I thought I'd need it to generate the keys but I can do that on the host and move them over I believe.
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Dave Yeo on May 25, 2017, 03:39:16 am
Just install the latest git and it'll pull in everything else.
yum install git
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Jean-Yves on May 25, 2017, 10:14:49 am
Thanks Dave, will do.
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Jean-Yves on May 25, 2017, 02:55:31 pm
Just out of interest, should I be concerned that although yum appears to have installed all 21 git packages it said it would, it finished with an error:

Rpmdb checksum is invalid: dCDPT(pkg checksums) ?

When I try to clone a repo from gitlab, I get:

error: cannot run ssh: No such file or directory
fatal: unable to fork


I am not sure whether the two are related or whether I do need an ssh implementation installed separately.
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Martin Iturbide on May 25, 2017, 03:17:53 pm
Hi

I wrote this quick and simple article of using git.exe under eComStation: http://www.edm2.com/index.php/Using_Git_under_eComStation
But to be honest I haven't used any ssh with it.

Regards
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Dave Yeo on May 25, 2017, 04:12:29 pm
Just out of interest, should I be concerned that although yum appears to have installed all 21 git packages it said it would, it finished with an error:

Rpmdb checksum is invalid: dCDPT(pkg checksums) ?

No, it seems to be a permanent harmless error
Quote
When I try to clone a repo from gitlab, I get:

error: cannot run ssh: No such file or directory
fatal: unable to fork


I am not sure whether the two are related or whether I do need an ssh implementation installed separately.

Not sure about that error, might be simply out of low memory. Try rebooting, a good idea anyways as if a DLL is in use, it is unlocked and upgraded but the old one is still in memory.
Title: Re: Questions re git in YUM package manage and setting up ssh under ArcaOS
Post by: Jean-Yves on May 25, 2017, 05:22:39 pm
@martin - thanks. It's not git itself I have problems with, but actually your article reminded me that I had not set the globals for my user and email, so very useful indeed!  :)

@Dave - rebooting did not help, I got the same error.  However, I tried using HTTPS rather than SSH (I've always used SSH before so it had not occurred to me to use an alternative method). And bingo!

It means manually entering the password (well it can be cached in the globals I guess so not too bad), but all seems working. I have cloned, added, committed and pushed, and my changes have appeared on gitlab.

Thanks both for all for your suggestions.  The OS/2 community on these forums is really wonderfully helpful .