Categories
General

WordPress 1.5 upgrade

The upgrade of wordpress from 1.2.2 to 1.5 took less that 10 minutes. And it rocks 🙂

I am missing my plugins but i will install them when the developpers update them for 1.5

Categories
General

WordPress 1.5

Yes, the long waiting version of wordpress 1.5 it’s released.

Time for upgrade 🙂 🙂

Thank you guys

Categories
Linux

software suspend 2.1.7

Could please somebody tell me why i cannot have a laptop that it will hibernate properly ?

I am trying to make it work for more that a week.

Today i had a better luck. With software suspend 2.1.7 for kernel 2.6.11-rc4 i am able to hibernate in runlevel 1 (using ACPI) all the time.

On runlevel 2 i can only hibernate without ACPI. The systems hangs on “Reading caches”

Of course my laptop is useless without ACPI.

I have forgot how many reboots i have done, how many kernel recompiles with different options, but i will not quit, since hibernate is a must for me.

It appears that is an ACPI problem. I will try again with ACPI as a module, just in case.

I will keep you posted.

Categories
Scuba

First dive of the year

I came back a couple of hour ago from my first dive for this year.

It wasn’t so cold 🙂 :). The temperature was 7 degrees and the water temperature 13 deggres.

Total dive time: 20 min
Max depth: 23 meters.

I think that i will use my blog as a dive log also….. Is there a plugin around ? 🙂

Categories
General

Debrick a WRT54G

I friend came a couple of hours ago with a bricked WRT54G.

It isn’t so bad as it sounds. I was able to recover it in less that 15 minutes.

There is a nice howto in the openwrt site ([url]http://www.openwrt.org/OpenWrtDocs/Troubleshooting[/url]), look at the JTAG-adaptor Method. I build the adapter with one minor change. The ground is not on pin 12 of the JTAG but on the pin 10. Check it with your multimeter, before you connect it.

If you want to read the firmware it will take you about 1 hour.

A simple “[b]wrt54 -erase:nvram[/b]” did the trick for me.

Nice now we have a solution if something goes wrong 🙂

Categories
Linux

Monitor your ups using mrtg

For a long time i wanted to monitor my UPS a APC SmartUPS 700VA using mrtg.
The main problem is that the ups doesn’t support snmp.

APCUPSD is a great program to monitor your ups (battery level, Load, etc) and shutdown your pc when the battey level is below a value. But it doesn’t provide snmp info.

Lucky for us, APCUPSD provides a tool (apcaccess ) to show the values that it can read from your ups. With the help of apcaccess, grep, awk and a shell script you can use it to feed the values to mrtg.

Step 1
Create the following script
[code]#!/bin/sh
#

a=`/sbin/apcaccess | grep LOADPCT | awk {‘print $3’}`

echo $a
echo 0
echo 0
echo ups[/code]
Name it apcups.sh and put it on /usr/local/bin

Step 2
Create the following mrtg configuration file
[code]
WorkDir: /var/www/html/mrtg-ups

Target[ups]: `/usr/local/bin/apcups.sh`
MaxBytes[ups]: 100
Title[ups]: Ups Load
PageTop[ups]: UPS Load
Options[ups]: growright, gauge, nopercent
YLegend[ups]: percent
Legend1[ups]: UPS Load
Legend2[ups]:
LegendO[ups]:
LegendI[ups]: UPS Load
ShortLegend[ups]: %[/code]

And make sure that workdir exists.

Then put a cronjob to run that script every 5 minutes
[code]
*/5 * * * * root /usr/bin/mrtg path_to_your_mrtg-ups.cfg_file
[/code]

If you want to speed the thinks up, run it 2 times then have look on the Workdir to see that the files have been generated succefull.

I use it to monitor the UPS load only, of course it can be modified to monitor also battery level, line voltage etc.

Nice ? 🙂 🙂

Categories
Gmail

50 gmail invitations

I logged in my gmail account today and i show 50 invitations waiting.

Of course there are a lot of them 🙂 🙂

If anybody wants one please post a comment with your email address

Categories
Linux

clamav hits 30000 virus definitions

The latest clamav database has more than 30000 virus definitions. It is far away from the 100K, 120K that the commercial antivirus has but who cares about viruses 10 years old ?

Categories
Linux

slmodem and kernel 2.6.10

Following my debian installation, [url]http://blog.billy.gr/archives/2005/01/24/debian-testing-microsoft-free-laptop/[/url] i had left a couple of things to take care.

On of them was the onboard Modem.

It took me more that 4 hours to figure what was going wrong with the slmodem.
I tried a lot of versions up to 2.9.10.

First of all if you are using kernel 2.6.10 and slmodem-2.9.10 YOU must use the patches from [url]http://reactivated.net/patches/slmodem/2.9.10/[/url]. The api in 2.6.10 has changed a lot. These patches will take care of it.

Second make sure that you don’t have the [b]snd-intel8x0m[/b] module loaded. I was allways geting a[b] device or resource busy[/b] when i modprobed the slamr module.

Now we have a working modem, and we are finally able to dial….

Categories
Linux

debian testing = Microsoft Free Laptop

I have spend most of my weekend installing debian testing.

Finally i am microsoft free. No more dual boot in my laptop. Only debian.
I was planning to do that when the sarge would be releases, but since there is no release schedule i wanted to try.

Installation of debian testing using the debian-installer rc2 was 10 minutes work. The rest of the time was installing everything i need in order to work.

I need to configure my wireless card (ipw2100) and my modem, in order to say that i have finished. A kernel recompile is on the way for that.

All the needed programs are installed: firefox for webbrowsing, thunderbird from mail, xmms for mp3s, mplayer for movies.

The only program from windows that i am missing is the Checkpoint Management Clients. If that doesn’t work under wine, then we have a problem. I will need a vmware just for that.

The speed under KDE is really impressing. The guys at Debian have done an really nice work. And debian testing rulez.

I will keep you posted

Categories
General

hotmail down ?

Hotmail service appears to be down for the last 3-4 hours.

Even the check service page is giving errors….

Categories
Linux

spammers using mod_proxy ?

Everyday last week, somebody was trying to connect to a spesific host on port 25 (SMTP), using mod_proxy. The IP’s are from a provider somewhere in Asia and the host they are trying to connect is in China.

My apache mod_proxy cause it is disabled. I just see it on the logs.

They want to spam or not ?

Categories
Software

sendmail and maildir

Yes sendmail DOESN’T support maildir format.

But if you use procmail here is the solution:
Create a Maildir directory on your home folder using maildirmake. If you don’t have it you can try the following:
mkdir $HOME/Maildir
mkdir $HOME/Maildir/cur
mkdir $HOME/Maildir/new
mkdir $HOME/Maildir/tmp

And create a .procmailrc using only that rule:
:0
/home/yourhomedirectory/Maildir/

If procmail is setuped correctly in your sendmail.cf it will work.

I am posting this since a friend ask me about it. And i am using it a long time after switching from exim to sendmail. Don’t ask why. It is a new machine and i haven’t the time to switch to exim or qmail 🙂

Categories
Software

lame server resolving

My DNS server (bind 9) was writing on the syslog quite often the common error message:
[b]lame server resolving[/b].

A server is marked as lame when either an NS record points to an
incorrect host, or the authoritative server is not giving authoritative
anwers (that means is responding from his cache).

Solution:

You can turn off the logging by adding the following in your /etc/named.conf.

logging {
category lame-servers { null; };
};

Categories
General

Hotmail account upgraded to 250MB

I just login into my hotmail account to see that it is upgraded to 250MB 🙂

It looks like the trick ([url]http://blog.billy.gr/archives/2005/01/05/hotmail-account-upgraded/[/url]) work and it took less that 10 days. Nice 🙂

Categories
General

News from an old friend

I had an interesting phone call today buy I guy know as my mentor since his teached me everything i know on Unix and show me the way 🙂 .

I have lost his traces on the net. He was busy writing a book and learning new stuff as allways. We will arrange a coffe soon….

Categories
Software

firefox crashes

I have about 5-6 installation of firefox 1.0 on win32, most of them on windows xp. All of them with the same settings, same extensions and theme.

From time to time i get a lot of crashes with the following error:
[b]AppName: firefox.exe AppVer: 1.0.0.0 ModName: js3250.dll
ModVer: 4.0.0.0 Offset: 000084f7[/b]

Especially when i try to open the url of gmail: gmail.google.com/gmail. Everytime i try to open that page first after i open the browser equals to the message above.

First i though that it was something wrong with the setting regarding automatic updates, then with the live bookmarks.

It appears that the problem is with the “tabbrowser extensions” extension, i removed it and for this day i have no problems-crashes.

I switch it to tabbrowser preferences. Let’s see if it will work without any problems now

Categories
Linux

emerge system

I am playing with gentoo on my laptop for about 3 months. Today i decided to do an emerge system.

It is really easy to update it: emerge –sync followed by a emerge system (you can also use emerge –pretend system first in order to see what it will be updated) and finally a etc-update.

Everything worked as expected. The next step is to do an emerge world….. But i am sure it will take 2 days to finish. The last compilation of kde took about 1 day 🙂

Categories
General

Back from trip

I spend the days 6-9 on thesalloniki. I had a really really nice time, and a lot of photos too.

More on that soon.

Today is the first day in the office after about 10 days…. A lot of stuff to take care off…

Categories
General

spam using pingback ?

The first time i got spam on my blog from spammers using comments.

Authimage did a great job, and i never received again. Now the are spamming using pingbacks….Go figure.

I will find a solution soon