Sunday, May 3, 2009

Baseline Monitoring for troubleshooting in Linux!

The Baseline Monitoring is useful in :-

  • troubleshooting
  • essential for healthy systems
  • help plan for further growth
  • can aide with security

A good baseline monitoring of systems is very helpful in troubleshooting. A good baseline of system activity and use can be used to compare when a system appears to be behaving erretically, or more activity to report when a system is operating outside of specified parametres.

It can aslo be used to tighten the security. As we can build up trends for our systems and networks over time, using these we can more easily spot events outside of the norm which could be attempts to gain access to our systems or a rogue system already under the control of external influences.

Deciding what to monitor is very dependant on the work that a system does. For database servers or file servers then disk space, service availability and load might be important. For a desktop system we might justcheck to see that its up and running.

Data gained from longer monitoring can be used outside of the purely technical. We can use it to measure the growth of system load over time, and to predict when a new server of file store might be required. We can use to how improvements made are impacting service availability and therefore helping work flow and numerous others.

thanks & regards 
tell2humanlinux@gmail.com

Get free Ubuntu stickers ! :)

Get ubuntu stickers for free! All you need to do is to mail a self addressed stamped envelope to your local address:  The addresses for different countries are give here!

Argentina

Ubuntu Sticker Offer
Av. Maipu 2259 PB C
ZIP: 1636
Buenos Aires
Argentina

Thanks to the Ubuntu Argentina Team!



Australia

Sticker Offer
P.O Box 1412
Lavington, NSW 2641

Thanks to the Ubuntu Australia Team!



Belgium

Powered by Ubuntu - stickers 
p/a Lange Vesting 100
8200 Brugge
Belgium

Thanks to the Ubuntu Belgium Team!



Bolivia

Rolando Espinoza La Fuente
Calle 16 de Julio #424 / Zona Central 
Cochabamba, Cochabamba
Bolivia

Thanks to the Bolivian Ubuntu LoCo Team!



Brazil

Comunidade UbuntuBR
A/C Etiquetas Ubuntu
Av. Rui Barbosa, 2095 cj63
Santana - Sao Jose dos Campos/SP
CEP: 12211-000

Thanks to the Ubuntu Brazil Team!



Canada

Ubuntu Sticker Offer
2448 Cadboro Bay Rd.
Victoria BC
V8S 4C1
Canada

Thanks to the Ubuntu Canada Team!


Chile

Stickers Ubuntu Chile
Arlegui #573 E-11
Viña del Mar
CHILE

Thanks to the Ubuntu Chile Team!



Colombia

Javier A Miranda R 
Carrera 118Bis N°89A-26
Int. 4, Apto. 102 
Bogota, DC -111011
COLOMBIA

Thanks to the Colombian Ubuntu Team!



France

Ubuntu-Sticker
105, rue de l'Ourcq
75019 Paris
France

http://www.ubuntu-fr.org/contact

Thanks to the French Ubuntu Team!



Germany

http://ubuntu.kamerastars.de

Thanks to the German Ubuntu Team!



Hungary

Ubuntu Hungarian LoCo Team
ORY Mate
H-1163 Budapest
Gordonka u. 32.
Hungary

Thanks to the Hungarian Ubuntu Team!



India

Baishampayan Ghose
214/4, Sher-e-Punjab Society
Andheri (E), Mumbai --- 93
India

Thanks to the Ubuntu Indian LoCo Team!



Italy

Palma Salvatore
Via Magna Grecia, 14
87029 Scalea (CS)
Italy

Thanks to the Italian Ubuntu LoCo Team!



Mexico

Stickers Ubuntu
Avenida Adolfo Lopez Mateos Condominio 1 Casa 41
Fraccionamiento Rancho San Lucas
Metepec, Mexico
CP: 52172

Thanks to the Mexican Ubuntu LoCo Team!



Netherlands

Ubuntu Stickers
Hyacintstraat 13
4587 AV Kloosterzande
The Netherlands

Thanks to the Dutch Ubuntu Team!



New Zealand

Ian Beardslee c/o C/- Catalyst IT 
PO Box 11053
Manners St
Wellington New Zealand

Thanks to the New Zealand Ubuntu Team!



Norway

Ubuntu Stickers Scandinavia
c/o FreeCode AS 
Nydalsveien 30 B 
0484 OSLO

Thanks to the Norwegian Ubuntu Team!



Peru

Gonzalo L. Campos Medina
Av. Peru K-134 / Urb. Garibaldi
ILO, ILO
PERU

Thanks to the Peruvian Ubuntu Team!



Serbia

Ivan Jelic
Bore Stefanovica 2/1
36000 Kraljevo
Serbia

Thanks to the Serbian Ubuntu Team!



Switzerland

Pro-OpenSource
Stichwort: Ubuntu-Stickers
c/o Ruben Richiger
Dietlistrasse 2
9000 St. Gallen

Thanks to the Swiss Ubuntu Team! 



Tunisia

Ubuntu Stickers
B.P. 57 Monastir République
5060 Monastir
Tunisie

Thanks to the Tunisian Ubuntu Team! 



Turkey

Atila Sendil
TUPRAS Gn.Md.
Bilgi Sistemleri Md.
Korfez / Kocaeli

Thanks to the Turkish Ubuntu Team!



United Kingdom

The Linux Emporium
Bridge House
17a Maybrook Road
Sutton Coldfield
Birmingham
B76 1AL UK

Thanks to the United Kingdom Ubuntu Team!


United States

System76, Inc. (Free Stickers)
1582 S. Parker Rd. Ste. 310
Denver, Colorado 80231


Venezuela

Nathalie Colina
Calle Dabajuro
Casa # 4
Urbanizacion El Señorial
Puerta Maraven 
Punto Fijo, Estado Falcón
Venezuela

Thanks to the Venezuelan Ubuntu Team!

ref:http://system76.com/article_info.php?tPath=3&articles_id=9&osCsid=5f9879db81c873e7a8e169de0963010a

thanks & regards 
tell2humanlinux@gmail.com

Thursday, April 30, 2009

How to monitor a system remotely using conky?


How to monitor a linux machine remotely using conky or just an "easy way"!

Here are the steps to remotely monitor a linux machine using conky. The example here is done on an Ubuntu Box.

1)Install conky on the system(remote server/system) you need to monitor

sudo apt-get install conky

2)Then install the "xauth" program onto the system(remote server/system) tunneling X (file server)

sudo apt-get install xauth

3)Then we have to edit the ssh server side file /etc/ssh/sshd_config and make sure "X11Forwarding yes" is enabled

4)Then from your local system , you can log into the remote system via SSH with the -X flag. Example:

ssh -X username@192.168.1.100

the user name should be the user of the (remote server/system)

5)once you are logged-in to the remote system, just type conky on the command prompt. You will be able to see the services like:-

  • uptime
  • frequency
  • RAM usage
  • SWAP usage
  • CPU usage
  • Processes
  • File systems:
  • Networking:
  • and currently running processes of the remote system
All in GUI on your local system. Happy Monitoring :)


thanks & regards
tell2humanlinux@gmail.com

Fixing Opera error in Ubuntu!

Is your Opera browser not working on your ubuntu desktop?. Then this post may help you.

In some cases when we click on the opera icon , it wont respond. And if we type 'opera' in the terminal it shows the following error.

human@localhost:~$ opera 

ERROR: ld.so: object 'libjvm.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libawt.so' from LD_PRELOAD cannot be preloaded: ignored.
/home/human/lib/opera/9.64/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory


This happens when some libraries get corrupted ,broken or missing.To fix this just do the following steps.

1)human@localhost:~# sudo apt-get install libqt3-mt

If you get the following message

"You might want to run `apt-get -f install' to correct these:

The following packages have unmet dependencies:

  libqt3-mt: Depends: libaudio2 but it is not going to be installed

E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."


2)then execute the following comand
human@localhost:~# sudo apt-get -f install

It will automatically install the needed packages and the issue must be fixed by now.

thanks & regards

tell2humanlinux@gmail.com

Sunday, April 26, 2009

How to install AIDE?

What is AIDE:-

AIDE (Advanced Intrusion Detection Environment) is an intrusion detection program. It is a free replacement for Tripwire.It can find out any changes made on the system binaries, libraries, header files , and configuration files etc by "comparing" regularly with the database of these files which was made at the time of its instllation.

How Does AIDE works:-

Once AIDE is installed, It creates a database of the files specified in AIDE’s configuration file. The AIDE database stores various file attributes like permissions, inode number, user, group, file size, mtime and ctime, atime, growing size, number of links and link name. AIDE also creates a cryptographic checksum or hash of each file using message digest algorithms like sha, md5, rmd160, tiger etc. Also acl, xattr and selinux can be used if enabled during compile time.This databse is created before the server/system is bought into the network.The AIDE should be installed to the system before it is exposed to the internet.

So Initially the administrator need to create an AIDE database on a new server before it is setup for networking eg hosting.This AIDE database is an excat summary of the Linux system before it is bought into the network.This database(db) will hold information about system binaries, libraries, header files etc that are expected to remain the same throughout.Suppose someone has broken-into the system, though it is easier to manipulate file dates, sizes etc, it will be quite difficult for him to manipulate cryptographic checksum like md5. Thus by rerunning AIDE after a break-in, the administrator can quickly identify changes to files with high degree of accuracy.

How to Install AIDE in UBUNTU?

1)You need the root access to install AIDE:- sudo su -

2)Install These prerequisites (packages) for AIDE:

GCC compiler for C : apt-get install gcc byacc
GNU Flex : apt-get install flex
GNU Bison : apt-get install bison
GNU Make : apt-get install make
Mhash library : apt-get install libmhash2 libmhash-dev
PostgreSQL Development Library : apt-get install postgresql-server-dev-8.3

Some of the above packages maybe already installed on your box, in that case when you execute the above commands it shows " 0 upgraded".so need not worry about that packages.

Or else you can check manually whether the packages are installed or not by using the follawing command: dpkg –get-selections | grep gcc

If the result is : gcc-4.3  install
then gcc is installed otherwise if you get no output ,then it means that gcc is not installed.

3)Once all the packages are installed then download aide from here . The downloaded packaege will be zipped in tar.

4)Create a folder 'downloades' and extract the tar achieve into this folder using the command: tar -xzvf aide-x.xx.x.tar.gz (replace x with version number)
Now you wil get the folder aide-x.xx.x
goto that folder by: cd aide-x.xx.x
Then execute the following commands :

./configure
make
make install
make clean

5)NOw you need to open the aide configuration file and determine the location where the aide database is stored. Go to that location

6)To initialise the database perform:
aide -i
mv aide.db.new aide.db

7)Now we can check wether the AIDE works by using the following command:-
 aide

8)Configuration of AIDE
AIDE has its config file located inside (if installed via package management software like synaptic, config file is /etc/aide/aide.conf) /usr/local/etc/aide.conf .
And it’s default executable is located inside /usr/local/bin/aide.

9)Explanation of the aide.conf file
database=file:/var/lib/aide/aide.db
location of the database to be read (This is the database taken as benchmark)
database_new=file:/var/lib/aide/aide.db.comp
location of the database for –compare is read (This is not present by default and is used only when we have to compare two distinct databases.)
database_out=file:/var/lib/aide/aide.db.new
location of the database to be written

10)Useful Commands
aide -C : Performs a check on the filesystem ? (also same as: aide)
aide -i : Initialises or creates the benchmark database supplied by database_out directive (here it is aide.db.new)
aide -u -c /etc/aide.conf : update the database and use the specified config file

11)Usage
Before putting one’s server into the network, the admin will have to save a secure configuration of the system by:

aide -i
mv aide.db.new aide.db

The second command transfers the server’s earlier state(aide.db database) with the new one(aide.db.new). So be careful when you do this. It is advisable to keep a backup of the earlier database.
Next time in-order to check for any break-in perform
aide 
or
aide -C
To compare the current database with some earlier backed-up database, give the path of the backed-up database to database_new option in aide.conf and perform:
aide –compare
The task of saving the old database and comparing with a new one has to be done periodically (preferably daily with the help of a cron task).


Reference Links
http://www.cs.tut.fi/~rammer/aide.html
http://supportsages.com/blog

thanks & regards
tell2humanlinux@gmail.com


Wednesday, April 22, 2009

Antivirus For Linux!


These days I was dealing with some security related packages. I had gone through the changes to be made on IPTABLE to enhance the firewall, and a little bit about SELinux.I came to know about ClamAV, an anti-virus package for Linux..

Clam AntiVirus (ClamAV) is a free, cross-platform antivirus software tool-kit. One of its main uses is on mail servers as a server-side email virus scanner. The application was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, Mac OS X, OpenVMS, OSF and Solaris.


ClamAv has the following features!

  1. a command line scanner
  2. automatic database updater
  3. scalable multi-threaded daemon
  4. running on an anti-virus engine from a shared library
  5. a Milter interface for sendmail
  6. on-demand scanning
  7. supports many document formats, including Microsoft Office, HTML, Rich Text Format and Portable Document Format.
  8. It also support for Zip, RAR, Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS formats, most mail file formats, ELF executables and Portable Executable files compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and obfuscated with SUE, Y0da Cryptor.

The ClamAV virus database is updated several times each day and as of 25 December 2008 contained 479,371 virus signatures.

Latest Stable Release:

Latest ClamAV® stable release is: 0.95.1
Total number of signatures: 545288
ClamAV Virus Databases:
main.cvd ver. 50 released on 15 Feb 2009 16:47 :0500
daily.cvd ver. 9274 released on 22 Apr 2009 13:17 :0400 (on 04/23/09)

Download the production quality stable release here

Download the latest virus database:

main.cvd ver. 50 released on 15 Feb 2009 16:47 :0500
daily.cvd ver. 9274 released on 22 Apr 2009 13:17 :0400

How to install clamAV in Debain ?

The Debian packages are maintained by Stephen Gran. ClamAV has been officially included in the Debian distribution starting from the sarge release. Run apt-cache search clamav to find the name of the packages available for installation.

You can also use one of the Debian volatile repositories to keep your ClamAV installation updated on your system.

Always choose the mirror near to you.
Edit /etc/apt/sources.list and add a line like this to it:

stable/etch:

deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free

Then run apt-get update and apt-get install clamav
If you need clamd, you may also want to run apt-get install clamav-daemon

How to install clamAV in Ubuntu?

The Ubuntu packages are maintained by Ubuntu MOTU Developers. ClamAV has been officially included in the Ubuntu distribution since the first Ubuntu release. Run apt-cache search clamav to find the name of the packages available for installation.


The released set (release, *-updates, and *-security) are patched for security updates. Following extensive testing of clamav and the packages that use it in the backports repository, they may be updated to a newer version. These are official Ubuntu packages and supported by community developers.


The Ubuntu backports repository will contain the newest clamav version that has been at least lightly tested to work with that version. These packages can be installed by enabling the backports repository in your system. These are official Ubuntu packages and supported by community developers.


How to install calmAV in Redhat/Fedora ?

Two very good repositories are maintained by Dag Wieers dag at wieers*com:

http://packages.sw.be/clamav/

and Oliver Falk:

SRPMS: http://filelister.linux-kernel.at/?current=/packages/SRPMS/
FC devel: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/development/i386
FC 3: http://rpms.linux-kernel.at/?current=/lkernAT/fedora/core/3/i386
RedHat 8.0: http://rpms.linux-kernel.at/?current=/lkernAT/redhat/extras/8.0/i386


How to install clamAV in Mandriva ?

Official Mandriva packages for cooker and supported updates (2006.0 and newer) are maintained by Oden Erikkson. For updates, use the software package manager or urpmi:

urpmi.update—update

urpmi—update—auto clamd

Unofficial packages for current and several older Mandriva distributions are maintained by Bill Randle and are available from his web server.


How to install clamAV in SuSe ?

Official SuSe packages for clamAV are maintained by Reinhard Max.

You can get it from here .


Thanks & regards

tell2humanlinux@gmail.com