You can add it anywhere but it’s good practice to find the authentication block and add it there. Uncomment the PermitRootLogin and next to it type yes, or add the following line to the file. In order to change the default username you have to logoff and login as root only.īy default it is not permitted to directly login as root via SSH, but you can change that.Īs a root user, edit the sshd_config file found in /etc/ssh/sshd_config: nano /etc/ssh/sshd_config
INSTALL LINUX ON USB FOR RASPBERRY PASSWORD
Change the default username and password.To make the use of Arch Linux on a Raspberry Pi 4 more convenient I will show you a few tweaks/additions that you can do.
Bonus tips after installing Arch Linux on Raspberry Pi
If you want to reboot your Raspberry pi after a system upgrade, simply type reboot in the terminal and connect again via SSH.
INSTALL LINUX ON USB FOR RASPBERRY UPGRADE
To complete the installation process, you need to initialize the pacman keyring and populate the Arch Linux ARM package signing keys: pacman-key -initĪt this point the installation process has been completed and you can upgrade the system packages as root using the same pacman commands as you do with an x86 architecture machine. Please note the default user name is alarm and the default user password is alarm. Once you find the IP address of your Raspberry pi, type the following command at your computer’s terminal using your IP address: ssh _pi_ip_address For the moment, it works in Arch Linux ARM. Note: I am aware that wifi-menu is being discontinued in the original Arch Linux. Please note that you need a keyboard set and a monitor to initially connect on your WiFi. If an Ethernet connection is not an option, you can access your WiFi network after you login as root using the following command. To get the IP address of the Raspberry Pi, check the devices connected to your network and see which one is the Raspberry Pi. I will connect to my Raspberry Pi via SSH for this tutorial. You can either follow the rest of the tutorial, either directly on the Raspberry Pi by connecting a monitor and a keyboard set, or you can connect remotely to the Raspberry Pi via SSH (if you don’t have a spare monitor, you need to connect via Ethernet to your local network). Umount boot root Step 3: Insert the microSD card into the Raspberry Pi and, connect the power supply and to the Internet.Īt this step Arch Linux is installed on the SD card, and the rest of the configurations will be done from the Raspberry pi.