Install XFCE Desktop on Debian 9 Stretch

28/12/2020
Chưa phân loại
You’ve used many desktop environments by now on Linux. Such as Unity, GNOME 3, KDE 5 Plasma and many more. But some of them are heavyweight. That is, they require modern hardware such as graphics (GPU) and processor (CPU). They also take up a lot of RAM. Unity desktop environment and GNOME 3 desktop environment are an example of heavyweight desktop environments. They have lots of desktop effects and smooth animations which makes them look fancy. But being fancy doesn’t make it good everywhere.

Suppose you have an old computer that you want to revive, you will want something very lightweight to throw at it. Such as desktop environments that take up less RAM, less CPU and GPU processing power. Most probably you don’t want to invest on your old hardware. Even if you wanted, you may not be able to find components for your hardware at any IT Store.

Again if you’re using a Virtual Private Server (VPS), which has limited RAM and processing power, you don’t want to use a desktop environment at all. Because without a desktop environment installed, your programs can use all the available resources. But if you’re really new to Linux, then you may need a desktop environment. Even if you do install one, you will always want it to use as less RAM and other system resources as possible. So your other programs can use most of the system resources.

XFCE desktop environment is a very lightweight desktop environment. At the time of this writing, the latest version of XFCE desktop environment is 4, also known as XFCE 4. It takes up a lot less RAM. It does not require modern CPU and GPU to function. It can run on very old hardware without any issue. For example, XFCE desktop environment version 4 (XFCE 4) takes up about 219 MB of RAM to run.

In this article, I will show you how to install XFCE 4 desktop environment on Debian 9 Stretch. Let’s get started.

Installing XFCE 4 Desktop Environment on Debian 9

In this section, I will show you how to install XFCE 4 desktop environment on Debian 9 Stretch. As you can see from the output of the following command, I am using Debian 9 Stretch.

$ lsb_release -a

First update the apt package repository cache using the following command:

$ sudo apt-get update

The package repository cache should be updated.

On Debian 9, you can install task-xfce-desktop meta package, which in turn will install all the other packages required to have a fully functional XFCE 4 desktop environment.

Now you can install XFCE 4 desktop environment with the following command:

$ sudo apt-get install task-xfce-desktop

Now press y and then press <Enter> to continue.

apt package manager should download and install all the required packages as you can see in the screenshot below.

The installation should be complete at this point.

Now you have to set the default target to graphical. The default target for a headless Debian 9 setup is multiuser. By setting it to graphical you start the graphical desktop environment by default. Since we are installing XFCE 4 desktop environment, we do want to start graphical desktop by default.

Now run the following command to set the default target to graphical:

$ sudo systemctl set-default graphical.target

The default target should be set to graphical.

Now restart your computer with the following command:

$ sudo reboot

Once your computer starts, you should see the following login window. Enter your username and password and then click on Log In.

You should be logged in to your XFCE Desktop Environment. If you’re logged in for the first time in XFCE Desktop environment, which it is, you should see the following Panel dialog box. Click on Use default config button as marked in the screenshot below.

Now the top and bottom panel should appear. This is how the default XFCE desktop environment on Debian 9 Stretch looks like.

Now to check the version of XFCE desktop environment you’re using, click on Applications and then click on About Xfce as marked in the screenshot below.

As you can see from the marked section of the screenshot below, the XFCE desktop environment version is 4.12.

I said earlier that XFCE 4 desktop environment is very lightweight. It takes very little amount of RAM.

If you want to find out how much RAM only XFCE 4 desktop uses (no other programs), restart your computer and before you start any other programs, check how much RAM is being used.

You can check how much RAM XFCE 4 desktop uses with the following command:

$ free -h

As you can see from the marked section of the screenshot below, I have 2 GB or 2048 MB of RAM installed on my computer, and only 219 MB of it is used by the XFCE 4 desktop environment. About 1.6 GB or 1600 MB of it is still available for other programs. If it was Unity or GNOME 3 desktops, the numbers should have flipped!

Default Applications of XFCE 4 Desktop Environment on Debian 9 Stretch

The default File Manager is Thunar.

The default Terminal Emulator is xfce4-terminal.

The default web browser is Firefox ESR 45.

The default Document Viewer is Evince, which is a GNOME 3 application.

This is how you install XFCE desktop environment on Debian 9 Stretch. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Installing ReactOS on VirtualBox

ReactOS began as a Windows 95 clone in its earlier days and it promises to offer a platform where you can run Windows binaries...
29/12/2020

How to Install and Configure Postfix on Ubuntu 18.04 LTS

Postfix is an open source Mail Transfer Agent (MTA). It is used by public mail servers all over the internet.  In this...
28/12/2020

Best Skype Alternatives for Linux

Best Skype Alternatives for Linux When it comes to VoIP (voice over IP) calling, Skype is a popular choice. But Skype for...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024

Thuê mua IPv4 giá rẻ, tốc độ nhanh, uy tín #1
28/05/2024