Build the samba service and NFS environment of centos

Source: Internet
Author: User

I used fedora before. The more I use it, the more I felt that it was not very good. So I started the idea of changing the development environment. So I chose CentO, Ubuntu, and RedHat. There are a lot of bugs in RedHat when people comment on the Internet and they have to pay. The Ubuntu graphic interface is doing a good job, but I don't really want to occupy resources too much. The computer is not highly configured, so I read centos. I personally feel OK. Although there is a "RedHat shanzhai", there are at least no many bugs. And it is free of charge. I have a Chinese website that gives a comprehensive introduction to centos. It should not be too bad ~? Http://www.centoscn.com/


It turns out that after installation, it is much better than fedora. It is also convenient to use yum for installation. In addition, many software packages are available in the image package. By default, the GCC library and so on are available !~!


Most of the samba service operations are the same as those of Fedora (as for the detailed operations, I will not write them here. If you need them, you can download it from my resources. Note:

One thing is that SELinux must set disable. after all the operations are completed, check whether SELinux is still disable. Because the value may change during the operation, it is recommended that SELinux be set to disable.

In the end ).


In centos. The administrative program is no longer the systemctl in fedora. With chkconfig changed, the following describes the chkconfig syntax to complete relevant operations in fedora:


Syntax:
Chkconfig [-- add] [-- del] [-- list] [System Service] Or chkconfig [-- level <level code>] [System Service] [ON/OFF/Reset]


Use Yum to install OpenSSH-server, sabma * (Khan, I don't have time to understand which services Samba is required for SSH so far... I can only install all of them)

To query all the automatically started services, enter:

# Chkconfig -- ist

View Firewall Information:

#/Etc/init. d/iptables status

Disable the Firewall Service:

#/Etc/init. d/iptables stop

Permanently close

# Chkconfig -- level 35 iptables off

Start samba

# Chkconfig SMB on

# Chkconfig nmb on

For other configurations, refer to my other articles --

Embedded Development Environment configuration based on a8 in fedora18

(One point for downloading. It's poor. I can't help it. I also need to subscribe to downloading things, so don't be stingy)



NFS is also simple:


1. Yum install Portmap nfs-utils

2. decompress the root file system and extract it to your working directory. For example

/Opt/************/rootfs_qtopia_qt4, and execute the following command to grant read and write permissions to the directory:
# Chmod 777/opt/*******/rootfs_qtopia_qt4

3. Modify the NFS configuration file
Add this sentence to the/etc/exports file:/opt/*************/rootfs_qtopia_qt4 * (sync, RW, no_root_squash)

4. Disable the ora firewall.
Run the following command on the fedora terminal:
# Setup
Uncall enable in the firewall option, save and exit

5. Configure boot and start nfs-Server
# Chkconfig NFS on

(When chkconfig -- list is used, the NFS 2 ~ is displayed ~ 5. If the value is on, it indicates that the instance is started)

(******** Represents your path)

For the rest, please refer to my other blog-set up the NFS development environment & tiny210v2sdk under fedora18

(No points are collected)


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.