LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VNC on Mandrake 10.1 problem???? (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-on-mandrake-10-1-problem-263007/)

alirezan1 12-05-2004 07:04 PM

VNC on Mandrake 10.1 problem????
 
Hello,

I have mandrake 10.1 community installed and I have been trying to install VNC server on it in the service mode
My problem is that I always have to run x0vncserver manually on the shell i norder to be able to connect to my computer. However, I can not run it on SSH. I tried to install it as system service by adding:

/usr/local/bin/x0vncserver & to the end of the /etc/rc.d/rc.local but I had no success.

COuld anyone please tell me how to run this program under service mode so that I can connect to it without having to run the server program manualy?

thanx

Alireza

kilgoretrout 12-05-2004 10:35 PM

I think X has to be running for the vnc server to load and X isn't running when rc.local is done executing. You could try putting it at the end of the /etc/X11/Xsession script or, if your using kde, create a link to your executable in /home/<username>/.kde/Autostart:

# ln -s /usr/local/bin/x0vncserver /home/<username>/.kde/Autostart/x0vncserver

alirezan1 12-06-2004 12:41 AM

Thanks it worked! But now I have a new problem.
When I try to connecto to my computer, I get the error "No password configured for VNC Auth"!!! I try to set a new password with vncpasswd but no luck.
ANy suggestions?

Thanx

Alireza

kilgoretrout 12-06-2004 01:16 AM

That one is easier. In the start menu go to Internet>Remote Access>Virtual Network Connection. That will bring up a configuration window where you set the password to allow remote access.

alirezan1 12-06-2004 01:23 AM

THanks again!

The problem is I still can't connect to my computer from somewhere else. Because I have to do this all manually ( i mean bringing up the Virtual Network Connection and setting the password ) all via XX but what if I don't have access to X? Is there a way or I am stuck with this way?

Thanx

kilgoretrout 12-06-2004 12:21 PM

OK. I see what you mean.. . As to a solution, the only one I've found is to link up vnc with either kdm, gdm or xdm. Then once you set the password for your remote user, it stays every time you reboot and when accessing a remote machine with vnc you get a standard X login screen; you just have to remember your user name and password. The only problem is it looks pretty complicated:

http://www.sourcecodecorner.com/articles/vnc/linux.asp

In a multiuser environment it might be worth hassling with. Also, that article is pretty old, eg. it refernces editing inetd which both redhat and mandrake replaced with xinetd ages ago.


All times are GMT -5. The time now is 11:01 AM.