Upgrading From Previous Nagios 3.x Releases
As newer alpha, beta, and stable releases of Nagios 3.x are released, you should strongly consider upgrading as soon as possible. Newer releases usually contain critical bug fixes, so its important to stay up to date. Assuming you’ve already installed Nagios from source code as described in the quickstart guide, you can install newer versions of Nagios 3.x easily.
You don’t even need root access to do it, as everything that needed to be done as root was done during the initial install. Here’s the upgrade process…
Categories: HowTo, Linux 3.0.3, 3.0.6, compile, debian, glib2.0, HowTo, install, Linux, monitoring, Nagios, reinstall, setup, to, upgrade
ubuntu mounts read only +USB
Someitimes when automounting external media, like USB memory or SD cards.
Ubuntu will allow read only.
The reason could be that somehow the kernel goes to panic when try to mount write permissions, confirm it by doing:
# dmesg | grep -i panic
will show you any panic messages. If you’re seeing alot of them relative to the disk, copy all the files you can to another disk and use dosfsck to fix the FAT partition,
Find out how is it mounted
Fix the filesystem:
# dosfsck -a /dev/<sdXX>
For me it got stuck in a bad pictures so I had to do
# dosfsck /dev/<sdXX> -a -r -v -w
Then to check for Bad Sectors and fix it
# dosfsck /dev/sde1 -t -r -v
Or since you’ve backed it up anyway (if you really did!)
just mkfs.vfat to format as FAT32. Or use gparted.
Categories: HowTo, Linux debian, fix, HowTo, kernel, Linux, only, panic, read, ubuntu, USB
The famous Logmein solution does not work for Linux. There are other solutions like:
VNC,DynDns,forwarding ports, FreeNX, thightVNC etc…
Categories: HowTo, Linux, Security debian, download, dynamic, Linux, logmein, ntrconnect, remote control, ubuntu, web
Login script to set nice prompt, colors,alias, history.
Howto setup SquidGuard 1.4
(check out my howto on SQUID)
* Berkeley DB V.2.7.7, V3.2.x or 4.x (original site: www.oracle.com/database/berkeley-db/index.html).
Annotation: Berkeley DB version 4.7 gives error messages during compilation. Up to version 4.6 the compilation runs fine.
* A C compiler like GCC
Lets start it:
# apt-get install bison flex
We also need the berkeley-db (recommend is version 4.6)
# wget http://www.xoroz.com/files/db-4.6.21.tar.gzcd db-46..
# tar -zxvf http://www.xoroz.com/files/db-4.6.21.tar.gz
../dist/configure –prefix /usr/local/BerkeleyDB
This will build the Berkeley DB library.
To install the Berkeley DB library, enter the following command:
# make install
Update our library (debian)
# echo “/usr/local/BerkeleyDB/lib” >> /etc/ld.so.conf
Confirm its there
# ldconfig -v | grep libdb-4
(After updating, I erased he entry from ld.so.conf)
Categories: HowTo, Linux 1.4, berkleydb, blacklist, block, debian, download, filter, proxy, setup, squid, squidguard, squidguard.conf, squidhowto, url
This week I setup a cool Squid Proxy for our network at the office. What it does?
Follow also the HowTo Setup SquidGuard
1. Caches the websites people visit, so it usess less bandwith and improve performance
2. Allow managers to review web usage,
3. Allow restriction of certain webpages, content etc…
Categories: HowTo, Linux, PerlScripts, Security 1.4, debian, firewall, how to, HowTo, Iptables, Linux, proxy, script, setup, squid, squidguard, stable11, transparent, webmin
Linux Debian/Ubuntu Commands
Last Updated April 2009
My Mini Manual
|– FILES/SEARCH/SYSTEM –|
Unique names, remove duplicate names:
# cat words.txt | sort | uniq > dictionary.txt
remove any words not X size, or from X to Y:
# cat dictionary.txt | pw-inspector -m 6 -c 2 -n > passlist.txt
Categories: HowTo, Linux commands, debian, HowTo, Linux, Linux Commands, Linux Mini Manual, manual, manual.linunx, tutorial, Ubuntu Manual