Alllow SNMP on Openfiler

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 file and append the following to the bottom of the file :-

Read more

Share

Setting default boot kernel in Grub on Debian/Ubuntu

 

In a terminal, run
sudo update-grub
Then, type
grep menuentry /boot/grub2/grub.cfg
Counting from 0, find the number of the line containing the 2.6 entry you want.
Set that as default in /etc/default/grub and run
sudo update-grub again.
Since the option for "Other Linux Versions" is on line 3 of the Grub menu, I changed the line in the /etc/default/grub file from default 0 to default 2
Share

TimeZone adjust in Linux

 

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 instructions to change the timezone.
If you are using Debian / Ubuntu Linux
To change the timezone for you run the following command as root user:
# dpkg-reconfigure tzdata
Again, just follow on screen instructions.
Share

Update PHP 5.1 to PHP 5.4 in CentOS

 

Update Yum repos
For 32 bit CentOS-
For 64 bit CentOS-
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 -v
Share

How to reset MySQL Root Password in Linux

 

First, Let’s stop the mysql service, In Red Hat’s family (Red Hat Enterprise, Fedora, CentOS) the Mysql Daemon is called ‘mysqld‘, but in Debianlike Ubuntu based distributions and OpenSuse its called ‘mysql‘. I’ll be using the debian based naming
sudo service mysql stop
OR
sudo /etc/init.d/mysql stop
Now, we’ll start the server in safe mode and skip grant tables so that it wont ask for the password we had lost when we try to login

Read more

Share

DKIM installation on Debian

 

This is a quick and fairly painless way of setting up DKIM, on a postfix server. DomainKeys Identified Mail (DKIM) is a method for associating a domain name to an email message, thereby allowing a person, role, or organization to claim some responsibility for the message and helps verify that your mail is legitimate. This will help your email not get flagged a spam or fraud, especially if you are doing bulk emailing or important emails.

This tutorial is written for debian, so if using centos the paths to some files may be /etc/mail prefix or similar.

First, install dkim-filters

Debian based

apt-get install dkim-filter

Redhat Based

Enable EPEL

yum install dkim-milter

Read more

Share

Webmin installation on openfiler

 

Download the latest Webmin RPM to openfiler from this page: (You want "RPM suitable for Redhat, Fedora, CentOS, SuSE or Mandrake Linux")
http://www.webmin.com/download.html
Copy the link from the webpage to download the correct RPM file and download it on Openfiler using the following command. If you are downloading a more updated copy of Webmin then replace the "webmin-1.510-1.noarch.rpm" with the correct filename:
wget "http://prdownloads.sourceforge.net/sourceforge/webadmin/webmin-1.510-1.noarch.rpm"
After it's downloaded in the root users home directory you need to convert the RPM to CPIO format to extract it, do this with the following command. (Once again replacing the "webmin-1.510-1.noarch.rpm" with the correct filename") :

Read more

Share

VBoxHeadless Running Virtual Machines With VirtualBox On A Headless CentOS 6x Server

 

Preliminary Note
I have tested this on a CentOS 6.2 server (host system) with the IP address 192.168.0.100 where I’m logged in as a normal user (user name vbox in this example) instead of as root.
If you only have a root account, but no normal user account, create one as follows (user admin, group admin)…
# groupadd vbox
# useradd -d /home/vbox -m -g vbox -s /bin/bash vbox
… create a password for the new user…
# passwd admin
… and log in as that user.

Read more

Share