Separate password for each VNC server

The command vncpasswd allows us to set the VNC password of a VNC session used to access remote desktops. By default the password is saved in $home/.vnc/passwd file. Generally we create vncserver with the following syntax vncserver -depth 24 -geometry 1280×768 New ‘sun:1 (sam)’ desktop is sun:1 Starting applications specified […]

Changing the resolution / geometry of a VNC session

You can switch your VNC session screen geometry or resolution on the fly by listing all the possible geometries of the screens you want to use in future while creating vncserver. The syntax for declaring two geometries 1280×768 and 1920×1080 is sam@sun:~$ vncserver -depth 24 -geometry 1280×768 -geometry 1920×1080 You […]

VNC Viewer or VNC Client

VNCViewer is a client viewer for Virtual Network Computing (VNC). VNC provides remote access and control of software in computers for a mix of OS like Windows, Mac, UNIX and Linux. Basically it is cross-platform tool with peer-to-peer architecture, and no agents or centralized servers in between. All most all […]

Extract pages from or merge files into a pdf file in Ubuntu

Using pdftops and ps2pdf To convert pdf to eps file pdftops -eps filename.pdf Converts filename.pdf to filename.eps if there is only one page To extract few pages from a pdf file pdftops -f fpn -l lpn filename.pdf – | ps2pdf – filename_ext.pdf Extract pages from fpn to lpn in the […]

Environment variable in bash or tcsh

The syntax for setting an environment variable under UNIX/Linux depend on the shell that you are using. The syntax for bash/sh shell is export <variable name> = <variable name>:<new value1>:<new value2> For tcsh/csh shell set <variable name> = (<variable name> <new value1> <new value2>) You can set the environment variable […]