LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-26-2006, 07:15 PM   #1
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
A KDM free system


I've been reading around for a bit now and there seems to be many responses to the idea of kdm causing issues with startup and shutdown but this doesn't relate to my query. I've had a thought that since I only ever use my laptop running a single session of X. But for what reason would I want kdm running. Personally, I was wondering about removing it. My question comes before the silly deed. (Which will most likely be attempted anyway)
Is it a simple feasable idea or are there sesible reasons to retaining kdm as a dormant process?
 
Old 03-26-2006, 08:53 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
Instead of doing something like removing it, kill the running process. I think you will find it logs you out of the GUI really fast... I use that in my lab sometimes to get stragglers out the door quicker. It is a bit harsh. I think it kills all processes spawned by kdm or gdm (GNOME).

No need to get rid of this. If it is stagnant it will be swapped out if the RAM is needed for more important things.
 
Old 03-27-2006, 01:23 AM   #3
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
I am aware of what happens when the process is killed, I tried this one already
I was more interested in the idea that if it is only used to control login sessions and if I only ever use 1 login session, is there a way around it. In essance, I am just messing with things.
I guess the question is better summarised by asking " Is there another way of launching an X session without using an XDM (xdm,kdm,gdm for instance) "?
 
Old 03-27-2006, 01:28 AM   #4
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by recursv
Is there another way of launching an X session without using an XDM (xdm,kdm,gdm for instance)?
Presumably you have already considered booting to runlevel 3 (console login) and simply running startx?
 
Old 03-27-2006, 06:47 AM   #5
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
I think a dm must be involved to get any of the nice windowing features.

Starting X can be fun. If you have two Linux boxes,
X -query ipaddress of other

will let you log in with a GUI on the other machine if XDMCP via tcp is enabled on the other machine in /etc/gdm/gdm.conf . That is in essence what my computer lab has.

Another is
X -broadcast
which hunts around for another machine.

X is a big topic
Try man X for details.
 
Old 03-27-2006, 10:16 AM   #6
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Original Poster
Rep: Reputation: 15
In response to odevans, I hadn't thought of that. Could simply put that into the startup scripts. But i'd have to find a work around for the automatic session login that works so nicely in removing any boot up questions.

In response to RobertP, X is a big topic and very kewl. I have a couple of boxes in here that I can mess with and have. But this idea just tweaked my interest. The DM is responsible for maintaining X and initiaing sessions. The reason i was considering removing it is that I only ever use the features ( and only a small sub-set of the availables ones at that ) once every time I boot my laptop. As the DM's provide a system for multiple login sessions over the period of uptime on a system, I thought that it could be considered pointless to be running one.

I think that the idea of setting the initial X constraints in a shell script and booting that from the profile could be interesting but research must be done on automatic logins. I know this can be done becuase there is an example of it on the slackware installation cd's. (Patrick faked the login sequence) So i could check there for a starting point.
 
Old 03-27-2006, 11:14 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
I use a dirty trick to load X without logging in. Use runlevel 3, and add this to your /etc/rc.d/rc.local file (change user to the username you want):
Code:
su - user -c 'source /etc/profile; startx'
 
Old 03-27-2006, 04:56 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
here's what i did:

http://www.linuxquestions.org/questi....php?p=1935619
 
Old 03-27-2006, 05:37 PM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I used to boot to runlevel 3 and then have startx as last line in .bash_profile
 
Old 03-27-2006, 08:00 PM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by gbonvehi
I use a dirty trick to load X without logging in. Use runlevel 3, and add this to your /etc/rc.d/rc.local file (change user to the username you want):
Code:
su - user -c 'source /etc/profile; startx'
hi gbonvehi... yeah, you (and others) actually helped me with something like this a year ago, before i ended-up compiling the autologin.c code instead... here's the link to that thread in case anyone runs into the same stuff i did back then:

http://www.linuxquestions.org/questi...d.php?t=306462
 
  


Reply



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
system freeze at kdm logout: kde 3.5, fglrx 8.21.7, x.org 6.8, kernel 2.6.14 qanopus Linux - Software 3 02-13-2006 05:07 PM
Adding kdm to init.d so LFS boots to kdm StevePhM Linux From Scratch 4 08-08-2005 09:49 PM
Free Patching System? caps_phisto Linux - General 1 05-24-2005 08:59 PM
How can I log into system without KDM? DavidTempler Linux - Newbie 4 06-22-2004 07:18 AM
kdm and KDE System Guard wrongman Linux - Software 0 05-23-2004 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration