Monday, August 11, 2008

All about compiz fusion(For Reference)

以下为 Compiz Fusion 中常用的键盘快捷键,它们要在 CompizConfig Settings Manager 中开启与之相映的特效才有效。

SUPER+SHIFT+DRAG LEFT MOUSE = 火焰的特效

SUPER+SHIFT+C = 关闭火焰的特效

CTRL+ALT+DRAG LEFT MOUSE = 旋转立方体

CTRL+ALT+LEFT ARROW = 旋转立方体

CTRL+ALT+DOWN ARROW = flat desktop

SHIFT+ALT+UP = initiate window picker

CTRL+ALT+DOWN = 展开立方体

ALT+TAB = 窗口切换

SUPER+TAB = flip switcher or ring switcher, depending on which is enabled.

ALT+F7 = initiate ‘move windows

SHIFT+F9 = 水波特效

SHIFT+F10 = slow animations

CTRL+ALT+D = 显示桌面

For Grouping and Tabbing:

SUPER+S = select single window

SUPER+T = tab group

SUPER+Left = change left tab

SUPER+Right = change right tab

SUPER+G = group windows

SUPER+U = ungroup windows

SUPER+R = remove group window

SUPER+C = close group

SUPER+X = ignore group

Hold the SUPER button then select the windows you want to group and then hit SUPER+G.

在大多数的键盘上"SUPER"就是"Windows"键,也就印着Windows图标的那个键.


1、给立方体设置一个背景,进入 CompizConfig -> 桌面立方体 -> Appearance -> Skydome 勾选 “Background”,在 Background Images 中选择一个背景图片即可。

2、如果要让立方体增加一个倒影,勾选 CompizConfig -> Cube Reflection 即可。
Tips: 展示立方体默认快捷键是 Ctrl+Alt+鼠标左键拖动,Ctrl+Alt+方向键旋转立方体。

3、使用神灯效果,这个效果最早出现在 Mac 上。
勾选 CompizConfig -> Animations
Tips: 建议取消 CompizConfig -> 最小化效果,勾选 CompizConfig -> 渐弱窗口

4、火焰字
勾选 CompizConfig -> Paint fire on the screen 即可。
可以在 CompizConfig -> Paint fire on the screen -> Fire Particle Color 这里设置火焰的颜色,勾选 Randomly Colored Fire 会写出五彩斑斓的文字。
Tips: 默认快捷键是 shift+win+鼠标左键,按 shift+win+c 是清除效果。

5、桌面展示
勾选 CompizConfig -> Expo
Tips: 默认快捷键是 win+e,鼠标移动到屏幕左上角也可以。

6、雪花效果
勾选 CompizConfig -> Snow
再到这里下载雪花材质,在 Snow -> Textures 这里添加进去即可。

7、菜单透明问题
默认菜单是透明的,可以到 CompizConfig -> General Options -> Opacity Settings 这里进行设置。删除 Window opacities 里面的那行代码就可以了。

8、3D 层叠窗口效果
勾选 CompizConfig -> 3D Windows

9、给立方体中增加一些鱼儿
勾选 CompizConfig -> Cube Atlantis
按住 Ctrl+Alt+鼠标左键拖动桌面,就能看见了。

10、屏幕保护
勾选 CompizConfig -> Screen Saver
有两种效果,一种是 Rotating cube 旋转立方体,一种是 Flying windows 飞行的窗口。

11、3D 窗口切换效果
勾选 CompizConfig -> Shift Switcher
在 Switcher mode 中可以选择两种切换效果,一种类似 Vista 的 Flip3D 切换,一种类似 Mac 的 CoverFlow 切换。
Tips: 默认快捷键是:超级键+Tab
* 打开主菜单 = Alt + F1
* 运行 = Alt + F2
* 显示桌面 = Ctrl + Alt + d
* 最小化当前窗口 = Alt + F9
* 最大化当前窗口 = Alt + F10
* 关闭当前窗口 = Alt + F4
* 截取全屏 = Print Screen
* 截取窗口 = Alt + Print Screen
默认特殊快捷键
* 展示所有窗口程序 = F10
* 展示当前窗口最上层程序 = F11
* 展示当前窗口所有程序 = F12
* 切换窗口 = Alt + Tab
* 旋转3D桌面 = Ctrl + Alt + 左/右箭头(也可以把鼠标放在标题栏或桌面使用滚轮切换)
* 旋转3D桌面(活动窗口跟随) = Ctrl + Shift + Alt + 左/右箭头
* 手动旋转3D桌面 = Ctrl + Alt + 左键单击并拖拽桌面空白处
* 窗口透明/不透明 = possible with the “transset” utility or Alt + 滚轮
* 放大一次 = 超级键 + 右击
* 手动放大 = 超级键 + 滚轮向上
* 手动缩小 = 超级键 + 滚轮向下
* 移动窗口 = Alt + 左键单击
* 移动窗口时贴住边框 = 左键开始拖动后再 Ctrl + Alt
* 调整窗口大小 = Alt + 中击
* Bring up the window below the top window = Alt + middle-click
* 动态效果减速 = Shift + F10
* 水纹 = 按住 Ctrl+超级键
* 雨点 = Shift-F9
* 桌面展开= Ctrl + Alt + 下箭头,然后按住 Ctrl + Alt 和左/右箭头选择桌面
* 火焰=超级键+shift+左键拖动 取消:超级键+shift+c
* 选择多窗口,合并,切换,取消 超级键+s, 超级键+g ,超级键 +t,超级键+u

Monday, July 21, 2008

emesene fail to load friend list in ubuntu

I was always trying to find a stable distribution of MSN in ubuntu. The major problem with pidgin is that it can not receive or send any offline message, it is really really annoying to me. So I tried aMsn back in Ubuntu 7.10 time, it fuctions well but it is not stable. I have no idea if they have any further improvement on the latest version, but it was not a good impression. After upgrading to Hardy Heron, I decided to try something new: emesene.
You can get this by downloading directly from sources. Mine is:

deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
As you may notice, I am not even sure which one is the source server, but surely it is from tw.archive.ubuntu.com.

Anyway, after installation, I found I am facing a problem that the friend list was never loaded. That means I can log on my MSN, but my friends list never show up. To solve this problem:
sudo sed -i.bak 's/09607671-1C32-421F-A6A6-CBFAA51AB5F4/CFE80F9D-180F-4399-82AB-413F33A1FA11/g' /usr/share/emesene/emesenelib/XmlTemplates.py
I am not sure what this code does, but it really can solve this problem. I hope this may help. GL!

Sunday, July 20, 2008

Lightweight and highly configurable desktop widget: conky

Just simply cool:

Downloading referring to http://conky.sourceforge.net/

Configuring referring to http://ebupof.deviantart.com/art/My-Conky-Config-1-5-79251193

See:

Dualview settings on Thinkpad T61p for Ubuntu 8.04 Hardy Heron

Well, this is only used as a more specific instructions on how to deal with the multimonitor issues in Ubuntu.

The brief idea can be referenced to: https://help.ubuntu.com/community/NvidiaMultiMonitors

The problem with the post is that it assumes you will obtain the nvidia-settings once you installed the nvidia restricted drivers on your laptop, but unfortunately, that is not gonna happen.

After you enabled the restricted drivers, you may also do the following:
sudo apt-get install nvidia-settings
This will allow you to have access to the settings. Then, in your terminal, input:
sudo nvidia-settings
You may want to access the settings with root, because any changes in here will be applied to /etc/X11/xorg.conf. It won't let you change the settings without the root permission.

That is pretty much what you need to know. GL!

Thursday, July 17, 2008

Configure Ubuntu GRUB to select the default booting OS

I was frequently annoyed by the fact that the grub start ubuntu by default all the time. As I am still a new-bee in the ubuntu world, I still have to go to windows to do most of my jobs. Thus, I decided to do something to modify the default OS for GRUB. Here is how it is done:

The GRUB menu is controlled by the file called menu.lst.
/boot/grub/menu.lst
Well, run the following command will let you edit this file with root:
sudo nano /boot/grub/menu.lst
You may find an entry like this in the head part of the original file:
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec

Now, check the foot part of this file, you may find a bunch of entires according to the options of your GRUB menu. Mine is like this:
## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7f4a3b67-946b-4b1f-88e3-441281d41b04 ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=7f4a3b67-946b-4b1f-88e3-441281d41b04 ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f4a3b67-946b-4b1f-88e3-441281d41b04 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=7f4a3b67-946b-4b1f-88e3-441281d41b04 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista SP1
root (hd0,0)
savedefault
makeactive
chainloader +1
Now, as we have 6 entries in our menu list, and the comment shows that the default value starts at 0, you may assume that we should assign the default value to 5, then we can achieve our goal. However, I have made the same mistake as you did. Ridiculously, there is another entry called "Other operating systems:" in the menu list. (Well, now you may point out that it is already showed in the menu.lst file, but the problem is who the hell will assume that as an entry to the menu option?)

Well, anyway, now what you have to do is to assign 6 to the default and everything will be fine. I hope this might be helpful.