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
Increase file upload size limit in PHP-Nginx Rumi, June 9, 2014 To change max file upload size to 100MB Edit… vim /etc/php5/fpm/php.ini Set… upload_max_filesize = 100M post_max_size = 100M Continue Reading
SSH Public key based authentication Rumi, June 9, 2014September 3, 2017 Method-1: Create the cryptographic Key on FreeBSD / Linux / UNIX workstation, enter: ssh-keygen -t rsa Assign the pass phrase (press [enter] key twice if you don’t want a passphrase). It will create 2 files in ~/.ssh directory as follows: ~/.ssh/id_rsa : identification (private) key ~/.ssh/id_rsa.pub : public key Use… 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
Linux service restart shell script Rumi, June 6, 2014 I badly needed a script that would check if my running services (in this script it'll check varnish and apache2 services) are alive- if not, it'll restart the dead service and write a log. Pretty handy! #!/bin/sh STARTAPACHE="/etc/init.d/apache2 start" STARTVARNISH="/etc/init.d/varnish start" Continue Reading
Install VNCServer on Centos 5 Rumi, June 6, 2014 Install VNC Server to operate CentOS with GUI remotely from Windows client. VNC is already installed if you already build Desktop Environment. If it's not installed, Install by a command 'yum -y install vnc-server'. [root@ns ~]# yum -y install vnc-server [root@ns ~]# vi /etc/sysconfig/vncservers # line 20: make valid… 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
Importing Big mysqldump with Progress Bar PV Rumi, June 6, 2014 I am using CentOS 6.4 box, so it requires me to install EPEL repo at the first place: $ rpm -Uhv http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Install pv using yum: $ yum install -y pv Installation done. Let the importing begin! $ pv /home/user/my_big_dump.sql | mysql -uroot -p For Ubuntu/Debian distribution intall PV… Continue Reading
OpenVZ on Debain Squeeze Rumi, June 6, 2014 As soon as your Debian OS server is ready, login using the received credentials. We first will do an update/upgrade: apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade which will upgrade our server to latest version. We install some additional packages to: apt-get -y install nano wget… Continue Reading
Alllow SNMP on Openfiler Rumi, June 6, 2014March 7, 2017 The first step to allow monitoring of the Openfiler server by SNMP is to edit the SNMP configuration file. In order to edit the configuration file perform the following steps :- Logon to the Openfiler server through SSH as an administrative user Navigate to the /etc/snmp folder Edit the snmpd.conf… Continue Reading