You are not logged in.

#1 2008-07-30 21:17:50

colbert
Member
Registered: 2007-12-16
Posts: 809

Help with setting up VNC for home network

Okay, I've tried to get VNC running on my server so I can toss the bugger in the basement and just control it remotely from my desktop but I've run into errors and confusion as I haven't broached this area before. From the wiki, I installed vncserver and followed exactly the steps on the server, it went fine, but I can't connect. Here's my settings:

~/.vnc/xstartup:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec fluxbox &

Here's the output when I run vncserver:

New 'X' desktop is mythbox:1

Starting applications specified in /home/bobby2/.vnc/xstartup
Log file is /home/bobby2/.vnc/mythbox:1.log

~/.vnc #

Now when I run vncviewer and enter the IP, I just get a dialog saying connection refused, here's output with vncviewer run from console:

~ # vncviewer 

VNC Viewer Free Edition 4.1.2 for X - built May 19 2006 20:31:34
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Wed Jul 30 17:14:21 2008
 main:        unable to connect to host: Connection refused (111)
~ #

In my /etc/hosts.deny on the server I even commented out the deny line:

#ALL: ALL: DENY

Still the same error. Any help would be appreciated, thanks smile

Offline

#2 2008-07-31 07:43:55

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: Help with setting up VNC for home network

When you connect you usually have to specify either the port or the display number.  If i recall the vncserver will run on port 5901 by default.

So to connect you would use something like the following (use your servers IP address obviously):

vncviewer 192.168.0.2:5901

Last edited by Wittfella (2008-07-31 07:46:41)

Offline

#3 2008-08-01 04:06:14

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with setting up VNC for home network

Thank you Wittfella! That worked! I also got x11vnc working and am using an SSH tunnel, all is well smile Thanks smile

Offline

#4 2009-02-07 10:19:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Help with setting up VNC for home network

@colbert - which package and repo was it in did you install for the vnc server?  Under debian/ubuntu the package I installed was called 'vnc4server' which ran realvnc4.  I did a search of the arch repo but didn't find realvnc server.  The closest one I found was tightvnc.

Last edited by graysky (2009-02-07 10:28:11)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2009-02-07 19:08:10

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with setting up VNC for home network

I installed package "x11vnc" smile

Offline

#6 2009-02-19 21:38:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Help with setting up VNC for home network

@colbert - cool, are you able to start parallel sessions with x11vnc or just control the currently active session?  tightvnc allows for parallel ones for sure.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB