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
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
TimeZone adjust in Linux Rumi, June 6, 2014 For Redhat/CentOS/Fedora/SL distribution Type the redhat-config-date command at the command line to start the time and date properties tool, run: # redhat-config-date OR type setup and select time zone configuration. This tool is recommended for remote ssh text based sessions. # setup Select timezone configuration. Just follow on screen… Continue Reading
Update PHP 5.1 to PHP 5.4 in CentOS Rumi, June 6, 2014 Update Yum repos For 32 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm For 64 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm Now it’s time to update our PHP to the latest one yum –enablerepo=remi update php php-* /etc/init.d/httpd restart And that’s it! You can check your installed PHP version executing: php… Continue Reading
LAMP on CentOS Rumi, June 6, 2014September 8, 2016 Installing MySQL 5 To install MySQL, we do this: yum -y install mysql mysql-server Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server: chkconfig –levels 235 mysqld on /etc/init.d/mysqld start Set passwords for the MySQL root… Continue Reading
Update PHP 5.4 on Debian 6 Squeeze Rumi, June 6, 2014 Set up Dotdeb First add Dotdeb to your Apt sources: sudo vim /etc/apt/sources.list /etc/apt/sources.list deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all deb http://packages.dotdeb.org squeeze-php54 all deb-src http://packages.dotdeb.org squeeze-php54 all Save & Exit. Now go for the next- Continue Reading