Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

x11vnc start at bootup on Ubuntu 11.10

Featured Replies

Okay, now there are several options for VNC Server for Ubuntu 11.10, okay well maybe three (Vino (default for gnome), x11vnc, krfb (default for KDE).



So issue with vino or krfb is that you have to be logged into the session with an id for those to be active so that leaves only one (use to be two options with tightvncserver was available on Ubuntu but no longer on 11.10). The one option is x11vnc but super complicated on getting to work on bootup for Ubuntu 11.10



First pick out a desktop if you don't have one installed yet.


GNOME


sudo apt-get install ubuntu-desktop

sudo apt-get install x11vnc



KDE

sudo apt-get install kubuntu-desktop

sudo apt-get install x11vnc tk8.4[/code]




Then create the VNC password that will be used when you connect with a VNC Client to the server

sudo x11vnc -storepasswd /etc/x11vnc.pass






Now create the code that will go under the user you are logged in with

nano  ~/.kde/Autostart/x11vnc






Paste the following




#! /bin/sh

x11vnc -rfbauth ~/.vnc/passwd -bg -forever -noxdamage -shared &






Make the new file executable by running

chmod 700 ~/.kde/Autostart/x11vnc



Now test by rebooting the server.



NOTES:


All the instructions I find on just about every website all reference the same thing.. Add the command to




The name of the display manager startup script file depends on desktop used and seem to be:




The name of the display manager startup script file depends on desktop used and seem to be:



GDM (GNOME) /etc/X11/gdm/Init/Default /etc/gdm/Init/Default


KDM (KDE) /etc/kde*/kdm/Xsetup


XDM /etc/X11/xdm/Xsetup (or sometimes xdm/Xsetup_0)


CDE /etc/dt/config/Xsetup




I also found someone mention


X11vnc as boot loaded service Try this:


/usr/bin/x11vnc -bg -reopen -forever



But that doesn't seem to work either



Does anyone know how to get x11vnc server to load during bootup not requiring anyone to log into Gnome or KDE or anything. Just startup as soon as the Login screen pops up. It has to be for 11.10 which every piece of instructions I have found so far is for versions prior to 11.10


If you log into your server via ssh



ssh root@10.6.0.135










You need to create and store a vnc password



x11vnc -storepasswd yourpasswordhere/etc/x11vnc.pass










If you are using kubuntu then edit the Xsetup



nano /etc/kde4/kdm/Xsetup










At the end of the file add



/usr/bin/x11vnc -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -bg -o /var/log/x11vnc.log -forever -rfbport 5900





Then reboot your server and you should have x11vnc started upon a reboot before anyone logs in.



  • Author

Thanks.. I have gotten a lot closer. After a reboot I am able to login and I see a flash of the login screen and then it goes to a white screen and I don't see anything.



  • Author

Nevermind... seems to be just an issue with connecting using VNC from my Mac OS X. When I use TightVNC from my Windows 7 machine it works fine. I now need to figure out why I get a white screen with my Mac. Any ideas?



Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.