Install X Window System and a Desktop Environment in Debian

debian.jpg

So, you have just installed Debian GNU/Linux. Good for you! But, what now? All you have is a black screen in front of you with no mouse pointer or application menu or anything! What gives?!

What you need now is to install a Desktop Environment. Don’t fret, it’s actually pretty easy.

1. Install The X Window System

First, install the base X Window System GUI environment by issuing this command as root:

# apt-get install xorg

There are a few questions you will be asked after the installation. Accepting the default choices should be fine.

2. Install a Desktop Environment

Next you will need to install a Desktop Environment. The two most popular are Gnome and KDE. You can install one or both to try them out.

# apt-get install gnome

Or replace ‘gnome’ with ‘kde’ for KDE.

3. Run your Desktop Environment

After you have a Desktop Environment installed you can test everything by logging in as your non-root user and issue the command:

$ startx

This should bring up your new GUI environment. Now you’re ready to start using your new Debian GNU/Linux computer!

Notes:

If you would like a nice GUI environment to login with, you have the choice of installing GDM, KDM, or XDM. GDM seems to be the most popular, but you are more than welcome to try out any of the others:

# apt-get install gdm

If you think you messed up on the configuration of the X Window System, you can run this command as root to reconfigure the package:

If you run Sarge:

# dpkg-reconfigure xserver-xfree86

If you run Etch or Sid:

# dpkg-reconfigure xserver-xorg

If you would like a minimal installation of either Desktop Environment, use the package names ‘gnome-core’ or ‘kdebase’ for Gnome or KDE, respectively.

Related Posts

Comments are closed.