*A main point that didn't reveal under AMI BIOS Setup menu.
If using selfsigned certificate file, the CN(Common Name) must different between RootCA and Server certificate.
目前分類:WorkWithLinux (38)
- Dec 13 Fri 2024 17:28
How to Generate Self-Signed Certificate with SAN Certificate for AMI BIOS HTTPS BOOT
- Dec 13 Fri 2024 15:59
Bind9 DNS Domain Name Pingable Config
遇到一件有趣的事,我們公司買來的source code - AMI MegaRAC要求zone(domain-name) ping得到才能往後nsupdate更新/註冊DNS...
在任何一個Linux或是ASUS BMC(AMI Codebase)不需要這個條件,都能順利註冊DNS
- Nov 26 Tue 2024 18:09
How to Install or upgrade to "latest-Kernel 6.x" / "archived-Kernel 6.y" on CentOS Stream 9 / 8
How to Install or upgrade to "archived-Kernel 6.y" on CentOS Stream 9
6.y = the version of file that who's location is in "archive" folder
- Oct 08 Tue 2024 17:53
Install ipmitool with source of github under CentOS Stream/RHEL
#環境確認:
#確認已安裝的群組套件
- Aug 30 Fri 2024 12:04
After CentOS EOL switch to Vault or Fedora Project EL
剛好工作上需要使用EOL的CentOS,紀錄一下怎麼用
跟設定內網URL資源一樣
- Aug 06 Tue 2024 16:14
kernel: sfc : ERROR: PTP requires MSI-X and 1 additional | Ubuntu | RHEL | CentOS
Under Ubuntu:
root@localhost:~# dmesg | grep -i "error\|fail"
- Aug 01 Thu 2024 15:33
LSA LSI® Storage Authority Software x CentOS Stream 9 啟動失敗 解決辦法 Solution of start success
[root@localhost server]# /etc/init.d/LsiSASH.sh start
Starting LSI Storage Authority: [FAILED]
- Jun 06 Thu 2024 13:40
Linux Serial Console 設置的方法 systemd(systemctl) 跟 grub 的差異
從Systemd(Systemctl)設置:
$ cp /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttyS0.service
- May 30 Thu 2024 15:36
CentOS 7 8 / Stream 8 9 調整 grub default 預設開機選項
- May 07 Tue 2024 10:20
Linux RADVD 設定筆記 | DHCP IPv6
近期接到一個新的任務,要把第三方管理PXE/DHCP/HTTP/DNS的套件Cobbler Setup起來
,起因是美國Team分不清楚Cobbler其實就是Linux原生的PXE
- Nov 23 Thu 2023 15:16
CentOS Stream 8 Kickstart Installation on Server Random Configuration, Install target to unkown first local drive(sdx/nvme/MegaRAID/Intel RAID) | Server Platform
Server Platform config 組合變化的local drive / nic 組合眾多,OS底下的drive name跟nic name不會是固定的名稱 e.g.: Drives Drive controller | Linux name Intel SATA AHCI | sd? Intel RAID(SATA) | md12? Intel NVMe | nvme?n1 Intel VMD(VRoC/NVMe RAID) | md12? Broadcom MegaRAID | sd? (MegaRAID被Broadcom買走了) 我覺得更複雜Nics,不同廠家線路或是BIOS的設計,同樣的網路晶片,有些是eth0有些是eno1... 插卡式的網卡,因為設計不同,名稱也是很多種。 因此kickstart不能指定名稱,不然透過kickstart完成autoinstall的機制會失效。 參數加上 autopart --type=plain/lvm install --firstdisk network --bootproto=dhcp --device=link 就能達成了 不過小缺點是install --firstdisk他選擇drive的順序,跟GUI介面不同 ,會發現當你有一組md12?跟其他sda/nvme0n1的時候,他會選擇sda當優先 ,而不是像GUI介面一樣,md12?為第一個。 本來是想用ignoredisk搭配參數$FirstDrive"在%pre裡面寫我想要的順序去決定安裝在哪個位置 (ignoredisk --only-use=$FirstDrive") 但沒找到一組位置或是指令能快速找出,像GUI介面那樣列出drives,就改天再寫嚕 #version=RHEL8 eula --agreed #ignoredisk --only-use=sda #ignoredisk --only-use=$FirstDrive #autopart --type=lvm # LVM #autopart --type=plain # Standard # Partition clearing information #learpart --all # Use graphical install graphical # Use network installation url --url="http://192.168.20.5/media/centosstream8_20231106/BaseOS" repo --name="AppStream" --baseurl="http://192.168.20.5/media/centosstream8_20231106/AppStream" #Reboot after installing #poweroff reboot # Keyboard layouts keyboard --vckeymap=us --xlayouts='us' # System language lang en_US.UTF-8 # Network information network --bootproto=dhcp --device=link --noipv6 --activate network --hostname=autoinstallcentos.localdomain # Root password rootpw --iscrypted $6$3id.L.tL.snhG07n$d6zBMyC4KF5xWVXeG.LVHKK4SwdhaUwT3yFzbKSLo3MHKhl8x9hndH8Jf58EbG8A6WZw7p6OAWPig6fZ25u3C1 # Run the Setup Agent on first boot #firstboot --enable firstboot --disable # Do not configure the X Window System #skipx # Enable graphical mode as default mode graphical # System services services --enabled="chronyd" # System timezone timezone Asia/Taipei #Create a admin permission user user --groups=wheel --name=test --password=$6$tztHXuZQalUSFe7s$En8AJpHZhUoRgEmOGd.ZigAUKtduUbltI4wF6NIAouzxBKeTDaObnVMqsogM8g70ahN7tI8monGJ7Rj1EyIKc0 --iscrypted --gecos="test" #disable SELinux selinux --disabled #disable firewall firewall --disabled # Run the Setup Agent on first boot #firstboot --disable %packages @^graphical-server-environment @development @file-server @graphical-admin-tools @performance @remote-system-management @rpm-development-tools @system-tools kexec-tools ipmitool fio iperf3 tcl tk gcc-gfortran elfutils-libelf-devel elfutils-libelf tcsh nvme-cli lm_sensors %end %addon com_redhat_kdump --enable --reserve-mb='auto' %end %pre #!/bin/sh echo "autopart --type=plain" > /tmp/part-include echo "# Partition clearing information" >> /tmp/part-include echo "install --firstdisk" >> /tmp/part-include echo "clearpart --initlabel" >> /tmp/part-include echo "clearpart --all" >> /tmp/part-include #echo "ignoredisk --only-use=$FirstDrive" > /tmp/part-include %end %include /tmp/part-include %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end
- Aug 15 Tue 2023 19:39
Setup a Simple FTP with vsftpd and prevent login user jail to system folder under Linux
- May 04 Thu 2023 16:41
Linux OS with iPXE to chain load / imgexec load WDS
2020年第三季,換公司後,發現這邊的PXE是用iPXE,但是沒有WDS,卻有WDT
由於也不太會用到WDS,問了維護管理員同時是TL的同事,他很忙沒空弄,所以一直沒有WDS可以用
- Apr 27 Thu 2023 18:22
Curl 搭配 jq 處理Redfish資料,取得特定欄位的方法
查了一下怎麼拿json格式的裡面的特定資料
詳細請參考Ref
- Apr 24 Mon 2023 14:56
How to Configure Rsyslog Server in CentOS/RHEL 8
- Mar 09 Thu 2023 15:13
Linux Shell / Bash Shell Script 儲存 stdout / stderr 並 同時顯示在 terminal畫面上 且 command $? 符合預期
結論:
( commnad | tee stdout-by-tee.log ) 1> >(tee st-all.log) 2> >(tee stderr.log)
- Feb 08 Wed 2023 17:59
Setup a Simple Useful RADIUS Service for APC / AMI WebUI under CentOS 7 / RHEL 7
1. Install RADIUS Packages
# Online install from command yum
- Jan 19 Thu 2023 00:28
Power Button / Soft Power Off / Chassis Power Soft no work under CentOS 7.xx
- Jan 10 Tue 2023 23:52
LSA black screen | LSI Storage Authority (LSA) shows blank screen under Linux OS (CentOS, RHEL, Ubuntu)
LSI Storage Authority (LSA) shows blank screen under Linux OS (CentOS, RHEL, Ubuntu)
印象中LSA剛出的時候,這問題就存在了