If you followed my guide on installing Arch Linux (Part 1, Part 2), you may have noticed that we are continually typing startxfce4 everytime we boot the instance. Here’s a tip on how to do it fast and start XFCE automatically.
Editing the .bashrc
All you have to do to skip typing of startxfce4 is to add the following line in ~/.bashrc.
if [ “$(tty)” = “/dev/tty1” -o “$(tty)” = “/dev/vc/1” ] ; then
To do this, fire up terminal and type
to fire up nano and edit it using command line. Or you can
- Click Home folder
- Press CTRL+H to view hidden files
- Double click and edit .bashrc
Now, do a restart and afterwards you will have your XFCE desktop started after you log in. Enjoy!