星期四 四月 03, 2008

There is somthing wrong with vncserver from "Start"-->"All Application"-->"Internet"-->"Avahi VNC Server".I have configured it under the console.


VNC server:


    bash-3.2$ vncserver


    vncserver: couldn't find "Xvnc" on your PATH.


     Obviously,it need the application to PATH,also you may receive the similar error as:


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


    in fact Xvnc is under the directory /usr/X11/bin while xauth is under /usr/openwin/bin so add them to path,open .profile file in your home directory,add them  as followed:


    PATH=$PATH:/usr/X11/bin:/usr/openwin/bin
    export PATH


    save the .profile and logout. then when you type vncserver command, after input the vncviewer accessing password twice,you will get something as followed:


    bash-3.2$ vncserver

    You will require a password to access your desktops.

    Password:


    New 'swustcs:1 (demo)' desktop is swustcs:1

    Creating default startup script /export/home/demo/.vnc/xstartup
    Starting applications specified in /export/home/demo/.vnc/xstartup
    Log file is /export/home/demo/.vnc/swustcs:1.log   


    ok.The VNC Sever can work normally now.


VNC Client1(Solaris):


    open a console:


   bash-3.2$ vncviewer swustcs:1


   After inputting  access password ,you will get a vnc window below:

  

   
 VNC Client(Windows):


      1.open a vnc client::


       Note: The Server must be IP:Port form ,if you input the server name the same as in Solaris VNC Client above such as "swustcs:1",the vnc client will not find the server.This problem cost me a lot of time.


    


2.Input the vnc access password


       


3.ok


   
     


   A simple VNC communication has been established . There are two problem unsolved :


  1. when I modifyed the startup script /export/home/demo/.vnc/xstartup , In order to launch the GNOME desktop environment change the twm line in xstartup to:
    gnome-session &


  logout and login,but it does't work as experted,it remains as "twm" desktop Manager.


 2.when I tried to use vnc client(on solaris) to connect to VNC Server on Window,it caused error:


   bash-3.2$ vncviewer 192.168.4.93
    CConn: connected to host 192.168.4.93 port 5900  
    main: rdr.EndOfStream: EndOfStream

 

评论:

发表一条评论:
  • HTML语法: 禁用