Linux
Installation Error cant read repomd xml
While installing package from rpmforge repo, if you receive Error: Cannot open/read repomd.xml file for repository: rpmforge, then it might because of you are unable to reach the specified repo online. In order to reach the repo try adding its fully qualified domain name in reslov.conf
Any rpm package installs the ..
Commands for using CSF
Before looking more in to CSF firewall, first we must know more on CSF config files. Below are some of the CSF configuration files
csf.conf : Configuration file for controlling CSF.
csf.allow : All Allowed IP's and CIDR addresses list on the firewall.
csf.deny : All Denied IP's and CIDR addresses list on ..
Config Server Security & Firewall
how to install csf
Installing and Uninstalling CSF in Linux.
CSF - Config Server Security & Firewall. It is an open source firewall for server. CSF is a software firewall, Software Firewall is a piece of software that is installed on your computer in order to protect it from unauthorized access.
Log into ..
How to use Speedtest-cli
Speedtest-cli is application used for testing internet speeds in Linux operating system.
# wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
# chmod +x speedtest_cli.py
# ./speedtest_cli.py
Speedtest is a python script used to test your internet speed, this can be installed by using normal wget and start using it. ..
Find and remove .svn folders
Find and remove .svn directories using linux commands
I came around this when I was having a need to remove all the svn directories from my development machine. I use Linux box to develope my application and was having all svn directories inside my application directories which was really annoying. below ..
Linux Mint 15 Installing new VM
Installing virtualbox made very simplar in linux operating system. Ubuntu linux makes it very simple for installing new VM, Follw the simple steps to uninstall and re-install new linux VM
Un-install previous VirtualBox version in system
# sudo apt-get remove virtualbox-4
Installing VirtualBox 4.3 in system :
32Bit :
# wget http://download.virtualbox.org/virtualbox/4.3.0/virtualbox-4.3_4.3.0-89960~Ubuntu~raring_i386.deb
# ..
How to Allow and Deny access to server for Countries
How to Allow and Deny access in server for Countries using CSF.
As a admin we will be in a situation to allow and deny Countries using to access our websites or webcontents, this can be easily achieved by using CSF. It is a firewall and to achieve this we must ..
Clean & empty buffers and cache on a Linux system
Before clearing cache memory on a Linux system?
# free -m
total used free shared buffers ..
Installing VirtualBox 4.3 on Ubuntu 13.04/13.10, Linux Mint 15
First uninistall previous VirtualBox version in system
# sudo apt-get remove virtualbox-4
Install VirtualBox 4.3 in system : 32Bit :
# wget http://download.virtualbox.org/virtualbox/4.3.0/virtualbox-4.3_4.3.0-89960~Ubuntu~raring_i386.deb
# sudo dpkg -i virtualbox-4.3_4.3.0-89960~Ubuntu~raring_i386.deb
# sudo apt-get -f install
64Bit :
# wget http://download.virtualbox.org/virtualbox/4.3.0/virtualbox-4.3_4.3.0-89960~Ubuntu~raring_amd64.deb
# sudo dpkg -i virtualbox-4.3_4.3.0-89960~Ubuntu~raring_amd64.deb
# sudo apt-get -f install
To Run VirtualBox,type below command in Terminal :
# virtualbox
..
Solved - Error connection timed out 110 Cant open SMTP stream in webmail
When you receive some error like error connection timed out 110, when you try to sent mail through webmail then probably that is because of firwall which installed on the server is not allowing the connections to the SMTP service.
ERROR: Message not sent. Server replied: Connection timed out 110 Cant ..
Force logoff a user
How to force a user to logout from the server? To forcefully logout a user and make required changes on server, First find out how many sessions a user have login and also check wheter he is executing some important task, before force fully logout a user.
To find user who ..
Create split input file
Create split input file
# for i in {1..1000}; do echo "$i" >> split_input; done
First we shall create an input file for splitting a file. With the above command we shall create a large input file for splitting a file which has 1000 lines. File split_input file will be having ..
Breaking large files into small files
A large file can be splitted into small from linux terminal by using split command in linux. Make sure that required packages are installed in the terminal. To Split large file into number of smaller files from linux console, follow the steps below.
To Split the file name example.txt, use split ..
Smartctl to find HP SmartArray controllers
smartctl is a linux tool which is used to perform disk analysis
# smartctl -a -d cciss,0 /dev/cciss/c0d0
The smartctl program also allows for you to view and test SMART attributes of a drive. You can quickly check the overall health of a drive by using
# smartctl -H /dev/sda
..
Find hp smart array controller used linux
The module used for HP SmartArrays is 'cciss'. In more recent kernel versions they have been moving things over to a newer hpsa driver. To find out what modules are used for which which hardware, you can use below command
# lspci -k
OUTPUT:
04:00.0 RAID bus controller: Hewlett-Packard Company Smart ..