LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2006, 02:56 PM   #1
devavictrix
Member
 
Registered: Jan 2006
Posts: 70

Rep: Reputation: Disabled
startx automatically


Im using a LFS 6.1 install and have KDE installed as per the BLFS book
http://www.linuxfromscratch.org/blfs...e/kde/kde.html

At the moment Im booting to run level 3, I have to login and then startx.

How can I get all this to happen automatically? So when I turn the comp on I go all the way into KDE without having to do anything?

At the mo I have only got the root user, what happens when I have a normal user also? kdm seems to be a graphical login screen, but im not sure. Should I install kdm to allow me to choose which user I want to login as?

Many Thanks
Rik
 
Old 03-12-2006, 03:40 PM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

You should edit your inittab file and change it from runlevel 3 to 5. Its located at /etc/inittab

Kdm is a graphical login screen, and it will make you able to choose what user to login.

For LFS I dont know, but most distros wont allow root using a GUI. (security reasons).

Under all circumstances you will need a regular user account on your system. Using the root account for common use is not in any way recommended.

Good luck building it

Just curious: How long did it take you to get your system up and running with LFS?

Sincerely, Jorgen

Last edited by anti.corp; 03-12-2006 at 03:42 PM.
 
Old 03-12-2006, 04:12 PM   #3
devavictrix
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: Disabled
I tried changing runlevel 3 to 5 in inittab but when it booted and got to the command line it just said it had entered runlevel 5 istead of 3. I also tried adding 5 to the grub menu.lst

Maybe I can use a GUI as root because I installed xorg and kde as root?

All in all, including fixing mistakes and even starting again on a few occassions it took me about a week.
The time the install went according to plan and booted it took about 12 hours.

As it is all compiled it depends on your comp though really. I think the compiling time for my comp was about 6 hours, so in theory I could probably do it in 7-8 hours.
Ive got a P4a 2ghz w/512mb DDR400.

BLFS all depends on what you want in your LFS "distro". xorg and kde are big though.
 
Old 03-12-2006, 09:57 PM   #4
devavictrix
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: Disabled
Ok, if start kdm from the command (before I startx) it goes to login screen which I have set to login automatically with the kdm options.

Its getting it to do the 'kdm' command automatically now.
 
Old 03-13-2006, 10:45 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,183

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Usually, the graphic subsystem (the display manager, or DM) is started up as one of the last items in the /etc/inittab file.

Exmples of DM's include KDM, XDM, and GDM.

If you cannot log-on graphically as root, it is because the display manager has been told not to allow it. This is a configuration-file option that you can change.

But... you might not want to. You know, plenty of things are easy to do in a graphical environment, and the computer will do anything that root commands it to do, without waiting for .. ..

You have been warned.
 
Old 03-13-2006, 11:44 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Do not establish the habit of logging in as root. This will eliminate pretty much all ofthe security of Linux.
 
  


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 automatically free_andrew Slackware 17 11-10-2014 10:40 AM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 12:16 PM
Execute an application automatically after startx gilan Debian 6 03-24-2005 11:34 PM
How to startx automatically (and a modem question) prcarp Slackware - Installation 10 02-22-2004 10:58 AM
startx -- -dpi 100 .. automatically? doublefailure Linux - General 5 03-17-2003 11:19 PM


All times are GMT -5. The time now is 05:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration