<< 2009年5月1日 | 首页 | 2009年5月3日 >>

如何扩展Ubuntu的/root分区

一安装Ubuntu发现root "/"分区只有2G多,必须得扩大root文件系统,否则没法用。那扩展/root分区最容易的办法还是:使用Ubuntu的Live CD安装盘启动,选择“不改变操作系统启动Ubuntu试用”选项,该选项直接从光盘启动Ubuntu系统并且没有挂载mount任何硬盘;然后在 Ubuntu操作系统里的system菜单里使用Partition Editor分区编辑器进行扩展root分区,选择/root分区右键鼠标,选择resize/move(改变大小/移动)菜单进行扩展。

除了使用Ubuntu livecd还可以直接使用GParted LiveCD
如果是使用lvm,可以,将pv将入vg,然后调整root filesystem使用的lv的大小
标签 : , ,

Ubuntu下Flash中文方格乱码的解决

安装Ubuntu9.04后访问Google音乐播放器,发现中文变成了方块乱码,Ubuntu下Flash中文方格乱码的解决方法有二,如下:

  • 删除/etc/fonts/conf.d/49-sansserif.conf
sudo mv /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf_back
  • 修改/etc/fonts/conf.d/49-sansserif.conf

输入:
cd /etc/fonts/conf.d/

为了安全,备份一下:

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

输入如下指令:

sudo gedit ./49-sansserif.conf

此时文件显示内容。

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写

比如:我的系统中安装了wqy-zenhei.ttf,我则用wqy-zenhei代替上述所说的字段,结果如下:

<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>wqy-zenhei</string>
</edit>
</match>

标签 : , ,