摘要: 设置/etc/environment:LANG=zh_CN.UTF-8 #This will enable Chinese inputLC_MESSAGES=en_US.UTF-8 #This will let UI shows English still 阅读全文
posted @ 2010-03-18 21:52 考拉留 阅读(251) 评论(0) 推荐(0) 编辑
摘要: When I was trying to start a Android Virtual Device today, the Android SDK window was surprisely closed with the Java exception message shown in terminal:java.awt.AWTError Assistive Technology not fou... 阅读全文
posted @ 2010-03-01 15:00 考拉留 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: 添加一个新用户:$useradd --password <password> <user name>禁用(lock)一个用户:$usermod -L <user name>这条命令的作用就是在/etc/shadow对应的行的第二项的开始处插入感叹号:small:!<small's password>:..... 删除一个登录帐户:$userdel -... 阅读全文
posted @ 2010-02-22 21:01 考拉留 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 从MySql官网上下载rpm并且安装(注意要安装两个包,一个是server;一个是client,里面包含了诸如mysqladmin这样的程序)。安装完毕之后,请先启动数据库:$ /etc/init.d/mysqld start这个时候数据库是可以匿名访问的,并且只有一个名为test的DB。需要进一步设置,请运行mysql_secure_installation,它会帮你设置诸如密码等事项。运行这个... 阅读全文
posted @ 2010-02-15 19:57 考拉留 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 据说所有版本的Linux因为版权的原因,默认都没有安装mp3encoder。要enable mp3,需要安装如下两个package:gstreamer-plugins-bad #contains plug-ins which have license issues(not LGPL), and also not fully-tested.gstreamer-plugins-ugly #well-w... 阅读全文
posted @ 2010-02-15 13:57 考拉留 阅读(5477) 评论(1) 推荐(1) 编辑
摘要: 今天在机器上部署了wine,并在wine上安装了emule(Windows版本)。为了使用emule内置的浏览器,通过yum安装了xulrunner。结果重新启动后,无法使用firefox:Could not find compatible GRE version between 1.9.0.5 and 1.9.0.5解决:1。 运行xulrunner --register-global来注册刚安... 阅读全文
posted @ 2010-02-14 23:42 考拉留 阅读(1717) 评论(0) 推荐(0) 编辑
摘要: 在Linux中目前至少找到三个配置文件和host name有关,容易混淆:1. /etc/host.conf: 这个是Linux的resolver(网络地址解析器?)的配置文件. 常见的内容是:order hosts,bind它的含义是, 在解析IP地址的时候,按照先搜索/etc/hosts文件,后发送DNS请求的方式来进行.2. /etc/hosts: 在Berkly Internet Name... 阅读全文
posted @ 2010-02-12 15:15 考拉留 阅读(2529) 评论(0) 推荐(0) 编辑
摘要: 这两天在用CentOS的时候,输入sudo命令后要等待很久才开始真正的执行, 感觉像是被网络timeout之类的咚咚卡住了似的。解决方法:1。使用hostname指令找到当前主机名2。vi /etc/hosts修改:127.0.0.1 <hostname> localhost.localdomain localhost同时man hosts了一把,得到为数不多的信息:/etc/host... 阅读全文
posted @ 2010-02-12 10:49 考拉留 阅读(1519) 评论(2) 推荐(1) 编辑
摘要: 常用:export PS1="\[\e[32m\][\u@\h \w]$\[\e[m\]" #将PS1设置成绿色export PS1="\[\e[32;1m\][\u@\h \w]$\[\e[m\]" #将PS1设置成绿色并加粗解释: 我们可以通过设置PS1变量使提示符成为彩色。在PS1中设置字符序列颜色的格式为: \[\e[F;Bm\] 其中``F''为字体颜色,编号30~37;``B''为背景... 阅读全文
posted @ 2010-02-12 10:43 考拉留 阅读(1253) 评论(0) 推荐(0) 编辑
摘要: 1。 问题的产生:使用fdisk创建新分区/dev/sda8, 然后用mkfs -t ext3 -c /dev/sda8格式化分区, 再在/etc/fstab中添加了如下一行:LABEL=/my_data /my_data defaults 1 2重启后失败,提示无法mount文件系统:无法找到"/my_data"的LABEL。2。解决方案一:这是因为在fstab中使用了LABEL,而实际的... 阅读全文
posted @ 2010-02-11 22:56 考拉留 阅读(1248) 评论(0) 推荐(0) 编辑