1 install ubuntu 10.10
2 update firefox from 3.0 to 20.0
3 close touch pad: xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0
#!/bin/sh
#禁用觸摸板
xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Device Enabled' 0
#啓用觸摸板
xinput set-prop 14 132 1 #通過設備編號+屬性編號來設置
4 install Adobe Flash Player: rpm -ivh *.rpm
5 gedit /etc/apt/source.list change to ubuntu 10.10 source sudo apt-get update
7 open pae mode to support 4GB memory
8 10.10 is not good, download 12.04.02, burn a cd by win7:
點擊ISO文件,選“打開方式”,選擇“WINDOS映象刻錄機”就可以刻錄了。
9 12.04 use firefox 18.0.2 not the newest, add plugin flash player auto.
10 sudo apt-gei install rar
11 install stardict, get offline lib:cp /tmp/stardict-langdao-* /usr/share/stardict/dic
12 install amd card driver for display
14 install vim
15 install virtual machine:sudo dpkg -i package.deb
faied to run xp on ubuntu
vmware can but slow.
16 install ibus input method: http://www.2cto.com/os/201207/144189.html
17 mount filesystem:
cl@E420:~$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda7 ext4 119G 5.6G 107G 5% /
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 790M 872K 789M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 256K 2.0G 1% /run/shm
/dev/sda5 fuseblk 121G 41G 80G 34% /media/B440BD2540BCEEEC
mount -t vfat ntfs /dev/sda5 /mnt/...
18 解壓:
tar –xvf file.tar //解壓 tar包
tar -xzvf file.tar.gz //解壓tar.gz
tar -xjvf file.tar.bz2 //解壓 tar.bz2
tar –xZvf file.tar.Z //解壓tar.Z
unrar e file.rar //解壓rar
unzip file.zip //解壓zip
tar -xjvf a.tar.bz2 -C /usr/share/stardict/dic
19 vim命令:
Ctrl+d 向前翻半屏
Ctrl+u 向後翻半屏
窗口命令
ctrl+w s 水平分割窗口
ctrl+w w 切換窗口
ctrl+w q 退出當前窗口(由於同時有多個文件,此命令不會影響其他窗口)
ctrl+w v 垂直分割窗口
:%s/old/new/g 搜索整個文件,將所有的old替換爲new
:%s/old/new/gc 搜索整個文件,將所有的old替換爲new,每次都要你確認是否替換
D 刪除到行末
y$ 複製到行末
]p 有縮進的粘貼,vim會自動調節代碼的縮進
% 跳到與當前括號匹配的括號處,如當前在{,則跳轉到與之匹配的}處
0 跳至行首,不管有無縮進,就是跳到第0個字符
^ 跳至行首的第一個字符
$ 跳至行尾
gg 跳至文件的第一行
gd 跳至當前光標所在的變量的聲明處
[N]G 跳到第N行,如0G,就等價於gg,100G就是第100行
* 查找光標所在處的單詞,向下查找
# 查找光標所在處的單詞,向上查找
`. 跳轉至上次編輯位置
>> 將當前行右移一個單位
<< 將當前行左移一個單位(一個tab符)
== 自動縮進當前行
20 查看顯卡是否使用
lspci -v
21 #!/bin/sh
#XRandR是X Rotate and Reflect Extension(改變大小與旋轉擴充)的縮寫,用來在命令>行界面中對linux系統中的 X窗口系統的多屏幕做出一些設定的軟件,能更改外接屏幕的大>小、分辨率等
# monitor.sh
# Check whether the external monitor is connected:
# returns 0 on success
xrandr | grep VGA1 | grep " connected"
if [ $? -eq 0 ]; then
xrandr --newmode "1680x1050_60" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA1 "1680x1050_60"
xrandr --output VGA1 --mode 1680x1050_60 --same-as LVDS1
#xrandr --output VGA1 --mode "1440x900_60.00" --right-of LVDS1
else
xrandr --output VGA1 --off
fi
22 install jdk
23 install input method ibus framework and engine
24 install android sdk: android-sdks
25 ubuntu open in terminal
26 sudo apt-get install mesa-utils
27 su passwd open root
28 sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* : remove something for android virtual terminal
29 apt-get install autoconf apt-get install libtool
autoconf automake autotools-dev m4
30. install vlc install ffmpeg