> 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
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*.
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!