1. 如何在Linux上使用光驱 (试验机:ubuntu 9.04/9.10)
sudo eject (open)
sudo eject -t (close)
sudo mount -t iso9660 -o ro /dev/cdrw /media/tmp_disk/ (mount)
2.dpkg命令
安装deb软件包
sudo dpkg -i *.deb
获得pc上所有安装软件包的信息
sudo dpkg --get-selections > pkg.list
3.开发必备的软件
- build-essential
- subversion
- smbfs, samba, system-config-samba
- flex
- libncurses5-dev
- lrzsz
- vim
- vim-gnome
- cscope
- meld
- ssh (client and server)
- help2man
- diffstat
- texi2html
- cvs
- gawk
- libtool
- fakeroot
- bison
- quilt
- genext2fs
- tofrodos
- intltool
- texinfo
- libdb4.2(other verions??)
- libglib2.0-dev(other verions??)
- gparted
- minicom
- manpages-dev
-
glibc-doc
4. Disable automount
gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount false
5. 删除dash,使用bash
sudo rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh
6. 添加windows的域名解析功能
add wins to /etc/nsswitch.conf file hosts line (hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins ) and install the winbind .
sudo vi /etc/nsswitch.conf
sudo apt-get install winbind
7. How to install realview ICE at ubuntu 8.04?
0. Get RVDS4.0
1. Make sure some of the files at RVDS4.0 having write/execution attribute(If the attribute is differ with CD's)
2. execute setuplinux.bin, it will begin to install
3. After install successfully, do export ARMLMD_LICENSE_FILE=LICENSE_ADDRESS, and let RVDS get license
4. source RVDS40env.posh which at your install folder
5. apt-get install libmotif3
6. run rvdebug
8. 我的.bashrc文件
export PATH=$PATH:$HOME/toolchain_path/bin
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
export CSCOPE_DB=$KER/cscope.out
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias vi='vim'
alias mount='sudo mount'
alias umount='sudo umount'
alias fdisk='sudo fdisk'
alias apt-get='sudo apt-get'
alias minicom='minicom -w'
alias di='meld'
#Correct small typing mistakes of cd
shopt -s cdspell
#iDefining this will cause multi-line commands to be appended to your bash history as a single line command. This makes for easy command editing.
shopt -s cmdhist
#not list some useless commands for history command
export HISTIGNORE="&:ls:ls *:[bf]g:exit"
#disable Ctrl-D to exit the shell
set -o ignoreeof
#for fast compile
export USE_CCACHE=1
9.有用的firefox插件
FastestFox
FlashGot
Vimperator (add set guioptions+=mT at ~/.vimperatorrc to enable old web browse at firefox)
Xmarks
10. gconf-editor: edit system configrature
11. 如何安装/卸载ati/nvidia显卡
sudo apt-get install envyng-qt
sudo envyng -t