NTP Adjust date on Linux Rumi, October 27, 2013December 8, 2013 If you want to set date/time on linux manually (instead of using synchronization like ntp) you may use the date command to do it. Login as root and run the following command, it will show you the current date/time. [root@servername ~]# date Output will be like Tue Aug 23 12:32:22… Continue Reading
Install nginx using yum on CentOS or SL Linux Rumi, October 25, 2013 Step #1: Install nginx repo Type the following wget command to install nginx yum configuration file: # cd /tmp CentOS Linux v6.x user type the following command: # wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm # rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm RHEL v6.x user type the following command: # wget http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm # rpm -ivh nginx-release-rhel-6-0.el6.ngx.noarch.rpm Continue Reading
Install Munin-node on RHEL or CentOS 6 or Scientific Linux 6 Rumi, October 25, 2013 rpm -Uvh http://ftp.uninett.no/linux/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install perl-XML-SAX yum install munin-node And voila! Continue Reading
Install htop on CentOS 5 or 6 Rumi, October 25, 2013 Install RPM for CentOS 5.x 32-BIT wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i686.rpm rpm -Uhv rpmforge-release*.rf.i386.rpm 64BIT wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm rpm -Uhv rpmforge-release*.rf.x86_64.rpm Install RPM for CentOS 6.x 32-BIT wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm rpm -Uhv rpmforge-release*.rf.i386.rpm 64BIT wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm -Uhv rpmforge-release*.rf.x86_64.rpm Install htop in CentOS Using YUM Once the repository is installed, all you need to do… Continue Reading
How to clear the yum cache Rumi, October 20, 2013 When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum’s cache. So to clean all the cached packages from the enabled repository cache directory, login as root and execute the following: yum clean packages To purge the… Continue Reading
Convert .p12 and install in apache server Rumi, October 18, 2013 If you have a pkcs12 file (from IIS for example) and if you need to install the certificate on an Openssl-compatible product such as Apache, you will have to extract the content of the pkcs12 to get several files. First of all, create a global file (package): openssl pkcs12 -in… Continue Reading
Resetting CentOS 5 Root Password Rumi, October 7, 2013 If you have forgotten the root password it is possible to set a new one as follows: Interrupt the boot at the GRUB stage and boot to runlevel 1, AKA single user mode. Interrupt GRUB by typing a character such as "space" then append to the kernel line by typing… Continue Reading
Install VPN PPTP Server on CentOS Rumi, October 4, 2013March 29, 2017 In this tutorial, I will use pptp as protocol to connect to VPN server using a username and password, with 128 bit MPPE encryption. Variable as below: OS: CentOS 6 64bit VPN server: 209.85.227.26 VPN client IP: 209.85.227.27 – 209.85.227.30 VPN username: vpnuser Password: myVPN$99 Install ppp via yum: $… Continue Reading