linux kubuntu 11.10 && 12.04配置

kubuntu 10.04 的配置参考:
http://blog.csdn.net/wangfaqiang/article/details/5902328

ubuntu11.10
//ps -e | grep apt

0. 网络链接
   >cp libtiff.s0.4.3.4 /usr/lib/libtiff.so.3
   >获取软件包:iNodeClient_Linux.tar.gz
   >解压到任意目录:/home/xuanx/applications/iNodeClient
   >sudo ./install.sh
1. 更新软件源

# 163
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# sohu (official China)
# deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

# official
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# official security
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
# canonical partner
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
# official extras
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

####################################################################################################
#W: GPG签名验证错误: http://deb.opera.com unstable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY F9A2F76A9D1A0061
#W: GPG签名验证错误: http://ppa.launchpad.net jaunty Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 6AF0E1940624A220
#W: GPG签名验证错误: http://deb.opera.com stable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY F9A2F76A9D1A0061
#---------------------------------------------------------------------------------------------------
#处理方法:
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  F9A2F76A9D1A0061
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  6AF0E1940624A220
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  F9A2F76A9D1A0061
#---------------------------------------------------------------------------------------------------
#sudo apt-get update   ##现在可以顺利更新成功了


2. JDK环境配置
   >获取安装包:jdk-7u3-linux-i586.tar.gz
   >解压到任意目录:/home/xuanx/applications/jdk1.7.0_03
   >配置环境变量:打开文件 /etc/profile(或/etc/environment)
    加入如下语句:
    #JAVA
    export JAVA_HOME=/home/xuanx/applications/jdk1.7.0_03
    export JRE_HOME=/home/xuanx/applications/jdk1.7.0_03/jre
    export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
    export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

3. 自动挂载
   >编辑:/etc/fstab,加入:
    /dev/sda1 /media/windows ntfs users,auto,rw,dev,exec,umask=002 0 0
    /dev/sda2 /media/ssspace ntfs users,auto,rw,dev,exec,umask=002 0 0


4. 终端安装:
   >sudo apt-get install terminatot guake


5. 编辑工具vim: sudo apt-get install vim


6. ROR框架:
   >sudo apt-get install build-essential libopenssl-ruby libfcgi-dev
   >sudo apt-get install ruby irb rubygems ruby1.8-dev
   >sudo apt-get install sqlite3 libsqlite3-dev nodejs
   [sudo gem install rubygems-update]
   [sudo update_rubygems]
   >sudo gem install rails
   >sudo gem install sqlite3

7. openGL:
   >sudo apt-get install mesa-common-dev
   >sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev
  
   mesa-common-dev mesa-utils mesa-utils-extra
   libgl1-mesa-dev libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-dri-experimental
   libglu1-mesa libglu1-mesa-dev
   freeglut3 freeglut3-dev
   libglew1.6 libglew1.6-dev

8. Qt:
   >apt-get install libqt4-dev libqt4-core libqt4-dbg libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-qtconfig
   >apt-get install qtcreator qtcreator-dbg

9. flashplayer:
   >sudo apt-get install flashplugin-installer

10.压缩工具:
   >sudo apt-get install rar unrar p7zip p7zip-rar p7zip-full

11.词典;图片处理;3D图形;影音;阅读;UML建模
   >sudo apt-get install stardict gimp blender vlc xchm umbrello

12.安装下载工具(多线程下载器、BT下载、FTP、电驴)
   >sudo apt-get install d4x amule azureus deluge-torrent gftp

13.安装gnome3:
   >sudo add-apt-repository ppa:gnome3-team/gnome3
   >sudo apt-get update
   >sudo apt-get dist-upgrade
   >sudo apt-get install gnome-shell

   >sudo apt-get install gnome-tweak-tool

   >sudo add-apt-repository ppa:webupd8team/gnome3
   >sudo apt-get update

   >sudo apt-get install gnome-shell-extensions-alternate-tab gnome-shell-extensions-alternative-status-menu gnome-shell-extensions-user-theme gnome-tweak-tool gnome-shell-extensions-workspace-indicator gnome-shell-extensions-apps-menu gnome-shell-extensions-drive-menu gnome-shell-extensions-system-monitor gnome-shell-extensions-places-menu gnome-shell-extensions-dock gnome-shell-extensions-native-window-placement gnome-shell-extensions-gajim gnome-shell-extensions-xrandr-indicator gnome-shell-extensions-windows-navigator gnome-shell-extensions-auto-move-windows

14.gnome标题栏修改:
  >sudo vim /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
  >找到name="max"这一行,在右边添加上has_title="false",当然空格是不可少的,然后把下面title_vertical_pad的value修改为1
  >其他酌情更改即可(最好先备份)

15.github:
  >sudo apt-get install git-core git-gui git-doc
  [rm -r ~/.ssh](或者备份)
  >ssh-keygen -t rsa -C [email protected]
  [连续回车,默认将公钥放在~/.ssh/]
  >ssh -T [email protected]

/##############################################################################/
/##############################################################################/
/##############################################################################/

kubuntu 12.04

clear *~ files
> sudo find / -name *~ | xargs rm -rf


0. install iNodeClient
   need libgdk-x11-2.0.so.0, libgdk-x11-2.0.so.0, libtiff.s0.3, libjpeg.so.62
   > ln -s to generate the soft link of the libs placed directory /usr/lib
   need iNodeClient_Linux.tar.gz
   > tar -zxvf iNodeClient_Linux.tar.gz
   > cd iNodeClient
   >sudo ./install.sh
  
  
1. set and update the software sources, then update the system

# 163
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# sohu (official China)
# deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

# official
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
# official security
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
# canonical partner
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
# official extras
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

####################################################################################################
#W: GPG签名验证错误: http://deb.opera.com unstable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY F9A2F76A9D1A0061
#W: GPG签名验证错误: http://ppa.launchpad.net jaunty Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 6AF0E1940624A220
#W: GPG签名验证错误: http://deb.opera.com stable Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY F9A2F76A9D1A0061
#---------------------------------------------------------------------------------------------------
#处理方法:
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  F9A2F76A9D1A0061
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  6AF0E1940624A220
#sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com  F9A2F76A9D1A0061
#---------------------------------------------------------------------------------------------------
#sudo apt-get update and sudo apt-get dist-upgrate  ##现在可以顺利更新成功了
#if can not get the lock, enter:
#ps -e | grep apt
#look at the process name,then enter
#sudo killall processname

2. set language then install ibus(ibus-pinyin) for chinese

3. ibus pinyin
    sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4
    sudo apt-get install ibus-pinyin # or other engine(s) you want
    sudo apt-get install gnome-icon-theme
    im-switch -s ibus
    # logout and re-login
   
    ibus-setup # add input methods you want
    If your IBus icon happen to be missing, use the following command.
    ibus-daemon -drx

  http://blog.csdn.net/markman101/article/details/7087685
4. JDK环境配置
   >获取安装包:jdk-7u5-linux-i586.tar.gz
   >解压到任意目录:/home/xuanx/applications/jdk1.7.0_05
   >配置环境变量:打开文件 /etc/profile(或/etc/environment)
    加入如下语句:
    #JAVA
    export JAVA_HOME=/home/chaos/Applications/jdk1.7.0_05
    export JRE_HOME=$JAVA_HOME/jre
    export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
    export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
   
5. 自动挂载
   >编辑:/etc/fstab,加入:
    /dev/sda2 /media/windows ntfs users,auto,rw,dev,exec,umask=002 0 0
     /dev/sda5 /media/chaos ntfs users,auto,rw,dev,exec,umask=002 0 0
  
   
6. 终端安装 and zsh shell:
   >sudo apt-get install terminator guake
   insall zsh terminate
   >sudo apt-get install zsh
   [wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh]
   >git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
   >cp .oh-my-zsh/templates/zshrc.zsh-template .zshrc
   >chsh -s /bin/zsh
  

7. install firefox chromium-browser
   >sudo apt-get install firefox chromium-browser
   >sudo apt-get install flashplugin-installer

8. github:
   >sudo apt-get install git-core //git-gui git-doc
   [rm -r ~/.ssh](或者备份)
   >ssh-keygen -t rsa -C [email protected]
   [连续回车,默认将公钥放在~/.ssh/]
   >ssh -T [email protected]
   > git config --global user.name  "chaos"
   > git config --global user.email "[email protected]"

  
  
9. 编辑工具vim:
   > sudo apt-get install vim
   > sudo apt-get install ack exuberant-ctags ncurses-term
   > git clone [email protected]:qiao/vimfiles.git
   > mv vimfiles .vim
   > cd .vim
   > git submodule init && git submodule update
   > cd and ln -s .vim/vimrc .vimrc
  
10. install driver and openGL
   > need nvidia-current driver then sudo apt-get install
   mesa-common-dev mesa-utils mesa-utils-extra
   libgl1-mesa-dev libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-dri-experimental
   libglu1-mesa libglu1-mesa-dev
   freeglut3 freeglut3-dev
   libglew1.6 libglew1.6-dev
  
11. ROR框架:
   >sudo apt-get install build-essential libopenssl-ruby libfcgi-dev
   >sudo apt-get install ruby ruby-dev irb rubygems
   >sudo apt-get install sqlite3 libsqlite3-dev nodejs
   [sudo gem install rubygems-update]
   [sudo update_rubygems]
   >sudo gem install rails
   >sudo gem install sqlite3

12. Qt:
   >apt-get install libqt4-dev libqt4-core libqt4-dbg libqt4-gui libqt4-sql qt4-dev-tools qt4-doc qt4-qtconfig
   >apt-get install qtcreator qtcreator-dbg
  
13. install 词典;图片处理;3D图形;影音;阅读;UML建模;截图工具
   >sudo apt-get install stardict sdcv gimp blender vlc xchm/kchmviewer umbrello shutter

你可能感兴趣的:(linux)