After the Installation

From Manjaro-Arm
Jump to: navigation, search

Getting Started after the Installation Once you get your Manjaro-Arm installed and booted, there are a few things that you may want to do to make it more tailored to your needs. Below is a list of a few common things that you can change or configure


This section will discuss some of the common configurations that you may want to set up for using your device.

General or all editions[edit]

Using the Package Manager (CLI)[edit]

Using pacman can be a truly wonderful experience. Its simplicity is one of a kind and the power of it can be addicting for people who are not used to it. To perform a full system update

# pacman -Syyu

To install a single package

# pacman -S <packagename>

To install a group of packages

# pacman -S <package 1> <package 2> <package 3>

To search for package

# pacman -Ss <search string>

To see installed packages

# pacman -Q
# pacman -Q | grep <packagename>

To remove packages

# pacman -R <packagename>

There is plenty more that pacman can do however there are very good articles on that located here and here

Changing Password(s)[edit]

To change either password Root or your User (manjaro by default) simply run the passwd command as that user: As user manjaro

$ passwd

Put in the current password (manjaro is default password) press return and put in the new password. You will need to put it in twice to confirm

As Root

$ su
# passwd

And then do the same procedure as above.

Changing Username[edit]

Changing Hostname[edit]

To change the host name you simply need to edit one file as root and reboot.

$ sudo nano /etc/hostname
        put the desired hostname in place of manjaropi
        press ctrl + o to write to the file
        press ctrl + x to close

Then reboot. Once it boots you will notice the hostname has change manjaro@newhost

Configuring SSH for more security[edit]

By default ssh allows access to the root user. Generally, this is a bad idea for security. Manjaro-Arm has left this enabled to ensure that you can access your device in order to set it up. It would be safest to not allow the root user over ssh and even more to enable ssh keys.

Disabling ssh for root user[edit]

To disable the root user, edit the /etc/ssh/sshd.conf as root with your favourite editor

# nano /etc/ssh/sshd.conf

change the PermitRootLogin line to:

PermitRootLogin prohibit-password

write the file to disk and exit the editor Restart sshd by:

# systemctl restart sshd

Setting up keys[edit]

Use ntpd to preserve time across reboots[edit]

The Raspberry Pi's, along with several other SBC's (single board computers) have no RTC (real time clock). As such, when the SBC loses power, the clock on Manjaro will reset do the default. To get around this, one can use ntpd. ntpd is the Network Time Protocol Daemon, used to synchronize system time over the internet. To set it up, install the ntp package. To have the daemon start at boot, then run

# systemctl enable ntpd.service

To have the ntp update the system time at boot, probably the perferred option:

# systemctl enable ntpdate.service

To make ntp update the system time manually, and run as a daemon in the background, run:

# ntpd -u ntp:ntp

To force ntpd to update the time and exit without keeping the daemon alive, run

# ntpd -q

One can also have ntpd synchronize at network interface startup. To use this with netctl, add

ExecUpPost='/usr/bin/ntpd || true'
ExecDownPre='killall ntpd || true'

to the netctl profile file.

Minimal Edition[edit]

Installing Xorg and a Desktop Environment and/or a Window Manager[edit]


These instructions assume you already have an internet connection. The minimum edition supports LAN connections right out of the box.

If you have not already, you should install all available updates (and reboot after doing so):

   pacman-mirrors -g; #Update mirrors list
   pacman-key --refresh-keys; #Refresh/Update security keys
   pacman-optimize; sync; #A little cleanup
   pacman -Syyu; #Finally, search for and install any updated packages

Graphics Drivers[edit]

The primary Mesa driver should already be installed, as well as mhwd (mhwd will list a number of invalid config files; these can be safely ignored). You will also need:

   pacman -S --needed xf86-video-fbdev xf86-video-vesa

There are also a few symlinks that need to be created:

   ln -s /usr/lib/mesa/ /usr/lib/
   ln -s /usr/lib/mesa/ /usr/lib/
   ln -s /usr/lib/mesa/ /usr/lib/
   ln -s /usr/lib/mesa/ /usr/lib/
   ln -s /usr/lib/mesa/ /usr/lib/
   ln -s /usr/lib/mesa/ /usr/lib/


   pacman -S --needed xorg-server xorg-server-utils xorg-xinit
   pacman -S --needed xorg-twm xorg-xclock xterm

Desktop/Login Manager[edit]

   pacman -S slim; #This is a very light-weight desktop/login manager. You can use others if you choose
   systemctl enable slim.service; #enable slim service
   systemctl enable; #enable GUI

Append the following to ~/.bash_profile

   [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx


# pacman -S xfce4      # these are the basic and required xfce4 packages.
# pacman -S xfce4-goodies      # this is completely optional and includes extra tools/packages for Xfce

Use vi (or your console text editor of choice) to create ~/.xinitrc with the following content:

if [ -d /etc/X11/xinit/xinitrc.d ]; then
 for f in /etc/X11/xinit/xinitrc.d/*; do
  [ -x "$f" ] && . "$f"
 unset f
# exec startxfce4

Make the file you just created executable with:

# chmod +x .xinitrc

Reboot and enjoy your freshly-installed Desktop/Window manager.

Setting up an FTP server for file hosting[edit]

Base Edition[edit]

Package Manager (GUI) and installing extra packages[edit]

Scaling VNC[edit]

Server Edition[edit]

Media Edition[edit]