Ubuntu11.10 install tftp + nfs + samba + wireshark

Source: Internet
Author: User
1. when installing tftp for embedded development, you can use the tftp (Simple File Transfer Protocol) transmission project to run on the target machine. (1) install the required software package sudoapt-getinstalltftp-hpatftpd-hpaopenbsd-inetdxinetd (2) create the directory tftpb under the root directory...
1. when installing tftp for embedded development, you can use the tftp (Simple File Transfer Protocol) transmission project to run on the target machine. (1) install the required software package sudo apt-get install tftp-hpa tftpd-hpa openbsd-inetd xinetd (2) create the directory tftpboot in the root directory (this folder is used to store the transferred files) sudo mkdir/tftpboot chmod 777/tftpboot-R (3) change the configuration file/etc/default/tftpd-hpa #/etc/default/tftpd-hpa www.2cto.com TFTP_USERNAME = "root" TFTP_DIRECTORY = "/tftpboot" TFTP_ADDRESS = "0.0.0.0: 69 "TFTP_OPTIONS ="-l-s-c "is changed to above, TFTP_USERNAME is the user name, TFTP_DIRECTORY is the path to store files (4) Start tftp service sudo service tftpd-hpa rest The start and stop operations of art correspond to start and stop (5). check whether the tftp service has enabled your netstat-a | grep tftp. if the following occurs, udp 0 0 * has been successfully enabled *: tftp *: * (6) verify that tftp has taken effect. upload the file: Switch to/home/user/and create the test.txt file tftp 127.0.0.1tftp> put test.txt tftp> quit. at this time, the test.txt file should be downloaded under the/tftpboot: tftp 127.0.0.1tftp> get test.txt tftp> quit www.2cto.com, you can download test.txt to the current directory. 2. when installing NFS embedded development, nfs (network file system) can implement file sharing between the host and the Development Board (1) install the required software package sudo apt-get install nfs-common nfs-kernel-server portmap (2) Configure sudo vim/etc/exports to add the following line:/home/alexzhou * (rw, sync, no_root_squash) ps:/home/alexzhou: indicates the shared directory *: allow access from all network segments, or set it to an ip segment, such as 192.168.0. * rw: read/write permission sync: data synchronization write internal and hard disk no_root_squash: nfs allows the client to share the directory owner permission (3) start the service sudo/etc/init. d/portmap restart -- restart portmapsudo/etc/init. d/nfs-kernel-server restart -- restart nfs server sudo/etc/init. d/nfs-kernel-server status -- view the nfs status. you can also use: netstat-a | grep nfs to view www.2cto.com. (4) create the NFS directory sudo mkdir/mnt/nfs under/mnt and mount the host/home/alexzhou directory to sudo mount-t nfs 127.0.0.1 under/mnt/nfs: /home/alexzhou/mnt/nfs view all the files under the/mnt/nfs Directory, like the files under the/home/alexzhou directory ls-l/mnt/nfs/uninstall: sudo umount/mnt/nfs/3. install Samba to share files with windows in linux, so that Windows can operate files in linux. (1) disable the firewall sudo ufw disable (2) first uninstall samba-common sudo apt-get remove samba-common install samba server sudo apt-get install samba (3) modify the configuration file sudo vim/etc/samba/smb. add the following content to the end of conf: [root] www.2cto.com comment = rootdir browseable = yes writeable = yes path =/valid users = smb (4) add the samba user sudo useradd smb sudo smbpasswd-a smb and enter the password you want to set. (5) restart the samba server sudo/etc/init. d/smbd restart sudo ps aux | grep smbd -- View s If amba is enabled, you can see that \ 192.168.xx.xx is input in "run" of the window at smbd-F (6) test (the ubuntu system ip address can be viewed using ifconfig) click "OK" and you will see a root folder. double-click the root folder and enter the username smb and the password set in step (4) to see what is under the ubuntu root directory. Www.2cto.com (if you are prompted that you do not have permissions, you can create a folder in the root directory and grant the corresponding permissions, for example: sudo mkdir windows_sharesudo chmod 777 windows_share-R now you can add files under the windows_share directory) 4. install WiresharkWireshark (formerly known as Ethereal) as a network packet analysis software. The function of the network packet analysis software is to capture network packets and display the most detailed network packet information as much as possible. (1) install sudo apt-get install wireshark (2) run the following command on the command line: wireshark author zhoujianghai

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.