VNC useful commands

Below is a list of vnc commands I often use to manage vnc sessions on my ubuntu linux box.

# start a session
vncserver -geometry 1600x1200 -depth 24 -alwaysshared

# specific display numbers
## sublime ##
vncserver -geometry 1600x1000 -depth 24 -alwaysshared :200
## eclipse ##
vncserver -geometry 1600x1000 -depth 24 -alwaysshared :300

# see what sessions are active
ls ~/.vnc/*.pid

# kill a session
vncserver -kill :[session_num]

# help
vncserver -h

Here is more online references for more options you can set.
http://www.realvnc.com/products/open/4.1/man/Xvnc.html

For osx (as my client box), I use Chicken of the VNC. It gets the job done. 😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s