2009年4月15日星期三

ubuntu自动登录

修改 /etc/gdm/gdm.conf
AutomaticLoginEnable=true
AutomaticLogin=root

这个真是太有用了。今天安装ubuntu时由于键盘布局的问题造成无法登录,只好用live USB重启,在/media下找到硬盘上的安装版,修改后就可以登录进去了。

2009年4月12日星期日

ubuntu软件的卸载和安装

http://www.cppblog.com/tx7do/archive/2007/05/07/23571.html

方法一:可以用终端安装或卸载软件。
方法二:用系统自带的“新立得软件包管理器”

在终端里
安装软件 apt-get install softname1 softname2 softname3……
卸载软件 apt-get remove softname1 softname2 softname3……
卸载并清除配置 apt-get remove --purge softname1
更新软件信息数据库 apt-get update
进行系统升级 apt-get upgrade
搜索软件包 apt-cache search softname1 softname2 softname3……

安装deb软件包 dpkg -i xxx.deb
删除软件包 dpkg -r xxx.deb
连同配置文件一起删除 dpkg -r --purge xxx.deb
查看软件包信息 dpkg -info xxx.deb
查看文件拷贝详情 dpkg -L xxx.deb
查看系统中已安装软件包信息 dpkg -l
重新配置软件包 dpkg-reconfigure xxx


在“新立得”里
搜索,输入软件名
在需要安装或卸载的软件上右击-点标记-最后点应用

blogger daily 04/12/2009


Posted from Diigo. The rest of my favorite links are here.

2009年4月11日星期六

Ubuntu下安装软件的一般方式

1. sudo apt-cache search xxx
2. sudo apt-get install xxx

Ubuntu下安装fcitx中文输入法

1.  安装输入法软件 sudo apt-get install im-switch fcitx
2.  设置fcitx为缺省输入法 im-switch -s fcitx -z default
3. 为root用户设置缺省输入法 sudo im-switch -s fcitx -z default
4. (可选) 安装中文语言包 系统->系统管理 ->语言支持,选择汉语(中国)
5. 中文输入法的候选字浮动窗口显示方块乱码,原因是缺少字体支持
    a. 打开 ~/.fcitx/config  ,找到这一行“显示字体(中)=*”。原因就出在这里,这表示使用缺省字体. 使用fc-list 查看你安装了什么字体,我设置为”显示字体(中)=AR PL SungtiL GB“就可以了
    b. 上一步在打开 ~/.fcitx/config时也有可能是乱码,是因为fcitx只能认gb2312的config.如果你用gedit,请不要双击打开config,而是打开gedit后再打开,打开时选择编码为gb2312.