Start VNC session without the full GUI desktop? (seamless window)

9,172

Use SSH with GNU Screen instead.

On the server, make sure you have SSH configured, and on the client use the built-in SSH command (Unix or Linux) or PuTTY (MS-Windows). GNU Screen will let you keep multiple sessions running without requiring that you keep your SSH session connected.

  PuTTY (free and open source)
  http://www.chiark.greenend.org.uk/~sgtatham/putty/

  GNU Screen (free and open source)
  http://www.gnu.org/software/screen/

But if you do have a GUI running on your headless server, there may be configuration options for your VNC server software that will allow you to use VNC only with a specific application window. I know that UltraVNC can do this.

  UltraVNC (free and open source)
  https://www.uvnc.com/

Share:
9,172
stephenmm
Author by

stephenmm

View my blog

Updated on September 18, 2022

Comments

  • stephenmm
    stephenmm almost 2 years

    I would like to start a vncserver on *NIX machine and then on the client side (windows XP) I would like to be able to have just the terminal from the server machine (like gnome-terminal) without having the full desktop displayed on my client machine. Also when I invoke gvim from that terminal I would like the gvim to open in its own window on the client. In this way it seems like the sever applications are almost part of the client.

    I have done this before myself and I have seen others do this but I cannot for the life of me remember how I did it:

    vncserver -headless ???
    

    If anyone can help me jog my memory I would appreciate it.

    • Zoredache
      Zoredache about 13 years
      It sounds like what you really want is X11 fowarding, not VNC.
    • stephenmm
      stephenmm about 13 years
      Its possible. I tried X11 forwarding but it was very slow and I remember it being much faster last time I tried it. Of coarse last time I tried it I was working for a different company so all bets are off as far as performance goes. It may be that I just need to request faster VNC from my company.
    • Zoredache
      Zoredache about 13 years
      X11 forwarding is wonderful over a LAN, but not so great over the Internet. If you have a low-speed link VNC may be what you have to accept, but I don't believe you will get it to do seamless windows. (each app shows up as a separate window on the client. Wikipedia has remote control features list tells you which methods support seamless windows
    • stephenmm
      stephenmm about 13 years
      I tried the free (to download) TightVNC client as it claims it does more compression than traditional VNC but it was unable to connect to my corporate network. I will probably just have to go beg and pleed with IT to improve the VNC connections... Not looking forward to this...
    • Zoredache
      Zoredache about 13 years
      @stephenmm, your IT department may not be able to do anything, if you are trying to use VNC outside of their network. They really can't do anything about the networks outside of their control.
    • stephenmm
      stephenmm about 13 years
      Is there a way to identify what is the cause of the slowness to see if the problem is the work network/connection or the rest of the network. I think the problem is really lag time rather than pure throughput as I can stream HD video at home but I cannot go up a couple lines in gvim in under a second. Sounds kind of petty but it really slows my coding down.
    • camster342
      camster342 about 13 years
      Did you try X11 forwarding with compression features enabled? Also, over slow links, it can help to possibly switch up which cypher you're using... blog.samat.org/2006/05/08/best-ssh-options-for-x11-forwardin‌​g
    • Nathan
      Nathan almost 5 years
      @camster342 One answer I saw said the compression is sometimes even slower
  • Zoredache
    Zoredache about 13 years
    I believe, UltraVNC can only do seamless mode for Windows-based servers.
  • Randolf Richardson
    Randolf Richardson about 13 years
    @Zoredache (+1): Darn it. Hopefully that will change in a future release.