SOL9 z11vnc (tightvnc)

I have installed this flavor of vnc and have a problem when I issue the ./x11vnc :0 or -opts or anything x11vnc.  I get libjpeg.so not found fatal error. THe x11vnc cmd is object format so I do not know how to rectify the problem.  DO I not have something installed - i do have the so in JRE files and a /usr/sfw/lib dir.  Have a peskly user which I would luv to send off to closed req land.  thx in advance.
richgazAsked:
Who is Participating?
 
neteducationConnect With a Mentor Commented:
with VNC (afaik) you can only do a remote control of the graphical desktop of some other machine. So if your Solarisbox does not have a screen attached to it then there is no graphical desktop you can remote control. if it's about starting graphical apps then see my previous post .
0
 
neteducationCommented:
see if your LD_LIBRARY_PATH variable is set.

echo $LD_LIBRARY_PATH

if it is set, add /usr/sfw/lib to it

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/sfw/lib

if it is not set, set it to

LD_LIBRARY_PATH=/usr/lib:/lib:/usr/sfw/lib
export LD_LIBRARY_PATH

then try again (from the same shell where you set your LD_LIBRARY_PATH
0
 
neteducationCommented:
(or add the path where you had it in the jre-files)
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
richgazAuthor Commented:
Great that worked - but now I get ./x11vnc 0: ot ./x11vnc machineName:1 XOpenDisplay failed (null)
0
 
neteducationCommented:
(staying with the variables :-)): what is your DISPLAY-Variable set to ?
0
 
richgazAuthor Commented:
PArdon my ignorance but where is the DISPLAY set inittab?  and secondly?  I had to log off the shell and now I am back to the same error with libjpeg.so - can I place the
LD_LIBRARY_PATH=/usr/lib:/lib:/usr/sfw/lib
export LD_LIBRARY_PATH

anywhere in the /etc/profile?  
 
 
0
 
neteducationCommented:
if you did not have any LD_LIBRARY_PATH variable before, then then /etc/profile is fine... i'd do it right above the export LOGNAME PATH and do the export along with the others.... like this:

LD_LIBRARY_PATH=/usr/lib:/lib:/usr/sfw/lib
export LOGNAME PATH LD_LIBRARY_PATH

(will only work after next login)

as for the DISPLAY-Variable: What does

echo $DISPLAY

say?


And how are you connected to your solaris machine? Locally at the screen ? Via ssh ?



0
 
richgazAuthor Commented:
comes back blank line
0
 
neteducationCommented:
ok, suppose you are locally at your Solaris machine:

DISPLAY=<yourmachinesname>:0.0
export DISPLAY

or do you connect over the network to your solaris-machine ?
0
 
richgazAuthor Commented:
I changed it where you stated and still get the libjepg.so error and I also get  -sh: syntax error: 'fi' unexpected.
login as: root
root@9.56.204.19's password:
Last login: Mon Apr 18 13:55:07 2005 from hcx142.pdl.pok.
-sh: syntax error: `fi' unexpected

"/etc/profile" 49 lines, 768 characters
#ident  "@(#)profile    1.19    01/03/13 SMI"   /* SVr4.0 1.3   */

# The profile that all logins get before using their own .profile.

trap ""  2 3


LD_LIBRARY_PATH=/usr/lib:/lib:/usr/sfw/lib
export LOGNAME PATH LD_LIBARY_PATH

if [ "$TERM" = "" ]
then
        if /bin/i386
        then
                TERM=sun-color
        else
                TERM=sun
        fi
        export TERM
fi

#       Login and -su shells get /etc/profile services.
#       -rsh is given its environment in its .profile.
:q!
# cd /usr/local/bin
# ./x11vnc
ld.so.1: ./x11vnc: fatal: libjpeg.so.62: open failed: No such file or directory
Killed
#

0
 
richgazAuthor Commented:
# DISPLAY=hes019:0.0
# export DISPLAY
# echo $DISPLAY
hes019:0.0
#
0
 
neteducationCommented:
hmmm.... /etc/profile looks good... the fi unexpected error points to that there some error between the if and the fi... but I suppose you did not change anything there.... try taking it out again and put it to the very bottom (below the bottom trap 2 3)
0
 
neteducationCommented:
ok, yes display looks good now
0
 
richgazAuthor Commented:
should I place the display at the end in the profile along withy the LD export?
0
 
neteducationCommented:
Yes, that aint a bad place
0
 
richgazAuthor Commented:

"/etc/profile" 50 lines, 770 characters
# ./etc/profile
./etc/profile: syntax error at line 46: `fi' unexpected
trap ""  2 3
if [ "$TERM" = "" ]
then
        if /bin/i386
        then
                TERM=sun-color
        else
                TERM=sun
        fi
        export TERM
fi

#       Login and -su shells get /etc/profile services.
#       -rsh is given its environment in its .profile.

case "$0" in
-sh | -ksh | -jsh | -bash)

        if [ ! -f .hushlogin ]

                /usr/sbin/quota
                #       Allow the user to break the Message-Of-The-Day only.
                trap "trap '' 2"  2
                /bin/cat -s /etc/motd
                trap "" 2

                /bin/mail -E
                case $? in
                0)
                        echo "You have new mail."
                        ;;
                2)
                        echo "You have mail."
                        ;;
                esac
        fi
esac
LD_LIBRARY_PATH=/usr/lib:/lib:/usr/sfw/lib
export LOGNAME PATH LD_LIBRARY_PATH
umask 022
"/etc/profile" 50 lines, 770 characters
# ./etc/profile
OM./etc/profile: not found
# ./etc/profile
./etc/profile: syntax error at line 46: `fi' unexpected
# vi /etc/profile
"/etc/profile" 50 lines, 770 characters


the error is with the last "fi" before the esac
0
 
neteducationCommented:
oh, I see, you deleted a "then"

        if [ ! -f .hushlogin ]

                /usr/sbin/quota

should be

        if [ ! -f .hushlogin ]
        then
                /usr/sbin/quota
0
 
richgazAuthor Commented:
I think you almost got me to where this works
login as: root
root@9.56.204.19's password:
Last login: Mon Apr 18 14:41:35 2005 from hcx142.pdl.pok.
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have mail.
hes019:0.0
/usr/lib:/lib:/usr/sfw/lib
# ./usr/local/bin/x11vnc

Settings:
 display:    null
 authfile:   null
 subwin:     0x0
 rootshift:  0
 flashcmap:  0
 force_idx:  0
 overlay:    0
 ovl_cursor: 1
 visual:     null
 scaling:    0 1.00000
 viewonly:   0
 shared:     0
 conn_once:  1
 inetd:      0
 connect:    null
 connectfile null
 vnc_conn:   1
 allow:      null
 passfile:   null
 accept:     null
 gone:       null
 using_shm:  1
 flipbytes:  0
 onetile:    0
 blackout:   null
 xinerama:   0
 xrandr:     0
 xrandrmode: null
 logfile:    null
 rc_file:
 norc:       0
 bg:         0
 mod_tweak:  1
 isolevel3:  0
 xkb:        0
 skipkeys:   null
 addkeysyms: 0
 xkbcompat:  0
 clearmods:  0
 remap:      null
 norepeat:   1
 nofb:       0
 watchbell:  1
 watchsel:   1
 watchprim:  1
 cursor:     1
 root_curs:  0
 curs_mode:  null
 xfixes:     1
 cursorshp:  1
 cursorpos:  1
 xwarpptr:   0
 buttonmap:  null
 dragging:   1
 ptr_mode:   2
 inputskip:  10
 debug_ptr:  0
 debug_key:  0
 defer:      30
 waitms:     30
 take_naps:  0
 sb:         60
 sigpipe:    null
 threads:    0
 fs_frac:    0.75
 gaps_fill:  4
 grow_fill:  3
 tile_fuzz:  2
 deny_all:   0
 noremote:   0

18/04/2005 15:01:03 x11vnc version: 0.7pre lastmod: 2004-12-23
18/04/2005 15:01:09 XOpenDisplay failed (hes019:0.0)
#


In the DISPLAY is the machine name hes019 or the full name is hes019.podl.com ????
0
 
neteducationCommented:
hes019 should be fine...

if you

ping hes019

does it say it is alive ?


and just to make sure again: You sit right at the solaris machine, right? And you do have a graphical desktop there ?
0
 
neteducationCommented:
oh, i had a closer look at your posts...

Am I right in thinking that you DONT sit directly at your solaris machine, but you telnet/ssh to it ?

If so: put the display variable to the machine you sit right at and then :0.0 (such as hcx142.pdl.pok:0.0)

and then you need to have an X-Server running at the machine where you directly sit.

0
 
richgazAuthor Commented:
it does say its alive   I am SSH'en  into the SOL9 system.  I guess I do not understand the ??
0
 
richgazAuthor Commented:
so your saying I have to add each system that will vnc into this server in the /etc/profile?
0
 
neteducationCommented:
ok, the thing you are trying to run opens up a graphical window. of course you want the window to be opened at your PC, not on the servers console (if ever there is one).

The DISPLAY-Variable tells the system where to open up graphical stuff. so this must be set to Your machine (hcx142.pdl.pok is suppose)

In order to be able to open up a window at your machine a so-called X-server must be running there. What program do you use to ssh to your solaris machine ?

0
 
richgazAuthor Commented:
okay i ssh into the sol9 as root start the x11vnc with the name of my PC machine.  I have realVNC on my PC and i issue 9.56.204.19:0  which is the sol9 system and I fail to connect and the ssh logon then shows the xopendisplay fail for my PC
0
 
neteducationCommented:
no... the DISPLAY-Variable can be set to one value only... maybe we should start over...

what exactly do you want to be able to do? If the Users should just be able to start graphical applications on your solaris machine then you dont need tightVNC at all. all you need is an X-Server for your local PC, then you ssh into your solarisbox, put the DISPLAY to the right PC and then start xsession (or the apropriate graphical application you want)

0
 
richgazAuthor Commented:
I AM sorry i certainly went left on this one.  It appears the only instance of xsession is off of  /opt/sfw/etc/xfce/xsession and not executable.  I have the install CDs which do you suggest.  Again Please excuse my ignorance with the Sun
0
 
richgazAuthor Commented:
PLease look at a dev/fb fatal error I opened after I went down the path of an X server.  He says to use VNC.  Let me make this a simple a question as possible.  How do I configure VNC x11vnc to aqccept multiple remote users from various places to a local headless server?   I can do it in Linux with no problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.