---
title: "ubuntu on thinkpad x61"
author: "jxb8901"
date: "2008-08-09T13:20:08Z"
tags: []
categories: ["操作系统"]
slug: "ubuntu-on-thinkpad-x61"
draft: false
lastmod: "2011-07-15T10:22:19Z"
id: 226166
url: "https://jxb8901.iteye.com/blog/226166"
---

在面板上显示网速、CPU温度和CPU频率

```java

sudo apt-get install netmon-applet sensors-applet
sudo chmod +s /usr/bin/cupfreq-selector
```


这样不只可以显示CPU频率，还可以选择以使CPU在特定频率上工作。然后在Gnome面板上添加相应的applet 

显示笔记本生产商及版本信息：
sudo dmidecode -s system-manufacturer
sudo dmidecode -s system-product-name
sudo dmidecode -s system-version
LENOVO
7673AN6
ThinkPad X61

修改笔记本合上时的默认动作为休眠：
修改/etc/acpi/events/lidbtn，
把其中的action=/etc/acpi/lid.sh改成action/etc/acpi/sleep.sh sleep

设置扩展桌面：

```

xrandr --output VGA --auto // 找开第二个显示器
xrandr --output VGA --off // 关闭第二个显示器
xrandr --output VGA --right-of LVDS --auto // 扩展第二个显示到右边

```


```

 Section "Screen"
         Identifier      "Default Screen"
         Monitor         "Configured Monitor"
         Device          "Configured Video Device"
         # 以下为需要增加的部分配置
         Monitor         "default"
         Defaultdepth    24
         SubSection      "Display"
                 Depth   24
                 Virtual 2048 768
                 Modes   "1024x768@60"
         EndSubSection
 EndSection

```


调整掌托指纹识别器为自动模式，以解决指纹器过热问题
http://hi.baidu.com/shoalyknow/blog/item/3b7f5524fcba7f35c8955994.html

```

for i in `find /sys/devices/*/*/usb* -name level` ; do echo -n "$i: " ; cat $i ; done
cat /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/idVendor
0483
cat /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/idProduct
2016
echo "auto" > /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/power/level

```


配置Ubuntu无线网络共享上网
http://www.ithov.com/linux/ubuntu/services/103450.shtml

```

1）    iwconfig eth1 essid "***" key s:"***" mode ad-hoc
    ifconfig eth1 192.168.0.1 up
2)    sudo vi /etc/sysctl.conf
    取消注释net.ipv4.ip_forward = 1
    sudo sysctl -p
3）    sudo iptables -F
    sudo iptables -P INPUT ACCEPT
    sudo iptables -P FORWARD ACCEPT
    sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
4）    共享主机使用静态地址192.168.0.*
    子网掩码：255.255.255.0
    路由器：192.168.0.1
    DNS使用与主机相同的DNS（DNS在/etc/resolv.conf）里

```