DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Debian Sarge3.1. I just installed Xorg from testing repo. Also Installed fluxbox. I added exec /usr/bin/fluxbox in the file .xinitrc.
Now, I have to start fluxbox by giving the command startx whenever I log into my account. How can I automate this process i.e. whenever I log into my account, the startx command should be launched so that my Fluxbox window manager starts automatically.
Open your /etc/inittab file in an editor. Look at the listing of the various runlevels. Here's the relevant part of mine:
Code:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
(I run Slackware, your entries may be different.
In the "id:3:initdefault:" change the number to whatever is shown in your inittab file as the "# 4 = X11 with KDM/GDM/XDM (session managers)" equivalent. Reboot and you will have a graphical login.
Recently installed Sarge and had opposite problem: X starting automatically drives me insane.
Stopped it by commenting out last line of the configuration file of the thing that starts X - is it xdm? Surprisingly I think this is what you are supposed to do: xdm stops running outomatically and is a dependency of X.
So you could try the opposite.
Hope helps.
Sorry the last line is in Xsession, I think /etc/X11/Xsession, not in xdm's configuration file. Presumably this is for when xdm is doing the managing.
Last edited by lugoteehalt; 10-31-2005 at 09:40 AM.
Originally posted by lugoteehalt Recently installed Sarge and had opposite problem: X starting automatically drives me insane.
Stopped it by commenting out last line of the configuration file of the thing that starts X - is it xdm? Surprisingly I think this is what you are supposed to do: xdm stops running outomatically and is a dependency of X.
So you could try the opposite.
Hope helps.
It is somewhat different in debian. By default, when X is installed on debian the GDM manager is also installed. The GDM manager is called from the rc2.d symlinks, and not from /etc/inittab directly. As such, to get rid of GDM in debian it is a simple task of removing the symbolic link in /etc/rc2.d that point to GDM (usually S99gdm).
From my experience, debian only uses four different run levels:
0: Shutdown
1: Single User
2: Multi-User
6: Reboot
Originally posted by XavierP Open your /etc/inittab file in an editor. Look at the listing of the various runlevels. Here's the relevant part of mine:
Code:
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Version: @(#)inittab 2.04 17/05/93 MvS
# 2.10 02/10/95 PV
# 3.00 02/06/1999 PV
# 4.00 04/10/2002 PV
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by: Patrick J. Volkerding, <volkerdi@slackware.com>
#
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
(I run Slackware, your entries may be different.
In the "id:3:initdefault:" change the number to whatever is shown in your inittab file as the "# 4 = X11 with KDM/GDM/XDM (session managers)" equivalent. Reboot and you will have a graphical login.
Thanks I will try your suggestion. Also, someone said that when we installed X, gdm gets automatically installed in Debian. But in my case when I installed Xorg from testing repository, kdm did not get installed. Is this something unusal?
Nways, I don;t plan to install KDM, as it takes too much of space on my system and th at;s why I would just like to have a simple lightweight WM with minimal login manager.
Originally posted by lugoteehalt Recently installed Sarge and had opposite problem: X starting automatically drives me insane.
Stopped it by commenting out last line of the configuration file of the thing that starts X - is it xdm? Surprisingly I think this is what you are supposed to do: xdm stops running outomatically and is a dependency of X.
So you could try the opposite.
Hope helps.
I was talking about Debian Sarge. There's a mistake in what I said it isn't the xdm configuration file its another file. Sorry to be vaugue but have an idea it's called session, or nearly, and lives in same directory as previous.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.