Install and configure the FTP service in Ubuntu

Source: Internet
Author: User
Based on the previous two articles. If f

Continued according to the first two http://www.linuxidc.com/Linux/2011-09/42775.htm and http://www.linuxidc.com/Linux/2011-09/42777.htm, SSH service configuration, the kernel compiled through SSH, you have to be able to compile the kernel or module from the virtual machine out, usually with FTP server, in Linux, most of them use vsftpd. If ftp is configured, It is very convenient to perform subsequent work in the virtual machine. You can get rid of the graphic interface operations in the virtual machine, then, if the embedded cross-compiling environment is deployed or the general kernel development is followed, there is basically no big problem. OK, here we go ......

(PS: Subsequent configurations require terminal-based command execution, and the configuration results are related to the configured SSH service based on the frontend. The SecureCRT is used for remote logon, and there may be very few screenshots of virtual machines in the future, to adapt to the day of the terminal command line. In addition, it can be changed to the default command line to start, which saves some memory ).

Step 1: Use apt-get to install vsftpd:

$ Sudo apt-get install vsftpd

Soon, it will be ready soon ......

Step 2: Configure FTP

The configuration is in/etc/vsftpd. config. Run the following command to open the configuration file with vi (ps: the current operation is a system file, and sudo must be added before the command can be modified ).

$ Sudo vi/etc/vsftpd. conf

After entering, find 26th ~ Line 29 (my installation version is these lines), the content is: (ps: Do you want to open your vi without displaying the line number? It doesn't matter, press ": "Key to enter the bottom line vi Mode, input: set nu, press enter, OK, displayed ):

Confirm the local_enable = yes for the 26 rows. Remove the # Of the 29 rows before write_enable = yes (with # being the comment line ). Line 26 indicates whether local users are allowed to log on, and line 29 indicates whether files are allowed to be uploaded.

Vi deletes a character in view mode, that is, the mode in which the character is just entered. No matter what mode, the Esc enters this mode and moves the cursor to line 29, click x, OK, and enter the bottom line mode. Enter wq !, Press enter to save and exit. See the figure below:

Step 3: Everything is OK. Restart the FTP service to make the modified configuration file valid. Then, test the restart command:

$ Sudo/etc/init. d/vsftpd restart

Alright, Let's have a test. open an FTP upload tool in windows. I use LeapFTP and enter the Virtual Machine IP address (the eth0 Nic can be found through the ifconfig command in the terminal command line, if you have a laptop with a wireless network card or something, the most stupid way is to try both of them. Who knows the system? eth0 and eth1 are allocated to your network card), user name, password. Click OK. Right-click the file and choose --- new directory. OK. It indicates that the upload permission is enabled and the configuration is successfully installed. See the figure below:

In addition, this configuration is relatively simple. Knowledge is simple to implement communication between the local machine and virtual machine, and there is no user permission or access restriction on the FTP service, and the upload is limited to anything messy, this is because embedded development in the kernel or cross-compilation environment is not available. If you're configuring your server, um, sorry, you still have to read some articles on vsftpd configuration details to see, http://www.linuxidc.com/search.aspx? Where = title & keyword = vsftpd & cid = 0 & sdate = & edate = & clientDate = Sun % 2C + 11 + Sep + 2011 + 23% 3A12% 3A58 + GMT.

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.