Recently I purchased a Raspberry Pi 3 b+ to act as my home NAS. I ran into a repeatable set of errors when trying to set up. Namely, I could not connect to the Web GUI and I Couldn't log in with SSH. Hopefully the following will be of some use to other people going through the same issues. This was all done using a macbook pro
Required:
Raspberry Pi 3 b+ with 32 GB SD card
Keyboard for Pi (connected wirelessly through USB attached dongle)
Attached monitor (I used my TV with an HDMI cable) - you'll need to use this because ssh doesn't work initially.
latest version of OVM4 for Pi 3 b+
Etcher
Steps to Repair
Get image from https://sourceforge.net/projec…/Raspberry%20Pi%20images/
Download and install Etcher
Use etcher on your mac or pc to burn the image onto the SD card
Connect Pi to network using ethernet cable.
Connect Pi to monitor/TV via HDMI
Connect keyboard to Pi
Insert the SD card into the Pi and boot. This can take quite a while. It may also reboot. Don't power off during this process!
After boot is complete, log in as root using CLI (Command Line Interface) using attached keyboard. SSH does not work at this point.
login: root
password: openmediavault
You should be forced to change your password at this point. Record it, you'll need it from this point forward.
ping your router ie ping 192.168.xxx.xxx to make sure your network is functioning.
Enter the following:
- nano /etc/ssh/sshd_config
- change PermitRootLogin to yes
- Save and exit
- systemctl restart sshd
Enter the following:
- xmlstarlet ed -L -u "/config/services/ssh/enable" -v "1" /etc/openmediavault/config.xml
- xmlstarlet ed -L -u "/config/services/ssh/permitrootlogin" -v "1" /etc/openmediavault/config.xml
- /usr/sbin/omv-mkconf ssh
your should now be able to log into your pi using ssh from another computer (or putty if you are using a pc/laptop)
ssh 192.168.xxx.xxx
login: root
password: YourNewPassword
Enter the following:
omv-firstaid
select option 1 and just hit enter for the options already selected.
Enter the following:
omv-firstaid
select option 2 and just hit enter for the options already selected
Enter the following:
shutdown -r now
Wait for pi to reboot then log in.
Login as root again
Enter the following:
apt upgrade
apt update
You should not be able to use a browser on another computer to access your pi via the Web Gui.
Open a browser on a computer connected to the same network as your pi.
Enter the IP address of your pi in the browser.
You should now see a blue screen with a login prompt.
Login details are:
Login: admin
Password: openmediavault
Change your admin password immediately!
Everything should now be working.
I think I've got the order of this straight but I may have one or two things out of sequence. I wasn't documenting things as I tried to figure it out.
HTH!