LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2003, 11:11 AM   #1
lanif
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat8
Posts: 7

Rep: Reputation: 0
startx automatic?


I have a problem that every time when I start my linux it didn't show up it grahpic mode .I have to login in textmode first and then type: startx to get in grahic mode.
I try to edit in 'init' set level 5 default
and 'telinit 5' but it didn't work.
What should I do?
Thanks.
 
Old 03-26-2003, 11:26 AM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
I believe you just need to edit your /etc/inittab file, and change the line:

id:3:initdefault:

to:

id:5:initdefault:
 
Old 03-26-2003, 03:43 PM   #3
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
I believe you just need to edit your /etc/inittab file
yeah, but this assumes one has a graphical login like XDM, GDM, etc. Otherwise, one could try creating/editing a ~/.bash_login script to run startx after a correct login.
 
Old 03-26-2003, 04:01 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Erm no, as root just cd to /etc, then vi inittab
Trust me, I just did it! (Personal victory over VI btw)

Last edited by Proud; 03-26-2003 at 04:02 PM.
 
Old 03-26-2003, 04:31 PM   #5
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Erm no, as root just cd to /etc, then vi inittab
Trust me, I just did it! (Personal victory over VI btw)
yeah...and what graphical login starts?
: )

if you don't know, just go and check /etc/rc5.d/
; )
 
Old 03-26-2003, 04:37 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Hmm, ok so in theory you need a graphical login manager, but why would you startx without one?
I asume Lanif has one already anyway as he just wants to automate getting in to it :P
 
Old 03-26-2003, 06:12 PM   #7
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
Hmm, ok so in theory you need a graphical login manager, but why would you startx without one?
Actually, the two don't relate. Maybe you should look at what your graphical login does. Simplified, it's a pretty image that takes your username and password, sends it back to the system, gets back an authentication, and runs startx and .xsession. True, this is a little simplified (there are lots of IF situations, the code handles, as well as security checks, but that's the idea). On the other hand, a console login runs a tty which takes your username/password, sends it to the system, and on authentication starts a login bash shell (but w/o running startx). see the difference? Look at the display of 'pstree' to get a better idea of how your gui login is just a login bash shell with 'startx' run automatically.

And as you say, you 'assume' that the gui login is setup. That's what my original post said. If you boot into runlevel 5, but there is no gui login to welcome you, the script may go into some wacky infinite loop of searching for one, or if the inittab was written rather inteligently, it may try to drop you to runlevel 3, or even 1.
 
  


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
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx vs startx -- :2 (font dimension is different!!) moly82 Linux - General 7 09-15-2003 12:11 PM
Automatic -dpi option for startx Zoombie Linux - Software 2 07-13-2003 01:54 AM
no automatic startx and /etc/inittab set at "5" chess Linux - General 2 03-05-2002 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:17 AM.

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
Open Source Consulting | Domain Registration