You are not logged in.

#1 2015-10-01 19:11:43

Irulan
Guest

VNC Servers

Anyone have a good VNC server howto? I have read a few so far, but lately I have been "spoiled" by vino and vino-preferences as a dirt simple way of setting up vnc on my Linux box.
I typically configure, say, lightdm to auto login and have the VNC automatically started.
RealVNC works easily enough, but the server is not free.
I might just have to roll up my sleeves and RTFM wink (but that's OK)

This setup is on a remote machine and behind a firewall.

-hinto

#2 2015-10-01 19:42:37

pingu
Member
Registered: 2015-09-29
Posts: 128

Re: VNC Servers

tiger vnc and tight vnc both work very well, and are easy to configure (I'm sure many others are too, these are just the ones I've used).

you need to set up the config file in /etc/conf.d/vnc (or tigervnc depending on what server you installed):

# Config file for /etc/init.d/tigervnc

# Specify the user(s) Xvnc(1) should be run for. The syntax is: "username:display".
# example: "DISPLAYS="foo:1 bar:2" You can specify more users separated by pace.
DISPLAYS="<user>:<display>"

# Specify any of vncserver(1) and Xvnc(1) options. See the respective man pages for more information.
VNC_OPTS=""

The first line is the one you need to fill for it to work, you have to enter your user and the display to start the session.

If you are going to tunnel your connection through vnc you can add "-localhost" to VNC_OPTS.

also, you need to edit the file $HOME/.vnc/xstartup and add whatever display manager you use. this is mine:

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec openbox-session

edit:
also before starting the server you have to create a password for the vnc user you want logeed in. so as a user run:

vncpasswd

and it will tell you to type in a password that will be stored in $HOME/.vnc/passwd


On the client: if you have foo:1 (on 192.168.0.101) on the config file you connect with 

vncviewer 192.168.0.101:1

and if you wish to tunnel it through ssh:

ssh -L 5901:localhost:5901 -N -f -l foo 192.168.0.101
vncviewer localhost:5901

edit: there are a bunch of well explained how tos on the web...
http://www.cl.cam.ac.uk/research/dtg/at … shvnc.html
http://www.cyberciti.biz/tips/tunneling … howto.html
http://www.linuxjournal.com/content/ssh … echies-vpn
(I have used these to configure my stuff)

edit666:
also, you can start the server with:

# systemctl vnc start

and have it start at boot.

# systemctl enable vnc

Last edited by pingu (2015-10-01 20:26:30)


"Chuck Norris can compile syntax errors."

Offline

#3 2015-10-01 19:46:07

Irulan
Guest

Re: VNC Servers

Thanks.
Where does the VNC password and Control Desktop come in?
-hinto

#4 2015-10-01 19:53:15

pingu
Member
Registered: 2015-09-29
Posts: 128

Re: VNC Servers

sorry about that. I've eddited the post .


"Chuck Norris can compile syntax errors."

Offline

#5 2015-10-01 19:54:54

Irulan
Guest

Re: VNC Servers

Great! Thanks.
(starting to install on the bare metal)
-H

#6 2015-10-01 20:15:02

Irulan
Guest

Re: VNC Servers

hmm... OSX Screen Sharing doesn't seem to want to connect.  Is there a "Require Encryption" to uncheck like vino has?
-h

Edit: never mind.
I got it.  Screen Sharing wanted the port (as well as the name/ip)
I'm in.  Thanks.
-Hinto

Last edited by hinto (2015-10-01 20:17:27)

Board footer

Powered by FluxBB