suselinuxenterpriseserver11sp3版克隆安裝ebsr12.1.3注意事項

胡昜發表於2016-07-31

suse 11版作業系統比較少用,但是目前幾個雲服務商提供的作業系統裡面,只有suse是oracle官方認證的,所以最近幾個採用雲伺服器的ebs環境,作業系統安裝的都是suse 11版,安裝過程裡,存在一些不常見的坑,寫出來供大家參考。
suse目前線上repo不好找,安裝軟體包要下載好作業系統iso,從以下地址下載sp2-sp3 的iso。
http://linux.iingen.unam.mx/pub/Linux/Suse/isos/SLES11/
sp3及以前的sp下載對應版本的iso,下載dvd1就夠了

通過iso安裝軟體包步驟:

  1. 掛載iso
mkdir /mnt/isomount -o loop xxx.iso /mnt/iso
  1. 新增repo
zypper addrepo /mnt/iso sles11sp3iso
  1. 檢查軟體包的安裝情況:
rpm -q binutils compat-32bit libstdc++33 libstdc++33-32bit db1-32bit gcc-4.3 gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit krb5 libaio libaio-32bit libaio-devel libaio-devel-32bit libcom_err2 libgcc46 libgcc_s1 libgcc_s1-32bit libstdc++-devel make openmotif unzip util-linux
  1. 安裝軟體包:
zypper install binutils compat-32bit libstdc++33 libstdc++33-32bit db1-32bit gcc-4.3 gcc-c++ glibc glibc-32bit glibc-devel glibc-devel-32bit krb5 libaio libaio-32bit libaio-devel libaio-devel-32bit libcom_err2 libgcc46 libgcc_s1 libgcc_s1-32bit libstdc++-devel make openmotif21-libs-32bit unzip util-linux

其他軟體包:

  1. compat-32bit在iso中沒有,需要單獨下載
    http://ftp.suse.com/pub/partners/oracle/EBSR12/rpms
  2. openmotif21-32bit 在iso裡面也沒有的,需要單獨下載
    rpm查詢網站
    http://rpm.pbone.net/index.php3/stat/4/idpl/1572004/dir/other/com/openmotif-2.1.30-4_MLI.i386.rpm.html
    下載地址
    ftp://ftp.ntua.gr/pub/X11/openmotif/R2.1.30/binaries/metrolink/openmotif-2.1.30-4_MLI.i386.rpm
    以上版本經測試,suse 11 sp3是可以的。
    需要先安裝以下依賴包
zypper install xorg-x11-libICE-32bit xorg-x11-libSM-32bit xorg-x11-libX11-32bit xorg-x11-libXext-32bit xorg-x11-libXp-32bit xorg-x11-libXt-32bit

安裝rpm

rpm -ivh openmotif-2.1.30-4_MLI.i386.rpm

應用伺服器:

  1. 需要安裝gcc-32bit,否則克隆會失敗,報can not find -lgcc,需要xorg-x11-libs-32bit,否則會報缺失libXtst.so.6錯誤
  2. 需要安裝vnc服務,tightvnc複製應用目錄下apps/tech_st/10.1.2/bin/unzip 到/usr/bin目錄,做之前先備份原來的 unzip
    確定DISPLAY server ,並執行xhost +操作。
vncserver
export DISPLAY=localhost:1
xhost +

資料庫伺服器:

複製應用伺服器的unzip到/usr/bin

剩餘克隆安裝操作與其他linux版本相同,不贅述。


相關文章