安裝其他分區後,讀寫刪除檔案極簡單。若另一系統為 Windows,且安裝 Wine(Windows 模擬器),即可在 FreeBSD 直接運行許多 Windows 應用程式。本文示範在純 FreeBSD 4.3 環境(無 Windows 分區)配置 Wine 運行 Windows 軟體。
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
mkdir /dos,mount -t msdos /dev/ad0s1 /dos,寫入 /etc/fstab 永久掛載。/usr/local/etc/wine.conf,將 [Drive C] 的 Path 改為 /dos。mkdir ~genisis/.wine,cp /usr/local/etc/wine.conf ~genisis/.wine/config。cd /dos/WINDOWS,wine -winver win98 -managed PROGMAN.EXE 成功啟動程式管理員。solsuite.exe 至 /dos,wine -winver win98 -managed solsuite.exe 安裝,再執行 wine -winver win98 -managed Solsuite.exe 成功運行。/usr/local/lib/win/windows/system,建立空檔 win.ini, shell.dll, shell32.dll, winsock.dll, wsock32.dll。wine.conf [Drive C] Path=/usr/local/lib/win。solsuite.exe 至 /usr/local/lib/win,安裝並運行,雖速度較慢(硬體較舊),但確能在無 Windows 分區機器上跑 Windows 程式。Wine 讓 FreeBSD 用戶無需雙啟動即可享用 Windows 應用生態,極大拓展系統實用性。