You may remember my post re: exporting the native X :0 display via VNC. Well, I’ve discovered a better solution than the one I’d found previously.

I had no idea, but there is a Xorg vnc module available, vnc4server on Debian and Ubuntu. Pull this package down, make a couple minor xorg.conf edits, restart gdm, et voila, we’re in business!

This makes my MythTV frontend, built on a repurposed Akimbo 1st generation set-top box, that much more bad-ass. Now if only I could get the infrared remote to work.

The full instructions appear below, recorded for my forgetful self, ripped from the Highland Lakes LUG site in case they disappear (thanks guys!)…….

Howto: Remote the native X server (i.e. the “:0″ X display) using VNC

Tuesday, October 17 2006 @ 09:28 AM MDT

Contributed by: emperor

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. On Ubuntu, 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

3.a.If your VNC server is running in a secure environment, you can disable authentication with the following configuration:

Section “Screen”

Option “SecurityTypes” “None”

EndSection

3.b. 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

4. Logout and restart X (Ctrl-Alt Backspace)

References:

<http://www.realvnc.com/products/free/4.1/x0.html>

<http://gentoo-wiki.com/HOWTO_Use_TightVNC_W/_JPEG_Compression_to_connect_to_existing_X_Sessions>

9 Responses to “Xorg VNC Module”
  1. AÏe Ronne Manne says:

    Thank you a lot !

  2. AÏe Ronne Manne says:

    Hi again,

    It didn’t work completly for me, but after more investigation, I’ve modified my config file like that :

    Section “Device”
    Identifier “Card0″
    Driver “nvidia”
    VendorName “nVidia Corporation”
    BoardName “G98 [GeForce 8400 GS]”
    BusID “PCI:2:0:0″
    Option “SecurityTypes” “none”
    EndSection

    and it works now :-)

    I am using Ubuntu 9.10 64 bits

  3. Great post Ive bookmarked this page and have a feeling Ill be returning to it frequently

  4. I thank you humbly for sahring your wisdom JJWY

  5. WDWn8P qttzhpexuibj

  6. LlIp50 nynouaqjnnvk

  7. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  8. good share, I’m looking for free greates articles, I hope you posted more nice articles again so it will makes the other guys know better than beforethanks!

  9. Thanks for your publication. What I want to say is that when evaluating a good on the net electronics go shopping, look for a internet site with entire information on critical indicators such as the level of privacy statement, safety measures details, payment procedures, along with terms plus policies. Often take time to read the help plus FAQ pieces to get a superior idea of how the shop is effective, what they can perform for you, and the way you can maximize the features.

Leave a Reply