antony@notes:~/suse$ cat "全離線安裝-SUSE-Manager-Server-4.3.md"
全離線安裝 SUSE Manager Server 4.3
全離線安裝 SUSE Manager Server 4.3
Preface
本篇文章會在全離線的環境下建置 SUSE Manager Server
可以透過點擊以下目錄,選擇想看的內容,跳轉至特定章節
:::warning
:::spoiler {state=“open”} 目錄
[TOC]
:::
1. 架構說明

- SUSE Manager Server 會透過 Http Proxy Server 上網到
scc.suse.com或updates.suse.com下載 Packages
2. 安裝與設定 Http Proxy Server
2.1. 安裝 Http Proxy Server
$ sudo zypper -n install squid此套件放在
sle-module-server-applicationsPackages Repository
2.2. 啟動 Squid 服務,並設為開機自動啟動
$ sudo systemctl enable --now squid2.3. 檢查 Squid 運作是否正常
$ sudo systemctl status squid.service螢幕輸出 :
● squid.service - Squid caching proxy
Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2024-01-09 16:43:05 CST; 53s ago
Docs: man:squid(8)
Process: 5502 ExecStartPre=/usr/lib/squid/initialize_cache_if_needed.sh (code=exited, status=0/SUCCESS)
Process: 5506 ExecStart=/usr/sbin/squid -FC (code=exited, status=0/SUCCESS)
Main PID: 5507 (squid)
Tasks: 4
CGroup: /system.slice/squid.service
├─ 5507 /usr/sbin/squid -FC
├─ 5509 "(squid-1)" --kid squid-1 -FC
├─ 5510 "(logfile-daemon)" /var/log/squid/access.log
└─ 5511 "(pinger)"
Jan 09 16:43:05 http-proxy systemd[1]: Starting Squid caching proxy...
Jan 09 16:43:05 http-proxy squid[5507]: Squid Parent: will start 1 kids
Jan 09 16:43:05 http-proxy systemd[1]: Started Squid caching proxy.
Jan 09 16:43:05 http-proxy squid[5507]: Squid Parent: (squid-1) process 5509 started
squid服務應顯示loaded並且是active (running)
2.4. 使用 Squid 檢測
$ sudo squid -k check | echo $?螢幕輸出 :
02.5. 將 Squid 用來監聽客戶端請求的通訊連接埠改成 8080
$ sudo sed -i 's|http_port 3128|#http_port 3128|g' /etc/squid/squid.conf
$ sudo sed -i "62ihttp_port 8080" /etc/squid/squid.conf
http_port PORT,這是 Squid 用來監聽客戶端請求的通訊連接埠。預設連接埠為3128
2.6. 允許本機系統和其他系統的使用者存取 Squid 和上網
$ sudo sed -i 's|http_access deny all|#http_access deny all|g' /etc/squid/squid.conf
$ sudo sed -i '59ihttp_access allow all' /etc/squid/squid.conf2.7. Reload Squid
$ sudo systemctl reload squid.service2.8. 啟動防火牆
$ sudo systemctl enable --now firewalld.service2.9. 設定防火牆允許 squid 服務
$ sudo firewall-cmd --add-port=8080/tcp --permanent
$ sudo firewall-cmd --reload2.10. 再其他台機器測試是否開 8080 TCP Port
$ nc -w 1 192.168.11.195 8080; echo $?螢幕輸出 :
02.11. 在本機測試是否能夠透過 squid 上網
$ squidclient -p 8080 https://www.google.com螢幕輸出 :
HTTP/1.1 200 OK
Date: Tue, 09 Jan 2024 14:04:15 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-MQHNqGlQrWDv6h0C8DvUjQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Set-Cookie: 1P_JAR=2024-01-09-14; expires=Thu, 08-Feb-2024 14:04:15 GMT; path=/; domain=.google.com; Secure
Set-Cookie: AEC=Ae3NU9NHgU8wktpInxIwHf7c1B1M8ESd01oaq_xA3akE34sUyfSmsb_WEio; expires=Sun, 07-Jul-2024 14:04:15 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
Set-Cookie: NID=511=UTGSPeCwlOe_nlA6TIA4Ldko2xAj7kUY17QYZrRkxm_DsBhBWII92LzmU3Pz9I69NYktFhoJpYZI3lZL3BFTzJKu33M9qVM9bWjkl0H6FjGTjlE0XJJB3As9TBbgQ1ywcvgtVeSpr1_nvZ3wE4jnKb566WLgpKVfhLf-csMnzJQ; expires=Wed, 10-Jul-2024 14:04:15 GMT; path=/; domain=.google.com; HttpOnly
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Accept-Ranges: none
Vary: Accept-Encoding
X-Cache: MISS from http-proxy
X-Cache-Lookup: MISS from http-proxy:8080
Via: 1.1 http-proxy (squid/5.7)
Connection: close
...以下省略3. 安裝與設定 SUSE Manager Server
3.1. 安裝要求
Hardware
- CPU:
- Minimum
4dedicated 64-bit CPU cores (x86-64)
- Minimum
- Mem:
- Test or Base Installation
- Minimum
16GB
- Minimum
- Production Server
- Minimum
32GB
- Minimum
- Test or Base Installation
- Disk:
/(root directory)- Minimum
40GB
- Minimum
/var/lib/pgsql- Minimum
50GB
- Minimum
/var/spacewalk- Minimum storage required:
100GB (this will be verified by the implemented check) 50GB for each SUSE product and Package Hub360GB for each Red Hat product
- Minimum storage required:
/var/cache- Minimum
10GB. Add 100 MB per SUSE product, 1 GB per Red Hat or other product. Double the space if the server is an ISS Master.
- Minimum
Swap space- 3 GB
Operating System
- SUSE Linux Enterprise Server 15 SP4
- ISO:
SLE-15-SP4-Full-x86_64-QU3.1-Media1.iso
3.2. 開始安裝 SUSE Manager Server
3.2.1. 啟動 SUSE Manager Server 所在的 VM
3.2.2. 選擇 Installation

3.2.3. 選擇要安裝的 Product: SUSE Manager Server 4.3

3.2.4. 同意 SUSE Manager Server 4.3 的 Licence

3.2.5. 點選右上角,網路設定

3.2.6. 點選 edit 設定 IP Address

3.2.6.1. 設定 Static IP
- 勾選
Statically Assigned IP Address - IP Address 欄位輸入:
<IP> - Subnet Mask 欄位輸入:
/24 - Hostname 欄位輸入:
suma.example.com






































