Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Empowering you to understand your world

How To Install Mate Desktop Environment In FreeBSD

If you want to install a desktop environment/GUI such as Mate in FreeBSD, it’s a fairly simple process that can be done with the built-in package manager. You first have to install the X.org display server (for the X Window System), then you would install Slim, and finally Mate itself.

The ‘pkg update’ and ‘pkg install’ commands mentioned herein require the use of sudo if a non-root account is used.

Start up FreeBSD and update the package list using the ‘pkg update’ command:

pkg update

The next step is to install Xorg (X.org):

pkg install xorg

If it can’t find an installation candidate, then try searching for xorg package names and then run the command again with the exact package name and version.

pkg search xorg
pkg install xorg-x.x.x

Once that is complete, you can now install Slim, an X11 login manager:

pkg install slim

If it can’t find it, then try what I said above using the ‘pkg search’ command and install it using the exact package name.

Only two steps left! Install Mate and then modify your .xinitrc file so it will start when you run startx.

pkg install mate

Once the installation of the Mate desktop environment is complete, add the following line to your ‘.xinitrc’ file (located right in your home directory) so that Mate will start when you run the ‘startx’ command. You can do this in the Nano text editor (run ‘pkg install nano’ to get it and then run ‘nano .xinitrc’ to open the file).

exec mate-session

Now run ‘startx’ and you should see Mate load shortly!

Tested on FreeBSD versions:

12.1.

Leave a Reply

Subscribe to our newsletter
Get notified when new content is published