Beste mensen,
Ik probeer al 6 dagen VNC-server op mijn redhad machine aan de praat te
krijgen. Dit is tot op heden nog niet gelukt. als ik probeer te verbinden
naar de redhat machine met vncviewer kan hij onmogelijk verbinden. Probleem
is tevens dat wanneer ik de service met "service vncserver start" start, en
vervolgens met "service vncserver status" ik de status opvraag ik de melding
"Xvnc stopped" krijg. Dat terwijl als ik heb start hij in de eerste
instantie ok zegt.
Dit is wat ik heb gedaan:
- VNC geinstalleerd
- In iptables poort 5800 5801 5900 5901 open gezet
- in hosts.allow. de betreffende hosts gezet die mogen verbinden
- Username verwerkt in /etc/sysconfig/vncservers
- vncpasswd uitgevoerd
Blijkbaar draait de service Xvnc dus gewoon totaal niet. Weet iemand een
oplossing voor dit probleem?
Hieronder nog wat ondersteunende informatie:
[root@localhost sbin]# ./chkconfig vncserver --list
vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
//Blijkbaar stopt het process direct na he starten. Wat is hiervan de
oorzaak?
[root@localhost sbin]# ./service vncserver start
Starting VNC server: 0:bjorn WARNING: initlog is deprecated and will be
removed in a future release
[ OK ]
[root@localhost sbin]# ./service vncserver status
Xvnc is stopped
[root@localhost sbin]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.
VNCSERVERS="0:bjorn"
VNCSERVERARGS[1]="-geometry 800x600"
//ik mis het bestant /etc/vnc/xstartup (de hele vnc dir bestaat overgens
helemaal niet hier in /etc)
[root@localhost sbin]# cat /home/bjorn/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
[root@localhost sbin]# whereis vncserver
vncserver: /usr/bin/vncserver /usr/share/man/man1/vncserver.1.gz
[root@localhost sbin]# ./service vncserver start
Starting VNC server: 0:bjorn WARNING: initlog is deprecated and will be
removed in a future release
[ OK ]
[root@localhost sbin]# ./service vncserver status
Xvnc is stopped
[root@localhost sbin]# ps aux | grep Xvnc
root 3889 0.0 0.1 3880 672 pts/1 R+ 13:33 0:00 grep Xvnc
Ik probeer al 6 dagen VNC-server op mijn redhad machine aan de praat te
krijgen. Dit is tot op heden nog niet gelukt. als ik probeer te verbinden
naar de redhat machine met vncviewer kan hij onmogelijk verbinden. Probleem
is tevens dat wanneer ik de service met "service vncserver start" start, en
vervolgens met "service vncserver status" ik de status opvraag ik de melding
"Xvnc stopped" krijg. Dat terwijl als ik heb start hij in de eerste
instantie ok zegt.
Dit is wat ik heb gedaan:
- VNC geinstalleerd
- In iptables poort 5800 5801 5900 5901 open gezet
- in hosts.allow. de betreffende hosts gezet die mogen verbinden
- Username verwerkt in /etc/sysconfig/vncservers
- vncpasswd uitgevoerd
Blijkbaar draait de service Xvnc dus gewoon totaal niet. Weet iemand een
oplossing voor dit probleem?
Hieronder nog wat ondersteunende informatie:
[root@localhost sbin]# ./chkconfig vncserver --list
vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
//Blijkbaar stopt het process direct na he starten. Wat is hiervan de
oorzaak?
[root@localhost sbin]# ./service vncserver start
Starting VNC server: 0:bjorn WARNING: initlog is deprecated and will be
removed in a future release
[ OK ]
[root@localhost sbin]# ./service vncserver status
Xvnc is stopped
[root@localhost sbin]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:http://www.uk.research.att.com/vnc/sshvnc.html>.
VNCSERVERS="0:bjorn"
VNCSERVERARGS[1]="-geometry 800x600"
//ik mis het bestant /etc/vnc/xstartup (de hele vnc dir bestaat overgens
helemaal niet hier in /etc)
[root@localhost sbin]# cat /home/bjorn/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
[root@localhost sbin]# whereis vncserver
vncserver: /usr/bin/vncserver /usr/share/man/man1/vncserver.1.gz
[root@localhost sbin]# ./service vncserver start
Starting VNC server: 0:bjorn WARNING: initlog is deprecated and will be
removed in a future release
[ OK ]
[root@localhost sbin]# ./service vncserver status
Xvnc is stopped
[root@localhost sbin]# ps aux | grep Xvnc
root 3889 0.0 0.1 3880 672 pts/1 R+ 13:33 0:00 grep Xvnc