Archive for 2003

Deleting “^M” characters from your text file

Friday, November 14th, 2003

Today I’ve downloaded a text file and I’ve found a lot of CTRL+M (15 octal character) garbage characters. This could be caused by a mistake when downloading the file with FTP bin mode enabled… who knows…

Anyway, our friend the tr command is here to help…

tr, as the man page tells, translates or deletes characters. If you want to delete those characters try this:

tr -d ‘\15′ < annoying_file.txt > clean_file.txt

Be careful! The above command will delete the CTRL+M characters. It’s better to substitute them by line breaks:

tr ‘\15′ ‘\12′ < annoying_file.txt > clean_file.txt

If you want to delete the original file…

tr ‘\15′ ‘\12′ < annoying_file.txt > clean_file.txt && rm annoying_file.txt

Are my interfaces in promiscuous mode?

Monday, November 10th, 2003

When a network interface is in promiscuous mode the machine can see all network packets, even those destined to another machine. Under Solaris, there is no way to determine if your box’s network interfaces are in promiscuous mode.

One of the reasons your box is in promiscuous mode is due to sniffer programs such as snoop or tcpdump. The ifstatus tool can help to see the mode of your interfaces.

How to disable automounter?

Monday, November 10th, 2003

Sometimes, for security reasons you should need to disable automounter. Automounter is controlled by the /etc/auto_* configuration files.

The easiest way to disable it is to remove /etc/auto_* and disable the /etc/rc2.d/S74autofs.

cd /etc
rm auto_*
cd /etc/rc2.d
mv S74autofs OFF_S74autofs

Starting a daemon at boot time

Monday, November 10th, 2003

Once you have installed a new package, say, MySQL you should configure Gentoo to automatically start the daemon at boot time.

(more…)

Extra! Extra! Samuel has born!

Tuesday, October 28th, 2003

Let me leave the habitual topics of this site to announce that my nephew has born today! A 3,7 kilograms little boy, healthy as an oak. My beloved little boy Samuel.

Congratulations to my brother and family !!

Samuel2Samuel1

New release of Mac OS X

Sunday, October 26th, 2003

Apple announces the availability of the Mac OS X 10.3, a new release of its BSD based Unix, known as Panther.

References:

Setting up a caching DNS resolver with djbdns

Friday, October 10th, 2003

As you know, a DNS server translates the domain names (.i.e. www.karkomaonline.com) into numerical values that computers recognize and also translates numerical values into domain names. The server stores previous queries so that later requests can be handled more quickly.

A DNS caching resolver performs the function of caching answers to previous queries so that there is no need to repeatedly query for the same information.

This tip will show you how to set up a caching DNS using the djbdns software package.

(more…)

ICANN to send an ultimatum to VeriSign

Saturday, October 4th, 2003

As noticed several days ago, on 15 September 2003, VeriSign unilaterally decided to make changes to the .com and .net Top Level Domain zones.

Well, now the ICANN have sent an ultimatum to VeriSign to stop this irresponsable behaviour.

References:

OpenSSL vulnerabilities in ASN.1 parsing

Wednesday, October 1st, 2003

Four new OpenSSL security vulnerabilities have been reported. According to OpenSSL website these are the vulnerabilities…

(more…)

Sharing a terminal session

Sunday, September 28th, 2003

This little trick allows you to share your terminal session with other users. For example, it could be helpful for making remote demos of GNU/Linux to your unexperienced users or to capture what you do in a session.

(more…)