Install javastutftp, NFS, and SAMBA service note

Source: Internet
Author: User
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

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.