pietroottanta
Posts: 2
Joined: Tue Sep 16, 2014 2:08 pm

netbsd and rpi_inst.img.gz and ssh

Mon Nov 24, 2014 10:08 pm

Hello I have downloaded latest rpi_inst.img.gz (so i could install netbsd on headless raspberry) and after I have put on my sd
when I try to ssh to my raspberry to install, i have an error about password..
I tried:
user:sysinst
password: netbsd (as I see in official guide)
but nothing!
SOmeone could help me?
thx

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: netbsd and rpi_inst.img.gz and ssh

Sat Dec 19, 2015 12:51 am

pietroottanta wrote:Hello I have downloaded latest rpi_inst.img.gz (so i could install netbsd on headless raspberry) and after I have put on my sd
when I try to ssh to my raspberry to install, i have an error about password..
I tried:
user:sysinst
password: netbsd (as I see in official guide)
but nothing!
SOmeone could help me?
thx
I just tried this, I know more than a year later, and it seems to log in with root and no password. But then it uses a font that is unreadable on a CRT TV, has no ip address and won't let me ssh in. So now I have to boot this on a different pi, one that is plugged into a regular monitor. But that doesn't have a keyboard, so I'll have to mess around with figuring that out. Good grief.

I wonder why people who release operating systems can't just get the basic stuff right:

1. Include a known name and password. Don't keep changing it so that people will google and find the wrong one. Better yet, include a readme that tells people what is going on.

2. Leave sshd running with the name and password so that if people are having trouble because they are running headless and without a keyboard, they can still use the os.

3. Furthermore, it should come up with a port and ip address whether or not there's a dhcp server running. Maybe there is something there and I can't see it because of the microscopic font.

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: netbsd and rpi_inst.img.gz and ssh

Sat Dec 19, 2015 1:44 am

Apparently eventually it does get a dhcp ip but it then refuses to let me log in ssh via root and no password. That probably seems for the best but when I read around, people say that I need to su to root on the pi and add a user and then add that user to the wheel group. That's nice, I can't see the command line enough to read it!

I think I added a user but I'm not sure what happened because I wasn't clear when I was supposed to type in the password. What if someone wanted to try this out and all they had was a TV?

OK, I took the system down off the TV and put it on a normal monitor. Of course, when you add a user, you don't add anything else including a password. So I added that using passwd and made sure I could ssh user@localhost . There was no way to test the network because it is a pi with a single USB and that was now being used for the keyboard.

So I skipped putting it back on the TV, since I couldn't read things anyway, and put it back headless on the other pi that doesn't have more than one USB port but does have an external USB network adapter. ssh user@whatever now logs in using the password that I setup on the sdcard. Success!

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: netbsd and rpi_inst.img.gz and ssh

Sat Dec 19, 2015 2:51 am

rpi$ su root
su: You are not listed in the correct secondary group (wheel) to su root.
su: Sorry: authentication error

OK, so let me get this straight, I can ssh into the machine with my trusty new account that I made by putting the sdcard into the pi with the digital screen but I can't su root because I'm not wheel and I can't fix that without shutting down and going back to the pi with the digital monitor since I can't see anything when I directly log into the pi using the TV.

Wouldn't it have been easier, and this is just a thought, to have included a default user with the correct credentials so they could do these things via ssh?

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: netbsd and rpi_inst.img.gz and ssh

Sat Dec 19, 2015 3:14 am

OK, I've got my user as wheel, I'm booted back headless and I've changed the password on root from no password to something more memorable. I probably should've done that the first time I booted up since in reading what I wrote earlier, I even said that google said I needed to do add wheel.

Return to “NetBSD”