Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> Windows 技巧

FreeBSD 上運行 Windows 軟體:Wine 完整配置與實戰指南

編輯:Windows 技巧

FreeBSD 最大優勢:無需重開機即可存取其他作業系統分區

安裝其他分區後,讀寫刪除檔案極簡單。若另一系統為 Windows,且安裝 Wine(Windows 模擬器),即可在 FreeBSD 直接運行許多 Windows 應用程式。本文示範在純 FreeBSD 4.3 環境(無 Windows 分區)配置 Wine 運行 Windows 軟體。

安裝 Wine

su
cd /usr/ports/emulators/wine
make install clean

核心配置:確認必要選項


cd /usr/src/sys/i386/conf
cp GENERIC WINE
# 編輯 WINE,確保包含:
options USER_LDT
options SYSVSHM
options SYSVSEM
options SYSVMSG

FreeBSD 4.3 預設已含三 SYS 選項,僅需加 USER_LDT。修改後重編核心:

/usr/sbin/config WINE
cd ../../compile/WINE
make depend && make && make install && reboot

雙啟動機器(FreeBSD + Win98)測試 Wine

  1. 掛載 Windows 分區: mkdir /dos,mount -t msdos /dev/ad0s1 /dos,寫入 /etc/fstab 永久掛載。
  2. 修改 Wine 設定: 編輯 /usr/local/etc/wine.conf,將 [Drive C] 的 Path 改為 /dos。
  3. 複製設定至使用者目錄: mkdir ~genisis/.wine,cp /usr/local/etc/wine.conf ~genisis/.wine/config。
  4. 測試: cd /dos/WINDOWS,wine -winver win98 -managed PROGMAN.EXE 成功啟動程式管理員。
  5. 安裝 Windows 軟體(Solsuite 2001): 下載 solsuite.exe 至 /dos,wine -winver win98 -managed solsuite.exe 安裝,再執行 wine -winver win98 -managed Solsuite.exe 成功運行。
  6. 驗證 Win98 也能運行: 重開機進 Win98,建立捷徑即可啟動同一安裝檔。

純 FreeBSD 機器運行 Windows 軟體

  1. 建立模擬 Windows 目錄結構:/usr/local/lib/win/windows/system,建立空檔 win.ini, shell.dll, shell32.dll, winsock.dll, wsock32.dll。
  2. 修改 wine.conf [Drive C] Path=/usr/local/lib/win。
  3. 複製設定至 root 及使用者目錄。
  4. 下載 solsuite.exe 至 /usr/local/lib/win,安裝並運行,雖速度較慢(硬體較舊),但確能在無 Windows 分區機器上跑 Windows 程式。

Wine 讓 FreeBSD 用戶無需雙啟動即可享用 Windows 應用生態,極大拓展系統實用性。

Copyright © Windows教程網 All Rights Reserved