Quickstart Installation Guides install Nagios from source (code) on Ubuntu
* Nagios and the plugins will be installed underneath /usr/local/nagios
* Nagios will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.)
* The Nagios web interface will [...]
Adding google repository to Ubuntu or Debian based distros.
Add the following rule to e.g. /etc/apt/sources.list, or if your distro has the /etc/apt/sources.list.d/ directory, add it to a file called google.list in that directory:
# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free main
Once the above entry is added we can run apt as usual.
sudo apt-get update
sudo apt-get install [...]
Q. My laptop partition /dev/sdb1 is showing file system error, how do i use fsck command to check for file system error and repair the partition.
Solution is to use fsck – check and repair a Linux file system or use e2fsck – check a Linux ext2/ext3 file system.
Device [...]
To get Sun Java under Ubuntu on Intel, you should enable the Universe repository in Add/Remove programs, and install either the openjdk-6-jre package or the sun-java6-bin package.
root@laptop:~# apt-cache search jre
default-jre – Standard Java or Java compatible Runtime
default-jre-headless – Standard Java or Java compatible Runtime (headless)
docbook-xsl – stylesheets for processing DocBook XML files to various output [...]
Adding the Google Linux Software Repositories to Ubuntu
Get key
wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
apt-get update
Add the following rule to e.g. /etc/apt/sources.list, or if your distro has the /etc/apt/sources.list.d/ directory, add it to a file called google.list in that directory:
deb http://dl.google.com/linux/deb/ stable non-free main
then use apt
sudo apt-get update
sudo apt-get install picasa [...]
Ubuntu /etc/network/interfaces DHCP setup
To setup eth0 to dhcp in /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
/etc/network/interfaces Ubuntu Static Network setup
Following example setup eth0 with 192.168.1.1 IP address and gateway (router) to 192.168.1.2
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.2
With IPtables
auto eth0
iface eth0 inet dhcp
pre-up iptables-restore < /etc/iptables.rules
post-down iptables-restore < /etc/iptables.downrules
Another Example -
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address [...]
To configure your Ethernet device with a static IP address and custom configuration, some more information will be required.
Suppose you want to assign the IP address 192.168.0.2 to the device eth1, with the typical netmask of 255.255.255.0.
Your default gateway’s IP address is 192.168.0.1. You would enter something like this into /etc/network/interfaces:
iface eth1 inet [...]
Install LAMP stack in Ubuntu
As of the 7.04 release +, the Ubuntu base system includes Tasksel.
You can either install LAMP using tasksel or install the LAMP packages as detailed above.
sudo tasksel install lamp-server
To remove the LAMP stack remove the following packages:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common [...]