?
Solved

SOL9 z11vnc (tightvnc)

Posted on 2005-04-18
27
Medium Priority
?
1,102 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:richgaz
  • 14
  • 13
27 Comments
 
LVL 10

Expert Comment

by:neteducation
ID: 13807201
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13807215
(or add the path where you had it in the jre-files)
0
 

Author Comment

by:richgaz
ID: 13808533
Great that worked - but now I get ./x11vnc 0: ot ./x11vnc machineName:1 XOpenDisplay failed (null)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:neteducation
ID: 13808741
(staying with the variables :-)): what is your DISPLAY-Variable set to ?
0
 

Author Comment

by:richgaz
ID: 13808860
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13808903
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
 

Author Comment

by:richgaz
ID: 13808939
comes back blank line
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13808964
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
 

Author Comment

by:richgaz
ID: 13809000
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
 

Author Comment

by:richgaz
ID: 13809037
# DISPLAY=hes019:0.0
# export DISPLAY
# echo $DISPLAY
hes019:0.0
#
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13809073
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13809078
ok, yes display looks good now
0
 

Author Comment

by:richgaz
ID: 13809110
should I place the display at the end in the profile along withy the LD export?
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13809211
Yes, that aint a bad place
0
 

Author Comment

by:richgaz
ID: 13809219

"/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
 
LVL 10

Expert Comment

by:neteducation
ID: 13809237
oh, I see, you deleted a "then"

        if [ ! -f .hushlogin ]

                /usr/sbin/quota

should be

        if [ ! -f .hushlogin ]
        then
                /usr/sbin/quota
0
 

Author Comment

by:richgaz
ID: 13809321
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13809347
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13809387
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
 

Author Comment

by:richgaz
ID: 13809390
it does say its alive   I am SSH'en  into the SOL9 system.  I guess I do not understand the ??
0
 

Author Comment

by:richgaz
ID: 13809409
so your saying I have to add each system that will vnc into this server in the /etc/profile?
0
 
LVL 10

Expert Comment

by:neteducation
ID: 13809420
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
 

Author Comment

by:richgaz
ID: 13809452
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
 
LVL 10

Expert Comment

by:neteducation
ID: 13809467
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
 
LVL 10

Accepted Solution

by:
neteducation earned 1000 total points
ID: 13809497
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
 

Author Comment

by:richgaz
ID: 13809506
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
 

Author Comment

by:richgaz
ID: 13832548
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question