ProFTPD : Installing and Configuring in Ubuntu/Debian

ProFTPD (Pro File Transfer Protocol Daemon) is an open source FTP server and is compatible with both Microsoft Windows and Linux type operating systems. The main motive of Pro-FTPD is to provide a mechanism to setup FTP server that is more rich in features and highly secure and easy to setup. To install and configure the Pro-FTPD follow these simple steps. 

 

Steps

 

1) Install proftpd using apt-get command

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install proftpd

 

2) Add this line in /etc/shells file

/bin/false

 

3) Create a /home/FTP-shared directory

cd /home
 sudo mkdir FTP-shared

 

4) Create a user which will be used only for ftp access.

sudo useradd any_user_name -p your_password -d /home/FTP-shared -s /bin/false
 sudo passwd userftp

 

5) Now we have to set the good permissions for these directories

cd /home
sudo chmod 755 FTP-shared

 

6) Provide access of created shared directory to created FTP user 

chown -R (FTPUSER) /(path)/(to_your_ftp)/

 

7) Restart proftpd service

sudo /etc/init.d/proftpd restart
Access Google Instances SSH, WinSCP and RDP
Use One of the following methods :-
 
  1. SSH from Developer Console
  2. Using WinSCP
  3. RDP Windows Server
 
  1. SSH from Developer Console


 
2) Gmail Account Login
 
 
3)  Select Compute Engine Project
 
 
 
4) Click On compute
 
 
 
 
5) Check Running Instances Compute -> Compute Engine -> VM Instances
 
 
 
 
 
6) SSH or RDP into instances
 
 
 
7) Click on SSH to any of instance.
 
 
 
8) Done
 
 
 
 
 
2) Using WinSCP
 
To access instance using WinSCP we have to generate Public and Private SSH keys.
 
Public Keys : saved on Google Compute Instance
Private Keys : saved in local WinSCP software to access instance
 
Generating Public and Private Keys
 
 
 
2) Run and click on Tools.
 
 
 
3) Click on Generate and wait for a while to generate keys
 
 
 
 
4) Save Private key
 
 
 
5) Load Saved private key and provide user name in “Key Comment”
 
 
 
 
6) Go to Compute > Compute Engine > VM Instances  page of your project on Google Developers Console.
 
 
7) Go to SSH Keys section and click Add.
 
 
8) Paste contents of the clipboard to Enter entire key data box .
 
 
9) Click on Save.

 

 

Login into instance using WinSCP
 
 
 
 
2) Install WinScp and Run. Provide username (email without @) and password (email  password).
 
 
 
 
3) Click on Advanced.. Button and go to SSH. Click on Authentication and select the private key file with ..ppk extension
 
 
 
5) Click Ok -> Save -> Login.
 
 
 
  
 
3) RDP Windows Server
 
Two methods :
 
  1. mstsc
  2. From Developer Console
 
  1. mstsc
 
  • Open Run  (Windows + R) and type mstsc
 
 
 
  • Provide IP Address
 
  • Provide username and password
 
   2. From Developer Console
 
  • Open developer console as described above.
 
  • Go to Compute -> Compute Engine -> VM Instances
 
  • Click on RDP corresponding to WIndows Server Instance

 

  • This will install “Chrome RDP for Google Cloud Platform” extension to GoogleChrome.


 

  • Provide the IP address and connect




  • Enter username/password and click OK
 
 
  • Done


 

Apache Ant : Install Apache Ant on Linux Machine

Apache Ant is a Java library and command-line tool to automate the repetitive tasks and helps to build software. Ant is flexible and does not impose coding conventions. It supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications.

Install Apache Ant 

 

1) Download Ant
$ wget http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.2-bin.tar.gz
2) Extract using tar command
$ sudo tar xvfvz apache-ant-1.9.2-bin.tar.gz -C /opt
3) Check files if installed
$ sudo ln -s /opt/apache-ant-1.9.2 /opt/ant
4) Setup ANT environment variable by creating file called ant.sh under /etc/profile.d/ directory
$ vi /etc/profile.d/ant.sh
5) Add the following contents
#!/bin/bash
ANT_HOME=/opt/ant
PATH=$ANT_HOME/bin:$PATH
export PATH ANT_HOME
export CLASSPATH=.
6) Save and close the file. Make it executable using the following command
$ chmod +x /etc/profile.d/ant.sh
7) Set the environment variables permanently by running the following command
$ source /etc/profile.d/ant.sh
8) Reboot your system.
9) Check the ant version using command
$ ant -version
10) Done
Maven : Install Maven on Linux Machine
In the previous post we have seen how to install JBoss web server on linux machine. This post will guide you to install Maven on the linux machine.

Maven is a project management tool from Apache based on POM (Project Object Model). It is declarative; All you have to do is create a pom.xml file and put your source in the default directory and it will take care of the rest.

Install Maven

1) Download Maven-tool
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
2) Install using yum command
sudo yum install -y apache-maven
3) Check version
mvn --version
4) Done
Back << Install JBoss on Linux                       Next >> Install Apache Ant on Linux
JBOSS Web Server : Install JBoss on Linux Machine

In the previous post we have seen how to install and setup MySQL on the linux machine. This post will guide you to install JBoss web server. JBoss is web server built on Apache and Tomcat 

Install JBoss Web Server

1) Download zipped JBoss 7.1.x in /opt directory

# wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz -P /var/tmp
2) Extract using tar command 
# tar -zxf /var/tmp/jboss-as-7.1.1.Final.tar.gz -C /opt
3) Remove the zipped file using rm command
# rm -f /var/tmp/jboss-as-7.1.1.Final.tar.gz
4) Running JBOSS as root is a security risk. Run JBoss using a dedicated system user which will run the JBoss server using the sudo powers.
# useradd -r jboss -d /opt/jboss-as-7.1.1.Final

# chown jboss: -R /opt/jboss-as-7.1.1.Final
5) Enable access to JBoss interface by editing standalone.xml
# vim /opt/jboss-as-7.1.1.Final/standalone/configuration/standalone.xml
6) Change local IP (127.0.0.1) address to public IP of machine
<interface name="management">
   <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
   <inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
7) Set-up Jboss to run as a service
# cp /opt/jboss-as-7.1.1.Final/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss
# chmod +x /etc/init.d/jboss
# mkdir /etc/jboss-as
8) Create configuration file 
# vim /etc/jboss-as/jboss-as.conf
and add the following configuration parameters
JBOSS_HOME=/opt/jboss-as-7.1.1.Final
JBOSS_CONSOLE_LOG=/var/log/jboss-console.log
JBOSS_USER=jboss
9) Start JBoss service
# service jboss start
10) Done
Back << Install MySQL on Linux                                                     Next >> Install Maven on Linux
MySQL : Install MySQL on Linux Machine using yum

In the previous post we have seen how we can install java on the linux machine. This post will guide you how to install MySQL on linux machine using yum command.

Install MySQL

1) To install mysql server type the following yum command:

# yum install mysql-server mysql

2) Turn on mysql service, type the following chkconfig command

# chkconfig mysqld on

3) Start/Stop/Restart using one of the command

# service mysqld start
# service mysqld restart
# service mysqld stop

4) Set root user password

# mysqladmin -u root password NEWPASSWORD

5) Edit /etc/sysconfig/iptables to Add firewall rule

# vi /etc/sysconfig/iptables

6) Add line  

-A INPUT -m state --state NEW,ESTABLISHED -m tcp -p tcp --dport 3306 -j ACCEPT

7) Save and close by pressing Esc and :wq and hit enter

8) Restart iptable service

# service iptables restart

9) Done

Back << Install Java on Linux Machine                 Next >> Install JBoss on Linux Machine

en_USEnglish
en_USEnglish