« Posts by Umberto

Linux rocksolid…

Today someone remember me that we had an antispam server...I really don't rember when we installed, because  since his  installation I never had any problems.

I was curious to know it's uptime... so...

 

[root@galactica ~]# uptime
15:21:43 up 1297 days, 21:16,  2 users,  load average: 0.08, 0.03, 0.01

Yes, 1297 days without reboot (thank you UPS)

this is a Centos 5.5 with postfix+postgrey+clamav+don'trememberwhatelse machine.

java.net.ConnectException: network is unreachable

Under Debian (and I think other distros) if you receive this error on commandline when running java applications,

you can solve it simply setting this kernel parameter will solve the problem

 

sysctl net.ipv6.bindv6only=0

Remotely Reboot Netgear MBRN3000

I made this script to remotely restart our MBRN3000 - Netgear; because there's no way to schedule this directly on the router.
I need to restart because randomly this UMTS router disconnect from the internet using the key and there's nothing  to do  to have the connection up again, except to poweroff the router.

I named the script rebootUMTS.sh and placed in /opt/

this is the code:

#!/bin/sh
wget -q --post-data "button=reboot" http://USERNAME:PASSWORD@172.18.0.2/reboot.cgi
echo `date` " - Restart router" >> /opt/restart.log

and in crontab I've schedule to run every days at 7:00AM 1:00PM 8:PM

*  7,13,20	*	*	*	/opt/rebootUMTS.sh

Change Windows server 2008 R2 language

To change, or add a language in a Windows Server 2008 R2 system, you need to download a language pack ISO from Microsoft download site.

You can find it here
Then you need to install it; but Microsoft documentation if obscure on this argument....

The faster way is to execute this command lpksetup from Start->Run

and choose the cab file from the language pack dir you want add.

That's all, follow the instruction an you are done.

Sync Android IMAP Client with Lotus Domino 6.5

If you need to sync your Lotus Notes mailbox on your Android Device, you have to configure a couple of things (maybe).
This is the "how to" tested on my Samsung Galaxy (GT-i9000 android 2.2.1 Froyo) and Lotus Domino 6.5.4.

Open Lotus Domino Administrator, under your person document you should set "Prefers MIME" in "Format preference for incoming mail" field.
save and close.
Under "Messaging" -->"Configurations" open your Server's Document, in "IMAP" Tab, set "Enabled" in "Enable IMAP during login" field; then open the Domino conosole, and type:
load convert -e mail/database.nsf
This will check if your DB is flagged for IMAP use.
Next type:
load convert -h mail/database.nsf
This may take a while, but after the IMAP communication will be faster.

Hope this will help you