Debian extension system installation-Linux Release Technology-Debian information, the following is a detailed description. An untitled "extended system" is officially called "additional package", which refers to a part of the Debian system except the basic system. The package of the basic system is required [1], which is the only difference between it and the package of the extended system. Install the extension system, including upgrading and maintaining the basic system, and use the package management system. The package management system of Debian has a large family of tools. Here we will only introduce the most commonly used tools.
The first is the most basic dpkg, namely, Debian PacKaGe, which processes local software packages, including installation and uninstallation. If you want to install a local package, such as foo. deb (deb package extension), the simplest command is dpkg-I foo. deb, uninstall bar. deb is dpkg-r bar. deb, the parameter-I-r is install remove [2].
With dpkg, a natural problem is how to effectively obtain the deb file, which is one of the main tasks of the apt (Advanced Package Tool) series tools. Before introducing apt, we should first explain how to organize more than 18000 packages in 21 CDs in Debian. Open the Debian main site ftp, all the packages are placed under the pool directory, according to their license and support methods are divided into three categories: main contrib non-free. The main directory includes free software, software that can be freely released, and software fully supported by the Debian team. contrib is a donated software that is not supported by the Debian team, but can be freely released; non-free is a non-free software. Pay attention to the copyright when using it. Each directory is divided into multiple subdirectories for access speed consideration. If a directory contains a large number of files, the access speed will be slow. Then, a series of index files are generated for the location of these packages and placed in the dists directory. You can download the required packages based on the downloaded index files. Based on the stability of the software package, three types of index files are generated, namely stable testing unstable [3], to meet the needs of different users. Therefore, when using apt tools, you must first configure the installation source (such as the above ftp, Debian image site, and Local CD). The configuration file is in the/etc/apt/directory, we only use sources. list [4].
Start Debian and log on to [5] with the root account. Open sources. list in the nano Editor:
Nano/etc/apt/sources. list
The line starting with "deb cdrom" is the installation source when the basic system is installed. Now we will not use it any more. Enter the "#" sign at the beginning of the line to comment it out. Enter another line
Deb ftp://ftp.debian.org/debian testing main contrib non-free
Ctrl + o (letter, prompt below the screen) Save, prompt to save the file name, is/etc/apt/sources. list, press enter to confirm, then ctrl + x exit and end the editing. Let's see what the line we entered means.
Deb indicates that the source specified for this line is the Binary Package source, and the corresponding source code package is deb-src. Next, the address of the directory where dists is located. The address of the main site is used for the time being. Next is testing, which is the Debian testing Release. The last three items (which can have any number of items) have already been introduced. If you only want to use the main package, you can remove the other two items. The sources. list file can specify multiple installation sources at the same time. Each source occupies one row and has a higher priority.
You have already configured the installation source. Now you can update the index file of the package to upgrade the basic system and install new software packages. Run aptitude and press the u key to update the index file of the package (the key prompt below the menu bar). Multiple Categories of the package are displayed after the update. In aptitude, the "j" key moves down the cursor, k, h left, l right, press enter to expand/collapse the directory, view the package information, and q exits step by step, /search for package \ reverse, n search for the next N, + mark the package to be installed-mark uninstallation, g perform the operation. More buttons can be clicked? You can also find ctrl + t in the menu bar (and then ctrl + t to exit the menu ). [6]
At this time, we can directly upgrade the basic system or install the required package on the upgradable packages, but we hope to find a fast-network installation source. If you can learn about the rapid Debian installation source from the Linux user group, you can set this source When configuring the installation source and skip the following step, otherwise, you can use the following method to find the quick installation source. Mark apt-spy installation in aptitude, that is, first press "/" to find "apt-spy", and then press "+" on apt-spy, the package to be operated is displayed by g and divided into two categories: "packages being held back" and "packages to be installed ", the first type is the packages that can be upgraded but users do not plan to upgrade. The second type is only apt-spy. Start to download and install the SDK by pressing g. If there is no error, apt-spy will be installed. Next, use apt-spy to find the fastest source. The command format is as follows:
Apt-spy-d testing-a Asia-o/etc/apt/sources. list
-D testing is the release version of testing,-a Asia is searched in the range of Asia, and North America is written in North America, which can be found through man apt-spy, -o/etc/apt/sources. list writes the result to/etc/apt/sources. list. Executing this command is a long and permanent process. After it is completed, it will change sources. list to the fastest source to be found. Run the following command to view the modified sources. list
Cat/etc/apt/sources. list
Now we can quickly upgrade the basic system, update the index by u in aptitude, and then upgrade the current updated package by + in the upgradable packages directory, apt-spy is useless. After searching, press-unmount, press g to confirm, and then press g to perform the operation. During installation, the keyboard ing and restart cron options are displayed. Select don't touch keymap and confirm. After the restart, run reboot (the new kernel is installed and needs to be restarted). In grub, choose to start with the new kernel.
Next, you can install the graphical interface (X Window) on your PC, which consists of the X server and the X program as the client. Install X Server first. You can use xserver-xorg. During installation, select the resolution and use the space key. Then install the basic X program, that is, the desktop environment or window manager. For ease of entry, we can use GNOME desktop or KDE Desktop. In my opinion, the difference between the two is that GNOME is stable and KDE is more beautiful. For basic GNOME, you only need to install gnome-core and gmtr (optional); for basic KDE, you only need to install kde-core and Language Pack (the Simplified Chinese package is a kde-i18n-zhcn, and you don't need to install it in English ), the tool kdm is automatically installed when kde-core is installed. Xfonts-wqy can be used for Chinese fonts. You can use scim, pinyin, scim-pinyin, and scim-tables-zh [7]. Run after installation
/Etc/init. d/kdm start
(GNOME is a GTM instance) Start the graphic logon interface. If the video card driver is correct, you can use the desktop environment. You can enter commands in the terminal (GNOME is a program> attachment> terminal, and KDE is a system tool> Konsole.
The installation of other software is similar. Here is a list of commonly used software, which I wrote for k big Linux Install Party last Sunday for your reference. (Don't talk about the poor layout)
Here is the screen recording of the above process. The installation source in the video is set to a k-large source. apt-spy modifies sources. list and then changes back. The basic system was upgraded twice because of a broken package. There is an error in the restart time zone, so it is restarted twice. This will not happen on other machines. KDE is installed in the desktop environment. Click logout> shutdown. The video is not displayed.
[1] Not exactly. Several packages can be deleted. The basic system is roughly the smallest subset of these packages: it allows machines to run and provides a few simple tools to make the system easy to expand. After the system is expanded, it will not use these simple things.
[2] more parameters can be found in the help manual. dpkg -- help provides a list of parameters and a simple description. man dpkg and info dpkg can view the detailed manual and exit by pressing q. Other commands are similar. The -- help parameter may also be-h. The manual obtained by the info command is roughly the most detailed. How to effectively use manuals and documents is not a matter of knowledge.
[3] The stable package remains unchanged in a version number (currently 4.0). It provides the most stable and oldest package and is generally used in servers and other systems with high stability requirements. The packages in unstable are almost the latest, followed by many bugs. It is suitable for users who like to taste new or toss. Testing is between the two. Unstable has a permanent alias named sid (Still In Development). The aliases of stable and testing change with the version number. In 4.0, they are etch and lenny. These three sets of parameters represent a specific release, such as "Debian sid release ". Later we will use the testing version, and be able to skillfully use the unstable version when using Debian.
[4] description of this configuration file: man sources. list
[5] for security reasons, * users in the nix system are divided into Super Users (root) and ordinary users. root has ownership of the resources of the entire system, and ordinary users have ownership of some resources. For example, if a common user is poisoned, the most damaged file is all the files of the user, and the system file will not be damaged. Therefore, only common user permissions are used in general cases, and root is used only when root permissions are required for system configuration and software installation. The common user switches to the root user and uses the su command.
[6] after the package downloaded by Debian is installed, the. deb file is not automatically deleted and stored in/var/cache/apt/archives. You can delete it in the clean package cache menu.
[7] The ttf-arphic-bsmi001p and ttf-arphic-gbsn001p are removed during installation confirmation, the two fonts are not good looking.
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