Results 1 to 2 of 2
Hi, I want to start a vncserver when a user logs in, if possible only a specific user (UID 1000). Ive tried a few things, but it seems to run ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-22-2005 #1
- Join Date
- Nov 2004
running a command when a user logs in
I want to start a vncserver when a user logs in, if possible only a specific user (UID 1000).
Ive tried a few things, but it seems to run every time i loggin, or start a terminal, or su....so i end iup with lots of servers running...
is there a file that gets run ONLY at login and not the other times?
or how could i check if a vnc server is already running and if not start one?
- 02-22-2005 #2
- Join Date
- Feb 2005
It all depends on what. Usually you can edit your .xinitrc to do that. If you're using a graphical login manager (KDM, GDM, XDM) it will use the configuratioin file ~/.xsession
If your using 'startx' to start you Window Manager, then ~/.xinitrc
If you dont have either of the two you can make them. It's not that difficult. You can also write bash scripts to start programs at boot/login.