Back to distro

See also Debian

Ubuntu

1. 相关网址

1.1. 官方网站

1.2. 民间网站

2. 基本概念

2.1. Ubuntu PPA

Personal Package Archives for Ubuntu

3. 版本代号

从ubuntu 6.04开始,一直保持着字母序列号递增的命名方式,以顺序DEFGHIJ…命名。

开发代号

中文

发布版本

Lucid Lynx

清醒的猞猁

10.04

Karmic Koala

幸运的考拉

9.10

Jaunty Jackalope

得意洋洋的怀俄明野兔

9.04

Intrepid Ibex

勇敢的野山羊

8.10

Hardy Heron

坚强的苍鹭

8.04

Gutsy Gibbon

胆大的长臂猿

7.10

Feisty Fawn

烦躁不安的小鹿

7.04

Edgy Eft

尖利的小蜥蜴

6.10

Dapper Drake

整洁的公鸭

6.06

Breezy Badger

活泼的獾

5.10

Hoary Hedgehog

白发的刺猬

5.04

Warty Warthog

多疣的疣猪

4.10

lsb_release -a: 查看当前Ubuntu发行版本

查看安装的软件的信息

$ dpkg -s bash |grep "Arch\|Ver"
Architecture: amd64
Version: 4.2-0ubuntu3

4. System Management

4.1. Change Hostname (Computer Name)

sudo hostname NEW_NAME_HERE # immediatly, temporary
sudo vi /etc/hostname /etc/hosts # permanent, need restart

4.2. Network Configuration

Refer Ubuntu Linux networking examplehere

vi /etc/network/interfaces

then Restart Network Interface, with: /etc/init.d/networking restart

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
# iface eth0 inet dhcp #use NAT in vbox setting
iface eth0 inet static
        address 172.27.251.222
        netmask 255.255.251.0
        broadcast 172.27.251.255
        gateway 172.27.251.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 172.27.233.100

# vbox host-only interface
auto eth1
iface eth1 inet static #don't add gateway!
        address 192.168.56.22
        netmask 255.255.255.0
        network 192.168.56.0
        broadcast 192.168.56.255

4.3. Kernel Rebuild

refer here

ll /boot/
-rw-r--r--  1 root root  1162712 Jul 15 12:29 abi-3.13.0-32-generic
-rw-r--r--  1 root root   165611 Jul 15 12:29 config-3.13.0-32-generic

mkdir ~/kernel; cd ~/kernel
##depend tools
sudo apt-get install dpkg-dev debhelper fakeroot
apt-get source linux-image-$(uname -r)
sudo apt-get build-dep linux-image-$(uname -r)
## Modifying the configuration
chmod a+x debian/scripts/*
chmod a+x debian/scripts/misc/*
##Building the kernel
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
ll *.deb
-rw-r--r-- 1 liyan liyan   135962 Aug 29 15:17 linux-cloud-tools-3.13.0-34-generic_3.13.0-34.60_amd64.deb
-rw-r--r-- 1 liyan liyan  8996726 Aug 29 12:17 linux-headers-3.13.0-34_3.13.0-34.60_all.deb
-rw-r--r-- 1 liyan liyan   823086 Aug 29 15:17 linux-headers-3.13.0-34-generic_3.13.0-34.60_amd64.deb
-rw-r--r-- 1 liyan liyan 15335990 Aug 29 15:17 linux-image-3.13.0-34-generic_3.13.0-34.60_amd64.deb
-rw-r--r-- 1 liyan liyan 36892402 Aug 29 15:17 linux-image-extra-3.13.0-34-generic_3.13.0-34.60_amd64.deb
-rw-r--r-- 1 liyan liyan   136014 Aug 29 15:17 linux-tools-3.13.0-34-generic_3.13.0-34.60_amd64.deb
#Install & reboot
sudo dpkg -i linux*3.13.0-34-generic_3.13.0-34.60*.deb
sudo reboot

4.4. apt-get

Unable to fetch some archives for old version

# vi /etc/apt/sources.list
# rename link:
:%s/us.archive.ubuntu.com/old-releases.ubuntu.com/g
:%s/security.ubuntu.com/old-releases.ubuntu.com/g
:wq
# apt-get update

Sources in china:

5. Ubuntu Tools

Ubuntu_Tools

6. Reference


CategoryLinux

MainWiki: Ubuntu (last edited 2009-10-28 16:37:15 by twotwo)