Posts Tagged ‘CentOS’

Passive Mode FTP with iptables

Posted: 21st January 2014 by Babar Shafiq in System Administration
Tags: , , , , , ,

There’s lots of advice on the net about how to setup a server with iptables to allow passive mode FTP. Below is the approach that we’ve found to be most effective. Start by configuring your FTP daemon to use a fixed range of ports. We use 41361 to 65534 which is the IANA registered ephemeral […]

FTP automation on Linux

Posted: 8th November 2012 by Babar Shafiq in System Administration
Tags: , , , , , ,

  Ever wanted FTP backups and automation for keeping backups of important file on off-peak time. I always love automation, so machines can do things automatically and help humans 🙂

  Recently when my servers HDD dead, data center installed a new HDD keeping orginal HDD as secondary so that i can copy data back to new HDD. I tried to mount the HDD normal way, but got the error:- [root@server78 ~]# fdisk -l /dev/hda Disk /dev/hda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, […]

no “setup” command – CentOS

Posted: 12th October 2012 by Babar Shafiq in System Administration
Tags: , , , , ,

  I usually use “setup” to do the firewall setup for permissive or not and setting of SELINUX, etc…. But on a minimal install you don’t have access to setup command, which is my favorite [root@tel ~]# setup -bash: setup: command not found So how to install it in minimal install ? yum –y install […]

If you ever wanted to download the rpm package instead of installing it with yum ! you can do that with ease, that is useful when you want to keep backup of some RPMs or want to see what’s inside RPM etc.

  If you recently installed linux (CentOS/Fedora/RedHat) with text mode and now want to use its Graphical GUI which was left unchecked during the installation, you can install it from Internet very easily.