How to setup vsFTP server on Linux?

FTP refers to File Transfer Protocol. By default, Red Hat supports vsftp. If you do minimal RHEL installation, you mightn’t have vsftp related RPM packages installed. To setup an anonymous ftp server on Red Hat Enterprise Linux, follow these steps: 1. Verify that the vsftpd package is installed. #rpm -qa |grep vsftpd If it is not installed, the install it as follows: RHEL 3 and 4 # up2date -i vsftpd RHEL 5 # yum install vsftpd 2. Verify the localhost line in /etc/hosts looks like the following: 127.0.0.1 localhost.localdomain localhost 3. Next configure the vsftpd.conf file. NOTE: Back up the...

How to increae Swap space under Linux

“Can Linux be installed without swap space?”. This question was asked to me on one of Linux System admin interview. It might confuse anyone who is still fresher and have no hands-on experience with swap terminology.But the reality is “Yes”. But if you did this, you should be ready to cope up with your Linux box next time you put extra load on your box.It will crash someday.Its always recommended to provide extra space for swap partition.Swap is only used when you have maximum load. This article discuss how to increase the swap space through adding swap file on Linux...

How to setup Centralized Logging System on Linux?

I was just hanging around blogs until I cam across one nice piece of setting up centralized Logging setup.I thought to try it out of mine and here is the output:Syslog is a fantastic facility for logging on Linux machines. Lets say you have a small number of servers, and want to log them all to one central syslog server. Here we’ll describe a simple configuration. 1) Setup the syslog serverOn the system you want to use as the syslog server, edit the file /etc/sysconf/syslog, and add ‘-r’ as follows: Options to syslogd -m 0 disables ‘MARK’ messages. -r enables...

How to create password-less SSH for Linux

Sometimes you might need setting up Password-less SSH for running script or for application where you dont want to use password everytime. Here is a quick method to setup password-less SSH. Lab Scenerio: Machine1: 192.168.160.194 Machine2: 192.168.160.197 a. Run this command on Machine1: #ssh-keygen -t rsa It will show you this output. Just press Enter throughout the queries asked. Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key...

Installing SMARTFOX Server Pro on Debian

SmartFoxServer is a massive multiplayer platform for building games, MMO communities, virtual worlds, realtime multiplayer games. To setup SFS, in short on Linux platform like Debian, one can follow the below steps: Download the SmartFox Server Pro 1.6.6 fromhttp://smartfoxserver.com/download/get/77/SFSPRO_linux64_1.6.6.tar.gz link. 1. Open a terminal window and move to the folder where you have downloaded the file. 2. Type “gzip -d filename.tar.gz” to extract the .tar file (where “filename” is the name of the downloaded file) as shown in the screenshot. 3. Type “tar xf filename.tar” to extract the files. 4. Move inside the uncompressed folder and type ./install To start...

Setting up a Simple Samba Share – Part II

In the previous article we saw the practical implication of setting up a samba share.In this article we will explore more about the Samba with practical approach. Aim: Connnecting to Samba Server through Own Client Software on the same machine Implementation: [root@rhel samba]# smbclient //localhost/ -U jen Password: Domain=[rhel] OS=[Unix] Server=[Samba 3.0.25b-0.4E.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [root@rhel samba]# smbclient //localhost/jen -U jen Password: Domain=[rhel] OS=[Unix] Server=[Samba 3.0.25b-0.4E.6] smb: \> You will see lots of commands here: smb: \> ? ? altname archive blocksize cancel case_sensitive cd chmod chown close del dir du exit get getfacl hardlink help history lcd link...

Setting up a Simple Samba Share – Part I

Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.In simple words, Samba is the standard Windows interoperability suite of programs for Linux and Unix.Since long back in 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others. Today we are going to setup a simple samba share. Setting Up a Simple Samba Share which can be accessed by anyone who has account on the Machine. Backup the...

Fog – An Open Source Cloning Solution

If you are a system admin who is still sticking to Clonezilla, you must probably look out to try FOG – a very fast and easy to deploy cloning solution. Compared to Clonezilla, Fog imaging process usually takes less than few minutes. With the current release, fog includes the ability and support for Linux and multiboot resizable imaging too. However,FOG can be used to image Windows XP, Vista, Windows 7 and Window 8 PCs using PXE, PartClone, and a Web GUI to tie it together. I had one of my friend who runs cyber cafe business and keen on deploying...

IT Automation through Ansible

Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. One of the main reason why I choose Ansible over other IT automation tools like Puppet, Chef etc. – It manages machines in an agentless manner. As OpenSSH is one of the most peer reviewed open source components, the security exposure of using the tool is greatly reduced. Ansible is decentralized – it relies on your existing OS credentials to control access to remote machines; if needed it can easily connect with Kerberos, LDAP,...