Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Running VNC viewer without opening a console

Right now I have to open a console and type:
xtightvncviewer [ip-address]


to open the viewer. That's okay, but then I need to leave the console open or otherwise the viewer will close. I've tried:

nohup xtightvncviewer [ip-address] &


and:
xtightvncviewer [ip-address]
[ctrl-Z]
bg


In both cases, it pops up a little password dialog, and opens the viewer, but it's still dependent on the console being open. Is there a way to open xtightvncviewer as "headless"?
by

1 Answer

Kajalsi45d
To start your VNC viewer without opening the console at all, try [Alt]+[F2] from your desktop environment, which on most will present you with a dialog where you can type in your command to start the viewer without opening a console at all. If it's something you start often, consider setting up a desktop entry file and save it somewhere handy (like your desktop or application menu) with a name like TightVNC.desktop, eg:
[Desktop Entry]
Exec=xtightvncviewer myhost
Name=TightVNC to myhost
Terminal=false
Type=Application


Alternatively, if you're already at the console you could achieve this with a utility called "screen", which is kind of like a window manager for your console. Start screen with

$ screen

Create a new window with [CTRL]+[A], [c] and you'll find yourself back at your shell's prompt. Start your VNC viewer as normal at the prompt, then detach the screen from the current terminal with [CTRL]+[A], [d]. This will drop you back to your shell again, but this time if you leave that session, screen (along with your VNC viewer) will keep running.

Login / Signup to Answer the Question.