Link to home
Start Free TrialLog in
Avatar of stevemarsh99
stevemarsh99

asked on

VNC on fedora

Hi all,

I am having trouble understanding the vnc service on my fedora box.  I have xvnc service running but if I restart the service I get:

[root@ftpserver ~]# service vncserver restart
Shutting down VNC server: 1:root 2:steve                   [FAILED]
Starting VNC server: 1:root
New 'ftpserver.khlgroup:1 (root)' desktop is ftpserver.khlgroup:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ftpserver.khlgroup:1.log

2:steve runuser: warning: cannot change directory to /home/data/it: No
such file or directory
-bash: line 0: cd: /home/data/it: No such file or directory
                                                          [FAILED]

Also I dont understand how it works regarding the reote desktop itself.  Does it open a different session of the desktop, do you have to log in as a user or can you log in as root? or is it a simple remote desktop where you take control of the mouse and keyboard from another location.

Please help and thanks in advance
Steve (keen to learn VNC!)
ASKER CERTIFIED SOLUTION
Avatar of http:// thevpn.guru
http:// thevpn.guru
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stevemarsh99
stevemarsh99

ASKER

Where is that directory specified?  I couldnt see it in the xvncserver (or similar) file?  And why do I need it?
I have created the directory as suggested and I get :

[root@ftpserver ~]# service vncserver restart
Shutting down VNC server: 1:root 2:steve                   [FAILED]
Starting VNC server: 1:root
New 'ftpserver.khlgroup:1 (root)' desktop is ftpserver.khlgroup:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ftpserver.khlgroup:1.log

2:steve                                                    [FAILED]
Avatar of Arty K
> Does it open a different session of the desktop, do you have to log in as a user or can you log in as root?

While VNC only allows access to your current local session (as shakoush2001 said), you may also want to have multiple resumable sessions for different users. The second can be done with 'freenx' Fedora package, go http://www.nomachine.com/ for some dox.

In Gnome in Fedora you may enable VNC access directly from menu.

I have no Fedora running right now and can't help you with the above errors.
The easiest way to enable VNC in Fedora is from the Preferences menu - Remote Desktop.

Works brilliantly.

M
I have enabled that setting but I get this error when connecting from the client using ftpserver:1 (not that I know what that means!):

Connection timed out: (10060)
Change your firewall settings to allow X11 traffic.


iptables -I INPUT -p tcp -m multiport --port 6000:6010 -j ACCEPT

or for permanent changes run 'iptables-save > /etc/sysconfig/iptables', add appropriate line and run 'iptables-restore < /etc/sysconfig/iptables'


> ftpserver:1 (not that I know what that means!):

'ftpserver' means to connect to host name 'ftpserver', you may use IP address instead
':1' means that the display is number one (client will connetc to tcp port 6001 in firewall).
I'm sorry, for VNC the port range is 5900:5910, not 6000:6010 (which is for X11 connection).

I already have that range open (for FTP I think) but if I type ftpserver.(domain):0 I get:

unable to resolve host by name: The requested name is valid, but no data of the requested type was found. (11004)
stevemarsh99, use IP address of ftpserver
I have used both and they both result in the same thing