Install the system by referring to the above address. in many places, you need to make more modifications. First, I installed TFTP ① sudoapt-getinstalltftptftpdopenbsd-inetd (apt-get: Ubuntu package manager) ② create a folder under the root directory...
Install the system by referring to the above address. in many places, you need to make more modifications.
First, I installed TFTP.
① Sudo apt-get install tftp tftpd openbsd-inetd
(Apt-get: Ubuntu package manager)
② Create a folder tftpboot in the root directory
Cd/
Sudo mkdir tftpboot creates a folder
Sudo chmod 777 tftpboot change folder permissions
③ Modify sudo gedit/etc/inetd. conf as follows:
Tftp dgram udp wait nobody/usr/sbin/tcpd
/Usr/sbin/in. tftpd/tftpboot
④ Modify sudo gedit/etc/xinetd. d/tftp to the following format (if there is no tftp file, create it)
Service tftp
{
Disable = no
Socket_type = dgram
Protocol = udp
Wait = yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-s/tftpboot-c
Source = 11
CPIs = 100 2
}
⑤ Modify sudo gedit/etc/default/tftpd-hpa to the following format (if there is no tftpd-hpa file, create it)
RUN_DAEMON = "no"
OPTIONS = "-s/tftpboot-c-p-U tftpd"
⑥ Sudo/etc/init. d/openbsd-inetd reload
Sudo in. tftpd-l/tftpboot
7. create a test file aaa in the tftpboot folder
Cd/tftpboot
Sudo touch aaa
Sudo chmod 777 aaa
Begin to test the tftp service
Cd/home
Tftp 192.168.1.111
Get/tftpboot/aaa
If no error code is displayed and the aaa file is displayed in the home directory, tftp
Service created
Note:
1: If a permission denied error occurs, the operator has insufficient permissions and the permission must be upgraded.
Su root
After the password is entered, tftp transmission can be performed normally.
2: If an Access violation error occurs, the file permission is not unlocked,
You can unlock all the file operation permissions you want to perform.
Chmod 777 file name
The above steps should be completed, but I did not do step 4, but still OK.
Next, I installed NFS.
① Install NFS: apt-get install nfs-kernel-server
② Add the configuration file gdit/etc/exports, add/rootfs * (rw, sync, no_root_squash), and save
③ Restart NFS
Sudo/etc/init. d/portmap restart
Sudo/etc/init. d/nfs-kernel-server restart
④ Test: because the time used is still far away, no test is performed. it is perceived only when netstat-tlp is viewed.
Finally, I installed the samba service.
Http://www.2cto.com/ OS /201112/112725.html (configuration can refer to this)
Create a user based on it
Access is directly opened in winxp. for example, \ 192.168.2.123 \ will display the share directory, which is equivalent to the shared folder in vmware.
Author: yanyiyyy