I have chosen to use VsFTPD instead of ProFTP for it’s simple configuration but robust high load capability.
This steps can be implemented on any debian based linux systems like ubuntu, Rasbian and very many others. I have RaspBMC (an XBMC Media Centre) running on my Rasberry Pi.
STEP 1: Installation
As in any other debian based Linux systems, the installation of the FTP server can be done simply by executing the following command:
$ sudo apt-get install vsftpd
This command installs and start the ftp server automatically.
This is an example of the VsFTPD configuration file (/etc/vsftpd.conf):
——– start ———–
ftpdbanner=Raspbmc FTP Server
——– stop —————
STEP 2: Configuration
The ftp server can either be configured in stand-alone or normal mode. By default the VsFTPD automatically configured as stand-alone. This means that the server have its own startup scripts called daemon. In that case, the VsFTPD daemon can be started by executing “/etc/init.d/vsftpd start”. The server in stand-alone mode can further be managed with stop, restart, status and reload.
The other approach to configure the VsFTPD server is to use “xinetd” to start the FTP service in normal mode. This helps to keep the FTP service alive. In order to achieve this objective, we first need to install the “xinetd” super server by executing the following command:
$ sudo apt-get install xinetd
The above command will install and start the xinetd super server on your system automatically. However, there is the chance that “xinetd” is already installed on your system. In that case, please skip the step above.
Next, create a file called vsftpd in /etc/xinetd.d/ with the following content:
disable = no
sockettype = stream
wait = no
user = /usr/sbin/vsftpd
persource = 5
instances = 200
noaccess = 192.168.1.0/24 #use this to block any connections from this network
onlyfrom = 192.168.1.0/24 #use this to allow connections only from this network
bannerfail = /etc/vsftpd.busy
logonsuccess += PID HOST DURATION
logon_failure += HOST
Pleas alter any of these options to match your system configurations.
- server – to get the correct path to enter here, type “which vsftpd” on the terminal
- noaccess – this will block any host or hosts defined here
- bannerfail – this should the path to the file with the text to show to any blocked IP address
STEP 3: /etc/vsftpd.conf Configuration
Open the file /etc/vsftpd.conf and change
This instructs the FTP server not to open any ports but let “xinetd” control and manage the entire ports and services. In order for the normal mode to run smoothly, we need to first stop the vsftpd service by executing the following command:
$ sudo service vsftpd stop
$ sudo service xinetd reload
We have to test and confirm that the FTP server have been started in normal mode and that the port 21 is open by the following command:
$ sudo netstat -ant | grep 21
You should see this:
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
Posted in FTP, Linux, Linux Installation, VsFTP and tagged FTP Configuration, Raspberry Pi, VsFTP by Stan with .
I am NOT the original author of this article. You can find the original article here!
I recently ran into this error while trying to install Windows 2008 R2 Server 64 Bit on my corporate virtual network. Windows 2003 server standard was initially installed on this same configuration. The aim of the project was to remove the Windows 2003 server and install windows 2008 R2 server on it the system. Well, I completely forgot before starting that I had to change the guest operating system type. this eventually lead to this error.
After searching a while on google, I came accross the above mentioned article. It saved my day! The question is why repeat the same thing here? Well, I decided to repeat this here for my personal reference only. It might be useful for someone else too.
Posted in Linux, Linux Installation, VMware and tagged 0x0000005d Error, linux installation, vmware by Stan with .