NFS Server and Client on Debian 6/7 Rumi, March 13, 2015 Assumptions: NFS Server IP: 172.16.5.100 NFS Client Node1: 172.16.5.101 NFS Client Node2: 172.16.5.102 NFS Client Node3: 172.16.5.103 NFS Client Node4: 172.16.5.104 On the NFS Server: Install nfs-kernel-server Install nfs-kernel-server and nfs-common Install nfs-common on the computer that has the files to be shared. apt-get update && sudo apt-get install nfs-kernel-server nfs-common Edit the exports… Continue Reading
Install and configure fail2ban Rumi, January 4, 2015 Servers do not exist in isolation, and those servers with only the most basic SSH configuration can be vulnerable to brute force attacks. fail2ban provides a way to automatically protect the server from malicious signs. The program works by scanning through log files and reacting to offending actions such as… Continue Reading
rkhunter perfect configuration Rumi, January 4, 2015January 4, 2015 Introduction Exposing any computer to the internet is in some ways risky. There are many ways that your server can be compromised or attacked by remote systems and malicious software, and it is an ongoing and proactive process to defend yourself against potential threats. One potential concern is rootkits. Rootkits… Continue Reading
Install Perfect Mail Server with ISPConfig and Horde 5.0 on Debian Wheezy- Part-2 Rumi, October 13, 2014October 13, 2014 Install necessary packages apt-get install php5-sasl php5-intl libssh2-php php5-curl php-http php5-xmlrpc php5-geoip php5-ldap php5-memcache php5-memcached php5-tidy Register the Horde Pear channel pear channel-discover pear.horde.org Set the Horde installation directory pear install horde/horde_role pear run-scripts horde/horde_role You'll be asked the following question: Filesystem installation for base Horde application: /var/www/horde You can… Continue Reading
Install Perfect Mail Server with ISPConfig and Horde 5.0 on Debian Wheezy- Part-1 Rumi, October 13, 2014October 13, 2014 First, Install Basic Debian Wheezy. Make sure your network configurations are ok. Once installed start doing following- Fixing hostname- edit /etc/hosts. Make it look like this: vi /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes… Continue Reading
Bash Shellshock fix with scripts for Debian, Ubuntu, CentOS and other distros. including old Rumi, October 3, 2014December 19, 2014 First check if your Bash is vulnerable, execute the following command- env x='() { :;}; echo vulnerable’ bash -c ‘echo this is a test’ If your system is vulnerable, you will see: vulnerable this is a test If your system is not vulnerable, you will see: bash: warning: x: ignoring… Continue Reading
PHPSysinfo Installation and Configuration on Debain Rumi, September 26, 2014September 26, 2014 PhpSysInfo is an awesome PHP script that displays system and other monitoring information for Linux. phpSysInfo pulls data from /proc and other locations to display on an easy to read page. On Ubuntu or Debian, install phpsysinfo with: $ sudo apt-get install phpsysinfo The config file is then located in:… Continue Reading
Reinstall OpenSSH Server Rumi, June 21, 2014 First if you have any pre-installed SSH server that has gone bad, remove it- on Redhat Architechture Type the following commands as the root user: # chkconfig sshd off # service sshd stop # yum erase openssh-server You need to edit and update firewall rules that allows inbound connections to… Continue Reading
Install Sun Java 7.x on Debian Squeeze Rumi, June 8, 2014 It might look weird to install Sun Java from a Ubuntu Repo- however it works at least it worked for my installation- $ su root # echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" > /etc/apt/sources.list.d/webupd8team-java.list # echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list # apt-key adv –keyserver keyserver.ubuntu.com –recv-keys EEA14886 # apt-get… Continue Reading
Installing LAMP On Debian Rumi, June 6, 2014June 6, 2014 First we install MySQL 5 like this: apt-get install mysql-server mysql-client You will be asked to provide a password for the MySQL root user – this password is valid for the user root@localhost as well as root@server1.example.com, so we don't have to specify a MySQL root password manually later on:… Continue Reading