LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mandriva 2010.1 TigerVNC setup (https://www.linuxquestions.org/questions/linux-networking-3/mandriva-2010-1-tigervnc-setup-820406/)

msdobrescu 07-17-2010 12:15 PM

Mandriva 2010.1 TigerVNC setup
 
Hello,

Does anybody know how to setup TigerVNC on Mandriva 2010.1?
TightVNC doesn't install anymore due to broken package deps.

I have installed the packages (tigervnc, tigervnc-server, tigervnc-server-module). I have created the vncservers file and password for some user.
It runs if I issue vncserver in console.

Then I tried to register the server as service:

chkconfig --add vncserver

This error occurs:

error reading information on service vncserver: No such file or directory

I have tried change run level, path (absolute), rights of the user etc..

None worked. It seems to be a bug, or I might do something wrong. I am pretty newbie in this, but I have successfully installed a RedHat server with Gnome and setup VNC to run before Gnome login - in the past. I wolud like to do this on Mandriva 2010.1 too. I would like to use ssh also with TigerVNC.

Is there anybody to help me do it? At least to diagnose it properly...

Thank you,
Mike

tredegar 07-19-2010 02:28 AM

Quote:

error reading information on service vncserver: No such file or directory
That's because there is no /etc/init.d/vncserver script - you'll have to write it.
See the other scripts in that directory for examples of how to do this.

Easier though, is just to start the vncserver at boot with a line like this in rc.local on the line before the final exit 0

The user you wish the script to run as is username (and that should be the user you previously configured to run the server successfully in a console)

Code:

su - username -c " cd /home/username && vncserver :1 -geometry 1024x768 -depth 24" &
Note: Your version of vncserver may require different parameters from mine ( -geometry ... )

If you'd like to run vnc over ssh (a good idea, as vnc is not secure) see these links:
http://www.vanemery.com/Linux/VNC/vnc-over-ssh.html
http://bobpeers.com/linux/vnc_ssh.php

I'll leave you to experiment, but you should also take a look at NX:
http://www.nomachine.com/download.php

msdobrescu 07-19-2010 11:13 PM

Thank you so much,

I have found that vncserver script is missing, also.
Since is an implementation of a VNC, shouldn't be a script with little variations from flavor to flavor? If so, could anyone post some script?
I'm not lazy, but unexperienced with such scripts and I am unsure of what I might do.

Thank you.


All times are GMT -5. The time now is 09:14 AM.