Find the answer to your Linux question:
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.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    239

    running a command when a user logs in


    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 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?

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Feb 2005
    Posts
    21
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •