LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 09-23-2006, 04:29 PM   #1
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Rep: Reputation: 16
Unhappy How to configure VNC server on solaris 8 ?


Hi Guys

I have downloaded VNC server s/w from sunfreeware.com vnc_333r and install it by pkgadd cmd.Now after adding this package i did not found any README which showes how to configure it.Does any one nows about it. I try to run follwing but it gave error .

Thanks in advance

Regard
Talat


# ./Xvnc &
397
# 24/09/06 04:58:59 Xvnc version 3.3.3r2
24/09/06 04:58:59 Copyright (C) AT&T Laboratories Cambridge.
24/09/06 04:58:59 All Rights Reserved.
24/09/06 04:58:59 See http://www.uk.research.att.com/vnc for information on VNC
24/09/06 04:58:59 Desktop name 'x11' (:0)
24/09/06 04:58:59 Protocol version supported 3.3
24/09/06 04:58:59 Listening for VNC connections on TCP port 5900

Fatal server error:
Couldn't add screen
 
Old 09-23-2006, 04:57 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,883

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You should use
Code:
./vncserver
instead of ./Xvnc
 
Old 09-23-2006, 05:34 PM   #3
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
it gives me this

# ./vncserver
./vncserver: not found
#
remember i did not configure it b/c i did not now howto do that.

my vnc is in


# # pwd
/usr/local/bin

# ls -l
total 3338
-rwxrwxrwx 1 bin bin 1526336 Mar 13 2001 Xvnc
-r-xr-xr-x 1 bin bin 8024 Mar 13 2001 vncconnect
-r-xr-xr-x 1 bin bin 15204 Mar 13 2001 vncpasswd
-rwxrwxrwx 1 bin bin 13332 Mar 13 2001 vncserver
-r-xr-xr-x 1 bin bin 116616 Mar 13 2001 vncviewer
 
Old 09-23-2006, 07:55 PM   #4
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Hi Guys

I am able to remove last error .it was b/c i did not have perl in /usr/local/bin/perl,now it placed it there this time i am getting new error

# perl vncserver
vncserver: couldn't find "xauth" on your PATH.

so i locate xauth and place in my path



# echo $PATH
/usr/sbin:/usr/bin:/usr/openwin/bin/xauth

But i still get the same error

Regard
Talat
 
Old 09-24-2006, 12:23 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by talat
[...]
# perl vncserver
vncserver: couldn't find "xauth" on your PATH.

so i locate xauth and place in my path

# echo $PATH
/usr/sbin:/usr/bin:/usr/openwin/bin/xauth

But i still get the same error
The PATH variable must contain directories, not commands.
The correct PATH is your case should then be:
Code:
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/openwin/bin
 
Old 09-24-2006, 12:33 AM   #6
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Thanks Allot jlliagre

This time it works

# ./vncserver

You will require a password to access your desktops.

Password:
Verify:
#

But one last problem when i try to connect from my winXp machine by RealVNC viewer it says FAIL TO CONNECT.Am i missing some thing.

Regard
Talat
 
Old 09-24-2006, 12:35 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Perhaps are you using a wrong server id (0 vs 1) ?
 
Old 09-24-2006, 12:43 AM   #8
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
I did not get it

how can i check that
 
Old 09-24-2006, 01:43 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
How are you telling your vnc client you want to connect to the Solaris box ?
 
Old 09-25-2006, 12:14 PM   #10
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Hi jlliagre

Sorry for the late reply.
As usuall i simply tell Real VNC client the ip of my Solaris box.


Regard
Talat
 
Old 09-25-2006, 12:25 PM   #11
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,883

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Run
Code:
ps -ef|grep Xvnc
in the solaris box to see what is the correct display number (something like :1) and then configure your client to use that display number, e.g.
Code:
vncviewer solarisbox:1
 
Old 09-25-2006, 02:16 PM   #12
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Hi bathory

Thanks for the reply


# ps -ef | grep Xvnc
root 329 1 0 02:54:37 pts/1 0:00 Xvnc :1 -desktop X -httpd /usr/lo cal/vnc/classes -auth //.Xauthority -geometry
root 345 310 0 02:58:05 pts/1 0:00 grep Xvnc

Should i run following cmd on my Solarris machine.Consider 192.168.1.1 is my box ip.

#vncviewer 192.168.1.1:1

Or you want me to configure VNC viewer on my XP machine

Regard
Talat
 
Old 09-25-2006, 02:31 PM   #13
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
OK bathory

i got it.I tryed to give ip on vncclient 192.168.1.1:1

and it works.

Thanks allot to all those who help me in this .I am realy greatfull to you guys.Thanks once again.
 
Old 09-25-2006, 02:42 PM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by talat
As usuall i simply tell Real VNC client the ip of my Solaris box.
Here is the mistake.
As I wrote, and bathory pointed out too, this is implying a server id 0, while yours is 1, append ":1" to the Solaris IP in the connection dialog.
 
Old 09-25-2006, 03:40 PM   #15
talat
Member
 
Registered: Jan 2006
Distribution: Centos
Posts: 145

Original Poster
Rep: Reputation: 16
Yes jlliagre

i got it.Thanks once again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure VNC server to load up the complete GNOME desktop? tlawlessrr Linux - Newbie 8 03-21-2014 08:21 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
VNC 4 on Solaris 9 (Sparc) gquiring Solaris / OpenSolaris 1 10-08-2004 02:06 AM
Slackware VNC Server Install and Configure Procedures kendolin Slackware 2 05-30-2004 10:19 PM
VNC Solaris X problem simquest Linux - Software 0 02-25-2003 02:22 PM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration