FAQs and management skills for Linux 1

Source: Internet
Author: User
1. How to create multiple users

We would like to remind you that you should not always use the root user because the root user has the highest power in the system and may damage the system accidentally. For example, if we want to delete the files in the/TEMP directory, but accidentally input the command "RM/temp (a space is added after )", it is very likely that all files under the root directory will be deleted. Moreover, "Linux is a real multi-task, multi-user system", but it is a pity that you do not understand the characteristics of Linux. To make it easier for you and others to use it, create several more users in Linux.

Enter "adduser newuser" and press Enter. The screen does not respond to the command. Is it wrong? No, in fact, the system has accepted new users. You should enter the command "passwd newuser", the screen will prompt you to enter the password, enter again to confirm, a new user will be added successfully, it is really simple. Log on right away and try it.

Linux provides six virtual consoles, with ALT + F1 ~ F6 switchover (use crtl + ALT + F1 ~ in X-Window ~ F6 switch), each console can use different users to log on and run different programs. Create a user for your family and friends.

Ii. How to use non-Linux partitions such as floppy disks, CDs, and DoS in Linux

This is the most frequently asked question for Linux beginners. Since everyone is used to Microsoft's access method, I always want to use a similar idea to find a floppy disk and a CD. However, in Linux, Unix treats devices as files. To access a floppy disk and a CD, you must first load them to the/mnt directory of the Linux system.

The mount command is in the following format: Mount-T File System-type device name Mount directory

The file system type is the partition format. Linux supports many file system types:

Msdos partition file system type
Vfat supports DOS partition files with long file names (which can be understood as Windows files) System Types
File System Type of the iso660 Optical Disc
Ext2 Linux File System Type
......

Device Name: the name of the device you want to load. The floppy disk is usually/dev/fd0 fd1. The disk is determined based on the position of your optical drive. The disk where the optical drive is usually mounted to the master disk of the second hard disk is/dev/HDC; if a DOS partition is accessed, the device names are listed. For example,/dev/hda1 indicates the first partition of the first hard disk. The Mount directory is the load point of the specified device.

1. mount a floppy disk

First, use mkdir/mnt/floppy to create an empty floppy directory under the/mnt directory, then input Mount-T msdos/dev/fd0/mnt/floppy to load a floppy disk in the DOS file format, you can find all the content of this floppy disk in the/mnt/Floppy directory.

2. Load the drive C of Windows

Mkdir/mnt/C create an empty C directory under the/mnt directory;
Mount-T vfat/dev/hda1/mnt/C: load the C drive of windows to the/mnt/C directory in the format of long file names, in the future, you can read and write the content in the C root directory.

3. Attach a cd

Mkdir/mnt/CDROM create an empty CDROM directory under the/mnt directory;
Mount-T iso9660/dev/HDC/mnt/CDROM to load the disc into the file system. The content of the disc will be found in the/mnt/CDROM directory. In some Linux versions, you can use the Mount/dev/CDROM or Mount/mnt/CDROM command to mount the disc.
Note that the mount command is used to mount a floppy disk or a CD, rather than a floppy disk or an optical drive. Some beginners may make a mistake, thinking that after using the above command, the soft drive will become/mnt/floppy, and the optical drive will become/mnt/CDROM, in fact, it is not, when you want to change a disk or a floppy disk, you must first detach it and then reload the new disk.

4. Uninstall
Command Format: umonut directory name. For example, to detach a floppy disk, enter the command umonut/mnt/floppy. Note that directly pressing the pop-up key on the optical drive panel does not work before you detach the disc.

3. How to install linux Application Software

For common users, you can install or upgrade software by using Red Hat software package and management tool rpm. After use, you can easily install, upgrade, and uninstall software and query software information.

If you are installing Red Hat Linux, you can use rpm. If not, you can install RPM first. The method is as follows:
1. Download RPM software package: ftp://ftp.redhat.com/pub/code/rpm/rpm-2.3.11.tar.gz
2. Run the following commands in Linux:
CD/
Tar xzvf rmp-2.3.11.tar.gz
CD rpm-2.3.11
./Configure
Make
Make install
Mkdir/var/local/lib/RPM/var/lib/RPM

In this way, you have completed the RPM installation, and then you can find the RPM installation version of the software on the Internet or on the CD. Then install with RPM. The usage of RPM is simple:
1. install the software package with RPM: rpm-IVH software file name
For example, the rpm-IVH fvwm95-2.0.43a.chinese-1.i386.rpm screen will output the package name and the installation progress bar:
Fvwm95 ###############
When the progress bar goes to the end, the Chinese fvwm95 (an X-Window Interface) will be installed, and then run X-window. Ah, the Chinese fvwm95 will be in front of me.

2. reverse installation package with RPM: rpm-E Software name
Example: rpm-e fvwm95

3. Use the RPM upgrade package: rpm-uvh software upgrade file name
For example: rpm-uvh fvwm95-2.1.0a.chinese-1.i386.rpm, RPM automatically uninstalls the original old version, upgrade software installed into the system. It's not hard!

4. How to view Linux Files in Windows

By using the mount command, we can easily view and use Windows files in Linux. As the saying goes, we also hope to see Linux Files in windows. But windows is not as friendly as Linux, and there is no tool for communicating with Linux. What should I do? Don't worry, there is a small tool on the network called linuxdos, less than 500 K, running in windows, dedicated to viewing Linux Files. After running, you can select a drive and list the Linux File System just like the resource manager.

V. How to Upgrade Linux

The Linux language is English, so the screen is full of "English mouse", which is inconvenient to use. However, Chinese software engineers are talented enough to provide a comprehensive solution for the localization of Linux.

1. chdrv
First of all, you must enable Linux to display Chinese characters! Chdrv is a Chinese analog terminal under the command line. That is to say, if you install it, you can display and enter Chinese characters in the Linux Command Line state. After chdrv is started, a virtual terminal is created in tty7 (CTRL + ALT + F7). After logging on to tty7, you can use the Chinese support provided by the virtual terminal. Tty1 to tty6 will not be affected.
If you can find the RPM installation package, you can easily use the RPM installation program to install it. Otherwise, you can go to ftp://ftp.ihep.ac.cn/pub/chinese/systemto obtain the chdrvbin-0.23.gb.tar.gzand chdrvfont.tar.gz compiled by chdrv. Then log on with root and execute the following commands in sequence:
Tar xvzf chdrvbin-0.23.gb.tar.gz decompress the compiled chdrv to the chdrv-0.23.gb directory
MV chdrvfont.tar.gz chdrv-0.23.gb/move the font file to the chdrv-0.23.gb directory
CD chdrv-0.23.gb into this directory
./Installbin run the Installation File

2. xcin
If you often use Linux in X-window, try xcin to solve the problem of Chinese input. Xcin is the abbreviation of XWindow Chinese input. It is a Chinese Input System running in X-window mode. After it is installed, all terminals of X-window will provide Chinese services.
You can go to ftp://ftp.ihep.ac.cn/pub/chinese/sy...?
Tar xzvf xcingb-2.2.tar.gz Decompression
CD xcingb-2.2 into Directory
./Configure modify Installation Options
Make Compilation
Make install Installation
Similarly, if you can find the RPM installation version of the software, you can use rpm for installation.
So far, we have introduced how to use Chinese in command line and X-window. However, in the text editing software, only Chinese characters can be displayed, but Chinese characters cannot be entered. To solve this problem, you must manually modify the following two points:

1) set different shell
If bash shell is used: Add the following content in/etc/profile:
Stty cs8-istrip
Stty pass8
Export lang = C
Export lc_ctype = iso-8859-1
If you use tcsh shell: Add the following settings in/etc/CSH. login or/etc/CSH. cshrc:
Stty cs8-istrip
Stty pass8
Setenv Lang C
Setenv lc_ctype iso-8859-1

2) Add the following content to the. inputrc file in your home directory:
Set convert-meta off
Set output-meta on

3. Chinese Window Manager C-fvwm95
Fvwm95 is like a Linux English Win95. Linux users in China always expect to use Linux in a chinese window one day. This desire is now a reality. Mr Yu Ming, from the computing center of the Institute of high energy physics of the Chinese Emy of sciences, made fvwm95 a Chinese character. We can finally replace the nasty English characters on fvwm95 with Chinese characters!
You can download the fvwm95's source code from ftp.ihep.ac.cn/pub/chinese/packages. Its font can also be obtained in ftp.ihep.ac.cn/pub/chinese/fonts/pcf. Installation instructions are attached to the downloaded file. Because its configuration is still troublesome, it is best to find the appropriate RPM package.

4. Download bluepoint Linux star Preview (blue point Preview)
The blue-point preview version is based on Red Hat and contains the Chinese kernel, the Chinese display/input in the console, the Chinese xserver (cxwin 0.6), and the Chinese display/input of X; localized NLS message and library files.

A. Chinese Kernel
1. Excellent performance. The kernel supports Chinese characters, occupies a very small amount of resources, and the speed is extremely fast.
2. multi-language support. Multiple inner codes (GB/big5) are displayed on the same screen ).
3. Excellent compatibility, kernel compatibility with upper-layer applications, and the most thorough solution.
4. Support for high resolution depends entirely on the user's Hardware restrictions.
5. Supports various fonts and 14 simplified and traditional fonts.
6. Use the hotkey to switch the language environment (GB/big5/EN ).

B. Chinese xserver
1. Good compatibility. at least 95% of pure Spanish applications support Chinese processing.
2. built-in input and display support, which is very convenient to use and requires no additional input module installation.
3. Support for TTF font.
4. Supports GB/big5 internal codes.

C. localized message and corresponding library files
1. Message prompts for Chinese characters, Boot, shutdown, and common software are displayed in Chinese.

If you need to install the Chinese console and language environment, download star-zhcon.tar.gz. If you need to use the 24-dot-matrix Chinese character library on the console, download star-font24.tar.gz. Note: Do not forget to download the install installation script! Read readme and FAQs carefully before installation!

Installation Method

1) create a directory and put all downloaded files in it.
2) run the installation script as root: # bash install
3) The installation script will first check the system configuration and automatically search for the TTF font. Next, back up the old configuration file and start installation.
4) the installation is complete. If the Chinese Console environment is installed, restart.

6. How to set a sound card

I don't need to say, this is a very important job! However, if you have installed Red Hat Linux, this is easy!

Log on to the system as the root user and run/usr/sbin/sndconfig. The image of the sound card type is displayed. Sound Blaster can be selected for sound cards.

After selecting the sound card, SET related resources. Press OK when you use the tab key and arrow key to make the selection. If you hear the voice of Linus (founder of Linux), the sound card is set successfully. Sound card settings for old dos games ......

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.