如何在虛擬機上安裝、使用Ubuntu日志?
1)下載安裝iso文件 http://www.linuxeden.com/html/versionupdate/2012/04/123480.html
2)執(zhí)行startx進入圖形界面
3)從Ubuntu上訪問windows文件
位置->連接到服務器,在服務類型中選擇“windows共享”,在服務器中輸入windows計算機的ip地址或計算機名,點擊連接,這樣在系統(tǒng)桌面中就會顯示一個連接到windows 計算機的文件卷,里面就是windows計算機的共享目錄了。
同樣在訪問的時候要輸入smb的用戶名和密碼。
或者使用下列命令加載:
mount -t smbfs -o iocharset=uft8,codepage=cp936,clmask=777,fmask=777,userneme=[username],password=[password] //192.168.0.1/share /mnt/diskD
4)增加一個普通用戶
sudo adduser dev -home /home/dev
5)將***化,最小化和關閉的按鈕從窗口的左上角移動到右上角
Press Alt+F2 to bring up the Run Application dialog box, enter “gconf-editor” in the text field, and click on Run.
navigate to apps/metacity/general
change the value of button_layout to "menu:minimize,maximize,close"
6)切換到安裝用戶,然后執(zhí)行下列命令關閉虛擬機
sudo shutdown -hP now
7) 安裝deb包
sudodpkg -i package_file.deb
(http://www.debian.org/distrib/packages)
8)配置系統(tǒng)代理
gconf-editor
然后在host和port中填入合適的值后選中use_http_proxy。 這樣以后使用ant的時候可以使用ant -autoproxy就可以利用系統(tǒng)代理的配置
9) 顯示所有文件
按下 Ctrl+H 在文件瀏覽器窗口, 所有隱藏的文件會被顯示。Fairly useful shortcut key. If you would just prefer to make this be the default setting when using file browser, go to the Edit menu and select Preferences: Check the “Show hidden and backup files” checkbox, and you should now see the hidden files all of the time.
10)查看網(wǎng)絡端口
netstat -natl
11)為apt-get設置http代理
export http_proxy=http://yourproxyaddress:proxyport
12)安裝full版本vim軟件
sudo apt-get install vim
13) 安裝拼音輸入法
請打開終端,并執(zhí)行以下命令
為了防止scim與fcitx沖突,如果你安裝了scim,你***卸載掉scim(有一次我的fcitx莫名其妙無法上屏,卸載掉就正常了): sudo apt-get purge scim
sudo add-apt-repository ppa:fcitx-team/stable #***的版本都不需要 sudo apt-get update sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin
sudo apt-get install fcitx-table-all #同時安裝其他碼表
im-switch -s fcitx -z default #設為默認輸入法,一般不需要,除非系統(tǒng)有多個輸入法
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 " 如果你要打開的文件編碼不在此列,那就添加進去
set termencoding=utf-8
sudo apt-get install enca
【編輯推薦】