Skip to main content

How to setup an FTP server on Linux for your LAN

All operating systems have an FTP client program in order to access ftp sites, but not all have ftp server capabilities activated by default. In this article I am going to show you how to setup an FTP server in Linux. The server is going to be accessible only in your Local Area Network, as I will not go into details about setting up a router. In addition, it is going to feature anonymous and user accounts. Since the server is going to reside in a LAN only, I am not going to implement any security features. However, this should not be the case for any professional application! Last but not least, I implemented the following in Ubuntu 11.04 32-bit and Linux Mint 11 64-bit. In both cases it was a success.


Installing the FTP server


There are many options as far as ftp server software is concerned. In this guide, I used vsftpd. To install it, open a terminal window and type:

sudo apt-get install vsftpd


vsftpd Installation

Password is going to be asked and a verification for the files to be downloaded. As soon as vsftpd is installed, the deamon process will start (as you can see in the picture above).

Setting Up the FTP server


All the settings of the FTP server are stored in a configuration file: /etc/vsftpd.conf . So to make changes one needs to open the file with administrator priviledges, basically type in a terminal window:

sudo gedit /etc/vsftpd.conf

  1. In this tutorial we need to enable anonymous ftp access. Find the line that says: “anonymous_enable=NO” and change it to “anonymous_enable=YES”.
  2. We need to set a banner that the FTP server will display to anyone who logs in. Find the line that says: “ftpd_banner” and write the message you want it to show, like: “ftpd_banner=Welcome to EOL MAGAZINE FTP service!”
  3. If your linux box has user accounts set up, each user can log in with their username/password and they will be transferred to their home directory. The anonymous users can log in with username->anonymous and password-><their_email_address>. The anonymous users are transferred to the folder “/srv/ftp/”. If you want to change that, you have to add the following line somewhere in the vsftp.conf: anon_root=<path_to_your_liking>. For reasons of making things clear let’s assume I entered the line “anon_root=/srv/ftp/”, thus I will get transferred to the default directory. The directory where a user is transferred is called root directory.
  4. To share files, one can copy them to the root directory, but that creates duplicates with the original files and occupies extra hard disk space. Alternatively, one can mount their shares into folders inside the root directory!
  5. When you are done with the configuration, open a terminal and type “sudo restart vsftpd”, to apply the new configuration.

Mounting Shares


If you want to mount the shares automatically whenever the system starts, you have to edit the /etc/fstab file.

  1. Open a terminal and go to the root directory of your ftp server, in this case /srv/ftp/ with the command “cd /srv/ftp”. Create two folders named Primary and Secondary: “sudo mkdir Primary” and “sudo mkdir Secondary”.
  2. Now edit /etc/fstab: “sudo gedit /etc/fstab”. If you want to add your hard drives sdc1 and sdd1 add at the end of the file the following lines: “/media/sdc1 /srv/ftp/Secondary none bind 0 0″ and “/media/sdd1 /srv/ftp/Primary none bind 0 0″. Save and restart the computer to mount the drives in the folders.


/etc/fstab Configuration

Alternatively you can mount it without restarting, but the setting will be lost when you restart the computer. To do so, open a terminal and type: “sudo mount –bind /media/sdc1 /srv/ftp/Secondary” and “sudo mount –bind /media/sdd1 /srv/ftp/Primary”.

Adding User accounts for the FTP server


To add a new user account you just need to create a new user in your linux box. The command is: “sudo adduser <user_name>”. The system will create the new home directory for the user and also ask for a password and some details. The details are not obligatory to enter while the password is.


adduser example

The FTP server is ready! To initiate a connection you have to know the ip address of the server (ifconfig command), for example 192.168.1.2 . Open a terminal and type: “ftp 192.168.1.2″. To log in as a user enter the user credentials, else enter anonymous as username and as password. Alternatively, open your web browser and type in the address bar: ” ftp://192.168.1.2″ and a prompt for username/password will emerge.

As for performance, I achieved 500 kbps over wifi connection (both computers), away from the access point. Not bad! Enjoy your new FTP server!

Popular posts from this blog

Enable AMD's Radeon Chill feature for all games.

Since 2014 AMD has been following the tradition of releasing new performance and usability features in their December driver, and 2016 was no exception. Among the myriad of new features and enhancements, was also one that passed almost unnoticed, called Radeon Chill.

Stemming from AMD's acquisition of HiAlgo earlier in 2016, it offers the possibility of huge power and thermal savings while gaming, by monitoring screen movement and adjusting the frame rate accordingly. There is even the claim that it could also reduce response times since the GPU is not occupied with rendering as often.

Its only issue: it's not global, and it's based on a white list of applications to function. But fear not, for we are here. Using a trick as old as operating systems themselves, you can try to make it work with every title. Let's see how to do that.
Step One: Activate Radeon Chill. Doing that is fairly easy. Right click on your desktop and select "Radeon Settings":

Then naviga…

Your first post in your Facebook Page, some simple tips

Many new pages are created on Facebook every day by brands that need to use the network for wither exposure or marketing or both. There are many small businesses that want to use Facebook and need to know about some initial tips to get started with their facebook page.

Facebook page management is no rocket science, but it can lead your brand to either a successful presence or nothing at all, if you don't pay attention to some details. You have to start with the basics. Your every-day process with your page is your posts, information you share on your page and your fans will see. First take a note that not all of your fans will see your post. Let's say you have 1000 fans, only about 10-15% of your fans are expected to actually see that post. What's important here is to make your post appealing so whoever sees it, will be able to engage with it, thus either comment, share or like it.

Take a look at our video for those tips :



Every time a Facebook user likes, share or commen…

Resident Evil 7 no stutter guide for 30 and 60 fps systems

The release of the last Resident Evil game has had us go from indifferent, to cautiously optimistic, to infatuated with one of the best releases in the series; a game on par with the couple of initial classics and the fourth instalment. Capcom decided to drop the third person over-the-shoulder perspective for this one and go with the first person camera, refreshing the whole series in the process. Make no mistake, this is one of the greats, and you owe it to yourself to at least try it out even if you aren't into horror games at all. Unlike other publishers, Capcom has been kind enough to provide a demo of the first hour of the game in Steam. Go ahead and try it.

The game itself is quite well optimized, as it is one of the initial PlayStation VR titles released and that means it has to adhere to specific latency requirements. The good news for PC gamers (sorry, no PC VR yet) is a 60fps target where most older GPUs and systems can have a proper experience. Unfortunately, the game …