Skip to main content

The Struggle with X11vnc Rebuilding Ubuntu Server

And then I got stuck again getting remote access to work. It’s funny out of all the great features, only the remote access is not the friendliest in Linux setup. There is no proper standard guide so far I could find on the internet for X11VNC. However, after a long spending trying out different guide that doesn’t work at all, I can now confirm only one guides actually tested working during my struggle.

Without doubt, this whole thing is funny and stupid. But as long the X11VNC able to work in startup on my headless server is all I need to access anytime. The first guide I follow is using the steps from Digital Drugs. I tested running the script below to confirm first before I proceed further.

start on login-session-start

script

/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -display :0 -passwd "MyPasswd" -forever -bg -o /var/log/x11vnc.log

end script

The TightVNC in my Window machine was successfully able to connect. Well, problem occurs. The password doesn’t recognize when I key in ‘MyPasswd”. So what went wrong? I have no idea to be honest. I went on looking on the previous guide by updating another code into the last script like below.

start on login-session-start

script

x11vnc -rfbauth -rfbport 5901 -auth /var/run/lightdm/root/:0 -display /etc/x11vnc.pass -forever -bg -o /var/log/x11vnc.log

end script

There are a lot changes and code remove in the script by following others. For example like the password column I replace with -passwd "MyPasswd" to sudo x11vnc -storepasswd /etc/x11vnc.pass in the script as recommended by many. Yet again, not working.

Frustrated as usual. I tried to remember to find my last bookmark and follow the steps of 'Setting up X11vnc' at Ubuntu Forum as shown below.

  1. Install x11vnc: sudo apt-get install x11vnc
  2. Set the password: vncpasswd ~/.vnc/passwd (vncpasswd is included with vnc-common, which is installed by default)
  3. Make it auto-start when the user logs in and show which port we're running on (useful if you run multiple vnc servers) the port will be put in ~/.vnc/port.txt: sudo gedit /usr/local/bin/sharex11vnc Paste in the following code:
#!/bin/sh

x11vnc -nap -bg -many -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"|grep -Eo "[0-9]{4}">~/.vnc/port.txt

# comment out the following if you don't want a popup telling you which port you're using.
zenity --info --text="Your VNC port is `cat ~/.vnc/port.txt`"


  1. sudo chmod 755 /usr/local/bin/sharex11vnc

  2. System->Preferences->Sessions->Startup Programs then click Add and type in sharex11vnc

Add the code and restart, it finally works. This got me into thinking, are those scripts above are all wrong in the first place? But I can ensure that the first script that I tried does indeed work, just the password doesn't work even I change the password code. I'm not good in Linux, so it's hard to argue unless someone from the experts point out the problem.

Comments

Popular posts from this blog

Guide on Registering Brunei Citizenship Examination (Update#2)

I never thought registering Brunei Citizenship examination are fucking inconvenient. Worst, I don't see local bloggers write about it either in the web search telling us how and what to bring. So to make this easy, I decided to write the guide for my future reference and hopefully able to help you fellow PR. Update #2 (2023) - Proofreading, correction and added information for letter change of phone no. and home address. Update 1# (2013) - Added ICI travel document copies requirement. For those already graduated or are good at Bahasa Melayu, I strongly encourage you who are 18 years old onward to take the examination early if you intend to continue to stay in Brunei. Do not worry about wasting your time, you are young and can enjoy life. There are only two meetings and one exam, that’s it. Take the opportunity since you have the higher chance of getting citizenship.

Brunei Has a Porno Celebrity?

That was really unexpected information found in Wikipedia and surprise to know we have a porno celebrity in our country. Her name is Jayna Oso , was born in Brunei and raised at Hawaii according to the Wiki. She is really quite popular in the states and not to mention hardcore porn star. “This Photo belong to Shiroi Kaze ” I don’t really know if that is true after I decided to look through her profile in the official porn site. It somehow didn’t state that she was from Brunei instead they only mention about Malaysia. I think this might be a mistake or something and probably her mother was Malaysian. It just my guess and only she herself know the answer. Well, if you want to dug deeper, you might want to visit her My Space and drop her a question.

Telbru - eSpeed on Demand Service

eSpeed on Demand is one of the new feature for temporary boosting your internet speed. Yes, you can simply boost your line to either 1MB or 2MB (higher in the future) anytime with a single click on the Telbru web login account. This will only last for one hour and you will need to log in again to boost it. (Note: The link appear to be broken, probably something wrong at Telbru. xP) Just remember that this is not a free service because you have to pay for a rate per hour depending on how many times you boost your speed. Of course, you have to apply before you can use it. If you wonder how this work before you decide to subscribe it. Well, it’s very easy to use, very easy. Log in to the website (like picture below), enter your phone number (your eSpeed line) and the password given by Telbru. Login Page @ http://www.espeed.com.bn/speedondemand   Here’s the screen shows some of the information from your account and your Hua Wei/Alcatel modem. The available boosts information...