[Ubuntu, Wine, Winetricks] 安裝Wine、Winetricks
若是要將windows的資料傳至vm上的ubuntu,需先安裝ssh並輸入傳輸指令
- sudo apt install ssh openssh-server
- pscp -r "目標資料夾" 使用者名稱@IP:資料夾名稱
- pscp -r C:\Users\neto427\source\repos\contrel_k5_001 ubuntu@192.168.80.135:monoDotNet
- wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
- sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
- sudo apt update
- sudo apt install --install-recommends winehq-stable
- // 安裝相關依賴
- wine --version
由於apt上的winetricks版本過舊,因此要用別的方式去下載安裝最新版
- sudo apt remove winetricks
- //移除舊版winetricks
- sudo wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
- sudo chmod +x winetricks
- //修改為可執行
- sudo mv -v winetricks /usr/local/bin
- //將可執行文件放置在可調用的目錄底下
- wine xxx.exe
- MS.NET4.0 (dotnet40)
- ~/.wine
留言
張貼留言