2009年4月23日星期四
2009年3月10日星期二
Ubuntu 安装微软雅黑字体
wget http://www.cnblogs.com/Files/dyj057/myfonts.sh.zip
unzip -o myfonts.sh.zip
chmod a+x myfonts.sh
./myfonts.sh
支持8.04, 8.10
原文地址:http://www.cnblogs.com/dyj057/archive/2008/11/12/1332135.html
2009年3月7日星期六
ubuntu下 安装fcitx
No.1
$ sudo apt-get install im-switch libapt-pkg-perl fcitx
No.2
tar xvfj fcitx-3.4.2.tar.bz2
cd fcitx-3.4.2
./configure
make
make install
make clean
FCITX的配置:
配置文件在安装目录下的config里面,可以设置各种参数,不过参数很多,看得我眼都花了,具体配置说明可以找到程序解压包下面的[/doc/]目录下找到“fcitx3.pdf”对照着配置。如果是默认安装的话,config文件应该在[~/.fcitx/]目录内。
关于字体的添加、修改、配制
1. 手工添加字体的步骤
mkdir /usr/share/fonts/local/
cp 字体到/usr/share/fonts/local/
2. 更新字体配置
ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale
mkfontdir /usr/share/fonts/local/
3. 添加字体路径到xorg.conf
chkfontpath --add /usr/share/fonts/local/
fc-cache -fv
中文显示变成方框的解决方法:
sudo gedit ~/.fcitx/config
将“显示字体(中)=*”改为“显示字体(中)=WenQuanYi Bitmap Song”,保存后重启 X 就 OK 了。
对了,如果你的 locale 不是 gbk 或 gb2312 ,那么打开 ~/.fcitx/config 后会是乱码,切记不要改变配置文件的编码类型,用下面这条命令查看内容转换编码后修改相应部分就好了。
iconv -f gbk -t utf8 ~/.fcitx/config
如果要禁用某些输入功能:
把config里的使用码表输入法禁掉,table.conf是控制哪些码表被加载的,在/usr/share/fcitx/data/目录下
2009年3月6日星期五
Ubuntu AD1986A声卡
sudo gedit /etc/modprobe.d/alsa-base
在文档最后添加
options snd-hda-intel model=laptop-automute
就能解决耳机和扬声器的问题。
2008年7月30日星期三
2008年7月28日星期一
ubuntu自动挂载NTFS
先安装:
sudo apt-get install ntfs-config
再配置一下:
sudo ntfs-config
Linux文件权限
查看linux文件夹的权限:ls -ld 文件夹名称(所在目录)
修改文件及文件夹权限:
sudo chmod -(代表类型)×××(所有者)×××(组用户)×××(其他用户)
常用修改权限的命令:
sudo chmod 600 ××× (只有所有者有读和写的权限)
sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)
sudo chmod 700 ××× (只有所有者有读和写以及执行的权限)
sudo chmod 666 ××× (每个人都有读和写的权限)
sudo chmod 777 ××× (每个人都有读和写以及执行的权限)
详细参考:http://wiki.ubuntu.org.cn/FilePermissions
2008年7月27日星期日
卸载ies4linux
There is no uninstall option because it is simple: just remove the files.
Usually you have to remove:
~/.ies4linux folder
Executables at ~/bin
Desktop shortcuts
If you configured different folders, just remove them.
2008年7月21日星期一
Ubuntu 卸载软件
安装.deb包: 代码:
sudo dpkg -i package_file.deb
反安装.deb包: 代码:
sudo dpkg -r package_name
这里的package_name是指用dpkg -l 后,看到已经安装了的包,不包括版本号
2、通过apt-get安装的情况:
安装 代码:
sudo apt-get install package_name
反安装 代码:
sudo apt-get remove package_name
2008年7月8日星期二
Ubuntu应用程序的子菜单不见了
现在只能到 /usr/share/applications 下去找程序打开,不方便,
[位置]和[系统]菜单都正常。
进入终端,输入:alacarte (菜单编辑器)
如果出错则用下面的方法解决:
cd .config/menus/
rm -rf *
删除 applications.menu settings.menu即可
参考:http://forum.ubuntu.org.cn/viewtopic.php?p=808249&sid=bd9a784f7d3d02d59d975264b758d218
