antony@notes:~/suse$ cat "Install-SUSE-Linux-Enterprise-Server-15-SP5.md"
Install SUSE Linux Enterprise Server 15 SP5
Install SUSE Linux Enterprise Server 15 SP5
Preface
本篇文章會介紹,
- 如何安裝 SUSE Linux Enterprise Server 15 SP5
可以透過點擊展開以下目錄,選擇想看的內容,跳轉至特定章節
:::warning
:::spoiler 文章目錄
[TOC]
:::
下載安裝 SLES 的 ISO 檔
使用以下來源網站的 SLE-15-SP5-Full-ARCH-GM-media1.iso image 安裝,可以不用先註冊且安裝時不用上網
SLE ISO 檔名介紹
SLE-15-SP5-Full-x86_64-GM-Media1.iso
- SLE,代表 “SUSE Linux Enterprise” 的縮寫
- 15,是主要的版本
- SP5,代表 Service Pack 更新到第五版
Service Pack(服務包)是指一個包含了多個軟體更新和補丁的集合,用於更新 SUSE Linux 版本。這些更新和補丁通常包括新的功能、修正錯誤、改善安全性等。
- Full,表示可以全離線安裝; 跟它相反的是 online ,意思是需要能上網才能成功安裝作業系統
- GM(General Media),首次發行時提供的套件(package),建議第一次安裝時,使用此版本; 與之不同的是 QU(Quarterly Updated) ,它包含初始版本發布時的套件,再加上所有的維護更新套件,當你需要再安裝後立即獲得最新更新的安裝版本,就選擇 QU
Feature GM QU packages 的版本 首次發行時提供的套件 初始版本發布時的套件,再加上所有的維護更新 建議使用 對於第一次安裝 對於需要立即取得最新更新的安裝 兩種版本的安裝過程是相同的。
- “x86_64” 的文件適用於 AMD64 和 Intel* 64 平台。
- 名稱中帶有“s390x”的文件適用於 IBM* z System 或 LinuxONE
- 名稱中帶有“ppc64le”的文件適用於 IBM* Power LE 平台
- 名稱中帶有“aarch64”的文件適用於 Arm* 64 平台
- Media1,代表在安裝過程中,會包含需要的二進制套件的檔案。
- Media2,通常 SLES 安裝媒體會分成多個部分,例如 DVD 或 USB 隨身碟。Media2 就是其中的第二個部分,包含了額外的軟體套件、驅動程式或其他擴充功能。這些額外的內容不會包含在主要的安裝媒體中,因此如果需要安裝這些額外的軟體或功能,就需要使用 Media2。
System Requirements
Minimum Linux server system requirements for installation
- Local installation: 1024 MiB RAM, 512 MiB Swap recommended
- 2 GiB available disk space (more recommended, 8.5 GiB for all patterns)
- 32 GiB for snapshot/rollback of the OS
Recommendations for specific uses
- 1 GiB to 8 GiB RAM, at least 512 MiB per CPU
- 8 GiB hard-disk space, 32 GiB for snapshot/rollback of the OS
- Network interface
Boot options
- 多個設定之間是用一個空格做分隔

設定網路
$ ifcfg=*="IPS_NETMASK,GATEWAYS,NAMESERVERS,DOMAINS"實際 :
ifcfg=eth0="192.168.11.11/24,192.168.11.253,192.168.11.85,example.com"設定主機名稱
$ hostname=host.example.com實際 :
hostname=test.example.com開始安裝 SLES 15 SP5
Step1: Language, keyboard, and product selection
- 選擇 “SUSE Linux Enterprise Server 15 SP5”

Step2: License agreement
- 勾選同意

Step3: Network settings
點選右上角的 “Network Configuration” 按鈕

點擊 “Edit”

點擊 “Statically Assigned IP Address”
- IP Address 輸入
一個 IP Address( Example:192.168.61.11) - Subnet Mask 輸入
/24 - Hostname 輸入
rmt-server - 點擊 “Next”

- IP Address 輸入
點擊 “Hostname/DNS”
- Static Hostname 輸入
rmt-server - Name Server 1 輸入
DNS Server IP Address( Example:8.8.8.8)
- Static Hostname 輸入
點擊 “Routing”
- 點擊 “Add”
- Gateway 輸入
Gateway IP Address( Example:192.168.61.2) - 點擊 Device 的下拉選單,選擇網路卡 ( Example:
eth0) - 點擊 “OK”

- Gateway 輸入
- 點擊 “Add”
確認網路設定完畢後,點擊 “Next”

Step4: Registration
- 點擊 “Skip registration”
- 點擊 “Next”

Step5: Extension and module selection
- 勾選要安裝的 module
- Containers Module
- Legacy Module
- 選好後,點擊 “Next”

Step6: Add-on product
- 如果要新增 Software 安裝來源可以點 “Add”
- 沒有的話,點擊 “Next”

Step7: System role
- 使用預設 “Text Mode”
- 直接點擊 “Next”

Step8: Suggested partitioning
點擊 “Export Paritioner” 展開下拉式選單
- 點擊 “Start with Current Proposal”

- 點擊 “Start with Current Proposal”
點擊 “sda4”,刪除 swap 空間
- 點擊 “Delete”
- 點擊 “Yes”

點擊 “sda3”,刪除
/home- 點擊 “Delete”
- 點擊 “Yes”

點擊 “sda2”
- 點擊 “Device”
- 點擊 “Resize”
- 選擇 “Maximum Size”
- 點擊 “Next”

- 點擊 “Device”
點擊 “Add Subvolume”
- Path 輸入
@/home
- Path 輸入
確認硬碟都規劃好以後,點擊 “Accept”

再次確認,點擊 “Next”

Step9: Clock and time zone
- 點地圖上台灣的位置
- 點擊 “Next”

Step10: Local user
- User’s Full Name 輸入
使用者名稱( Example:test) - Username 輸入
使用者名稱( Example:test) - Password 輸入
使用者密碼( Example:test123) - Confirm Password 輸入
使用者密碼( Example:test123) - 勾選 “Use this password for system administrator”
- 點擊 “Next”

Step11: Installation settings
Firewall will be enabled 點擊 “disable”
點擊 “Install”

Confirm Installation
- 點擊 “Install”

- 點擊 “Install”
Step12: The installation process

Step13: 訂閱 SLES 15
$ sudo SUSEConnect -e "Your Email" -r "Registration Code"螢幕輸出 :
Using E-Mail:antony.chen@suse.com Announcing system to https://scc.suse.com ... Activating SLES 15.5 x86_64 ... -> Adding service to system ... Activating sle-module-basesystem 15.5 x86_64 ... -> Adding service to system ... -> Installing release package ... Activating sle-module-server-applications 15.5 x86_64 ... -> Adding service to system ... -> Installing release package ... Successfully registered system
Step14: Update Installed Packages
- Refersh SUSE repository from the Internet or local server
$ sudo zypper refresh螢幕輸出 :
Retrieving repository 'SLE-Module-Basesystem15-SP5-Pool' metadata .............................................[done]
Building repository 'SLE-Module-Basesystem15-SP5-Pool' cache ..................................................[done]
Retrieving repository 'SLE-Module-Basesystem15-SP5-Updates' metadata ..........................................[done]
Building repository 'SLE-Module-Basesystem15-SP5-Updates' cache ...............................................[done]
Retrieving repository 'SLE-Product-SLES15-SP5-Pool' metadata ..................................................[done]
Building repository 'SLE-Product-SLES15-SP5-Pool' cache .......................................................[done]
Retrieving repository 'SLE-Product-SLES15-SP5-Updates' metadata ...............................................[done]
Building repository 'SLE-Product-SLES15-SP5-Updates' cache ....................................................[done]
Retrieving repository 'SLE-Module-Server-Applications15-SP5-Pool' metadata ....................................[done]
Building repository 'SLE-Module-Server-Applications15-SP5-Pool' cache .........................................[done]
Retrieving repository 'SLE-Module-Server-Applications15-SP5-Updates' metadata .................................[done]
Building repository 'SLE-Module-Server-Applications15-SP5-Updates' cache ......................................[done]
All repositories have been refreshed.- upgrade all installed packages on SUSE Linux system
$ sudo zypper update
sudo zypper list-updates,可以檢查有哪些套件需要更新
- Reboot the system
$ sudo reboot可能會需要的安裝套件
安裝 nano
$ wget -q https://download.opensuse.org/repositories/editors/openSUSE_Leap_15.4/x86_64/nano-7.2-lp154.179.1.x86_64.rpm && sudo rpm -i nano-7.2-lp154.179.1.x86_64.rpm && rm nano-7.2-lp154.179.1.x86_64.rpm參考網址: https://software.opensuse.org/download/package?package=nano&project=editors
安裝 ping
$ sudo zypper in -y iputilsRepository : sle-module-basesystem Description : This package contains some small network tools for IPv4 and IPv6 like rdisc, ping, arping and tracepath.
安裝 Yast 的 Network modules
$ sudo zypper in -y yast2-networkRepository : sle-module-basesystem Description : This package contains the YaST2 component for network configuration.
安裝 sudo
$ sudo zypper in -y sudoRepository : sle-module-basesystem
安裝 wget
$ sudo zypper in -y wgetRepository : sle-module-basesystem
安裝 Netcat
$ sudo zypper in -y netcat-openbsdRepository : sle-module-basesystem
安裝 ifconfig, route
$ sudo zypper in -y net-tools-deprecatedRepository : sle-module-basesystem Description : This package contains the deprecated network utilities arp, ifconfig, netstat and route,which have been replaced by tools from the iproute2 package: * arp -> ip [-r] neigh * ifconfig -> ip a * netstat -> ss [-r] * route -> ip r