Automatically starting graphics mode (GUI) KDE in BackTrack Linux 5 R3

A short post that is not about SUSE; it’s just something I had to get done. BackTrack starts by default in text mode, it the intended behavior. If you’d like to have a GUI that starts automatically, read on.

1. make sure you have KDM installed

dpkg --list kdm

It should be there, it’s installed by default. If you use Gnome, you need GDM, that is not installed by default, so install it this way:

apt-get install gdm

2. remove the “text” option in /etc/default/grub

Edit this line and delete the “text” option

GRUB_CMDLINE_LINUX_DEFAULT="text splash vga=791"

3. update grub.cfg

Run this:

update-grub

By now, you should have KDM on your screen. It’s going to appear when you reboot, too.

And since you’re here, maybe you also want to configure this:

Remote connection through VNC

1. install tightvncserver

apt-get install tightvncserver

2. edit /etc/services

Add the line below. You might want to do it at the proper sorted position, by port number.

vnc             5900/tcp                        # TightVNC server

3. add this line to /etc/inetd.conf

vnc stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 1024x768 -depth 16

4. enable the service to start at boot

It’s not converted to upstart, it’s still sysinit

update-rc.d openbsd-inetd defaults

5. enable Xdmcp in /etc/kde4/kdm/kdmrc

Go into section [Xdmcp] and enable it

Enable=true

6. allow login

Edit /etc/kde4/kdm/Xaccess. Remove the comment sign (#) from the beginning of this line:

* #any host can get a login window

7. start the service

/etc/init.d/openbsd-inetd start

8. verify that you can connect

Use a VNC client, like Krdc, vncviewer from the command line, or the Windows TightVNC client. Connect to port 5900.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s