Adding a virtual screen to xorg.conf 11.04 (third display over vnc)

9,843

There is a vnc module for X that can be installed which will provide the native :0 X display when connecting remotely with the vncviewer.

  1. Install the "vnc4server" package (universe). This will provide "/usr/lib/xorg/modules/extensions/libvnc.so" (The vnc.so module for VNC 4.1.2 was changed from vnc.so to libvnc.so.)

  2. Add "vnc" to the Module section in /etc/X11/xorg.conf

    Section "Module"
        ...
        Load "vnc"
    EndSection
    
    • If your VNC server is running in a secure environment, you can disable authentication with the following configuration:

      Section "Screen"
          ...
          Option "SecurityTypes" "None" 
      EndSection
      
    • If your VNC server is NOT running in a secure environment, you will need to set a VNC password using the vncpasswd program:

      # vncpasswd
      Password:
      Verify:
      

      Then tell the VNC module where the password is stored in xorg.conf:

      Section "Screen"
          ...
          Option "SecurityTypes" "VncAuth"
          Option "UserPasswdVerifier" "VncAuth"
          Option "PasswordFile" "/root/.vnc/passwd"
      EndSection
      

Logout and restart X (Ctrl-Alt Backspace)


The Source http://ubuntuforums.org/archive/index.php/t-279069.html

Share:
9,843

Related videos on Youtube

HTDutchy
Author by

HTDutchy

Updated on September 18, 2022

Comments

  • HTDutchy
    HTDutchy over 1 year

    I currently have an nvidia gtx470 with 2 x 22" 1920x1080 displays on twinview.

    Since I have a spare laptop (old but works) and screen (22" 1680x1050).

    A vnc server would be set up (viewonly) to the virtual screen and the laptop would login (viewonly) so its just a screen... The virtual screen would be part of my gnome session... and in theory make me a triple display setup, I've seen it done in windows... what is holding us?

    Since I'm not all to experienced with vnc or xorg.conf (only just learning the settings, Can someone give me directions how to make a virtual screen/monitor and what vnc server allows for connecting to a certain screen. (realvnc does this in windows...)

    I hope one of you can help Grtz, Dutchy

    Edit: My Current work around is to just use unity and vnc into VMware workstation machines... alltough this kinda gets done some of the stuff I need, I would still like to have an actual third monitor

    • Nathan Osman
      Nathan Osman over 12 years
      I would strongly suggest taking a look at Synergy.
    • Esteban
      Esteban about 9 years
      I'm confused by youracceptance of the only answer to this question. That will not add a second/third/n-th "virtual" screen to your existing X display, accessible to a VNC server (which I think is what you ask for). It will instead let you connect to a single display over VNC. I think you (and I) need somethink more like this: superuser.com/questions/305725/…
  • Oxwivi
    Oxwivi over 12 years
    xorg.conf no longer exists. Modify the answer to up-to-date X, please.
  • Sergey
    Sergey over 12 years
    @Oxwivi: what do you mean "no longer exists"? X can run without xorg.conf but if it is present it'll be taken into account.
  • Oxwivi
    Oxwivi over 12 years
    @Sergey Yes it does not exist normally now, and since there's no reason for it to exist already, we answer the question assuming it's not there. Unless, of course, the OP says he already does have xorg.conf.
  • Esteban
    Esteban about 9 years
    Unfortunately I can't downvote yet :) but this doesn't answer the question. Or I got it totally wrong.