FreeBSD Gnome Installation howto

by Vivek Gite · 9 comments

GNOME is a complete desktop environment (no matter what Linus says ;) ). In GNOME, everything is easy to use, and works the way you want.

So how do you install Gnome Desktop system under FreeBSD?

These days it is quite easy to install Gnome Desktop system under FreeBSD. You have following choices (use only one of the method).

Option # 1: Fetch and install Gnome binary package from Internet

To install GNOME 2.16 from binary package over Internet or local FTP server type the command:
# pkg_add -v -r gnome2

Now proceed to post installation instructions.

Option # 2: Install Gnome binary package from CD/DVD

Login as root and type sysinstall:
# sysinstall

Select Configure > Packages > CD/DVD > Gnome

Select all packages and hit install button

Now proceed to post installation instructions.

Option # 3: Install Gnome using FreeBSD ports system

To compile and build Gnome type the following command:
# cd /usr/ports/x11/gnome2
# make clean; make install clean

Now proceed to post installation instructions.


Enable and start GNOME automatically

You need to start all of the GNOME-related services when system comes (at boot time). All you need to do is add following line to /etc/rc.conf file:
Open /etc/rc.conf file:
# vi /etc/rc.conf
Append following line:
gnome_enable="YES"
Save close the file.

If you have other system such as KDE and just want gnome as default add the following line to ~/.xsession or ~/.xinitrc file so that GNOME 2.16 can be started as soon as you type startx command:
echo 'exec gnome-session' >> ~/.xsession

How do I use Gnome?

You can login using GDM or simply type the command:
$ startx

Further recommended readings

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 9 comments… read them below or add one }

1 sejavu 04.11.08 at 9:54 pm

i did install gnome .
kde n gnome want to open together . how can i find select window?

2 stan 12.27.08 at 4:43 pm

i did everything according to the steps above, but when i log in as root and i typ ’startx’ it says: command not found
and when i type ‘gdm’:
gdm-binary[1358]: WARNING: GDM already running. Aborting! GDM already running. Aborting!
what to do?

3 victor 01.05.09 at 1:07 am

If u cant start gnome with “$ startx” you try “$ gdm” i used it when i couldnt start gnome with startx and it worked like magic.
all the best

4 sig 02.08.09 at 7:12 am

This is helpful truly.

:-)

5 James 03.08.09 at 4:46 pm

how do I exit out of the config file plz help me someone
yes i know im a noob with free bsd but plz help

6 dns 04.06.09 at 10:12 am

ctrl+x for pico and nano
ctrl+[escape] for vi :>) all the best

7 Billy 06.01.09 at 1:55 am

I’ve been using gdm_enable=”YES” in my /etc/rc.conf file. I’m gonna try that gnome_enable=”YES” in a sec. To answer James’s question, if you’re using Vi as your editor, hit ZZ or Shift Z 2 times. If you’re using emacs I dunno. Vi is forever.

8 Caio Ribeiro César 06.02.09 at 11:49 am

# cd /usr/ports/x11/gnome2
# make clean; make install clean

It takes so long u.u ‘ zzzzzzzzzzzzzz

9 Kenneth Smith 07.10.09 at 7:58 pm

Great stuff – very helpful

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: