Arch Linux 'Post-Installation'
Following up on my Arch Linux installation post, here are the things I think you should do before rebooting into your new system.
Installing a Desktop Environment for Arch Linux
After finishing the steps in the installation guide, Arch Linux is ready to run, but only in console mode. To install a desktop environment, run the following commands (while still inside arch-chroot):
| |
Here I’m using the Cinnamon desktop environment (DE), and my future guides will also focus on Cinnamon. Arch supports plenty of other DEs listed at https://gnome group if you want extra bundled applications.
| |
I use LightDM as my display manager; if you use GNOME, GDM is already included by default.
| |
This enables the LightDM service at boot; if you use a different display manager, substitute its service name here.
| |
(this is the network management service, mainly to make connecting to Wi-Fi much easier)
Adding a User to the System
By default, only the root user exists on the system. For everyday use, you should create a regular user account to log in with:
| |
(-m creates a home directory for the user, e.g. /home/tien; -G wheel adds the user to the wheel group, which we’ll use to grant sudo privileges next; -s /bin/bash sets your default shell to bash—later I’ll write a post introducing zsh, a much more customizable shell; and tien is the username you want to create—my name is Tiến so I just used tien :v)
Granting sudo Privileges
| |
(obviously we need sudo installed before we can grant sudo privileges :v)
| |
(this is the editor I’ll use; you can install vim, vi, nano, or whatever you prefer—I like Neovim so that’s what I install :))
EDITOR=nvim visudo (visudo uses vi by default, so we set EDITOR to use Neovim instead)
Uncomment the line wheel ALL=(ALL) ALL, save, and exit—that’s it :D
Installing a Terminal Emulator
If you only installed Cinnamon, you won’t have a terminal emulator installed by default, meaning you’d have to switch to another TTY (Ctrl + Alt + Fx, where x is 2 to 6) just to run commands. Here I’ll install Terminator:
| |
And now you have a truly usable system! Later on I’ll write more posts on beautifying and tweaking Arch. See you next time!!
Comments