这篇文章仅供参考(或者说仅供我自己参考),事实上基本不可能拷到终端后,一键安装的,建议一段段的安装...总之,此文新手不宜,可能越看越乱。
一、总速配
备注:需要预先准备好jdk-6u43-linux-x64.bin、bcompare-3.3.8.16340_amd64.deb。
$sudo passwd root #cp source.list /etc/apt/sources.list #add-apt-repository ppa:apt-fast/stable && \wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \add-apt-repository ppa:wiznote-team && \apt-get update && \echo update_sources >> ./status && \apt-get install axel aria2 apt-fast && \echo install_apt-fast >> ./status && \apt-fast install vim gnome-session-fallback gnome-tweak-tool gconf-editor enca gdebi rpm alien fakeroot stardict ubuntu-tweak flashplugin-installer && \echo install_pag1 >> ./status && \apt-fast install nautilus-open-terminal ppa-purge tofrodos gwibber-service-sina gwibber-service-sohu openssh-server && \echo install_pag2 >> ./status && \apt-fast install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32z-dev && \echo install_pag3 >> ./status && \apt-fast instal libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc && \echo install_pag4 >> ./status && \apt-fast install uboot-mkimage google-chrome-stable iptux&& \echo install_pag5 >> ./status && \\apt-fast install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib && \update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 50 && \update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100 && \update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 50 && \update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.4 100 && \update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 50 && \gcc -v && \echo install_gcc4.4 >> ./status && \\\\\\\dpkg -i bcompare-3.3.8.16340_amd64.deb && \echo install_bcompare >> ./status && \\mkdir -p /usr/lib/jvm && \./jdk-6u43-linux-x64.bin && \mv jdk1.6.0_43 /usr/lib/jvm && \update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_43/bin/javac 1 && \update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_43/bin/javadoc 1 && \update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_43/bin/java 1 && \update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_43/bin/javaws 1 && \update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_43/bin/jar 1 && \update-alternatives --config javac && \update-alternatives --config javadoc && \update-alternatives --config java && \update-alternatives --config javaws && \update-alternatives --config jar && \echo install_java6 >> ./status && \\reboot#gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]" && \echo set_gconf >> ./status#su root && \echo su_root > ./status add-apt-repository ppa:tualatrix/ppa && \sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' && \
二、源替换(12.04)
$sudo cp source.list /etc/apt/sources.list
或者
$sudo vim /etc/apt/sources.list
#zran============================================================
#香港
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise main restricted
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise main restricted
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates main restricted
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates main restricted
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise universe
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise universe
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates universe
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates universe
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-updates multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-backports main restricted universe multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security main restricted
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security main restricted
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security universe
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security universe
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu/ precise-security multiverse
deb http://archive.ubuntu.com/ubuntu precise multiverse
$ add-apt-repository ppa:apt-fast/stable
$ add-apt-repository ppa:tualatrix/ppa
$ sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ add-apt-repository ppa:wiznote-team
速配:
#add-apt-repository ppa:apt-fast/stable \
&& add-apt-repository ppa:tualatrix/ppa \
&& sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - \
&& add-apt-repository ppa:wiznote-team \
&& apt-get update
三、软件安装速配
#apt-get install axel aria2 apt-fast
#apt-fast install vim
#apt-fast install gnome-session-fallback
#apt-fast install gnome-tweak-tool
#apt-fast install gnome-shell-extensions
#apt-fast install faenza-icon-theme faience-icon-theme
#apt-fast install gconf-editor && gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]"
#apt-fast install enca
#apt-fast install gdebi
#apt-fast install rpm
#apt-fast install alien fakeroot
#apt-fast install stardict
#apt-fast install ubuntu-tweak
#apt-fast install flashplugin-installer
#apt-fast install nautilus-open-terminal
#apt-fast install ppa-purge
#apt-fast install y-ppa-manager
#apt-fast install tofrodos
#apt-fast install gwibber-service-sina
#apt-fast install gwibber-service-sohu
#apt-fast install openssh-server
#apt-fast install git-core gnupg flex bison gperf build-essentialzip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc
速配:
$su root
#apt-get install axel aria2 apt-fast \
&& echo install_apt-fast >> ./status \
&& apt-fast install vim gnome-session-fallback gnome-tweak-tool gconf-editor enca gdebi rpm alien fakeroot stardict ubuntu-tweak flashplugin-installer \
&& echo install_pag1 >> ./status \
&& apt-fast install nautilus-open-terminal ppa-purge tofrodos gwibber-service-sina gwibber-service-sohu openssh-server \
&& echo install_pag2 >> ./status \
&& apt-fast install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32z-dev \
&& echo install_pag3 >> ./status \
&& apt-fast instal libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc \
&& echo install_pag4 >> ./status \
&& apt-fast install uboot-mkimage google-chrome-stable \
&& echo install_pag5 >> ./status \
&& gconftool-2 --set --type=list --list-type=string /apps/gedit-2/preferences/encodings/auto_detected "[UTF-8,CURRENT,GB18030,BIG5-HKSCS,UTF-16]"
&& echo set_gconf >> /status
下面是问题软件:
apt-fast install gnome-shell-extensions faenza-icon-theme faience-icon-theme lib32readline5-dev y-ppa-manager
接下来是需要手动安装的软件:
beyond compare:
下载地址:http://down.tech.sina.com.cn/page/52815.html (选择合适版本下载,我在自己的百度网盘里面也做了备份)
安装命令:
sudo dpkg -i bcompare-3.3.7.15876_amd64.deb
PS:Ubuntu安装软件时只要找到软件名,然后sudo apt-get install filename 或者sudo dpkg -i filename.deb就搞定了
链接是dpkg用法:
http://blog.csdn.net/zhou_2008/article/details/6076900
-i :安装 -P:完全卸载
安装32bit:$ sudo dpkg -i bcompare-3.3.8.16340_i386.deb
安装64bit:$ sudo dpkg -i bcompare-3.3.8.16340_amd64.deb
卸载32bit:# dpkg -P bcompare:i386
卸载64bit:# dpkg -P bcompare
四、Java安装
$ su root
#update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_43/bin/javac 1 \
&& update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.6.0_43/bin/javadoc 1 \
&& update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_43/bin/java 1 \
&& update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_43/bin/javaws 1 \
&& update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.6.0_43/bin/jar 1 \
&& update-alternatives --config javac \
&& update-alternatives --config javadoc \
&& update-alternatives --config java \
&& update-alternatives --config javaws \
&& update-alternatives --config jar
五、gcc安装
$su root
#apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilib && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 50 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 100 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 50 && \
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.4 100 && \
update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 50 && \
gcc -v