How to Install Gnome Window Manager on OpenBSD

October 4th, 2009 by Fuad NAHDI Categories: OpenBSD
Tags: ,

Gnome provides a desktop environment which is favoured by many computer users. It is arguably best known for it’s compatibility with Linux, but it can in fact be installed on a variety of Unix-like computer operating systems. If you want to install Gnome on OpenBSD, then you might find that the following guide is of use.

After all, whatever you use your computer to do, you will no doubt be keen to make the most of it’s capabilities. You may spend hours choosing the best software systems or O2 broadband packages – so you won’t want to miss on the various benefits of using an advanced graphical user interface due to your chosen operating system. With these step by step, you should have no problems in installing Gnome on your PC.

In my previous article, I showed you how to set PKG_PATH to an ftp server nearest to you. It must be set first to install any packages on the fly (directly from an ftp server).
OK lets go ahead install gnome-session using pkg_add:

$ sudo pkg_add gnome-session

It will check the dependencies and install them first. Wait for some minutes to all the packages installed successfully.

After gnome-session package installation completed, you have to create/edit .xinitrc file in your home directory and contain only one line ‘exec gnome-session’.

$ echo "exec gnome-session" > ~yourhomedir/.xinitrc

It will make gnome-session as your default window manager.
Run ‘startx’ and you will see gnome-session starting.

To run gdm at boot, write these codes below into /etc/rc.local file:

if [ -x /usr/local/sbin/gdm ]; then
	echo -n ' gdm';		/usr/local/sbin/gdm
fi

Now your Gnome will automatically start at boot time.

To get updated, enter your email address: