歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在虛擬機上安裝和使用Ubuntu日志

在虛擬機上安裝和使用Ubuntu日志

日期:2017/2/28 15:51:55   编辑:Linux教程

1)下載安裝iso文件 http://www.linuxidc.com/Linux/2012-04/59239.htm

2)執行startx進入圖形界面

3)從Ubuntu上訪問windows文件

位置->連接到服務器,在服務類型中選擇“windows共享”,在服務器中輸入windows計算機的ip地址或計算機名,點擊連接,這樣在系統桌面中就會顯示一個連接到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)切換到安裝用戶,然後執行下列命令關閉虛擬機

sudo shutdown -hP now

7) 安裝deb包

sudodpkg -i package_file.deb

(http://www.debian.org/distrib/packages)

8)配置系統代理

gconf-editor

然後在host和port中填入合適的值後選中use_http_proxy。 這樣以後使用ant的時候可以使用ant -autoproxy就可以利用系統代理的配置

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)查看網絡端口

netstat -natl

11)為apt-get設置http代理
export http_proxy=http://yourproxyaddress:proxyport

12)安裝full版本vim軟件

sudo apt-get install vim

13) 安裝拼音輸入法

請打開終端,並執行以下命令

為了防止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  #設為默認輸入法,一般不需要,除非系統有多個輸入法


14) 在VIM中顯示中文
編輯~/,vimrc,加入如下三行
set encoding=utf-8
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 " 如果你要打開的文件編碼不在此列,那就添加進去
set termencoding=utf-8 15)查看網絡連接端口的進程名稱和ID lsof -n -i 16)安裝文件編碼查看工具
sudo apt-get install enca 安裝後用 enca -f filename

更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2

Copyright © Linux教程網 All Rights Reserved