Using XFCE Desktop Environment on ServerStadium VM
This article is going to discuss XFCE in ServerStadium Virtual Machine.
When we create a VM with Linux OS inside ServerStadium Cloud, it will always be CUI (Command User Interface) / terminal.
As a server, we will work more with remote systems. Indeed, a server generally does not need a GUI Desktop Environment installed because it can be managed with SSH. But if the server we are installing is a LAMP Server (Linux-Apache-MySQL-PHP, including Python and PostgreSQL) then it is very helpful to install the Desktop Environment as well. So, we can browse to find information (such as forgetting how to manage log files on Ubuntu, testing on our server, or even when we want to experience multimedia features like we usually can in the Desktop Environment).
Thus, I will explain installing the XFCE Desktop Environment in our Ubuntu VM on ServerStadium Cloud and how to connect it using Remote Desktop Connection.
What is XFCE?
To start, let’s get to know what is XFCE. XFCE is a lightweight Desktop Environment for UNIX-like operating systems. It targets a Desktop Environment that is fast and low on system resources while remaining visually appealing and user-friendly.
Now, let’s jump on the features. XFCE contains several core components for the minimum tasks you’d expect from a desktop environment:
- Window & Desktop Manager
Switch between opened windows, provide window decorations, and set Background images, and icons on the Desktop.
- Session Manager
Controls login and power management from the Desktop and allows us to save multiple login sessions.
- Application Finder
Shows the applications installed on the system in the form of categories so that we can quickly find and launch them.
- File Manager
Provides basic file management features and unique utilities like bulk renamer.
- Settings Manager
Tools to control the various settings of the desktop; like keyboard shortcuts, appearance, display settings, etc.
Besides the basic set of modules, XFCE also provides numerous additional applications and plugins so you can extend your desktop the way you like, for example, a terminal emulator, text editor, sound mixer, application finder, image viewer, iCal-based calendar and a CD and DVD burning application. You can read more about the modules of XFCE on the projects page.
The Benefits of Using XFCE
There are several impacts and benefits that we can get when using XFCE, including:
- Can access Linux VM not only via SSH but also via GUI.
- Not only can you use a Linux VM to configure the server, but it can also be used as a means of multimedia, browsing, file management, games, and other common things in the Desktop Environment.
- Get the Desktop Environment experience with its lightweight performance.
- Get the Desktop Environment experience without additional licenses, like when we use Windows OS.
Why Should we Launch XFCE on ServerStadium Cloud?
Now that we know the features and benefits of using XFCE. Let’s dive deeper into why we should launch XFCE on ServerStadium Cloud.
- Fast performance thanks to ServerStadium’s Data Center grade SSD, making our Desktop Environment fast and lightweight
- Diverse package options, making us free to determine the VM specifications that suit our Desktop Environment needs
- Flexibility in upgrading and downgrading VM specifications. Suitable for those of us who need to adjust VM performance from time to time
- Diverse cloud region options
- Reliable 24/7/365 ServerStadium’s support
Install XFCE on Ubuntu VM on ServerStadium
So, to start with, we need a VM inside ServerStadium. In this article, I will use the Ubuntu OS.
To see how easy it is to launch a VM in ServerStadium, you can check the following article: Create VM on ServerStadium
We access the VM via PuTTY.
First of all, we need to change the password to make it easier for us to access the remote desktop.
# sudo passwd root
Then we update and upgrade our Ubuntu package first.
# sudo apt-get update && apt-get upgrade
After the system is up-to-date, we can start installing the Desktop Environment. In this article, I will install Xubuntu-Desktop.
# sudo apt install xubuntu-desktop
Several other Desktop Environment options are available, such as KDE, GNOME, etc. But I’d go with XFCE because it’s light enough and fast enough; it also works well.
After everything is done, the next thing we will do is install XRDP.
XRDP provides a graphical login to remote machines using RDP (Microsoft Remote Desktop Protocol)
Most people prefer to use VNC to do remote work on their servers. However, I prefer RDP, so I will use XRDP.
# sudo apt install xrdp
When finished, we will make this XRDP service run automatically at bootup
# systemctl enable --now xrdp
This way, in the future, when we start the VM, the XRDP service will automatically run.
We can check the status also with the following command:
# systemctl status xrdp
Finally, we will create a file called xsession
# nano ~/.xsession
Add the following syntax:
All in all, XFCE helps us to create a desktop environment of our ServerStadium Linux server VM, which by default only uses the Command User Interface. In this article, you have known XFCE’s benefits, and features, and how to install it in ServerStadium’s VM. Hopefully, you find this article helpful.
Find more tutorials and articles in ServerStadium’s Knowledge Base