Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-06-2006, 05:22 PM   #1
Pyro In A Cage
LQ Newbie
Registered: Feb 2006
Posts: 18

Rep: Reputation: 0
Autorun "startx" on boot with lilo?

Is there anyway to have lilo automatically run the "startx" command upon boot?
Old 02-06-2006, 05:30 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Not sure about that, but you could always install a graphical login screen like xdm, gdm, or kdm. In general people use gdm if they're Gnomies and kdm if they're KDE people. xdm is the original bland version...
Old 02-06-2006, 05:36 PM   #3
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
lilo is a boot loader and selects the OS to load. Do you mean that you want to login from a GUI prompt and go straight to your window manager/desktop? If so, (I'm assuming you have a gui installed) edit /etc/inittab and change the following line from:
to the following for a Slackware system
or to the following for a Redhat based system (I hope my memory isn't too rusty here)
If you want to keep your text login and automatically start the gui after you login, the following is a little clunky, but it works. Add something like this to the end of your ~/.bash_profile file:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
  echo -n "Start the GUI? (y/n): "
  read ANSWER
  if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank screen untril I "startx" after boot GML3G0 Linux - Software 8 03-26-2005 02:42 PM
How to start KDE automaticlly without typing "startx" then "startkde" Jonescity Slackware 8 10-29-2004 09:32 PM
Boot hangs after "md: ...autorun Done" The_fuzzy_cow Linux - Hardware 2 07-12-2004 08:50 AM
cdrom "autorun" kscd,totem,k3b C++Boar Mandriva 6 05-24-2004 03:22 PM
no X after boot, instead taken to a console and have to manually "startx" OmniXBro Mandriva 2 03-21-2004 04:09 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:25 PM.

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