# Clear any existing firewall stuff before we start iptables –flush iptables -t nat –flush iptables -t mangle –flush # As the default policies, drop all incoming traffic but allow all # outgoing traffic. This will allow us to make outgoing connections # from any port, but will only allow incoming connections on the ports [...]
How can I force fsck on next boot You can force an automatic full check by changing the check interval using tune2fs (-c and/or -i). -c max-mount-counts Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If max-mount-counts is 0 or -1, the number of times the filesystem is mounted [...]
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 be accessible at http://localhost/nagios/ Required Packages Make sure you’ve installed [...]
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. [...]
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 Start End Blocks [...]
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 [...]
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 [...]
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 [...]
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 [...]