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/etc/apt/sources. list open source file below is the source I use: deb squeeze main contrib non-free then use # aptitude update II. Set Debian static IP [1] Step :( in root Mode) # vim/etc/network/interfaces modify the interfaces file. My interfaces File Settings are as follows: [cpp] <span style = "font-size: 18px; "> # The loopback interface auto lo iface lo inet loopback # This line ensures that the interface wi Ll be brought up during boot. auto eth0 iface eth0 inet static address netmask gateway </span> Note: If you have several NICs, make sure that you set the NIC for your network cable and then set the DNS configuration file vim/etc/resolv. conf, my configuration is as follows, for reference only: [cpp] <span style = "font-size: 18px; "> domain dslab search dslab nameserver nameserver nameserver </span> 3. Add Debian Chinese support [2] steps: (IN root mode) # dpkg-re Configure 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 ( 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: 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.