PDA

View Full Version : installing vnc on linux



Elspuddy
09-28-2005, 08:58 PM
hi all, long tme no see :)
i'v got a mandriva box set up ( and crunching F@H for team jsi ) now i want to set it up so i can vnc in to the box and use kde, kde is set up i'm just stumped on geting vnc to work, i think some how i insatlled vnc client on there thinking it was the service.

any tips ot how-to guides for this n00bie :P

Scoofy12
09-28-2005, 10:03 PM
first, check that you have vncserver installed (command is vncserver). if not, looks like mandriva has a package called tightvnc-server. then, you should just be able to run the vncserver script. if you've never used it, it will ask you to create a password. there are a few options for the server, most importantly what screen resolution you want to use. then you can use vncviewer on some other machine (linux, windows, whatever) to connect to yourserverip:1 or similar
now, depending on how the scripts are set up, what you see inside your vnc server could be a really basic X with twm, X with a basic gnome console, or full blown gnome or KDE. if you just have a basic console, try typing startkde on it and see what happens.

MerePeer
09-29-2005, 06:35 AM
I dont know what that script does and it may do all this. On my debian system, after installing the vnc4server package (and its vnc4-common prereq, and the xvnc4viewer) I edit my /etc/inetd.conf and add a line like this

vnc stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -once -query localhost -geometry 1024x768 -SecurityTypes=None

After which I restart the inet daemon via /etc/init.d/inetd restart

Then I edit my /etc/services file and add a line like this:

vnc 5950/tcp

Note that I think the default port is 5900, so because I wanted to use 5950 I connect using

vncviewer MyRemoteComputer:50

Note 50 is 5950 - 5900.


Then in my /etc/gdm/gdm.conf I tell gnome (i.e. not using kde ) that xdmcp logins are ok by finding the [XDMCP] section, and setting

Enable=true

Then restart gdm via /etc/init.d/gdm restart

I think thats it, but its been a while.

Elspuddy
09-29-2005, 08:39 AM
thanks, i got it sorted :)

the-mk
11-28-2005, 04:13 PM
Hi,

I've also some "problems" with my vncserver.

It would be great if someone could please explain in short words, how all this xvnc, vncserver, vncconnect and vncpasswd work together!

On windows it is easier to install a vnc server, just run the setup.exe and set a password anywhere... but here are some config-files around the filesystem and I do not have a plan where I can do something.

My current status:

Installed Mandriva Linux 2006 x86_64, told him to install this thightvnc server package and to start it as a service, so there is a /etc/init.d/vncserver, which should be started at bootup (there are also [KS][0-9][0-9]vncserver files in /etc/rc.d/rc[1-6].d).

If I do a "ps ax | grep vnc" via ssh I can't see a process with vnc.

Also executed this vncserver binary, and it asked me to type in some passwords, which I did. After that there is a process like this:

3497 pts/0 S 0:00 Xvnc :1 -desktop X -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp unix/:-1

Then I try to access to this vncserver from my windows box, but no success (with dualcore:1, which is the hostname where this vncserver should run): vncviewer.exe runs in windows taskmanager, I can see a open connection with netstat on both machines, but I do not see any vncviewer.exe-window where I could do something. So I have to kill it manually.

So please give me an advise how to get my vncserver working! :help: Thanks!


just saw that there is a logfile in /root/.vnc.

28/11/05 22:02:55 Xvnc version 3.3.tight1.2.9
28/11/05 22:02:55 Copyright (C) 1999 AT&T Laboratories Cambridge.
28/11/05 22:02:55 Copyright (C) 2000-2002 Constantin Kaplinsky.
28/11/05 22:02:55 All Rights Reserved.
28/11/05 22:02:55 See http://www.uk.research.att.com/vnc for information on VNC
28/11/05 22:02:55 See http://www.tightvnc.com for TightVNC-specific information
28/11/05 22:02:55 Desktop name 'X' (dualcore:1)
28/11/05 22:02:55 Protocol version supported 3.3
28/11/05 22:02:55 Listening for VNC connections on TCP port 5901
28/11/05 22:02:55 Listening for HTTP connections on TCP port 5801
28/11/05 22:02:55 URL http://dualcore:5801
failed to set default font path 'unix/:-1'
Fatal server error:
could not open default font 'fixed'

so the last three lines are not so good... any idea how to fix it?

AMDave
11-29-2005, 04:53 AM
from the documentation page:

If your OS is compatible with Red Hat Linux 7.x, you don't have to compile the code yourself
Try downloading the source and compiling it.
The build instructions come with the download.

...or...if you want the easy way out...
check out the rpm downloads for Mandriva on rpmfind.
http://rpmfind.net/linux/rpm2html/search.php?query=tight&submit=Search+...