How to Install and Configure Vsftpd Ftp Server on RHEL 6/ CentOS 6.2/ Ubuntu 11.10/ Fedora /Debian. VSftpd (Very Secure FTP Daemon) is an FTP server for Linux distributions. Vsftpd is the default FTP server is the Fedora, RHEL, CentOS, Ubuntu, NimbleX Linux distributions. It is not just secure as the name suggests but also delivers excellent performance by consuming less memory.
In this tutorial, i will show how to install and configure Vsftpd service by adding ftp users and locking the directory to individual users on Red Hat Enterprise Linux 6 (RHEL 6), Ubuntu, CentOS and Fedora.
Default ftp port : 21
Default configuration file : /etc/vsftpd.conf
Basic Vsftpd commands on RHEL/CentOS/Fedora
1. Install the Vsftpd service.
[root@rhel6 ~]# yum install vsftpd
2. Start Vsftpd Service :
[root@rhel6 ~]# service vsftpd start Read the rest of this entry »
Manage Time in Ubuntu Through Command Line September 23rd, 2010
Manage Time in Ubuntu Through Command Line
What if you would like to manage your computer’s time in Ubuntu? It’s easy if you are in a graphical desktop environment. But what if you are on the command line? For example, in Ubuntu Server? Well, it is easy as well. A very helpful, everything-in-one-place resource is Ubuntu Time.
View Time
To view the current date and time, the following command will be enough
date
Set Time
To change time means to set a new time. To set time in Ubuntu (or any Linux), just run the following command
sudo date newdatetimestring
where newdatetimestring has to follow the format nnddhhmmyyyy.ss which is described below
- nn is a two digit month, between 01 to 12
- dd is a two digit day, between 01 and 31, with the regular rules for days according to month and year applying
- hh is two digit hour, using the 24-hour period so it is between 00 and 23
- mm is two digit minute, between 00 and 59
- yyyy is the year; it can be two digit or four digit: your choice. I prefer to use four digit years whenever I can for better clarity and less confusion
- ss is two digit seconds. Notice the period ‘.’ before the ss.
Let’s say you want to set your computer’s new time to December 6, 2007, 22:43:55, then you would use:
sudo date 120622432007.55
It couldn’t be any easier, could it? The source of this information was a good post on Ubuntu Forums (Set time/date via command line).
Change Time Zone
You may update or change your time zone by
tzconfig
This command will guide you through the process of setting a new time zone. You may also choose UTC (GMT) if you want.
If your system does not have tzconfig, you may use something else.
tzselect
This will provide a set of different time zones to choose. If you would like to set the time to UTC, choose the option which says something like ‘none of the above’, or ‘none of these’ or something to this effect. In my case it was option 11. Then it asks for difference from UTC (GMT and GST is also the same thing). I chose GST-0 as the option and it set the time as UTC.
Sync Clock Via NTP
If you want to sync your clock with NTP servers, it is also very easy. Just make sure you have the file ntp.conf file in /etc. How can you check it?
ls /etc/ntp.conf
If you see /etc/ntp.conf as a result, you already have that file. If the ls command gives an error, you do not have it. If so, you may create it yourself.
sudo vim /etc/ntp.conf
This file will be used to automatic synchronization of the clock. I do not know if the client uses this file automatically or one has to configure something first.
Whether you have the file already or not, make sure it has at least the following data
driftfile /var/lib/ntp/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org
Here you may replace, add, and/or remove any servers you wish. You will find a list of time servers from the public NTP time server list.
You may manually sync the clock using the following
sudo ntpdate servername
where servername can be any public or private time server. You may always choose the following without hesitation
sudo ntpdate pool.ntp.org
See, it was quite easy. Enabling NTP Services helped me gain this knowledge.
source here
Posted in debian, linux, Networking, ubuntu | No Comments »
Setup Easy Hosting Control Panel (ehcp) for Debian/Ubuntu August 18th, 2010
ehcp is a new Hosting Control Panel in Linux world. Although it is in beta stage, its basic functions are well functioning. it operates strongly with debian/ubuntu”s apt-get package manager..
it differs from other control panels, or even other opensource panels that, ehcp is the first and only: opensource,full php, object oriented, gpl, free hosting control panel on the earth !
You may use ehcp to easily setup a hosting environment, for yourself or for selling hosting..You may also use it for only ftp hosting..
Requirements:
A clean ubuntu or any debian based linux install. nothing else. Any apt-get enabled linux is enaugh.
to install copy and paste following on your linux console:
wget http://www.ehcp.net/ehcp_latest.tgz
tar -zxvf ehcp_latest.tgz
cd ehcp
./install.sh
#
the installer will ask some questions about your settings, then will automatically install any needed server programs such as apache, mysql and so on..
After installer finishes, navigate to localhost (if you installed on local) or to ip by typing at address bar of your browser.
default login: admin
default pass: 1234

you may find additional information check here, test ehcp on a real server at http://83.133.127.19.
source here
I decide to create hotspot from my server to allow other connect to Internet for free. I used “Captive portal” solution based on these applications:
When somebody wants to connect to Internet using my wifi, the first page he can see is the register/login page (whatever page he wants to visit).
After registration/login he is able to connect to Internet.
So let’s see how I did it.
Let’s have one server with two network interfaces – first (eth0) goes to Internet, the second one (eth1) is the wifi for “unknown” clients.
Intermet —eth0-dhcp-Hot Spot Server-eth1-192.168.10.1———((((- ))))———–Client Read the rest of this entry »
Posted in databases, debian, mysql, Networking, ubuntu | 5 Comments »
MySQL Backup/Restore from command line March 7th, 2010
Backup
Dump ALL MySQL Databases
Dump Individual or Multiple MySQL Databases
Dump only certain tables from a MySQL Database
Restore
1 |
mysql --user=XXXXXXXX --password=XXXXXXXX DB_NAME < /PATH/TO/DUMPFILE.SQL |
source here

