​​​

Ubuntu下的配置指南

新装好的ubuntu其实已经很强大了,但是有些问题还不是让人很舒服,还是需要做一些配置装一些软件。特别是在科大的使用环境中,要把科大的校内资源好好利用起来啊~~

TODO FIXME 科大源配置

一些常用的软件包:

ubuntu-tweak

很方便,我就喜欢这种simple的东西

chromium-browser

个人最喜欢的浏览器,现在也进入ubuntu的源了

virtualbox

<note tip>里面会装一个windows或者用来捣鼓的linux</note>

quodlibet

这个音乐播放器可以通过修改配置文件可以使用GB18030的mp3 标签编码,解决很多时候MP3的乱码问题。(当然可以去转换 谁会转换方法来写一下?)

Banshee

另一个音乐播放软件我感觉挺好用,不过是基于mono的

Smplayer

个人感觉比mplayer好用~这两个软件完全不需要配置就可以满足我的需要

fontmatrix

这个是个很好用的字体管理工具~

Thinkpad 中键模拟滚轮

原文:http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html

Scrolling with the Thinkpad’s TrackPoint in Ubuntu 8.10 Intrepid

Ubuntu Intrepid (8.10) switches to evdev for X server input, which has the unfortunate side effect of breaking old EmulateWheel configurations. So scrolling using the middle button + TrackPoint (which I absolutely love) was broken for a while. However, the version of evdev in Intrepid has now caught up and supports these features. Instead of modifying your xorg.conf, create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi with the following contents:

<match key=”info.product” string=”TPPS/2 IBM TrackPoint”>
<merge key=”input.x11_options.EmulateWheel” type=”string”>true</merge>
<merge key=”input.x11_options.EmulateWheelButton” type=”string”>2</merge>
<merge key=”input.x11_options.XAxisMapping” type=”string”>6 7</merge>
<merge key=”input.x11_options.YAxisMapping” type=”string”>4 5</merge>
<merge key=”input.x11_options.ZAxsisMapping” type=”string”>4 5</merge>
<merge key=”input.x11_options.Emulate3Buttons” type=”string”>true</merge>
</match>

(Based on code from Michael Vogt and adapted to support both vertical and horizontal scrolling.)

In only tangentially related news, Lenovo recently announced the Thinkpads X200 and (more recently) X200s. The general consensus among reviewers is that if you love the X61, you’ll love the X200. It’s basically an update of the X61 with newer Intel chips and a widescreen display (with better pixel density); consequently, it is a bit wider and not as deep and has a full size keyboard. Shame I’m nowhere near the end of an upgrade cycle.

Update: by the way, you’ll have to restart hal and gdm for the changes to take effect.

Update, 29 Oct 2008: I tested the above code on an X61s. The X200 (and possibly other new Thinkpads?) seems to have a different hardware configuration, so the config above doesn’t work. Furthermore, an update to Ubuntu Intrepid (subsequent to my original post) breaks TrackPoint scrolling either completely or only after suspending and resuming. See Ubuntu bug 282387 for instructions on compiling and installing upstream’s fixed version.

这里有一份我日常用的小脚本,我默认只开启了垂直滚轮的功能。

这个脚本在我的机器(R61i-7742A23)上是正常的,而其中的'TPPS/2 IBM TrackPoint'这个设备名称可能随机型改变。
trackpoint.sh
#!/bin/bash
# To enable vertical scrolling
 
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200
 
# To enable horizontal scrolling in addition to vertical scrolling
 
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5
 
# To enable middle button emulation (using left- and right-click simultaneously)
 
#xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Middle Button Emulation" 1
#xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Middle Button Timeout" 50

设备名称可以用以下命令查询:

xinput list

如我的输出:

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Lenovo Optical Mouse                      id=9    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=13   [slave  keyboard (3)]

Enable Ctrl + Alt + BackSpace in Ubuntu Jaunty 原文:http://www.ubuntu.com/getubuntu/releasenotes/910#Enabling%20Ctrl-Alt-Backspace%20for%20Ubuntu Enabling Ctrl-Alt-Backspace for Ubuntu

Select “System”→”Preferences”→”Keyboard” Select the “Layouts” tab and click on the “Layout Options” button. Select “Key sequence to kill the X server” and enable “Control + Alt + Backspace”.