Study with me in linux 2

Source: Internet
Author: User
Learn 2 together with me in linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. Learn linux 2nd together
First of all, I would like to thank so many of my brothers for their support for my first lesson. I hope you will continue to support me. I will continue to finish writing linux and continue to work hard.
1. log on to the Management Server. For the sake of security, we generally do not directly log on to the linux server. We use the remote maintenance tool putty for login and maintenance.
Http://www.crsky.com/soft/6571.html, some useful law brothers may ask me
2. After we log on with putty, We can modify [root @ zy root] # LANG = zh_CN.GB18030
In this way, it will support Chinese
3. Now we need to mount external devices. First, we need to understand that the directory for mounting external devices is in the/mnt directory. The mnt directory has two default directories: cdrom and floppy,
Cdrom is attached with an optical drive and floppy is attached with a soft drive. If we need to mount other devices, such as a USB drive, we need to create a new directory.
[Root @ zy root] # ls/mnt,
[Root @ zy root] # mkdir/mnt/u1, And then mount the disk. In addition, the USB flash drive is generally/dev/sda1. If you do not know whether fdisk-l is available,
Command to view [root @ zy root] # fdisk-l
[Root @ zy root] # mount/dev/sda1/mnt/u1
[Root @ zy root] # umount/mnt/u1 detach a USB flash disk
Now let's learn how to mount the CD [root @ zy root] # mount/dev/cdrom/mnt/cdrom
[Root @ zy root] # ls/mnt/cdrom now we can see the content in the CD. We can use df to check the mounting status [root @ zy root] # df-h
If you do not want to use a CD, you can use umount to uninstall [root @ zy root] # umount/mnt/cdrom. Remember to uninstall the CD when you use up your devices.
4. If you want to mount the windows partition [root @ zy root] mount-t vfat/dev/sdb/mnt/window,
Here,/dev/sdb is my windows partition. in linux, vfat is the format of windows partition.
5. Next we will learn the following linux fdisk partitioning tool [root @ zy root] # fdisk/dev/sda
My hard disk is in dev/sda format, and then it will show command (m for help): Let's select m here. below will be a common command I will explain, n Add a new partition, d delete a partition, w write into the partition table, q exit and do not save, t can change the file type, then I will not talk about the specific partition process, contact me if you don't understand.
6. linux formatting Tool
[Root @ zy root] mkfs. vfat/dev/sdb1,
Mkfs is the formatting command. vfat is the formatting type. We can also change vfat to ext2, ext3, dev/sdb1, which is a partition of my hard disk.
7. Solve the linux dependency problem
When we install a service, we will take smaba as an example here. We will find that installing smaba requires several rpm software packages, which is very troublesome, we still don't know the dependencies between them. Fortunately, linux has discovered this problem. It provides a tool, rpmdb, which is usually on the third disc, we 'd better install the service when installing it, which reduces a lot of trouble. Now let's take a look.
First, we need to mount the third CD [root @ zy root] # mount/dev/cdrom/mnt/cdrom
Then find rpmdb [root @ zy root] # ls/mnt/cdrom,
[Root @ zy root] # cd/misc/cd/fedora/RPMS
[Root @ zy root] # ls | grep rpmdb
Then start to install rpmdb [root @ zy root] # rpm-ivh rpmdb-fedora-1.02003.i386.rpm, remember we can use the tab command to complete, where-ivh command is installed-uvh is uninstalled, if you want to uninstall the program, you can use rpm-uvh.
Then we start to install samba. samba is on the first disk by default.
[Root @ zy root] # rpm-ivh -- aid samba * rpm, where -- aid refers to all samba and rpm files by using the command samba * With rpmdb
Then the installation is successful.
8. As for how to set up an smb server, I have already done it before. Please refer to the http://www.linuxdiyf.com/viewarticle.php? Id = 52230

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.