The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    run a program at startup

    Discussion in 'Linux Compatibility and Software' started by UCHacker11, May 30, 2008.

  1. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    I am trying to run UltraVNC at startup so that I can remote monitor my server. However, I have no idea how to make UltraVNC Server run at startup so that I can VNC in. Any help would be appreciated, and please keep in mind that I am a Linux Noob!

    Thanks
     
  2. Carlosinfl

    Carlosinfl Notebook Enthusiast

    Reputations:
    0
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    5
    I don't know what distribution, window manager, etc etc etc you're using. You need to be more specific as so we can best help you.

    If you're using Gnome, go to System > Preferences > Sessions

    There you can see "Start Up Programs" and you can create a new one.

    Hope that helps.
     
  3. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    Sorry I am using Linux 4.0 Daryna and Gnome. I tried using Sessions but when I start my comp UltraVNC doesn't start up.
     
  4. Carlosinfl

    Carlosinfl Notebook Enthusiast

    Reputations:
    0
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    5
    Can you be more specific as to what you set up in your Sessions so we can understand why it did not work...?

    When you selected "add", what command did you execute in the command section?
     
  5. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    The command i used is:

    /home/server/Desktop/UltraVNC Server.desktop

    I don't know where it installed it at on my system and I am new to Linux so I don't know where to look at. Since the icon on my desktop worked i thought that i would try it. Where do programs get installed to normally? Also, UltraVNC is a windows app and I need to run it under Wine, does that matter?
     
  6. Carlosinfl

    Carlosinfl Notebook Enthusiast

    Reputations:
    0
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    5
    Yeah - your command is wrong.

    open a terminal window and type "which vnc" or "which ultravnc" and see what comes up...
     
  7. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    I tried both those and nothing happened it just went to the next line and waited for the next command
     
  8. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    if you're using KDE, drag and drop that .desktop file into home/user/.kde/Autostart
     
  9. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    I'm using Gnome
     
  10. UCHacker11

    UCHacker11 Notebook Consultant

    Reputations:
    2
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    30
    I figured it out:

    I copied the launch command from the desktop icon and pasted it into the command for the session and it works. Only problem is that it launches AFTER I log in but i can deal with that.
     
  11. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    There's a better way to do that...a rc.local file you post that into....I haven't used gnome in a while and can't think of it...

    bump for anyone else