Updating NAS Raspberry Pi 3.5
Installing OpenMediaVault (OMV) and Raspberry Pi
- Download the latest Raspberry Pi Imager from the official website:
- Install the Raspberry Pi Imager on your computer.
- Launch the Raspberry Pi Imager and select "Choose OS" to download the latest Raspberry Pi OS (Lite).
- After downloading, select the OS and click "Write". Follow the instructions to write the image to your SD card.
- Insert the SD card into the Raspberry Pi 3.5.
- Connect the Raspberry Pi to a monitor, keyboard, and mouse.
- Power on the Raspberry Pi and wait for the boot process to complete.
- Once booted, you will be prompted to configure the Raspberry Pi. Follow the on-screen instructions to set up the Wi-Fi, keyboard layout, and other preferences.
- After setup, the Raspberry Pi will reboot and start the OpenMediaVault installation process. This may take several minutes.
Setting the hostname
- After the installation is complete, log in to the Raspberry Pi using the default username (pi) and password (raspberry).
- Open a terminal and run the following command to edit the hostname:
- Replace the current hostname (raspberrypi) with your desired hostname.
- Save the file and exit by pressing `Ctrl+X`, then `Y`, and finally `Enter`.
- Update the hostname in the `/etc/hosts` file by running:
- Find the line that starts with `127.0.0.1` and add your hostname followed by a space and the IP address of the Raspberry Pi (127.0.0.1 by default). Save and exit the file.
- Reboot the Raspberry Pi by running:
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
Creating a user with a password
- After the reboot, log back in using the new hostname.
- Create a new user by running:
- Set a password for the new user by running:
- Add the new user to the sudo group to grant administrative privileges:
sudo useradd -m -s /bin/bash username
sudo passwd username
sudo usermod -aG sudo username