Greg,
I have no problems with the ssh key, that „vi id_rsa“ command I mentioned meant that I copy/pasted my secret key from my host into the VM. With „ssh-add ~/.ssh/id_rsa“ I added this key to the ssh-agent so I don’t have to enter the passphrase each time I access a GitHub repo. But the gnustep-web-install-dev <https://raw.githubusercontent.com/gnustep/tools-scripts/master/gnustep-web-install-dev> install script is aborted every time after installing Wayland when I start from a fresh Ubuntu: The following NEW packages will be installed: wayland-protocols 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 85.2 kB of archives. After this operation, 673 kB of additional disk space will be used. Get:1 http://de.archive.ubuntu.com/ubuntu noble/main amd64 wayland-protocols all 1.34-1 [85.2 kB] Fetched 85.2 kB in 0s (526 kB/s) Selecting previously unselected package wayland-protocols. (Reading database ... 165899 files and directories currently installed.) Preparing to unpack .../wayland-protocols_1.34-1_all.deb ... Unpacking wayland-protocols (1.34-1) ... Setting up wayland-protocols (1.34-1) ... ------- Done... lars@Ubuntu-2404-VirtualBox:~/GNUstep-shared$ When I run it again after this (without rolling back the VM to the fresh install of Ubuntu) it starts building GNUstep Kind regards, Lars > Am 15.10.2024 um 02:21 schrieb Gregory Casamento <[email protected]>: > > You need to use the ssh key from the account that you have on GitHub. > > Gregory Casamento > GNUstep Lead Developer / Black Lotus, Principal Consultant > http://www.gnustep.org <http://www.gnustep.org/> - > http://heronsperch.blogspot.com <http://heronsperch.blogspot.com/> > https://www.patreon.com/bePatron?u=352392 - Become a Patron > https://www.openhub.net/languages/objective_c > https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation > > > On Mon, Oct 14, 2024 at 12:15 [email protected] > <mailto:[email protected]> > <[email protected] > <mailto:[email protected]>> wrote: >> Hi Greg, >> >> I decided to start over from a clean Ubuntu, e.g. I rolled back all my >> changes to my Ubuntu-VM using the snapshot of it I did after installing >> Ubuntu. Here is what I did: >> >> ——8<—— snip —— >> # needed for running gnustep-web-install-dev from web >> sudo apt-get install curl >> sudo apt-get install git >> >> # needed for github access >> cd ~/.ssh >> touch id_rsa >> vi id_rsa >> >> touch id_rsa.pub >> vi id_rsa.pub >> >> chmod 600 ~/.ssh/* >> >> ssh-add ~/.ssh/id_rsa >> >> # set root user password. Currently needed for gnustep-web-install-dev >> sudo su -c passwd >> >> # optional: create shared folder between host and guest (GNUstep-shared) >> sudo adduser lars vboxsf >> sudo chmod 755 GNUstep-shared >> cd ~/GNUstep-shared/ >> >> # finally install GNUstep >> curl >> https://raw.githubusercontent.com/gnustep/tools-scripts/master/gnustep-web-install-dev >> | bash >> ——8<—— snap —— >> >> >> However, this time the gnustep-web-install-dev suddenly stopped without >> doing all it should. Have a look at the attached output of running the >> script: >> >> >> Do you have any idea what was going wrong this time? >> >> >> Kind regards, >> >> Lars >> >>> Am 09.10.2024 um 23:23 schrieb [email protected] >>> <mailto:[email protected]>: >>> >>> Hi Greg, >>> >>> >>> I did some more research and found out this: >>> >>> „What Is the Ubuntu Default Root Password in Linux? In Ubuntu Linux, the >>> root account is locked by default, meaning there is no default root >>> password, and direct login as root or using the 'su' command to become the >>> root user is not possible.“ (see >>> https://host-world.com/ubuntu-default-root-password-default-ubuntu-password-explained#:~:text=What%20Is%20the%20Ubuntu%20Default,root%20user%20is%20not%20possible. >>> ) >>> >>> >>> So this: >>> >>> su -c 'echo "${USER} ALL=(ALL:ALL) ALL" > /etc/sudoers.d/${USER}‘ >>> >>> from setup-linux will never work on Ubuntu since there is no root password >>> set anyway. >>> >>> >>> I think the whole setup-linux is not needed on Ubuntu since it comes with >>> sudo enabled after a default install. >>> >>> >>> However, I also researched on how to pass a password to sudo and created >>> this test.sh: >>> >>> ———— >>> #!/bin/bash >>> >>> echo "welcome!" >>> read -sp 'Your password:' PASSWORD >>> echo $PASSWORD | sudo -S whoami >>> ———— >>> >>> which prints „root“ on my Ubuntu >>> >>> >>> Does all this make sense? >>> >>> >>> Kind regards, >>> >>> Lars >>> >>> >>>> Am 09.10.2024 um 20:57 schrieb [email protected] >>>> <mailto:[email protected]>: >>>> >>>> Hi Greg, >>>> >>>> >>>> I am using ubuntu-24.04.1-desktop-amd64.iso from >>>> https://ubuntu.com/download/desktop in VirtualBox >>>> >>>> >>>> sudo is there: >>>> >>>> lars@Ubuntu-2404-VirtualBox:~$ sudo whoami >>>> [sudo] password for lars: >>>> root >>>> lars@Ubuntu-2404-VirtualBox:~$ >>>> >>>> >>>> The setup-linux script „asks“ for a password but doesn’t wait for me to >>>> enter it. It continues instead saying „su: Authentication failure“: >>>> >>>> sudo command is already present. >>>> Adding lars to sudoers... >>>> Please enter the root user's password. >>>> Password: su: Authentication failure >>>> >>>> >>>> Kind regards, >>>> >>>> Lars >>>> >>>> >>>>> Am 09.10.2024 um 20:24 schrieb Gregory Casamento >>>>> <[email protected] <mailto:[email protected]>>: >>>>> >>>>> What particular version of Ubuntu are you using? I suspect it's missing >>>>> sudo or another command needed to install. >>>>> >>>>> GC >>>>> >>>>> On Wed, Oct 9, 2024 at 1:34 PM [email protected] >>>>> <mailto:[email protected]> >>>>> <[email protected] >>>>> <mailto:[email protected]>> wrote: >>>>>> Hi dear GNUsteppers, >>>>>> >>>>>> >>>>>> today I tried installing GNUstep on a fresh Ubuntu 24.04 copy. >>>>>> >>>>>> >>>>>> For this I used the command found on the GNUstep website: >>>>>> >>>>>> curl >>>>>> https://raw.githubusercontent.com/gnustep/tools-scripts/master/gnustep-web-install-dev >>>>>> | bash >>>>>> >>>>>> >>>>>> However the script failed to read my password, here is the output of the >>>>>> script: >>>>>> >>>>>> lars@Ubuntu-2404-VirtualBox:~$ curl >>>>>> https://raw.githubusercontent.com/gnustep/tools-scripts/master/gnustep-web-install-dev >>>>>> | bash >>>>>> % Total % Received % Xferd Average Speed Time Time Time >>>>>> Current >>>>>> Dload Upload Total Spent Left >>>>>> Speed >>>>>> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- >>>>>> 0Install GNUstep >>>>>> >>>>>> 100 1863 100 1863 0 0 5909 0 --:--:-- --:--:-- --:--:-- >>>>>> 5914 >>>>>> .:;;::::;;: >>>>>> ..:;X@:;X@@S:t8%::. >>>>>> .;;88tStttttttttX8%88;: >>>>>> .:;% @tt%t;;;;;;;::;;@8X;;: >>>>>> ;:tS;ttt;;::;::;;t; 8SX @8; >>>>>> ..:;S@S;;t;;;:::::tX@ X :: >>>>>> :;:S::;;;;::;:;::;%8 8 .:. >>>>>> .;:t .:X :S::::::;;;:::tS@ X8%t >>>>>> .;S8S:::.SS:;:;::;:;;;;;;%X@ .. 8 8: >>>>>> :;; 8t %;8.::;;;:8888888X8 Xt:: >>>>>> .:;X SS888;;;;;;St%..... . 8:@: >>>>>> ;.:8 t8%;;::;;tXS . ;8S; >>>>>> .:8@ 8t88t@::;%SS . . S :. >>>>>> .:S%tt.t88@8.;St%; . @X%;:. >>>>>> ...:Xt;;;; X%@SXSS% . @ 8:; >>>>>> ;.:St;t8t.8t :X%%: . %:S t: >>>>>> ::S 8;t:t.;@S S:@@Xt:. .:%8:88t%: >>>>>> :XX8@;:;8@:.X:@.;%8 X@t;;tX%%8%.: >>>>>> :X8@88 : X:..::;:[email protected]:::.:::;: >>>>>> ::t@8X;S;.%8;tttSSt;::..:. >>>>>> ...:;:Xt.t@;;;::.. >>>>>> .;tS;:: >>>>>> >>>>>> IMPORTANT! >>>>>> You must update your .ssh directory so it contains your github ssh key >>>>>> >>>>>> Begin setup for linux >>>>>> sudo command is already present. >>>>>> Adding lars to sudoers... >>>>>> Please enter the root user's password. >>>>>> Password: su: Authentication failure >>>>>> ======== Create gnustep build directories ======== >>>>>> bash: line 44: git: command not found >>>>>> bash: line 45: ./tools-scripts/clone-essential-repos: No such file or >>>>>> directory >>>>>> ================ Install Dependencies ================ >>>>>> bash: line 49: ./tools-scripts/install-dependencies-linux: No such file >>>>>> or directory >>>>>> ================ Build ================ >>>>>> bash: line 53: ./tools-scripts/build-linux: No such file or directory >>>>>> ================ Post Installation ================ >>>>>> bash: line 57: ./tools-scripts/post-install-linux: No such file or >>>>>> directory >>>>>> Done… >>>>>> >>>>>> >>>>>> It looks like the script isn’t waiting for me to enter the password. I >>>>>> had a look what is going on and found this script: >>>>>> >>>>>> setup-linux: >>>>>> >>>>>> #!/bin/sh >>>>>> >>>>>> export USER=`whoami` >>>>>> if [ ! -e /usr/bin/sudo ]; then >>>>>> echo "Installing sudo..." >>>>>> if [ -e /usr/bin/apt ]; then >>>>>> su -c "apt install sudo" >>>>>> else >>>>>> su -c "rpm install sudo" >>>>>> fi >>>>>> else >>>>>> echo "sudo command is already present." >>>>>> fi >>>>>> >>>>>> if [ ! -e /etc/sudoers.d/${USER} ]; then >>>>>> echo "Adding ${USER} to sudoers..." >>>>>> echo "Please enter the root user's password." >>>>>> su -c 'echo "${USER} ALL=(ALL:ALL) ALL" > /etc/sudoers.d/${USER}' >>>>>> else >>>>>> echo "${USER} is already a member of sudo users." >>>>>> fi >>>>>> >>>>>> >>>>>> In this script I see the line: >>>>>> >>>>>> echo "Please enter the root user's password.“ >>>>>> >>>>>> followed by su -c which I think needs the password. >>>>>> >>>>>> >>>>>> However, the script isn’t waiting for me to enter the password. I am not >>>>>> that of an expert in bash, but shouldn’t be there some sort of „read“ in >>>>>> between both commands? Or I am missing something here? >>>>>> >>>>>> >>>>>> Kind regards, >>>>>> >>>>>> Lars >>>>>> >>>>>> >>>>> >> >>>>> >>>>> -- >>>>> Gregory Casamento >>>>> GNUstep Lead Developer / Black Lotus, Principal Consultant >>>>> http://www.gnustep.org <http://www.gnustep.org/> - >>>>> http://heronsperch.blogspot.com <http://heronsperch.blogspot.com/> >>>>> https://www.patreon.com/bePatron?u=352392 - Become a Patron >>>>> https://www.openhub.net/languages/objective_c >>>>> https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation >>>> >>> >>
