Setting up VNC (x11vnc) on Ubuntu 14.04 trusty and connecting from Windows

I like my VNC server to run only when I have actively started using my desktop. I often get lazy and wish to continue work from my bedside laptop.

If you would like to run x11vnc as a daemon use the alternate steps below

Running vnc server after logon:

Step 1> Setup a VNC Password File

$>x11vnc -storepasswd

After entering your password twice, the .vnc/passwd file will be created

Step 2> Setup x11vnc to run when you open up a terminal

open up your bashrc ($>nano ~/.bashrc) and add the following line

x11vnc -forever -bg -display :0 -rfbauth .vnc/passwd

Step 3> Download TightVNC viewer for windows and connect!

Running vnc server as a daemon

Step1: Run the following commands

$>sudo cp /etc/init.d/skeleton /etc/init.d/x11vncserver

$>sudo chmod 775 /etc/init.d/x11vncserver

$>sudo nano /etc/init.d/x11vncserver

Step2: Replace the corresponding lines in the file by this

DESC=”X11 VNC Server Service”
DAEMON_ARGS=”-bg -forever -display :0 -rfbauth /home/pr0t0s/.vnc/passwd”

Step3: Install x11vncserver as a daemon
update-rc.d x11vncserver defaults 97 03

Step4: start the service!

sudo service x11vncserver start

Step5: Download TightVNC viewer for windows and connect!

Enablling Hibernate on Ububtu 14.04 Trusty

Enablling Hibernate on Ububtu 14.04 Trusty

Ofcoure, you can find out your version of Ubuntu by running the command
lsb_release -a which on my computer gives
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS

Release: 14.04
Codename: trusty

This article provides an alternate way:

Handy Ubuntu Shortcuts

Makes life so much easier!

Amplify’d from
4. Alt + Shift+ Up Arrow – This initiates a cool looking window switcher interface with w

4. Alt + Shift+ Up Arrow – This initiates a cool looking window switcher interface with which you can switch between windows using Arrow keys while holding Alt + Shift

5. Alt+F9/F10 – Minimize/ Maximize current window

6. Alt+F5 – UnMaximizes Current Window

7. Alt+F7 – This shortcut activates the move window option that lets you move current window using arrow keys. You can even move window to other workspace, try moving it to extreme right.

8. Alt+F8 – Resize current window with arrow keys

11. Shift+Ctrl+N – Create New Folder, Very useful shortcut

13. Ctrl + 1/2 – Change folder view to icon/list.

17. Alt + Up/Down Arrow – Move to Parent Folder/ Selected folder

18. Alt + Left/Right Arrow – Move Back/forward in Nautilus

19. Alt + Home – Move directly to your Home Folder

20. F9 – Toggle display of Nautilus Sidepane

23. Alt + F1 – Open Applications Menu

25. Win + Mousewheel – Zoom in / Zoom out Desktop. This one’s pretty useful if  you are having a wireless keyboard/mouse.



After ubuntu upgrade, don’t forget to update your nvidia driver

Interestingly, ubuntu forgets the fact that you chose to use the proprietary Nvidia driver! After upgrade (of release) please go to settings and update the driver!

Amplify’d from

  • Please note There are two types of drivers that we can use: Open Source and Proprietary drivers. Open Source drivers have been created by the Linux community to function with certain video cards, and most video cards have an Open Source driver available. In addition, older hardware is typically better supported by Open Source drivers. In some cases, there is no proprietary driver for the graphics card (such as non-HD Radeons) and installing such a driver will only stop the Open Source driver from functioning correctly.



Ubuntu Linux: My Monitor does not auto switch to “on” while using a KVM

Many monitors (even some name branded ones) sadly do not support(/are configured correctly) DDC, a protocol which allows detection of monitors.

Using the explicit CRT naming scheme one request linux to ignore what monitors it detects and go by what you specify as existing. This takes awa the problem of auto switching while using a KVM

Amplify’d from

ConnectedMonitorWith this option you can override what the NVIDIA kernel module
detects is connected to your graphics card. This may be useful, for
example, if any of your display devices do not support detection
using Display Data Channel (DDC) protocols. Valid values are a
comma-separated list of display device names; for example:

    "CRT-0, CRT-1"
    "CRT-1, DFP-0"

WARNING: this option overrides what display devices are detected
by the NVIDIA kernel module, and is very seldom needed. You really
only need this if a display device is not detected, either because
it does not provide DDC information, or because it is on the other
side of a KVM (Keyboard-Video-Mouse) switch. In most other cases,
it is best not to specify this option.