LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Just a quickie

[ILUG] Just a quickie

Kenn Humborg kenn at bluetree.ie
Tue May 16 15:26:01 IST 2000


> I tend to install machines to init level 3, and then telinit 5 when
> I'm sure X is happy (and edit /etc/inittab obviously)

I've often wondered about this:  Why is the X display manager 
(xdm, kdm, gdm, whatever) run from inittab, rather than from a
rc.d/init.d script?

I've made a init script for X on my RH6.2 box and it works fine.
(And doesn't re-run rc.local when I want to start/stop X.)

And on a related note, has anyone found the best place to
start an ssh-agent so that you get a new agent when:

o  You log in on the console
o  You telnet in
o  You ssh in without forwarding the previous agent
o  You log in via gdm/kdm/xdm 
o  You start an 'su -' session.

and have it die when the session exits (and don't start
one when you type startx).

First correct answer gets a pint.

Some clues:  don't start an agent if the environment 
variable SSH_AGENT_SOCK exists.  Starting in .bash_profile
and killing in .bash_logout doesn't work because 
.bash_logout won't always be run (e.g. logging out of GNOME).

I'd hate to have to stick checks all over the place (shell 
startup scripts, xinit scripts, X display manager stuff).
That would be just *ugly*.

Later,
Kenn






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell