Linux - NewbieThis 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
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 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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.