坑爹的死链接

前段时间有一次突然断电,然后重启之后Google Chrome/Firefox变得死慢死慢的
猜测是应该丢失了文件,重新emerge X和gtk都没用,但Opera是正常的,然后一直忙着,就没管它。
今天抽时间折腾了一下,发现是
/etc/fonts/conf.d/里有个失效的链接,删除后Chrome/Firefox变得飞快!

修改虚拟机镜像大小(qcow2/raw resize)

不多说,直接看
创建一个镜像文件,大小1G,格式是qcow2

muxueqz@muxueqz /tmp $ qemu-img create -f qcow2 t.qcow2 1G
Formatting 't.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=0

查看镜像文件实际占用空间
muxueqz@muxueqz /tmp $ ls -alh t.qcow2
-rw-r--r-- 1 muxueqz muxueqz 193K 8月 31 13:18 t.qcow2

查看qcow2信息
muxueqz@muxueqz /tmp $ qemu-img info t.qcow2
image: t.qcow2
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 136K
cluster_size: 65536

加1G(resize +)
muxueqz@muxueqz /tmp $ qemu-img resize t.qcow2 +1G
Image resized.

再查看qcow2信息
muxueqz@muxueqz /tmp $ qemu-img info t.qcow2
image: t.qcow2
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 140K
cluster_size: 65536

减1G(resize -)
muxueqz@muxueqz /tmp $ qemu-img resize t.qcow2 -- 2G
qemu-img: This image format does not support resize

!!!qcow2只能加不能减!
再查看qcow2信息
muxueqz@muxueqz /tmp $ qemu-img info t.qcow2
image: t.qcow2
file format: qcow2
virtual size: 2.0G (2147483648 bytes)
disk size: 140K
cluster_size: 65536

果然没变
再试试改变raw格式的大小(resize raw)
同样先创建1G大小的raw
muxueqz@muxueqz /tmp $ qemu-img create -f raw t.raw 1G
Formatting 't.raw', fmt=raw size=1073741824
muxueqz@muxueqz /tmp $ qemu-img info t.raw
image: t.raw
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 1.0M

可以看出raw要比qcow2多占一些空间。
加1G
muxueqz@muxueqz /tmp $ qemu-img resize t.raw -- +1G
Image resized.
muxueqz@muxueqz /tmp $ qemu-img info t.raw
image: t.raw
file format: raw
virtual size: 2.0G (2147483648 bytes)
disk size: 2.0M

减1G(resize -)
muxueqz@muxueqz /tmp $ qemu-img resize t.raw -- -1G
Image resized.
muxueqz@muxueqz /tmp $ qemu-img info t.raw
image: t.raw
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 1.0M

双向同步利器-unison

1、开源
2、多平台支持(windows/Linux)
3、简单快速
4、类似rsync的算法

Linux中的教育网加速器

前因:
上次6.12去厦门大学的fjlug活动,不满教育网的速度,为下次作准备。
原理:
其实就是利用搜狗提供的全网加速功能
项目链接:https://code.google.com/p/sogou-explorer-linux/
简要说明:
下载sogou-explorer-linux.7z
解压后进入
cd sogou-explorer-linux
./accelerator.sh(将搜狗浏览器放到后台中,需要安装alltray)或./start.sh(会启动搜狗浏览器界面)
在你的浏览器中设置代理为127.0.0.1:8081即可使用。

fjlug(福建Linux用户组)第一次聚会

fjlug(福建Linux用户组)即将举行第一次聚会,
欢迎广大自由软件爱好者前来参加:
http://www.xiamenlug.org/?p=21