Link to home
Start Free TrialLog in
Avatar of richgaz
richgaz

asked on

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.
Avatar of neteducation
neteducation

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
(or add the path where you had it in the jre-files)
Avatar of richgaz

ASKER

Great that worked - but now I get ./x11vnc 0: ot ./x11vnc machineName:1 XOpenDisplay failed (null)
(staying with the variables :-)): what is your DISPLAY-Variable set to ?
Avatar of richgaz

ASKER

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?  
 
 
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 ?



Avatar of richgaz

ASKER

comes back blank line
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 ?
Avatar of richgaz

ASKER

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
#

Avatar of richgaz

ASKER

# DISPLAY=hes019:0.0
# export DISPLAY
# echo $DISPLAY
hes019:0.0
#
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)
ok, yes display looks good now
Avatar of richgaz

ASKER

should I place the display at the end in the profile along withy the LD export?
Yes, that aint a bad place
Avatar of richgaz

ASKER


"/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
oh, I see, you deleted a "then"

        if [ ! -f .hushlogin ]

                /usr/sbin/quota

should be

        if [ ! -f .hushlogin ]
        then
                /usr/sbin/quota
Avatar of richgaz

ASKER

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 ????
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 ?
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.

Avatar of richgaz

ASKER

it does say its alive   I am SSH'en  into the SOL9 system.  I guess I do not understand the ??
Avatar of richgaz

ASKER

so your saying I have to add each system that will vnc into this server in the /etc/profile?
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 ?

Avatar of richgaz

ASKER

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
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)

ASKER CERTIFIED SOLUTION
Avatar of neteducation
neteducation

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 richgaz

ASKER

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
Avatar of richgaz

ASKER

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.