The TFTP server is installed in the configuration
1 Installation: command: #yum –y install TFTP
2 after the installation is complete, set the TFTP server to boot, by: (command) #setup → Select the TFTP option in System server→.
3 Input command (#netstat-a | grep tftp check if TFTP has started)
4 configuration: Command: #gedit/etc/xinted.d/tftp
Main modification Disable = no
Server =-s/tftpboot
1 Service TFTP2 {3Socket_type =Dgram4protocol =UDP5wait =Yes6user =Root7Server =/usr/sbin/inch. TFTPD8Server_args =-S/var/lib/Tftpboot9Disable = no//The default is YesTenPer_source = One OneCPS = - 2 AFlags = IPV4
5 Restart Service command: #/etc/init.d/xinetd restart
6 Check again whether the command has been started: #netstat-A | grep tftp
Appears: UDP 0 0 *:tftp *:* can!!!
Installation of Samba servers
2 Installing Smaba Server: Command: #yum –y Install Samba
3 Configuring Samba
Usually we compile the smb.conf file, for security reasons, you should back up this configuration file
A backup: command: #cp/etc/samba/smb.conf/etc/samba/smb.conf.bak
b Compile the configuration file via the compiler vim or gedit. Command: #vim/etc/samba/smb.conf
C Add the following at the end of the file, and then save the exit:
1 [Share]2 3Comment = Share//Description Information4 5Path =/home/yan (user)/share//set the share path6 7PUBILC =Yes8 9writable = yes//whether it can be writtenTen OneWrite list = Yan//List of users that can be written to
4 Create a shared file: (Note: The Samba user set up must be a legitimate user on Linux!!) )
Command: Create a shared directory #mkdir/home/yan/share
#chmod 777/home/yan/share Change Directory permissions
5 Adding Samba users
Command: #smbpasswd-a Yan
You will be prompted to enter the two-time SMB user password, which is the password for win login Liunx Samba
6 Restart Samba service.
Command: #/ETC/INIT.D/SMB restart
Finally, an example of a Samba service that accesses Linux in Windows is introduced
Step: Start → run → input (//liunx host IP address, such as://192.168.1.120) → Enter
Enter the samba username (for example: Yan), Password: * *, click to login.
Installation and configuration of CentOS tftp and Samba