dnr01 Posted October 7, 2008 Report Share Posted October 7, 2008 I noticed that the program vnc-server brings up a system service. Well I deleted the program as I didn't know how ti set it up but now I realize that I would like to have this running as a service. Now I can't get the servvice running. I have checked out the man pages but honestly they don't mean much to me. Is there someone out there that can help me out with the setup. Thanks in aadvance. vnc-server - A VNC server​  The VNC system allows you to access the same desktop from a wide variety of platforms. This package is a VNC server, allowing others to access the desktop on your machine. The files /etc/rc.d/init.d/vncserver ‎/etc/sysconfig/vncservers ‎/usr/bin/vncconfig ‎/usr/bin/vncpasswd ‎/usr/bin/vncserver ‎/usr/bin/x0vncserver ‎/usr/share/man/man1/vncconfig.1.lzma ‎/usr/share/man/man1/vncpasswd.1.lzma ‎/usr/share/man/man1/vncserver.1.lzma ‎/usr/share/man/man1/x0vncserver.1.lzma [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
wardevil Posted October 8, 2008 Report Share Posted October 8, 2008 You have to edit the /etc/sysconfig/vncservers and put the number and name of the user in which vncserver will work for(there is a line in the file as an example)something like: "fred:1" this will bring back up vncserver in the desktop :1 loading user fred as the owner of the desktop. If you want the desktop 0 which is the same as you see in the monitor when you log in in the machine,you have to use the x0vncserver( i dont recommend this otion since it will eat up all your cpu time when you login to x0vncserver,at least in all machines i tested it eats all cpu time and the machine is almost "unworkable").For the vncserver to log you in you need to setup the vncpassword for the user it will run,example assuming fred is the user: open a terminal and run vncpasswd as the fred user,it will prompt you for a password(thats the password for login in to the server when you connect to it. Dont forget to run "chkconfig --level 345 vncserver on" as root to enable the startup of vncserver when machine boots. If you deleted the service just uninstall and install vncserver again => urpme tightvnc-server and then urpmi tightvnc-server in a console as root. Hope you understand :unsure: since i hate writing.... Cheers.... Quote Link to comment Share on other sites More sharing options...
dnr01 Posted October 8, 2008 Author Report Share Posted October 8, 2008 Thanks for the advice. I still con't get it to work but I'll keep trying Thank a lot Quote Link to comment Share on other sites More sharing options...
mindwave Posted October 8, 2008 Report Share Posted October 8, 2008 do you know WHICH vnc package youre trying to use? REALVNC? TINYVNC? as far as i know there are about a half dozen different ones out there, but the only one that I have ever really cared for is REALVNC http://www.realvnc.com/products/free/4.1/index.html matter of fact i just set it up the other day in a bid to get around a corp firewall. Works GREAT and the only thing to "know" is when you 1st execute it, its asks whether you want it as a server or viewer. BTW, TYPICALLY you dont need a viewer. most java enabled browsers work fine by using IPADDRESS:PORT The only caveat to that one is going through my DSL router, for that I need the viewer. J Quote Link to comment Share on other sites More sharing options...
dnr01 Posted October 8, 2008 Author Report Share Posted October 8, 2008 vnc-server - A VNC server​  is the name of the progrram that I am trying to get to work. It came with Mandriva 2008.1 and is the program that starts a system service. Quote Link to comment Share on other sites More sharing options...
dnr01 Posted October 9, 2008 Author Report Share Posted October 9, 2008 I've switched to Tight VNC and I can start a service but I cannot connect to server. Quote Link to comment Share on other sites More sharing options...
mindwave Posted October 9, 2008 Report Share Posted October 9, 2008 I've switched to Tight VNC and I can start a service but I cannot connect to server. so your using tightVNC as your VNC viewer? what do you have setup as your server? is tehre a firewall involved? have you tried in a java enabled browser http://xxx.xxx.xxx.xxx:5900 ? j Quote Link to comment Share on other sites More sharing options...
scarecrow Posted October 9, 2008 Report Share Posted October 9, 2008 Why don't you just use NX? http://www.nomachine.com/ Rather easy to configure, more secure than vnc (forwarded by default via ssh), and can be configured to allow access to both virtual, and real X displays. vnc is by default not ssh-secured, and it can connect only to virtual dsiplays (you can use x11vnc in parralel which can connect to real X displays). But, the real reason to prefer NX over VNC, is that the former is ***WAY*** faster! The difference is really huge... Quote Link to comment Share on other sites More sharing options...
dnr01 Posted October 10, 2008 Author Report Share Posted October 10, 2008 so your using tightVNC as your VNC viewer?what do you have setup as your server? is tehre a firewall involved? have you tried in a java enabled browser http://xxx.xxx.xxx.xxx:5900 ? I'm using tightVNC as my server as well. Its the server that I cannot access from another computer. Also, I have no firewall as I'm using it on my home network that is sitting behind a router. Quote Link to comment Share on other sites More sharing options...
dnr01 Posted October 10, 2008 Author Report Share Posted October 10, 2008 Why don't you just use NX?http://www.nomachine.com/ I looked at the website. Could you tell me if you can run it as a service that will start automatically on every boot. Thanks Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 10, 2008 Report Share Posted October 10, 2008 I'm pretty sure you can. If you install it and do: chkconfig --list from the console, you'd see it in the list. If not, you could still add it to /etc/rc.local to start it at bootup also. Quote Link to comment Share on other sites More sharing options...
mindwave Posted October 10, 2008 Report Share Posted October 10, 2008 i had forgotten about NX. I'm using vnc through 2 firewalls and a few routers and it is VERY slow. think i'll try NX and see how it works. j Quote Link to comment Share on other sites More sharing options...
scarecrow Posted October 10, 2008 Report Share Posted October 10, 2008 Everything that is listed in /etc/rc.d/init.d or /etc/rc.local can be set to start at boot time via the services menu of mcc. Else, you can either symlink the daemon there, or start it via another startup script. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.