在虚拟机上安装和使用Ubuntu日志

1)下载安装iso文件

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 -L 当前语言 -x 目标编码 文件名
例如要把当前目录下的所有文件都转成utf-8
$enca -L zh_CN -x utf-8 *
 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值