Ubuntu Linux针对Thinkpad配置
先说下操作系统的选择:
操作系统是用来用的,arch等与我无关,简单好用满足要求即可,自然是ubuntu了,也一直用了5年,见于一个人的Linux接触历史,基本上半年一换版本,直到10.10,主要是11.04太难用了,而且没有gtk3配套的软件,连chrome都装不上,后来感觉Unity太耗资源,不够简洁,一直到12.10才用mint,Cinnamon横空出世才将我从两年前的版本中解救出来,Cinnamon做的真的很好。
我电脑是x230,到目前14年7月相关驱动都OK。
系统安装好之后就选择安装源吧
deb http://mirrors.hustunique.com/linuxmint/ maya main upstream import multiverse universe backport deb http://mirrors.hustunique.com/ubuntu/ precise main restricted universe multiverse deb http://mirrors.hustunique.com/ubuntu/ precise-updates main restricted universe multiverse deb http://mirrors.hustunique.com/ubuntu/ precise-security main restricted universe multiverse deb http://mirrors.hustunique.com/ubuntu/ precise-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse deb http://archive.canonical.com/ubuntu/ precise partner # deb http://packages.medibuntu.org/ precise free non-free deb http://download.virtualbox.org/virtualbox/debian precise contrib # deb http://archive.getdeb.net/ubuntu precise-getdeb apps # deb http://archive.getdeb.net/ubuntu precise-getdeb games
其他的ppa源
add-apt-repository ppa:fcitx-team/nightly -y;add-apt-repository ppa:linrunner/tlp -y;add-apt-repository ppa:noobslab/deepin-sc -y;add-apt-repository ppa:rabbitvcs/ppa -y;add-apt-repository ppa:wiznote-team/ppa -y;add-apt-repository ppa:tiheum/equinox -y;add-apt-repository ppa:tualatrix/ppa -y;add-apt-repository ppa:webupd8team/java -y;add-apt-repository ppa:ubuntu-wine/ppa -y;add-apt-repository ppa:fingerprint/fingerprint-gui -y; sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list' sh -c 'echo "deb http://dl.google.com/linux/earth/deb/ stable main" > /etc/apt/sources.list.d/google-earth.list' sh -c 'echo "deb http://www.scootersoftware.com/ stable non-free" > /etc/apt/sources.list.d/scootersoftware.list' wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
其他的软件源
sudo sh -c 'echo "deb http://dl.google.com/linux/talkplugin/deb/ stable main" >> /etc/apt/sources.list.d/google.list' sudo sh -c 'echo "deb http://dl.google.com/linux/musicmanager/deb/ stable main" >> /etc/apt/sources.list.d/google.list' sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' sudo sh -c 'echo "deb http://dl.google.com/linux/earth/deb/ stable main" >> /etc/apt/sources.list.d/google.list' wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring
安装的软件
apt-get -y install fcitx-googlepinyin terminator deja-dup ia32-libs adobe-flashplugin aptitude bleachbit build-essential chmsee cheese compizconfig-settings-manager deluge faenza-icon-theme faience-icon-theme faience-theme gedit-plugins gdebi gimp goldendict gparted gtkorphan hedgewars manpages-dev manpages-posix-dev p7zip p7zip-full p7zip-rar poppler-data smplayer supertux fonts-droid ttf-xfree86-nonfree unrar ubuntu-restricted-extras ubuntu-tweak vim vim-gnome wesnoth acpi-call-source acpi-call-tools tlp tlp-rdw deepin-music-player rabbitvcs-nautilus3 rabbitvcs-core wiznote bcompare qtcreator shutter shotwell libreoffice google-chrome-stable qtcreator codelite gdm libreoffice rhythmbox golang ubuntu-virt acroread fbterm
软件安装或者更新完成之后,执行linux下SSD优化,进行处理。
然后具体说一下特殊的软件,通用软件请登陆论坛看看:
Thinkpad针对的电源管理软件:TLP Linux Advanced Power Management,可以实现在linux在x230下的电源管理,控制电池充电次数,source源在前面已加入。
apt-get install tlp acpi-call-tools
关于tlp的具体链接参看http://linrunner.de/en/tlp/tlp.html
然后在/etc/rc.local中写上
modprobe acpi_call tlp start
改一下/etc/default/tlp的充电参数
START_CHARGE_THRESH_BAT0=20 STOP_CHARGE_THRESH_BAT0=80
Thinkpad专用指纹软件:fingerprint-gui,请参考ppa里面说明,按照配置完成后,在/etc/pam.d/sudo增加如下一行
auth sufficient pam_fingerprint-gui.so
OK,系统勉强可以用了,更多配置参考Linux桌面环境配置技巧
Ubuntu Linux针对Thinkpad配置来自于OenHan
链接为:https://oenhan.com/thinkpad-x230-ubuntu-conf
装了tlp还不够,对于x230,需要装以下2部分
tp-smapi-dkms (universe) – optional ThinkPad only, tp-smapi is needed for battery charge thresholds and ThinkPad specific status output of tlp-stat
acpi-call-tools (PPA) – optional ThinkPad only, acpi-call is needed for battery charge thresholds on Sandy Bridge and newer models (X220/T420, X230/T430 et al.)
在archlinux终端下使用需要什么额外的设置吗?我在arch使用** (process:1432): WARNING **: Trying to retsgier gtype GMountMountFlags’ as enum when in fact it is of type GFlags’** (process:1432): WARNING **: Trying to retsgier gtype GDriveStartFlags’ as enum when in fact it is of type GFlags’** (process:1432): WARNING **: Trying to retsgier gtype GSocketMsgFlags’ as enum when in fact it is of type GFlags’/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning)/usr/share/deepin-scrot/src/window.py:27: GtkWarning: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)’ failed (screenWidth, screenHeight) = gtk.gdk.get_default_root_window().get_size()Traceback (most recent call last): File ./deepinScrot.py , line 25, in from mainscrot import MainScrot File /usr/share/deepin-scrot/src/mainscrot.py , line 28, in from action import * File /usr/share/deepin-scrot/src/action.py , line 25, in from draw import * File /usr/share/deepin-scrot/src/draw.py , line 32, in from window import screenWidth, screenHeight File /usr/share/deepin-scrot/src/window.py , line 27, in (screenWidth, screenHeight) = gtk.gdk.get_default_root_window().get_size()AttributeError: NoneType’ object has no attribute get_size’
@Naveed 没看明白想说什么