LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 08-08-2005, 05:57 AM   #1
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Rep: Reputation: 15
Adding kdm to init.d so LFS boots to kdm


I've searched around all night and can't seem to find how to get LFS to boot straight to the KDM login screen. I have everything I need installed, so when I startx it brings me to KDE, or when I type kdm as root, it brings me to the KDM login screen, which then goes to KDE. I just need the last link in the chain.

I have set the default run level to 5, and I know it's something to do with adding a link to /usr/bin/kdm inside /etc/rc.d/init.d and then linking to this from /etc/rc.d/rc5.d. I also know that this file needs to be called something along the lines of S99kdm, but I'm just not smart enough to get it to work.

All help is gratefully received!!
 
Old 08-08-2005, 09:34 AM   #2
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: Adding kdm to init.d so LFS boots to kdm

Quote:
Originally posted by StevePhM
I've searched around all night and can't seem to find how to get LFS to boot straight to the KDM login screen. I have everything I need installed, so when I startx it brings me to KDE, or when I type kdm as root, it brings me to the KDM login screen, which then goes to KDE. I just need the last link in the chain.

I have set the default run level to 5, and I know it's something to do with adding a link to /usr/bin/kdm inside /etc/rc.d/init.d and then linking to this from /etc/rc.d/rc5.d. I also know that this file needs to be called something along the lines of S99kdm, but I'm just not smart enough to get it to work.

All help is gratefully received!!
Try append:
Code:
echo "kdm:5:respawn:/usr/bin/kdm -nodaemon > /var/log/kdm 2>&1" >> /etc/inittab
Good luck
 
Old 08-08-2005, 02:50 PM   #3
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Original Poster
Rep: Reputation: 15
Cool, that did the trick. Thanks for that

Just so that I understand what that command did. It appended a line to the end of /etc/inittab that starts kdm (not as a daemon), and sends the error output to /var/log/kdm?? Is that right?? What does it mean to start something "not as a daemon"??

I'm doing LFS as a learning experience, so I wanna make sure that I understand every command I enter!!
 
Old 08-08-2005, 09:47 PM   #4
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by StevePhM
Cool, that did the trick. Thanks for that

Just so that I understand what that command did. It appended a line to the end of /etc/inittab that starts kdm (not as a daemon), and sends the error output to /var/log/kdm?? Is that right?? What does it mean to start something "not as a daemon"??

I'm doing LFS as a learning experience, so I wanna make sure that I understand every command I enter!!
You are right!!! When you start a program with daemon option, it will close stdin, stdout, stderr and going into background mode! (all input && output to that devices will not work). It's not what you want, am I wrong?

Cheers,
GH
 
Old 08-08-2005, 10:49 PM   #5
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the help GH, I understand things now.

Many thanks
 
  


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
adding windows managers to kdm (kde 3.2.1) equinox Linux - Software 2 02-05-2005 03:43 AM
Init 4: Logging out of KDE causes black screen, freeze with GDM, KDM and XDM DaneM Slackware 14 02-03-2005 08:38 PM
Two quick questions. Adding ./ and changing GDM to KDM nkvd Linux - Newbie 3 09-21-2004 01:10 PM
Adding Windows Managers to KDM?? dikadika Linux - Software 6 05-24-2004 11:35 PM
Need help configuring KDM on MDK10C so that it is like KDM on 9.2 bhtooefr Mandriva 0 05-06-2004 02:19 PM


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