跳轉到內容
View in the app

A better way to browse. Learn more.

PHP論壇人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Windows VPS 改DD為Linux

精選回覆

發表於

Windows VPS 改DD為Linux

主機商打折優惠原因,讓 Linux、Windows VPS 價格差不多,但硬體配置卻是2倍差異,這CP值很高

雖然 Windows VPS 改DD為Linux步驟比較多一些

---------------------

遠端桌面連線

---------------------

在你的Windows 10、Windows 11 電腦桌面上,敲 Windows鍵 + R

在執行框,輸入 mstsc,按確定,開啟遠端桌面連線

1.png

2.png

遠端桌面連線 -> 輸入 Windows VPS 的IP

3.png

使用者名稱 -> 輸入 Administrator -> 按下 連線

4.png

輸入您的認證 -> 該Windows VPS的Administrator的密碼 -> 記住我 -> 確定

5.png

---------------------

憑證錯誤

---------------------

您要連線而不管這些憑證錯誤嗎?

[v] 不要再詢問我是否要連線到這部電腦

-> 是

6.png

-----------------------

服務器管理器 儀表板

-----------------------

關閉儀表板,一些選項不用理它,主要是盡快做DD Linux

7.png

----------------------------------

在Windows VPS的瀏覽器下載腳本

----------------------------------

開啟瀏覽器,輸入以下網址

https://github.com/bin456789/reinstall

點擊 <Code> 按鈕 -> 點擊 Download ZIP

8.png

9.png

下載完成後,在瀏覽器旁,打開它

10.png

reinstall-main -> 回上一頁 -> 滑鼠右鍵 -> 全部解壓縮

11.png

解壓縮後的 reinstall-main 資料夾 -> 點擊進入 -> 點擊 reinstall.bat

12.png

  • 樓主

Microsoft Defender SmartScreen 阻止運行

會被 Microsoft Defender SmartScreen 阻止運行 -> 更多信息 -> 仍要運行

13.png

彈出 Windows 安全中心 -> 在此框點擊2次 -> 即可進入 Windows 安全中心

14.png

15.png

"病毒和威脅防護" 設置 -> 管理設置 ->

實時保護 -> 關

雲提供的保護 -> 關

16.png

回到 reinstall-main 資料夾 -> 點擊進入 -> 點擊 reinstall.bat

就會自動安裝 Cygwin

17.png

安裝完成後,在桌面可以看到 Cygwin64 Terminal

18.png

點擊 桌面下方的文件資源管理器 -> 下載 -> 點擊 reinstall-main 文件夾 -> 進入 -> 因為有兩層 reinstall-main 文件夾,只需要最裡面一層的reinstall-main 文件夾 -> Copy reinstall-main 文件夾

此電腦 -> C: -> cygwin -> home 文件夾

將 reinstall-main 文件夾,複製貼上到 home 文件夾

19.png

Windows桌面可以看到 Cygwin64 Terminal

點擊並開啟 Cygwin64 Terminal

20.png

依次敲入命令

ls

cd home

ls

cd reinstall-main

ls

21.png

-----------------------------------------------

開始下DD Linux命令

-----------------------------------------------

承上,終於來到DD Linux命令的步驟

bash reinstall.sh debian 12 --password 自定義你要的密碼 --ssh-port 22

22.png

開始下載,完成後,將顯示

***** INFO *****

debian 12

Username: root

Password: 前面你自己設置的密碼

Reboot to start the installation.

23.png

將Windows VPS 重開機

24.png

25.png

在你的電腦 -> 到瀏覽器的主機商頁面,觀看這VPS主機的noVNC

就能看到已開始DD Linux的過程

26.png

此DD脚本還有一些參數,可在此找到說明

https://github.com/bin456789/reinstall

建立帳號或登入後發表意見

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.