Try   HackMD

如何利用Ubuntu自架KMS server實現客家精神

使用程式

安裝

右鍵開啟Terminal,輸入指令

wget https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz

沒有wget指令的話請先使用以下指令安裝
sudo apt-get wget -y

解壓縮剛剛下載的檔案

tar -xzvf binaries.tar.gz

在桌面上新增資料夾kms-server

mkdir kms-server

進入對應的系統目錄

cd binaries/Linux/intel/static

選擇文件並移動到剛剛創建的資料夾內

mv vlmcsdmulti-x64-musl-static ~/Desktop/kms-server/

為檔案增加可執行權限

sudo chmod u+x ~/Desktop/kms-server/

執行程式,沒出現錯誤代表成功執行

~/Desktop/kms-server/vlmcsdmulti-x64-musl-static  vlmcsd

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Windows驗證

輸入以下指令,並另存為bat檔

cd /d "%SystemRoot%\system32"
slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX //我這是放Win10 pro的金鑰,需要其他版本請至頁底的金鑰頁面尋找對應版本金鑰輸入
slmgr.vbs -skms <ubuntu的IP>
slmgr.vbs -ato
slmgr.vbs /xpr

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

查詢ubuntu Ip address
輸入指令ip add
網卡通常名稱會叫做ens33

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

完成後使用系統管理員執行,執行後會跳出以下視窗,跑完後驗證成功

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

完成後可透過指令查詢授權狀態,如果以後有需要重新授權的話可以再次開啟ubuntu及其程式驗證

slmgr.vbs -dlv

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Office驗證

同理,輸入以下指令,並另存為bat檔,以系統管理員執行

cd <office目錄,比如C:\Program Files\Microsoft Office\Office15>
cscript ospp.vbs /inpkey:<office對應版本的金鑰>
cscript ospp.vbs /sethst:<Ubuntu的IP>
cscript ospp.vbs /act

金鑰github page

http://wind4.github.io/vlmcsd/