Linux NIC Bonding

February 9, 2010

補充說明如下

 安裝兩張網卡至Linux機器上,IP都先設定為DHCP

 再來就是組態的部份(在vi裡面設定o,a,i為編輯寫入指令,esc為離開編輯模式,wq為寫入後離開,q!為強制離開不寫入),建議以下組態檔都要先做一下備份

# vi /etc/sysconfig/network-scripts/ifcfg-bond0(建立一個新的設定檔名為ifcfg-bond0)

DEVICE=bond0

IPADDR=192.168.0.1(此為固定IP)

NETMASK=255.255.255.0

NETWORK=192.168.0.0

ONBOOT=yes

BOOTPROTO=none

USERCTL=no

# vi /etc/sysconfig/network-scripts/ifcfg-eth0(第一張網卡設定,需備份之後再直接修改:#cp ifcfg-eth0 ifcfg-eth0.bak)

DEVICE=eth0

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

HWADDR=xx:xx:xx:xx:xx:xx(可以用# ifconfig查看網卡位址)

# vi /etc/sysconfig/network-scripts/ifcfg-eth1(第二張網卡設定,需備份之後再直接修改: #cp ifcfg-eth1 ifcfg-eth1.bak)

DEVICE=eth1

USERCTL=no

ONBOOT=yes

MASTER=bond0

SLAVE=yes

BOOTPROTO=none

HWADDR=xx:xx:xx:xx:xx:xx(可以用# ifconfig查看網卡位址)

# vi /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=myhost(自由命名,如果有修改要重開機)

GATEWAY=192.168.0.254

# vi /etc/modprobe.conf(複製備份原來檔案# cp modprobe.conf modprobe.bak,將原來內容清空再輸入以下script )

 

alias bond0 bonding

options bond0 miimon=100 mode=3

 

完成以上設定之後,重新開機後,就執行下方指令

# service network stop(先停用網路服務)

# modprobe bonding miimon=100 mode=3

# ifconfig bond0 192.168.0.1 netmask 255.255.255.0

# ifenslave bond0 eth0 eth1

# route add default gw 192.168.0.254 dev bond0

# modprobe bonding

# service network restart

查看 bonding 狀態

# cat /proc/net/bonding/bond0 或是用 ifconfig指令查看狀態

Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)

Bonding Mode: fault-tolerance (active-backup)

Primary Slave: none

Currently Active Slave: eth0

MII Status: up

MII Polling Internal (ms): 100

Up Delay (ms): 0

Down Delay (ms): 0

Slave Interface: eth0

MII Status: up

Link Failure Count: 0

Permanent HW addr: xx:xx:xx:xx:xx:xx

如果設定成功的話,測試時會有NLB,而且只拔一條網路線,則不會影響連線傳輸,傳輸速度比一般在內部網路還快


Solaris 安裝 Xenapp 4.0

February 9, 2010

以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

這裡面有使用者及群組設定等等,使用者設定是停用的,需將帳號啟用之後,才可以登入使用,但需要配合”建立測試帳號”,才不會有無法登入的問題出現


dgeSight 5.2 Agent Reports Licensing Event Log Errors 103 and 107

February 4, 2010

“The Citrix EdgeSight agent is no longer in or could not enter a licensing grace period.”

http://support.citrix.com/article/ctx122854


Change Office 2007 SN

January 21, 2010

office 2007 如果你需要更換序號的話

Setp 1. regedit 

Setp2. HKEY_LOCAL_MACHINE -> SOFTWARE ->Microsoft-> OFFICE -> 12.0 -> Registration找到將「DigitalProductID」及「ProductID」刪除

重開開啟Office則會讓你重新輸入一次


User 登入出現 “Increase registry size” 問題

January 11, 2010

citrix_error_2 

citrix_error_1

參考 http://support.microsoft.com/kb/124594/zh-tw

 

have come across this also with the Citrix server farm that I support.
We tried increasing the RSL as well and also found that to not work.
I came across this MS article which seems to resolve the problem,
http://support.microsoft.com/kb/124594/EN-US/
Article ID      :      189119
Title: UserEnv Returns Corrupted Profile for All Failures Including RSL Exceeded
It includes a couple of registry hacks one I had to amend
PagedPoolSize=dword:ffffffff
and the other I created
PoolUsageMaximum=dword:00000030
once rebooted I found this cleared the problem.
It is worth reading the article first as it is very detailed and then comparing to you issue.
As long as you are careful the fix is not too hard to implement.


How to remove protected object in AD

January 4, 2010



Folder Redirection Error

December 31, 2009

Evenlog

Source     …Folder Redirection

ID     …101

 

To resolve this problem:

    1.    Load the appropriate Group Policy from the domain.

    2.    Click User Configuration, click Windows Setting, and then click Folder Redirection.

    3.    Right-click the appropriate Folder Redirection component, and then click Properties.

    4.    Click the Basic setting in the Target tab, and then under Settings, click to clear the Grant the user exclusive rights to the folder name check box.

    5.    Save the settings, and then quit.


Setup program crashes when you try to install a 2007 Office suite on a 64-bit version of Windows Server 2003

December 25, 2009

To work around this issue, you must run Terminal Services in full security mode. When you run Terminal Services in full security mode, Terminal Server users will have the same permissions as members of the Users group. To do this, follow these steps:

  1. Open Terminal Services Configuration.
  2. Click Server Settings.
  3. Right-click Permission Compatibility, and then click Properties.
  4. Click to select the Full Security check box, and then click OK.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

Alternatively, follow these steps to work around this issue:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Expand HKEY_CLASSES_ROOT, right-click Wow6432Node, point to New, and then click Key.
  3. Right-click the new registry subkey, click Rename, type Installer, and then press ENTER.
  4. Right-click Installer, point to New, and then click Key.
  5. Right-click the new registry subkey, click Rename, type Products, and then press ENTER.
  6. Exit Registry Editor

Linux Bonding Guide

December 24, 2009

http://cha.homeip.net/blog/archives/2007/03/linux_bonding.html


5 Ways To Stop Windows From Beeping

December 24, 2009

This came up twice in the past week at work so I decided to post it. Here’s a few ways to disable the annoying beep in Windows. Works especially well to hush Terminal Services Beeping. I ran this on the clients but it may work for the server as well.

1.
local machine: sc stop beep && sc config beep start= disabled

2.
remote machine: sc \remoteMachine stop beep && sc \remoteMachine config beep start= disabled

3.
requires reboot: Device Manager -> View -> Show Hidden Devices -> Non Plug and Play -> Beep -> Disable

4.
requires reboot: net stop beep

5.
use TweakUI: General > Settings -> Uncheck the Beep on Errors

 

source: http://blog.netnerds.net/2007/05/5-ways-to-stop-windows-vista-xp-2003-from-beeping/