LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack 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
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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:
Code:
id:3:initdefault:
to the following for a Slackware system
Code:
id:4:initdefault:
or to the following for a Redhat based system (I hope my memory isn't too rusty here)
Code:
id:5:initdefault:
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:
Code:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
  echo -n "Start the GUI? (y/n): "
  read ANSWER
  if [ "$ANSWER" == "y" ] || [ "$ANSWER" == "Y" ]; then
    startx
  fi
fi
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration