在虛擬機(jī)上安裝和使用Ubuntu日志
這里教大家在虛擬機(jī)上安裝和使用Ubuntu日志。以下是具體操作步驟:
1)下載安裝iso文件http://www.linuxeden.com/html/versionupdate/2012/04/123480.html
2)執(zhí)行startx進(jìn)入圖形界面
3)從Ubuntu上訪問windows文件
位置->連接到服務(wù)器,在服務(wù)類型中選擇“windows共享”,在服務(wù)器中輸入windows計(jì)算機(jī)的ip地址或計(jì)算機(jī)名,點(diǎn)擊連接,這樣在系統(tǒng)桌面中就會(huì)顯示一個(gè)連接到windows 計(jì)算機(jī)的文件卷,里面就是windows計(jì)算機(jī)的共享目錄了。
同樣在訪問的時(shí)候要輸入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)增加一個(gè)普通用戶
sudo adduser dev -home /home/dev
5)將最大化,最小化和關(guān)閉的按鈕從窗口的左上角移動(dòng)到右上角
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í)行下列命令關(guān)閉虛擬機(jī)
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的時(shí)候可以使用ant -autoproxy就可以利用系統(tǒng)代理的配置
9) 顯示所有文件
按下 Ctrl+H 在文件瀏覽器窗口, 所有隱藏的文件會(huì)被顯示。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)絡(luò)端口
netstat -natl
11)為apt-get設(shè)置http代理
export http_proxy=http://yourproxyaddress:proxyport
12)安裝full版本vim軟件
sudo apt-get install vim
13) 安裝拼音輸入法
請(qǐng)打開終端,并執(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-sunpinyinsudo apt-get install fcitx-table-all #同時(shí)安裝其他碼表im-switch -s fcitx -z default #設(shè)為默認(rèn)輸入法,一般不需要,除非系統(tǒng)有多個(gè)輸入法
14) 在VIM中顯示中文
編輯~/,vimrc,加入如下三行
set encoding=utf-8
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1" 如果你要打開的文件編碼不在此列,那就添加進(jìn)去
set termencoding=utf-8
15)查看網(wǎng)絡(luò)連接端口的進(jìn)程名稱和ID
lsof -n -i
16)安裝文件編碼查看工具
sudo apt-get install enca
安裝后用
enca -f filename