Debian、Ubuntu 常见开发环境安装
# 基本开发工具及内核头文件
aptitude install -R build-essential autoconf automake fakeroot \
kernel-package linux-headers-2.6-amd64
# 基本开发工具文档
aptitude install -R binutils-doc cpp-doc gcc-doc make-doc diffutils-doc \
autoconf-doc m4-doc
# 系统调用和 C/C++ 库文档
aptitude install -R manpages-dev manpages-posix-dev linux-doc-2.6 \
glibc-doc glibc-doc-reference libstdc++6-4.4-doc
# deb 包制作维护工具及文档
aptitude install -R dh-make devscripts fakeroot lintian pbuilder cowdancer \
debian-policy developers-reference
# 调试器
aptitude install -R gdb gdb-doc cgdb
# 版本控制
aptitude install -R cvs subversion subversion-tools git git-doc
# Xorg
aptitude install -R xorg-dev
# Qt
aptitude install -R libqt4-dev libqt4-opengl-dev qt4-dev-tools qt4-designer \
qt4-doc qt4-demos
# boost
aptitude install -R libboost1.42-all-dev libboost1.42-doc
# Java
aptitude install -R openjdk-6-jdk openjdk-6-doc openjdk-6-demo
# Python
aptitude install -R python-dev python-doc python-examples
# Ada
aptitude install -R gnat gnat-doc gnat-gps gnat-gps-doc
ln -s /usr/share/gps/icons/32px/gps_32.png /usr/share/icons/hicolor/32×32/apps/gnat-gps.png
ln -s /usr/share/gps/icons/48px/gps_48.png /usr/share/icons/hicolor/48×48/apps/gnat-gps.png
update-icon-caches /usr/share/icons/hicolor/
cat > /usr/share/applications/gnat-gps.desktop << EOF
[Desktop Entry]
Name=GNAT-GPS
Exec=gnat-gps
Terminal=false
Type=Application
Icon=gnat-gps
Categories=Development
EOF
# 数据库
aptitude install -R sqlite3 libsqlite3-dev sqlite3-doc
vi ~/.sqliterc #{
PRAGMA foreign_keys = ON;
#}
# 代码格式化
aptitude install -R indent indent-doc xmlindent
# 文档工具
aptitude install -R doxygen doxygen-gui doxygen-doc source-highlight \
graphviz graphviz-doc
# IDE
aptitude install -R qtcreator qtcreator-doc
# http://www.codeblocks.org/
dpkg -i codeblocks_10.05-1_amd64.deb \
libcodeblocks0_10.05-1_amd64.deb \
codeblocks-common_10.05-1_all.deb \
codeblocks-contrib_10.05-1_amd64.deb \
codeblocks-contrib-common_10.05-1_all.deb \
libwxsmithlib0_10.05-1_amd64.deb \
codeblocks-doc-en_10.05-1_all.deb
aptitude markauto libcodeblocks0 codeblocks-common codeblocks-contrib-common libwxsmithlib0
# 建模工具
# http://argouml.tigris.org/
tar xf ArgoUML-0.32.2.tar.gz -C /opt
ln -s /opt/argouml-0.32.2/argouml.sh /usr/local/bin/argouml
ln -s /opt/argouml-0.32.2/icon/argouml2.svg /usr/share/icons/hicolor/scalable/apps/argouml2.svg
update-icon-caches /usr/share/icons/hicolor/
cat > /usr/share/applications/argouml.desktop << EOF
[Desktop Entry]
Name=ArgoUML
Exec=/opt/argouml-0.32.2/argouml.sh
Terminal=false
Type=Application
Icon=argouml2
Categories=Development
EOF
# 基本开发工具及内核头文件
aptitude install -R build-essential autoconf automake fakeroot \
kernel-package linux-headers-generic
# 基本开发工具文档
aptitude install -R binutils-doc cpp-doc gcc-doc make-doc diffutils-doc \
autoconf-doc m4-doc
# 系统调用和 C/C++ 库文档
aptitude install -R manpages-dev manpages-posix-dev linux-doc \
glibc-doc libstdc++6-4.6-doc
# deb 包制作维护工具及文档
aptitude install -R dh-make devscripts fakeroot lintian pbuilder cowdancer \
debian-policy developers-reference
# 调试器
aptitude install -R gdb gdb-doc cgdb
# 版本控制
aptitude install -R cvs subversion subversion-tools git git-doc
# Xorg
aptitude install -R xorg-dev
# Qt
aptitude install -R libqt4-dev libqt4-opengl-dev qt4-dev-tools qt4-designer \
qt4-doc qt4-demos
# boost
aptitude install -R libboost1.42-all-dev libboost1.42-doc
# Java
aptitude install -R openjdk-6-jdk openjdk-6-doc openjdk-6-demo
# Python
aptitude install -R python-dev python-doc python-examples
# 数据库
aptitude install -R sqlite3 libsqlite3-dev sqlite3-doc
vi ~/.sqliterc #{
PRAGMA foreign_keys = ON;
#}
# 代码格式化
aptitude install -R indent indent-doc xmlindent
# 文档工具
aptitude install -R doxygen doxygen-gui doxygen-doc source-highlight \
graphviz graphviz-doc
# IDE
aptitude install -R qtcreator qtcreator-doc codeblocks codeblocks-contrib
# 建模工具
# http://argouml.tigris.org/
tar xf ArgoUML-0.32.2.tar.gz -C /opt
ln -s /opt/argouml-0.32.2/argouml.sh /usr/local/bin/argouml
ln -s /opt/argouml-0.32.2/icon/argouml2.svg /usr/share/icons/hicolor/scalable/apps/argouml2.svg
update-icon-caches /usr/share/icons/hicolor/
cat > /usr/share/applications/argouml.desktop << EOF
[Desktop Entry]
Name=ArgoUML
Exec=/opt/argouml-0.32.2/argouml.sh
Terminal=false
Type=Application
Icon=argouml2
Categories=Development
EOF
#格式化 0.023 秒, 使用 GeSHi 1.0.8.4
from http://forum.ubuntu.org.cn/viewtopic.php?f=70&t=360583