Linux Network configuration rpm command Samba service Linux directory structure

Source: Internet
Author: User

The first method:
(1) Log in as root, run the Setup command into the text mode Setup utiliy Configure the network, where IP, subnet mask, default gateway, DNS settings can be made.
(2) The configuration of the network card is not in effect, run/etc/rc.d/init.d/network Restart command We just the operation will take effect.
The second method:
(1) ifconfig eth0 x.x.x.x to set the network card
(2) ifconfig eth0 network x.x.x.x subnet mask settings
Use the default for broadcast addresses and DNS.
This configures the network to take effect immediately, but is temporary
The third method:
(1) Modify the various attributes in the/etc/sysconfig/network-scripts/ifcfg-eth0 file, including IP, subnet mask, broadcast address, and default gateway.
(2) The configuration of the network card is not in effect, run/etc/rc.d/init.d/network Restart command We just made the configuration will take effect, this method is the bottom of the modification method.

RPM Package Management
A package and Installation tool for Internet downloads that contains the production of some Linux distributions. RPM file extension. RPM is an abbreviation for the Red Hat Package Manager (Red Hat Packages management tool), which, despite Red Hat's logo, is open-ended and now includes OpenLinux, SUSE, and Turbo This is how the software is managed in the distribution version of Liunx. Can be regarded as a recognized industry standard.

RPM-QA: Query all installed RPM packages
Rpm-qa | More
Rpm-qa | grep x
RPM-Q Package Name: Whether the query package is installed
RPM-QI Package Name: Querying package information
RPM-QL Package Name: Querying files in a package
RPM-QF file Full path name: The package to which the query file belongs
Rpm-qf/etc/password
RPM-QP Package file name: Information about the package is introduced to the package
RPM-QP jdk-1_5_0-liunx-i586.rpm
To install the RPM package:
Rpm-i RPM Package Full path name: Install to current system I=install
RPM-IVH RPM Package Full path name: Install package to current system with prompt information
I=install V=verbose H=hash
To uninstall the RPM package:
RMP-E RPM Package Name
If other packages depend on the package you uninstalled, the uninstallation generates an error message. It is not a good idea to allow RPM to ignore this error, because the program that relies on the package may not work. Please use the--nodeps command-line option.
To upgrade the RPM package:
Rpm-u RPM Package Full path name

Samba
Over the years, windows and the Liunx operating system have their own user base and market. However, in a general company or school, there may be both Windows and Liunx hosts, and Windows hosts can use Network Places to access shared resources, and NFS enables resource access between Liunx hosts. Samba service software enables the sharing of resources between Windows and Linux.
The SMB communication protocol uses the C/s structure, so the samba software can be divided into the client and the server two parts, by executing the Samba client program, the Linux host can use the resources shared by the Windows host on the network, and install the Samba server on the Linux host. The Windows host can access the resources shared by the Samba server.
Let's look at the installation of the Samba server in an error prone place. I will highlight it in particular:
1. Check if it is installed: Samba
Rpm-qa | grep Samba
2, Mount/mnt/cdrom
Cd/mnt/cdrom find files required by Samba client and server
RPM-IVH samba-common-2.2.7a-7.9.0.i386.rpm
RPM-IVH samba-2.2.71-7.9.0.i386.rpm Server Software
RPM-IVH samba-client-2.2.71-7.9.0.i386.rpm Client Software
CD ~
Umonut/mnt/cdrom
3. Setting up Samba password file
First build a common user Huangjinjin in Linux
Add users from/etc/passwd to SMBPASSWD
View the mksmbpasswd.sh file path
RPM-QL Samba, you'll see/usr/bin/mksmbpasswd.sh.
cd/usr/bin/
cat/etc/passwd | mksmbpasswd.sh >/ETC/SAMBA/SMBPASSWD
Set the samba password for user Huangjinjin
SMBPASSWD Huangjinjin
4. Start Samba Service
Service SMB start start
Service SMB Stop Stop
Service SMB Restart restart

Linux directory Structure Description:
/Liunx File System entry, also at the highest level of the directory
The commands required by the/bin base system are located in this directory and are the commands required by the smallest system, such as LS, CP, mkdir, and so on. Functions and/usr/bin are similar, the files in this directory are executable and can be used by ordinary users. The most basic command required to be a basic system is to put it here.
The boot/boot Liunx kernel and the files required for the bootstrap program, such as Vmlinuz Initrd.img, are located in this directory. In general, the GRUB or LILO system Boot Manager is also located in this directory.
/dev Device file storage directory, such as sound card, disk, etc.
/etc System configuration file location, some server configuration files are also in this directory. such as user account and password configuration file.
/home directory is the default directory for ordinary users
Storage directory for/lib library files
/sbin is mostly involved in the storage of the System Management directory, is the super-user root executable command storage, ordinary users do not have permission to execute the command under this directory, this directory and/usr/sbin,/usr/x11r6/sbin or/usr/local/ The Sbin directory is similar; we'll remember that all the directories sbin contain are root permissions to execute.
/tmp Temporary file directory, sometimes when users run the program, will produce temporary files. /tmp is used to store temporary files. The/var/tmp directory functions similarly to this directory

Massive video frontend back end

Linux Network configuration rpm command Samba service Linux directory structure

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.