ubuntu執行exe程式

2021-09-09 01:33:14 字數 2446 閱讀 1569

以採集器舉例:

1、更新源  

sudo apt-get update

sudo apt-get upgrade   

sudo apt-get install python-software-properties   

sudo apt-get install software-properties-common   

2、安裝x-windows  

sudo apt-get install xorg  

3、安裝xfce4桌面環境  

sudo apt-get install xubuntu-desktop  

二、安裝vnc  

1、安裝vnc4server  

sudo apt-get install vnc4server  

2、設定vncserver密碼  

sudo vncserver  

設定密碼:  

確認密碼:  

3、配置vncserver  

vim /root/.vnc/xstartup  

#!/bin/sh  

# uncomment the following two lines for normal desktop:  

# unset session_manager  

# exec /etc/x11/xinit/xinitrc  

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup  

[ -r $home/.xresources ] && xrdb $home/.xresources  

xsetroot -solid grey  

vncconfig -iconic &  

x-terminal-emulator -geometry 80×24+10+10 -ls -title 「$vncdesktop desktop」 &  

x-window-manager &  

xfce4-session &  

重啟vncserver 使配置生效

vncserver -kill :1

sudo vncserver

三、安裝中文支援  

1、安裝中文語言包  

apt-get install language-pack-zh-hant  

2、用vim配置語言環境變數  

vim /etc/environment  

在下面新增如下兩行  

lang=「zh_cn.utf-8″ 

language=「zh_cn:zh:en_us:en」 

3、新增zh_cn.gb2312字符集  

sudo vim /var/lib/locales/supported.d/local 

en_us.utf-8 utf-8  

zh_cn.utf-8 utf-8  

zh_cn.gbk gbk  

zh_cn gb2312  

4、儲存後,執行命令:  

sudo locale-gen  

5、sudo vim /etc/default/locale  

修改為:  

lang="zh_cn.utf-8″ 

language="zh_cn:zh:en_us:en"

6、安裝字型庫  

aptitude install font-manager  

aptitude install ttf-arphic-uming  

aptitude install ttf-arphic-ukai  

aptitude install ttf-wqy-zenhei xfonts-wqy ttf-wqy-microhei  

aptitude install fonts-cwtex-fs  

aptitude install ttf-hanazono  

apt-get install ttf-mscorefonts-installer  

mkfontscale  

mkfontdir  

fc-cache -fv  

四、安裝wine   

1、安裝wine1.8  

sudo add-apt-repository ppa:ubuntu-wine/ppa  

sudo apt-get update  

sudo apt-get install wine1.8 

2、安裝winetricks  

sudo apt-get install winetricks  

3、vnc登陸桌面配置wine安裝.net framework 2.0  

開啟winetricks->selsect the default wineprefix ->確定->install a windows dll or componet->dotnet20->確定   

Ubuntu下如何執行exe

ubuntu下獲取此庫方法 確保有執行許可權 chmod x winetricks 可選 將檔案放在如 usr local bin 的系統資料夾下 安裝 cabextract apt get install cabextract 執行winetricks mfc42 執行到最後 winetricks...

js執行本地exe程式

try catch error 寫入登錄檔 新建read.reg檔案,編寫如下 windows registry editor version 5.00 hkey classes root myprotocol myprotocol protocol url protocol hkey classe...

在ubuntu中執行exe檔案

exe檔案執行是要依靠windows系統的庫,linux系統肯定不支援。不過如果你在linux安裝wine軟體,可以安裝執行一般小型的windows程式。wine的安裝 1.安裝 wine ubuntu 官方自帶了 wine 但是推薦用 winehq 官方提供的最新版本 wine 新版本解決了很多以...