Archive

Posts Tagged ‘debian’

Upgrade nagios 3.0.3 to 3.0.6

July 21st, 2009 No comments

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…

Read more…

ubuntu mounts read only +USB

May 2nd, 2009 No comments

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
# mount
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 Tags: , , , , , , , , ,

How to Logmein in Linux

April 21st, 2009 21 comments

The famous Logmein solution does not work for Linux. There are other solutions like:
VNC,DynDns,forwarding ports, FreeNX, thightVNC etc…

Read more…

Linux .bashrc script

March 18th, 2009 No comments

Login script to set nice prompt, colors,alias, history.

Download

Read more…

SquidGuard 1.4 Howto

February 6th, 2009 15 comments

Howto setup SquidGuard 1.4
(check out my howto on SQUID)
Requirements:
* Bison
* Flex
* 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.gz
# tar -zxvf http://www.xoroz.com/files/db-4.6.21.tar.gz
cd db-46..
cd build_unix
../dist/configure –prefix /usr/local/BerkeleyDB
This will build the Berkeley DB library.
# make
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
# ldconfig
Confirm its there
# ldconfig -v | grep libdb-4
(After updating, I erased he entry from ld.so.conf)

Read more…

Squid howto

December 2nd, 2008 2 comments

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…

Read more…

Linux mini manual

June 5th, 2008 No comments

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

Read more…