RedHatLinux usage tips

Source: Internet
Author: User
Article title: RedHatLinux usage tips. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Since its advent, Linux has become famous for its openness, ease of use, stability, and portability. The following describes some issues in Red Hat Linux.
  
I. installation of multiple systems
If you want to install DOS, Windows 98, and Linux at the same time, we recommend that you first install other operating systems before installing Linux. In this way, other operating systems can better work with hardware, and other systems can avoid modifying Linux data in MBR.
Perhaps you should follow the steps described below: first, execute the installation process for other operating systems, but if other operating systems occupy all disk space, you can try to 'detach 'a part of the space, that is, use 'native fdisk' to generate the partitions required by other operating systems (the size of the space depends on the operating system, you can decide on your own ), then reinstall the operating system. After installation, you can start Linux installation.
  
2. create your own drive in Linux
Linux drives are created in a different way than DOS. It usually uses a combination of characters to indicate which bus (sd represents scsi, hd represents IDE), and identifies it in the order it recognizes, followed by additional numbers to represent partitions.
For an IDE hard disk, the result depends on the IDE channel where the hard disk is located and the mode (master or slave) in which it is located. See the following table:
Channel Jumper hdx
============================================
Ide0 master hda
Ide0 slave hdb
Ide1 master hdc
Ide1 slave hdd
Ide2 master hde
Ide2 slave hdf
Ide3 master hdg
Ide3 slave hdh
  
  
Ide0 = primary
Ide1 = secondary
Ide2 = tertiary
Ide3 = quarterary
According to previous PC standards, each hard disk can have a total of four partitions, one of which can be specified as an extended partition. You can define logical partitions within this extended partition (a total of 12 logical partitions can be defined in a total of 16 extended partitions ).
The order of these partitions is as follows: 1-4 primary partitions; 5-16 logical partitions.
  
3. delete LILO from the master boot record (MBR)
There are several ways to delete LILO from the master boot record. In Linux, you can use the previously saved MBR to overwrite the existing MBR. the command is as follows:
/Sbin/lilo-u
In DOS, NT, and Windows 98, you can use the fdisk command to generate a new MBR, that is, use the parameter "/mbr" that is not in the document ". It will rewrite MBR to start the primary DOS partition:
Fdisk/mbr
  
4. change the configuration similar to Windows 95 (interface)
If you do not like the default window manager configuration, you can select another Style from the Preferences menu options and click the WM Style menu options.
  
V. Custom X window manager
To customize the default window magnager setting parameters, such as adding or deleting programs from the menu or changing automatically started programs, you need to modify the file/etc/X11/AnotherLevel.
  
6. fully allocated memory
In this example, we have a 64 M memory computer, but Linux can only find 32 M. at the LILO prompt, we type: LILO: linux mem = 64 M.
After the computer starts, we can use the free command to check whether the kernel recognizes more memory. if it has been identified, we need to go to/etc/lilo. add a line to conf and run lilo again to make it change permanently. the following is a (/etc/lilo. conf) example.
Boot =/dev/sda
Map =/boot/map
Install =/boot. B
Prompt
Timeout = 50
Image =/boot/vmlinuz-2.0.32
Label = linux
Root =/dev/sda1
Initrd =/boot/initrd-2.0.32.img
Read-only
Append = "mem = 64 M"
After editing the file (/etc/lilo. conf), do not forget to run lilo
  
7. use my parallel port to drive the zip drive
To edit/etc/conf. modules, add the following lines:
Alias scsi_hostadapter ppa
If you want to pass some parameters to the ppa driver, you can add the following lines:
Options ppa = <参数设置>
  
8. plug-and-play adapter
The 2.0.xx series kernel cannot directly support the plug-and-play (PNP) protocol .. You need to disable the PNP feature of the adapter (you can configure it by using a jumper or adapter setup tool ). You can also change the startup mode and use Loadlin.exe to start Windows (because windows can configure PNP hardware devices ).
The last method is to try the isapnptools program. First, type:
Pnpdump>/etc/isapnp. conf
It will generate a configuration file. you can edit and select Settings that match each card. Type isapnp/etc/isapnp. conf to start these devices.
  
9. the default setting of LILO is to start Linux. how to (LILO) start other operating systems by default
To change the default operating system, you must modify the/etc/lilo. conf file to change the operating system sequence. In the following example, we demonstrate how to change the startup sequence so that DOS replaces Linux as the default operating system.
Pico/etc/lilo. conf
  
# Use the original file
  
Boot =/dev/hda
Map =/boot/map
Install =/boot. B
Prompt
Timeout = 50
Image =/boot/vmlinuz-2.0.31
Label = linux
Root =/dev/hda2
Read-only
Other =/dev/hda1
Label = dos
Table =/dev/hda
  
# The modified file is as follows:
Boot =/dev/hda
Map =/boot/map
Install =/boot. B
Prompt
Timeout = 50
Other =/dev/hda1
Label = dos
Table =/dev/hda
Image =/boot/vmlinuz-2.0.31
Label = linux
Root =/dev/hda2
Read-only
Save your file and exit the editor. Run the following command:
/Sbin/lilo-v
The modified lilo has been written to the startup device. during the startup process, DOS replaces Linux as the default startup operating system. In addition, there is a 50-second delay at startup, prompting you to choose to start Linux.
  
The above is only part of what I encountered in the use process. The solution is not necessarily the best, but only for your reference. I hope this will help you gain some benefits.
  
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.