Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VPN for Unix (on Solaris 10)

    Hi All,
    Thi is installation steps which I want to share with all of you. It is very interesting job!
    Cheers!

    INSTALLATION:
    Insert the Solaris Companion CD and allow the volume management daemon to mount it. There are three
    packages which are required. In this example, they are converted into package datastreams on the hard disk:
    # cd /cdrom/cdrom0/sparc/Packages
    # pkgtrans . /opt/SFWgcmn.pkg SFWgcmn
    # pkgtrans . /opt/SFWgcc34l.pkg SFWgcc341
    # pkgtrans . /opt/SFWvnc.pkg SFWvnc
    The path to the Packages directory on SPARC is /cdrom/cdrom0/s0/Solaris_10/Packages
    Add the three packages in the following order:
    # cd /opt
    # pkgadd -d SFWgcmn.pkg
    # pkgadd -d SFWgcc34l.pkg
    # pkgadd -d SFWvnc.pkg
    CONFIGURING X:
    Xwindows is configured with text files under /usr/dt but these shouldn’t be modified, make copies of them
    under /etc/dt and modify the copies.
    # mkdir -p /etc/dt/config
    # cp /usr/dt/config/Xservers /etc/dt/config/
    # cp /usr/dt/config/Xconfig /etc/dt/config/
    # cp /usr/dt/config/Xsetup /etc/dt/config/
    Edit the /etc/dt/config/Xservers to configure the extra sessions to Xwindows. The :0 server is the
    default one which you log in to locally. In this example, one extra connection is being configured:
    # vi /etc/dt/config/Xservers
    :0 Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner
    :1 Local local_uid@console root /opt/sfw/bin/Xvnc :1 -httpd
    /opt/sfw/vnc/classes -depth 16 -geometry 1024x768 -r fbwait 120000 -rfbauth
    /opt/sfw/vnc/.vnc/passwd -rfbport 5901 -httpport 5801 -fp
    tcp/localhost:7100 -alwaysshared
    There are only two lines in this example of the file; it has just word wrapped on this page. Here are some of the important options:
    This is the colour depth. An 8bit colour depth uses less network bandwidth but looks a bit blocky.
    -depth 16
    Choose whichever resolution you want. Yes, that is an “x” between the two numbers not an “*”.
    -geometry 1024x768
    The port number for the client connection. Each different session must use a different port number. For
    example session :1 uses 5901 and session :2 could use 5902
    -rfbport 5901
    You can point a web browser at the Unix host with this port number and get a java-based connection to the
    Unix host.
    -httpport 5801
    For example:
    http://10.0.0.1:5801 (the your Solaris Box address)
    PASSWORD
    Every VNC client connection will receive a VNC password prompt. The same password is used for all clients.
    This must be entered correctly before the login screen appears where users can use their normal Solaris login
    details. To configure the password:
    # HOME=/opt/sfw/vnc
    # export HOME
    # mkdir $HOME/.vnc
    # /opt/sfw/bin/vncpasswd
    Password: password
    Verify: password
    #
    START VNC WITH DTLOGIN:
    To enable VNC to start when dtlogin does, uncomment the Dtlogin*grabServer line in
    /etc/dt/config/Xconfig or execute this sed command which will do the same thing:
    # sed '/Dtlogin\*grabServer/s/^#//' /etc/dt/config/Xconfig >/tmp/Xconfig
    # mv /tmp/Xconfig /etc/dt/config/Xconfig
    Last edited by teppyvn; 12-11-2008, 01:04 PM.
    Late better than Nerver

  • #2
    Is this VPN or VNC setting???

    Comment

    Working...
    X