以VM環境建立Solaris 10
首先,把Xenapp 4.0程式解壓縮(可以在磁碟內直接解壓縮.zip檔案)至xenapp(create folder)資料夾內,位於/(根目錄)底下
解壓縮之後就可以進行安裝(原有檔名為xau4_ml_zip)
安裝說明如下(文件內容說明最好是先安裝License Server再裝Xenapp4.0)
首先,先要建立群組及使用者
#groupadd ctxadm
#groupadd lmadmin
#useradd – g ctxadm ctxsrvr
#useradd –g ctxadm ctxssl
#useradd –g lmadmin ctxlsadm
將建立帳號設定密碼
#passwd ctxsrvr
#passwd ctxssl
#passwd ctxlsadm
建完使用者之後,就開始建立安裝script(xenapp及license安裝)
Xenapp安裝script編寫(紅字為script內容)
#cd /xenapp
#vi install.sh(a,I,o為編輯指令)
#!/bin/bash
pkgadd –r /xenapp/solaris_x86/response –a /xenapp/solaris_x86/admin –d /xenapp/solaris_x86/CTXSmf CTXSmf
然後點選”:”及”esc”之後再輸入wq存檔離開
License安裝script編寫(紅字為script內容,”#”不可省略)
#vi license.sh(a,I,o為編輯指令)
#!/bin/bash
pkgadd –d /xenapp/ctxsls/solaris_x86/CTXSls
然後點選”:”及”esc”之後再輸入wq存檔離開
開始執行安裝
安裝License Server
#sh license.sh –b /xenapp/ctxsls/solaris_x86/CTXSls
安裝Xenapp4.0
#sh install.sh –b /xenapp/solaris_x86/CTXSmf
安裝完以上程式之後,如果有Hotfix要安裝的話就要執行以下指令
先執行解壓縮(原有檔名為PSE400SOL054.tar.Z)
#uncompress /xenapp/hotfix/PSE400SOL054.tar.Z(解壓縮之後會變成PSE400SOL054.tar)
所以需要再用tar解壓縮一次
#tar xvf /xenapp/hotfix/PSE400SOL054.tar(解壓縮之後就會成為PSE400SOL054的目錄了)
PS. 參數xvf前面不加”-“符號
安裝Citirix Hotfix更新指令為
#sh installxau /xenapp/hotfix/PSE400SOL054/CTXSmf
安裝完之後,會要求Create Farm或是Join Farm,組態完畢之後,就可以進行下一個階段
組態License
License可以指到已經安裝好的機器上(例如:192.168.0.201的citrix0)
#cd /opt/CTXSmf/sbin
#./ctxlsdcfg
License Config> server 192.168.0.156(伺服器名稱,通常為電腦名稱或是輸入IP,大小寫有差,要特別注意)
License Config> port 27000(License server使用預設port number=27000)
License Config> edition Enterprise(Citrix使用版本)
License Config> list
License Server : 192.168.0.156 : 27000
Product edition : Enterprise
Compatible with : 4.0
Current Mode : FeaturePack 1
License Config> exit (離開
Do you wish to save your changes? Y
開始發佈程式
#cd /opt/CTXSmf/sbin
#./ctxappcfg
App Config> publish
Type ? for help at any prompt.(以下發佈輸入”?”就會有說明)
Name: ?
Enter the name of the application you want to create.
Name: desktop
Command line: (按enter即可)
Working Directory. Default is user’s home directory: (按enter即可)
Anonymous [yes | no]: (是否開放匿名存取,視環境需要)
Description: (有關應用程式的描述,可以按enter省略)
Folder: (資料夾存放,可以按enter省略)
Icon File: (顯示圖示,可以按enter省略)
Window Size. (Default : inherit default setting, “800*600”): (顯示視窗解析,預設為”800*600”,可按enter進行下一步)
Color Depth. (Default : inherit default setting, “256 colors”): (色彩呈現,預設為”256”色,可按enter進行下一步)
Enable SSL security [yes | no] (Default: inherit default setting, “no”): (是否啟用SSL security驗證,預設為”no”,可按enter進行下一步)
Enter user names of users allowed to access this application.
One per line, enter a blank line to finish(輸入使用者名稱,或是按enter結束)
User name> eric(使用有建立的帳號#useradd –g ctxadm eric)
User name>(有要再加就輸入使用者名稱,沒有就按enter結束)
Enter group names of the user groups allowed to access this application.
One per line, enter a blank line to finish(輸入群組名稱,或是按enter結束)
Group name> ctxadm(輸入建立群組名稱)
Group name> (有要再加就輸入群組名稱,沒有就按enter結束)
Enter the names of the servers that will publish this application.
One per line, enter a blank line to finish.(輸入要發佈應用程式的伺服器,沒有就按enter結束)
Server name> solaris
Server name>(有要再加就輸入伺服器名稱,沒有就按enter結束)
Successfully added configuration for “desktop”(成功發佈”desktop’)
App Config> exit (若要再發佈則繼續,如果要離開就按exit)
接下來就是如何連線執行所發佈的應用程式(需要用PN Agent來連線)
環境: W2K3 VM(需安裝舊版Citrix(4.5以前)的PN Agent,新版11.2 CitrixOnlinePlugin.exe已無此功能)
點選桌面上的 “ Citrix Program Neighborhood”進入至Custom ICA Connection
點選”Add ICA Connection”
選擇 “Local Area Network”,然後點選”next”
Enter a description for the new ICA Connection: solaris
Select the network protocol that your computer will use to communicate with the server farm: TCP/IP
Select the Citrix Presentation Server computer or published application to which you want to connect:
Server : solaris
Or
Published : desktop
然後點選”next”
Encryption Level : Basic(預設就不做任何更改,然後點選”next”)
Enter a User name, Password, and Domain, to use with this Connection. If you leave there fields blank, you will be prompted for this information when you connect.(輸入要存取的帳號&密碼)
User name: eric
Password: 1qazxcV
Domain: solaris(沒有domain就輸入主機名稱)
PS.記得要勾選”Save password”,不然以上訊息將會反灰而無法輸入,輸入完畢之後再點選”next”
This application you are connecting to is configured with default display option. If you would like to override these default, you can do so below.(連線之後顯示的視窗畫面,可以選擇預設之後,再點選”next”)
Enter the filename of the application to run, or leave this box empty to run a remote desktop(在這裡可以輸入application及Working Directory的路徑,也可以留下空白之後按”next”至下個階段)
Your ICA Connection has been successfully set up!
To add it to your Custom Connection, click Finish.
To edit the properties for this ICA Connection later, click its icon inside your Program Neighborhood, then click the Properties button.(點選”Finish”完成ICA Connection,會出現一個名為solaris10的icon,如果要修改,再點選icon進入修改)
以上就是針對Solaris安裝Xenapp4.0的安裝使用和應用介紹,有問題再給予訊息告知,謝謝
以下屬於補充部份,有空參考看看吧
建立測試帳號
#useradd –d /export/home/username(ex:tank) –m –s /bin/ksh –c “username(ex:tank)” username(ex:tank)
PS.在solaris的環境底下,有類似MMC的主控台
指令為
#cd /usr/sadm/bin
#./smc
這裡面有使用者及群組設定等等,使用者設定是停用的,需將帳號啟用之後,才可以登入使用,但需要配合”建立測試帳號”,才不會有無法登入的問題出現