Ubuntu安装设置
换源
sudo mkdir archives
sudo cp / var / cache / apt / archives /*. deb archives/
2 使用
sudo gedit / etc / apt / sources . list
deb file :/// media/cdrom0 /
卸载Ibus输入法
sudo gedit
/
etc
/
apt
/
sources
.
list
ubuntu804
deb http:
//
mirrors.
163
.com
/
ubuntu
/
hardy main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - backports main restricted universe multiverse
ubuntu904
deb http: // mirrors. 163 .com / ubuntu / hardy - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / hardy - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / hardy - backports main restricted universe multiverse
deb http:
//
mirrors.
163
.com
/
ubuntu
/
jaunty main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - backports main restricted universe multiverse
ubuntu910
deb http: // mirrors. 163 .com / ubuntu / jaunty - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / jaunty - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / jaunty - backports main restricted universe multiverse
deb http:
//
mirrors.
163
.com
/
ubuntu
/
karmic main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - backports main restricted universe multiverse
更新
deb http: // mirrors. 163 .com / ubuntu / karmic - security main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - updates main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - proposed main restricted universe multiverse
deb http: // mirrors. 163 .com / ubuntu / karmic - backports main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - security main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - updates main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - proposed main restricted universe multiverse
deb - src http: // mirrors. 163 .com / ubuntu / karmic - backports main restricted universe multiverse
sudo apt
-
get update
sudo apt - get upgrade
编程
sudo apt - get upgrade
sudo apt
-
get install build
-
essential
sudo apt - get install qt4 - dev - tools
sudo apt-get install python3 idle3
sudo apt-get install vim-gnome
sudo apt-get install bison
安装JDK
sudo apt - get install qt4 - dev - tools
sudo apt-get install python3 idle3
sudo apt-get install vim-gnome
sudo apt-get install bison
sudo apt
-
get install sun
-
java6
-
jdk
sudo update-alternatives --config java
sudo gedit /etc/environment
安装eclipse
sudo update-alternatives --config java
sudo gedit /etc/environment
CLASSPATH
=.:/
usr
/
lib
/
jvm
/
java
-
6
-
sun
/
lib
JAVA_HOME =/ usr / lib / jvm / java - 6 - sun
JAVA_HOME =/ usr / lib / jvm / java - 6 - sun
sudo apt
-
get install eclipse
sudo update-java-alternatives -s java-6-sun
sudo gedit /etc/jvm
配置共享文件夹
sudo update-java-alternatives -s java-6-sun
sudo gedit /etc/jvm
将文件中的
/ usr / lib / jvm / java - 6 - sun
这一行移动到配置块的顶部
sudo gedit /etc/eclipse/java_home/ usr / lib / jvm / java - 6 - sun
这一行移动到配置块的顶部
将文件中的
/ usr / lib / jvm / java - 6 - sun
这一行移动到配置块的顶部
/ usr / lib / jvm / java - 6 - sun
这一行移动到配置块的顶部
sudo mount
-
t vboxsf Your_folder_name Your_mount_point
ubuntu本地源创建
1创建
dpkg --get-selections | grep -v deinstall | sed 's/[\t ]\+install//g' > ~/packageslist
sudo apt-get update
sudo apt-get autoclean
cat ~/packageslist | xargs sudo apt-get -d --reinstall -y install
sudo mkdir archives
sudo cp / var / cache / apt / archives /*. deb archives/
dpkg-scanpackages archives /dev/null | gzip -9c > Packages.gz
2 使用
sudo gedit / etc / apt / sources . list
deb file :/// media/cdrom0 /
sudo apt
-
get remove ibus
scim中文输入法的安装
sudo apt
-
get install scim
sudo apt - get install scim - chinese
sudo apt - get install scim - config - socket
sudo apt - get install scim - gtk2 - immodule
sudo apt - get install scim - tables - zh
GTK/GNOME开发环境(库、IDE、工具)
sudo apt - get install scim - chinese
sudo apt - get install scim - config - socket
sudo apt - get install scim - gtk2 - immodule
sudo apt - get install scim - tables - zh
sudo apt
-
get install gnome
-
devel
sudo apt - get install gnome - dev - doc
Qt/KDE开发环境(库、工具、IDE)
sudo apt - get install gnome - dev - doc
sudo apt
-
get install kdesdk
sudo apt - get install kdesdk - doc - html
sudo apt - get install kdevelop
sudo apt - get install kdevelop - doc
SVN
sudo apt - get install kdesdk - doc - html
sudo apt - get install kdevelop
sudo apt - get install kdevelop - doc
sudo apt
-
get install rapidsvn