vncserver

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat vncserver
# 8  
Old 05-25-2011
any help!!!!!!!
# 9  
Old 05-25-2011
x0vncserver: unable to open display ""
you have to a DISPLAY for x11 forwarding to view data.
so you must x11 forward to a X11 source (if you work windows,use xming or xmanager..)
or you must connect a linux console.

for other problem
first remove "-nohttpd" from vncservers file.some versions does not support this.
Code:
# grep nohttpd /home/vct/.vnc/console-0124.local:1.log

and then restart (probably this is not the main problem)
Code:
# service vncserver restart

after than can you write this log in forum after we can examine this.
Code:
# cat /home/vct/.vnc/console-0124.local:1.log

and you can check vnc service is running?
Code:
# x=$(sed -n 's/.*vncPort = \([0-9]*\).*/\1/p' /usr/bin/vncserver) ; nc -z `hostname -s` $x-$((x+110)) ; netstat --protocol=inet -lp|grep -i vnc

most importantly you must be sure you have access to vncserver!
..you maybe access to vnc port but following the data transfer is problem because of blocked your 3way hand-shake level while before beginning communication via tcp sockets.therefore appropriate sockets do not pass the establish state and kernel network layer genarates an error message to vnc and vnc convert it to own message and echoes ur tty..

you can check access to vncserver via vncPort that defined above
Code:
# telnet vncserver vncPort

regards
ygemici
# 10  
Old 05-26-2011
Hi ygemici,

Below are the outputs for the commands


Code:
[root@console-0124 ~]# grep nohttpd /home/vct/.vnc/console-0124.local:1.log
[root@console-0124 ~]# echo $?
1
 
[root@console-0124 ~]# service vncserver restart
Shutting down VNC server: 1:vct                            [  OK  ]
Starting VNC server: 1:vct
New 'console-0124.local:1 (vct)' desktop is console-0124.local:1
Starting applications specified in /home/vct/.vnc/xstartup
Log file is /home/vct/.vnc/console-0124.local:1.log
                                                           [  OK  ]
[root@console-0124 ~]# service vncserver status
Xvnc is stopped
 
[root@console-0124 ~]# cat /home/vct/.vnc/console-0124.local:1.log
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42
Copyright (C) 2002-2008 RealVNC Ltd.
See RealVNC - VNC remote control software for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc

Thu May 26 13:51:41 2011
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5901
 vncext:      created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from l                                                                                                 ist!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from                                                                                                  list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from                                                                                                  list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li                                                                                                 st!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from                                                                                                  list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from                                                                                                  list!
Fatal server error:
could not open default font 'fixed'
xrdb: Connection refused
xrdb: Can't open display 'console-0124.local:1'
xmodmap:  unable to open display 'console-0124.local:1'
imsettings information
==========================
Is DBus enabled: yes
Is imsettings enabled: yes
Is GTK+ supported: no
Is Qt supported: no
DESKTOP_SESSION:
DISABLE_IMSETTINGS:
IMSETTINGS_DISABLE_DESKTOP_CHECK:
DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-moeyekcgK0,guid=6088ec8248f40e                                                                                                 fa902ffca44dde9330
GTK_IM_MODULE: gtk-im-context-simple
QT_IM_MODULE:
XMODIFIERS: @im=imsettings
IMSETTINGS_MODULE: none

(imsettings-start:18653): IMSettings-WARNING **: Failed to invoke a method `GetV                                                                                                 ersion' on com.redhat.imsettings:
  Launch helper exited with unknown return code 1
Waiting for reloading the process...
(imsettings-start:18653): IMSettings-WARNING **: Failed to invoke a method `GetV                                                                                                 ersion' on com.redhat.imsettings:
  Launch helper exited with unknown return code 1
Mismatch the version of im-settings-daemon.
** (gnome-session:18664): WARNING **: Cannot open display:


[root@console-0124 ~]# x=$(sed -n 's/.*vncPort = \([0-9]*\).*/\1/p' /usr/bin/vncserver)
[root@console-0124 ~]# echo $?
0
[root@console-0124 ~]# nc -z `hostname -s` $x-$((x+110))
Connection to console-0124 5900 port [tcp/vnc-server] succeeded!
Connection to console-0124 5984 port [tcp/couchdb] succeeded!
[root@console-0124 ~]# netstat --protocol=inet -lp|grep -i vnc
[root@console-0124 ~]# echo $?
1
[root@console-0124 ~]#
 
 
[root@console-0124 ~]# telnet vncserver 5901
telnet: vncserver: Name or service not known
vncserver: Unknown host
[root@console-0124 ~]#


Last edited by Scott; 05-26-2011 at 04:05 PM.. Reason: Code tags...
# 11  
Old 05-26-2011
hi lramsb4u

can you write this.
Code:
# cat /home/vct/.vnc/xstartup
# cat /etc/redhat-release

* you must install "fonts-xorg-base" package for fonts that needed to run Xserver.
* you must install "xorg-x11-xfs" package for running font server that provides fonts to Xserver.

after that
Code:
# vncserver -kill :1
# service vncserver restart

and then let we look again for log file
Code:
# cat /home/vct/.vnc/console-0124.local:1.log

regards
ygemici
# 12  
Old 05-31-2011
Hi ygemici,
The following are the contents

Code:
Code:
[vct@console-0124 .vnc]$ cat /home/vct/.vnc/xstartup #!/bin/sh 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 & #exec gnome-session &


Code:
[vct@console-0124 .vnc]$ cat /etc/redhat-release Fedora release 10


Code:
[vct@console-0124 .vnc]$ cat /home/vct/.vnc/console-0124.local:1.log Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb' Xvnc Free Edition 4.1.3 - built Oct 15 2008 12:55:42 Copyright (C) 2002-2008 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Underlying X server release 40201000, The XFree86 Project, Inc
Thu May 26 13:51:41 2011 vncext: VNC extension running! vncext: Listening for VNC connections on port 5901 vncext: created VNC server for screen 0 error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! Fatal server error: could not open default font 'fixed' xrdb: Connection refused xrdb: Can't open display 'console-0124.local:1' xmodmap: unable to open display 'console-0124.local:1' imsettings information ========================== Is DBus enabled: yes Is imsettings enabled: yes Is GTK+ supported: no Is Qt supported: no DESKTOP_SESSION: DISABLE_IMSETTINGS: IMSETTINGS_DISABLE_DESKTOP_CHECK: DBUS_SESSION_BUS_ADDRESS: unix:abstract=/tmp/dbus-moeyekcgK0,guid=6088ec8248f40efa902ffca44dde9330 GTK_IM_MODULE: gtk-im-context-simple QT_IM_MODULE: XMODIFIERS: @im=imsettings IMSETTINGS_MODULE: none
(imsettings-start:18653): IMSettings-WARNING **: Failed to invoke a method `GetVersion' on com.redhat.imsettings: Launch helper exited with unknown return code 1 Waiting for reloading the process... (imsettings-start:18653): IMSettings-WARNING **: Failed to invoke a method `GetVersion' on com.redhat.imsettings: Launch helper exited with unknown return code 1 Mismatch the version of im-settings-daemon. ** (gnome-session:18664): WARNING **: Cannot open display:

# 13  
Old 06-10-2011
your xstartup file is seem correct.but some required files are missing or couldnot find.
therefore you must be sure installed packages called xorg-x11-fonts* and xorg-x11-xfs.

at now , can you write output of below comma?
Code:
# rpm -qa|grep xorg-x11-fonts

and
Code:
# getenforce
# iptables -L
# which twm
# ls -l /usr/ share/X11/fonts/
# find / -name "75dpi" -type d

if there are `/usr/share/X11/fonts/[misc|75dpi|100dpi ...]` and then
Code:
mkdir -p /usr/X11R6/lib/X11/fonts/{100dpi,75dpi,CID,Type1,Speedo,misc}
ln -sf /usr/share/X11/fonts/75dpi /usr/X11R6/lib/X11/fonts/75dpi
ln -sf /usr/share/X11/fonts/100dpi /usr/X11R6/lib/X11/fonts/100dpi
ln -sf /usr/share/X11/fonts/misc /usr/X11R6/lib/X11/fonts/misc
ln -sf /usr/share/X11/fonts/Type1 /usr/X11R6/lib/X11/fonts/Type1
ln -sf /usr/share/X11/fonts/100dpi /usr/X11R6/lib/X11/fonts/100dpi
## and others that whatever folder as fonts type , you can link same way

and others same way

if this process`s fails then try to add your /etc/X11/xorg.conf to below lines

Code:
    Fontpath   "/usr/share/fonts/X11/misc"
    FontPath   "/usr/share/fonts/X11/Type1/"
    FontPath   "/usr/share/fonts/X11/75dpi/"
    FontPath   "/usr/share/fonts/X11/100dpi/"

and
Code:
# service xfs restart

if there is not anything in "/usr/share/fonts/X11/, you must install xorg-x11-fonts* rpms.

after all process then retry
on server
Code:
# service vncserver restart

on client
Code:
# vncviewer :1 -FullScreen

if you get still error

try this with xstartup
Code:
#!/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 &
startkde &

or
Code:
 
#!/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 &
startx &

or you must try TigerVNC instead of RealVNC.


regards
ygemici

Last edited by ygemici; 06-10-2011 at 11:52 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Unable to start vncserver

Hi, While trying to connect vncserver, i am gettting below errors: sh: /home/$USER/.vnc/$HOSTNAME:2.log: Permission denied sh: /home/$USER/.vnc/$HOSTNAME:2.pid: Permission denied New '$HOSTNAME:2 ($USER)' desktop is $HOSTNAME:2 Starting applications specified in... (1 Reply)
Discussion started by: pandeesh
1 Replies

2. Linux

Vncserver NOT working

Hi all, I received following messages while trying to run vncserver, what could be reason behind this. vncserver Warning: system1.pen.com:1 is taken because of /tmp/.X11-unix/X1 Remove this file if there is no X server system1.pen.com:1 Warning: system1.pen.com:2 is taken because of... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

3. UNIX for Dummies Questions & Answers

Works on command line but not in script; vncserver on solaris 10

Hi guys. My first post, so be gentle... On my Solaris 10 machine vnc server is running. I need a command to extract most recent client session number (screen). So with: Code: bash-3.2# ps -ef | grep vnc | grep Xaut root 19805 19797 0 15:41:44 ? 0:01 Xvnc :4 -inetd -once... (5 Replies)
Discussion started by: cp6uja
5 Replies

4. Red Hat

VNCSERVER Install

Hi All, Just wondering if someone can help me out here: Wanted to install vnc server on Centos 6, yum installed tigervnc but there after I do not see any services associated with it. Also, I had installed SAMBA and proceeded with SWAT installation but I am unable to access... (2 Replies)
Discussion started by: a2z1982
2 Replies

5. Ubuntu

VNCserver not working?

Hi, I am having trouble connecting to the vncserver on my Ubuntu server 10.04.2. # vncserver :1 A VNC server is already running as :1 # ps -ef | grep vnc root 2944 1683 0 13:47 pts/0 00:00:00 grep --color=auto vnc I think I have got all the necessary binaries (below) but when I... (0 Replies)
Discussion started by: Duffs22
0 Replies

6. Linux

vncserver gnome display error

Hi all, I installed vncserver on fedora core 10. I am able to start vncserver and access it via vncviewer but i am not getting gnome display. I am getting the following errors. 1) The panel has encountered a fatal error: the panel could not register with bonobo activation server (error... (6 Replies)
Discussion started by: lramsb4u
6 Replies

7. Red Hat

how to use vncserver and vncviewer?

hello, I have two fedora 8 systems connected in LAN. I have typed "vncserver" on one terminal; gave a password. Then went to the next terminal and typed "vncviewer".It asked me for host server.I gave the IP address of the above system.But it prompted that "server not found". I tried "ping"... (4 Replies)
Discussion started by: nsharath
4 Replies

8. UNIX and Linux Applications

vncserver xlib error

Hello! Im running tight VNC on Red Hat Enterprise Linux 4.0. How can I increase the number of X clients that I can run in a VNC session?I need to run aproximately 500 programs in one VNC session, but at this time I can only 236 -> i've tryed to launch 250 xclock's in background and when it... (0 Replies)
Discussion started by: karpoand
0 Replies

9. UNIX for Dummies Questions & Answers

vncserver on SCo 505

I have installed vnc on my SCO 505 box. its running fin, but when I start a session and connect to it from my win machine I do get an Xsession but I only get an xterm and thats it. I know my settings are in my //.vnc/xstartup file but what exactly am I supposed to see there. will some one send... (3 Replies)
Discussion started by: franruiz
3 Replies
Login or Register to Ask a Question