2018年8月10日 星期五

yum have "is a duplicate with " message

執行 yum update 時出現 "is a duplicate"訊息

yum-unfinished  

System notify you can try to run some command , but not effective.
   # yum-complete-transaction (再執行yum update後仍 無效  )
   # yum-complete-transaction --cleanup-only  (再執行yum update後仍 無效  )


yum-duplicate








Solve the problem method

List duplicate packages
# package-cleanup –dupes
Delete duplicate packages
# package-cleanup --cleandupes

2018年8月9日 星期四

CentOS on Hyper-V boot miss shim.efi



  1. 載入CentOS 7 iso  , 從光碟開機
  2. 選擇 Troubleshooting 
  3. 選擇 Rescue
  4. 選擇1 continue
  5. 輸入 return 進入 shell 模式
  6. 輸入 chroot /mnt/sysimage
  7. 輸入 efibootmgr --create --label CentOS --disk /dev/sda1 --loader "\EFI\centos\shim.efi"



2017年10月1日 星期日

何謂IAAS

基礎結構即服務 (IaaS) 是透過網際網路部署及管理的立即運算基礎結構。視需求快速地相應增加及減少,並只需支付所使用項目的費用。
IaaS 讓您無須購買及管理自己的實體伺服器及其他資料中心基礎結構,避免其所產生的費用及複雜性。每個資源都作為獨立服務元件提供,而您只需要租用您所需要的項目,租用時間視您所需而定。當您購買、安裝、設定及管理自己的軟體 (包括作業系統、中介軟體與應用程式) 時,雲端服務提供者會管理基礎結構。


截錄自微軟
https://azure.microsoft.com/zh-tw/overview/what-is-iaas/

2017年3月2日 星期四

KMS Server Output all dlv info to TXT file


在KMS主機上,若同時提供多種作業系統的啟用服務,想要知道目前服務的啟用數,透由slmgr /dli all 會超出畫面無法顯示,故方由下列指令,將結果輸出至檔案.

cscript c:\Windows\System32\slmgr.vbs /dli all > c:\file.txt

2016年12月28日 星期三

Windows上刪除IPv6 Default route

刪除電腦上fe80的ipv6 default route

在命令提示字元中,netsh > int > ipv6 >
delete route interface=15 ::/0 fe80::215:17ff:xxxx:xxxx

停用ASA 介面上IPv6 RA功能

在單位內部因本來由ASA防火牆提供IPv6環境,因為VPN需求,又在單位位內部放了一台ASA5580 設備做為VPN伺服器,導致在單位內的電腦會收到2筆fe80的default IPv6 Route, 其中一筆是由ASA 5580發出的.

解決方式:

在介面上加入 ipv6 nd suppress-ra
interface GigabitEthernet3/0
 nameif Outside
 security-level 0
 ip address 1x0.1xx.3.200 255.255.255.0
 ipv6 address 2001:288:xx01:x::200/64
 ipv6 enable




  ra-interval          Set IPv6 Router Advertisement Interval
  ra-lifetime          Set IPv6 Router Advertisement Lifetime
  reachable-time       Set advertised reachability time
  suppress-ra          Suppress IPv6 Router Advertisements

參考http://www.cisco.com/c/en/us/td/docs/security/asa/asa81/command/ref/refgd/i3.html

2016年7月10日 星期日

如何將系統mail資訊轉發至其他mail

/etc/aliases

增加
root: user@example.com


/etc/log.d/logwatch.conf
增添加MailTo = root,xxx@xxx.com