LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   trying to run vnc using xinetd on fedora 9 (https://www.linuxquestions.org/questions/linux-general-1/trying-to-run-vnc-using-xinetd-on-fedora-9-a-664440/)

JSLayton 08-21-2008 04:47 PM

trying to run vnc using xinetd on fedora 9
 
OK, I'm about to pull my hair out trying to get this done. Can someone please post some instructions on how to get vnc working through xinetd. Actually, I just need to be able to login to my box through VNC, even if it's not through xinetd. And I would like to not have to enter my VNC password, but just have a gnome login window come up. Can someone please help me?

r3sistance 08-22-2008 12:14 PM

I use xvnc myself and then build a SSH tunnel to the server (VNC is not secure). It requires a bit of configuration but is not hard to set-up, however it still requires a password for VNC and won't go to a login screen for gnome. Advantage of also using an SSH Tunnel is you only have to have the SSH port (22) open, Xvnc usually uses 59xx where xx is the currently running vnc session, IE the 1st session would be 5901, 2nd 5902. Generally I only use 5901.

It does need some minor configuration, else it won't even take you through to gnome or kde, but leave you in a rather bare GUI that basically all you can do is open terminal windows...

cngordon 09-16-2008 12:09 PM

trying to run vnc using xinetd on fedora 9
 
1. on the fedora 9 box log in as the user to connect and open a terminal window

2. type: vncserver :1 -name "username"
it will prompt you for a password, and verify password for that user to connect with.
this creates a file in that users /<user's-home-dir>/.vnc (hidden) subdirectory named xstartup

3. edit /(user's home dir)/.vnc/xstartup and uncomment the following 2 lines:
# unset SESSION MANANGER
# exec /etc/X11/xinit/xinitrc

save the file, this gives you your default desktop instead of a lightweight one

4. download realvnc viewer to your windows pc, connect to <x.x.x.x>:1

you may have to start / stop / kill the vncserver once or twice in there

One difference between this and the VNC typical of a windoze box is that you are not viewing/using an existing desktop for the person already logged in, you are starting a new x-sesison for this.


All times are GMT -5. The time now is 11:47 PM.