Debian installation overview

Source: Internet
Author: User

Work needs, re-install debian6.06, because Debian is a pure system (compared with Ubuntu, haha), so most of them need to be manually modified! The following describes what the new Debian system needs to do:

1. Modify the source

# Su enters the root Mode

# Vim/etc/APT/sources. List open the source file

The following is my source:

Deb http://mirrors.163.com/debian squeeze main contrib non-free


Use # aptitude update again


Ii. Set Debian static IP Address [1]

Step: (IN root Mode)

# Vim/etc/Network/interfaces modify the interfaces file. My interfaces File Settings are as follows:


# The loopback interfaceauto loiface lo inet loopback# This line ensures that the interface will be brought up during boot.auto eth0iface eth0 inet staticaddress 192.168.2.239netmask 255.255.255.0gateway 192.168.2.1


Note: If you have several NICs, make sure you have configured the NIC for the network.

Then you need to set the DNS configuration file Vim/etc/resolv. conf. My configuration is as follows for reference only:


domain dslabsearch dslab lzu.edu.cnnameserver 202.201.0.131nameserver 202.201.0.132nameserver 192.168.2.1


3. Added support for Debian Chinese [2]

Step: (IN root Mode)
# Dpkg-reconfigure locales
Select en_US.ISO-8859-1 and zh_cn.gbk in all language packs. Other en_us and zh_cn headers are also selected. Then select the zh_CN.UTF-8 UTF-8 as the default locale, the system is the Chinese interface (here you can also select the en_US.UTF-8 UTF-8, make the system as the English interface ).

# Apt-Get install TTF-wqy-zenhei (installation font)

# Apt-Get install xfonts-Intl-Chinese wqy *

Restart the machine next time. In the language below the gnome logon interface, select Chinese as the logon language)

Set Font

Right-click the desktop and choose ==> change desktop background ==> font

#

Select your favorite font, for example, wenquanyi lattice zhenhei or wenquanyi micron black


4. Debian install ibus:

First install ibus and ibus-pinyin

Apt-Get install ibus im-Switch
Apt-Get install ibus-pinyin # or other engines
Im-switch-s ibus
Log out of the user and log on again. Enter ibus-setup in the terminal to enter the ibus configuration mode (or "system" --> "Preferences" --> "ibus configuration ")
Ibus-Setup

Click "Input Method" --> select "pinyin" --> "add "! After the operation is completed, press Ctrl + space to call out the ibus input method. (Or you can select another shortcut in the general options)

5. Compile the kernel [3]

First, download the kernel source code (kernel.org is recommended or the image site of each school (Landa image site), decompress the package, and then CD to the folder where the source code is located.


1. Debian does not have the make tool by default. You need to install the following tools:
# Sudo apt-Get install build-essential
# Sudo apt-Get install ncurses-Dev

2. Open the configuration page.

# Make defconfig
# Make menuconfig

3. Add some support to make the compiled kernel more suitable for your machine
Use the lspci-V command to query all PCI devices, and then add

4. The next step is the make process.

# Make (-J4) // you can add the-J4 information in parentheses to add multi-thread compilation, which will speed up compilation (of course, if the machine performance is good, it can increase the number of threads, such as-j16)

# Make modules_install
# Make install
# Update-grub

5. If you install the system in ext4 file system, perform the following operations in this step. if the system is installed by default, restart the system directly.

# Mount-T debugfs nodev/mnt/


6. Reboot and then in...

The following are two problems I encountered during compilation:
> DRM/i915 can't work without intel_agp module!
This problem is caused by my motherboard and video card. It can be ignored and has no impact on the system.
> Kernel panic-not syncing: VFS: Unable to mount root FS on unknown-block (0, 0)

This problem is that the file system is not mounted! Step 5 is required!

Restart. If you still cannot enter the newly compiled kernel, you can go to the boot file in the/boot/directory to check whether there is any file similar to initrd. IMG-kernel version file. If not, use the following command to generate

Mkinitramfs Linux-3.6.6-O/boot/initrd. img-3.6.6
Note: initrd is short for "Initial ramdisk. Initrd is generally used to temporarily boot the hardware to the State where the actual kernel vmlinuz can take over and continue to boot.

Reference file:

[1] http://library.linode.com/networking/configuring-static-ip-interfaces#sph_static-ip-configuration

[2] http://www.cppblog.com/colorful/archive/2012/05/28/176516.aspx

[3] http://forum.ubuntu.org.cn/viewtopic.php? T = 277452

[4] http://blog.csdn.net/jinble03/article/details/7070982

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.