Set date/time permanently on Virtualbox Guest Rumi, June 6, 2014October 5, 2019 First you need to ssh to the server and be root and then do these step by step: 1. Set the date/time as following format date -s “2 OCT 2013 18:00:00″ 2. Set the proper Timezone for your area- # cd /etc # ln -sf /usr/share/zoneinfo/EST localtime 3. Set it… 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
Reinstall Openssh server on Debian 6/7 Rumi, June 6, 2014 Linux: Debian / Ubuntu Linux Remove SSHD Server Type the following commands: # apt-get –purge remove openssh-server Now reinstall the openssh again using- # apt-get install openssh-server Voila Src: http://www.cyberciti.biz/faq/howto-unix-linux-remove-delete-opensshd-server/ Continue Reading
Reset root password in Centos/Redhat/SL linux Rumi, June 6, 2014 1. Boot the system and when you see the following message “Press any key to enter the menu”, press any key. (You will see the list of available kernel versions.) 2. Press e in order to edit commands before booting. 3. Highlight the list item with vmlinuz in it by… Continue Reading
Importing Big mysqldump with Progress Bar PV Rumi, December 12, 2013 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 using-… Continue Reading
Installing Apache2, PHP5, MySQL and PHPMyadmin On Debian Rumi, December 8, 2013 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
Install VNCServer on Centos 5 Rumi, December 5, 2013 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 and… Continue Reading
.htaccess URL redirect Rumi, November 13, 2013 # This allows you to redirect your entire website to any other domain Redirect 301 / http://mt-example.com/ # This allows you to redirect your entire website to any other domain Redirect 302 / http://mt-example.com/ # This allows you to redirect index.html to a specific subfolder Redirect /index.html http://example.com/newdirectory/ # Redirect… Continue Reading
OpenFiler Installation On Headless NAS Rumi, November 12, 2013 So, you have a Dell 715N nas or similar and wish to install OpenFiler onto it? This nas is headless, it has no USB ports, no CDROM, no floppy. It’s only connection to the outside world is it’s serial port and it’s network interfaces (2). You may or may not… Continue Reading