一:打開“開發人員模式”
點擊開始菜單按鈕,選擇“設置”
在設置中選擇“更新和安全”
在菜單中選擇“針對開發人員”,在三個選項中,選中“開發人員模式”
在彈出的警告框中點擊“是”
這樣開發人員模式就打開了
二:安裝並設置賬號
打開“Windows應用商店應用”
下載SUSE Linux Enterprise Server 12
啟動應用SUSE Linux Enterprise Server 12設置用戶及root密碼
第一次啟動會顯示 Installing, this may take a few minutes... 等待幾分鍾后,提示新建用戶名,也可以直接跳過 Installation successful! hhhhaskRegister your SLES to enjoy the full SLES experience. Visit https://www.suse.com/subscriptions/sles/developer/ for free developer subscription. Enter registration code (leave empty to skip registration): 然后提示新建用戶密碼 New password: 提示確認再次輸入密碼 Retype new password: 設置成功后提示更新成功,是否將此密碼設置為root賬戶密碼,“y”確認,其它否 passwd: password updated successfully Use same password for root user? Type "y" to approve, any other key to reject: 輸入“n”后提示輸入root賬戶密碼 Enter root password. New password: 再次輸入密碼 Retype new password: 賬戶設置完成 passwd: password updated successfully Default UNIX user set to: 你設置的用戶名
你的用戶名@DESKTOP-RSRAUIF:~> 注意:用戶名不能與windows系統用戶名相同 /usr/lib64/ruby/2.1.0/open3.rb:193: warning: Insecure world writable dir /mnt/c/ProgramData/Oracle/Java in PATH, mode 040777 command 'dmidecode -s system-uuid' failed Error: SCC returned 'Unknown Registration Code.' (401) 錯誤: 0x80040305 Please create a default UNIX user account. The username does not need to match your Windows username. For more information visit: https://aka.ms/wslusers Enter new UNIX username: 當密碼太短或者太簡單,會提示,但是不影響 BAD PASSWORD: it is too short BAD PASSWORD: is too simple
至此設置完成。