Debian installation overview

Source: Internet
Author: User
Tags nameserver
Debian installation guide work needs to re-install Debian 6.06, because Debian is a pure system (compared with Ubuntu, haha), so most of them need to be manually modified! The following describes the work to be done in the new Debian system: 1. modify the source # su to enter the root mode # vim... debian installation guide work needs to re-install Debian 6.06, because Debian is a pure system (compared with Ubuntu, haha), so most of them need to be manually modified! The following describes the work to be done in the new Debian system: 1. modify the source file # su enters the root mode # vim/etc/apt/sources. list open the source file. below is the source file I used: deb http://mirrors.163.com/debian Squeeze main contrib non-free and then use # aptitude update 2. 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: [cpp] # The loopback interface auto lo iface lo inet loopback # This line ensures that the interface will be brought up during boot. auto eth0 iface eth0 inet static address 192.168.2.239 netmask 255.255.255.0 gateway 192.168.2.1 note: If you have several NICs, make sure you set Then you need to set the DNS configuration file vim/etc/resolv. conf, my configuration is as follows, for reference only: [cpp] domain dslab search dslab lzu.edu.cn nameserver 202.201.0.131 nameserver 202.201.0.132 nameserver 192.168.2.1 3. add Debian Chinese support [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 the logon language: Right-click the Chinese (China) font and choose ==> change desktop background ==> font # select your favorite font, for example: wenQuanYi lattice is black 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 to log out and log on again, enter ibus-setup under 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 other shortcut keys in the general options) 5. Compile the kernel [3]. first, download the kernel source code (kernel.org or the image site of each school is recommended )), decompress the package and cd it to the source code folder. 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, make the compiled kernel more suitable for your machine to use the lspci-v command to query all pci devices, then add 4 to one query in menuconfig, followed by the make process # make (-j4) // you can add the-j4 information in the brackets to add multi-threaded 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 module S_install # make install # update-grub 5. if the partition is the ext4 file system when you install the system, perform the following operations in this step. if it is installed by default, restart it. # 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 a problem with 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.
Related Article

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.