LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-18-2005, 03:52 PM   #1
Jude Lucien
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian Sarge
Posts: 18

Rep: Reputation: 0
What Is X Login Sequence?


I am bit of a newbie and have Sarge installed. I did not install any other package at installation time as I want to do them myself one by one.

I have installed X, and xdm starts up at 640x480 just fine.

As I am using a Duron machine with 256MB ram I then installed icewm. Now when I boot the pc the xdm screen appears, and when I login it goes straight into icewm.

Two things: I want to boot to a text prompt and type startx when I want to go to a wm, and I want to be able to get out of the wm and back to a text prompt.

Doing a CTRL+ALT+Backspace does kill the xserver but puts me right back at the xdm login screen.

Doing a CTRL+ALT+F1 kills the xserver back to a text prompt but will not start the wm if you type startx again.

Basically, I am trying to find the X login sequence and am getting confused.

I have no .xinitrc file in my home directory, so I have determined that /usr/lib/X11/xinit/xinitrc is being used. The only line in that file is:

/etc/X11/Xsession

There is no mention of xdm or icewm anywhere in that file, so I don't know how they are being started.

I have also checked /etc/init.d/xdm and have determined that it pulls it variables from /etc/X11/xdm/xdm-config, but there is no mention of icewm.

I'm now pretty confused, any help appreciated.
 
Old 07-18-2005, 05:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
looks like you basically just want to change your runlevel... open up /etc/inittab and change the default entry in there from 5 to 3. next time you boot you'll get a console login.

note... C+A+F1 does NOT kill the X server at all, just goes to a different screen. C+F7 will bring it right back.
 
Old 07-18-2005, 05:09 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
First ctrl+alt+f1 does NOT shutdown X. It justs moves you to one of the consoles ( of which there are 6 ). if you press alt+f7 you would return to X. ( The extra ctrl in X is required because alt+f1 might be used by a program as a shortcut ). If you press alt+f2 you'd go to another console.

What you need to do to start in console mode rather that X is remove the xdm startup script from the runlevels. ( what was said above is wrong Debian does not have one of the user runlevels set to console only, and the default in Debian is 2 ).

The easiest way in Debian is through the command line command as root type

update-rc.d xdm remove

and thats it.

Its picking your default wn through the alternatives system. if you type

ls -l /etc/alternatives/x-window-manager

you'll see what has been set.

Last edited by leonscape; 07-18-2005 at 05:10 PM.
 
Old 07-18-2005, 06:41 PM   #4
fsateler
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Debian Unstable
Posts: 107

Rep: Reputation: 15
Notice though that if you login to a console, and then run startx, xdm will never be run, and you'll need to edit/create an xinitrc.
 
Old 07-18-2005, 08:19 PM   #5
rbochan
Member
 
Registered: Dec 2004
Location: Central New York
Distribution: Debian
Posts: 218

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
looks like you basically just want to change your runlevel... open up /etc/inittab and change the default entry in there from 5 to 3. next time you boot you'll get a console login.
Not in Debian land it doesn't. Debian doesn't differentiate between the various runlevels except for halt, reboot, and single. Also, it defaults to runlevel 2.

Quote:
Originally posted by leonscape
The easiest way in Debian is through the command line command as root type

update-rc.d xdm remove
Either that (with the -f switch) or remove the xdm package entirely (apt-get remove xdm).

Quote:
Originally posted by leonscape
Two things: I want to boot to a text prompt and type startx when I want to go to a wm, and I want to be able to get out of the wm and back to a text prompt.
After removing xdm or it's init scripts, you can run 'update-alternatives --config x-window-manager' and tell it what you want. You can also create the file .xinitrc, with your favorite text editor, in your home directory, which would contain the text:

exec icewm

or similar.

HTH
 
Old 07-19-2005, 12:59 PM   #6
Jude Lucien
LQ Newbie
 
Registered: Jul 2005
Distribution: Debian Sarge
Posts: 18

Original Poster
Rep: Reputation: 0
Problem solved.

Thanks leonscape for the info about consoles, I've written it down.

I did 'update-rc.d -f xdm remove'

Did the 'ls -l /etc/alternatives/x-window-manager' and found it to be a link to /usr/bin/icewm.

Restarted to command line. Excellent.

I have made a note to investigate "update" and "alternatives", thanks very much for all the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Sequence Nilesh.Shah Linux - Newbie 2 05-30-2005 03:51 AM
login sequence fcbarnard Linux - Security 1 02-19-2005 10:55 AM
Boot sequence fiomba Mandriva 2 12-15-2004 08:04 PM
boot sequence stops before login prompt rdnelson Linux - General 2 10-18-2004 10:56 AM
escape sequence help in C name_in_use450 Linux - General 6 07-01-2004 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration