Paolo Gabrielli\’s Blog

Just another near empty’s weblog. But this is from Paolo ‘pkirk’ Gabrielli.

Windows PC doesn’t get DHCP

Posted by paolo on 5 January, 2017

cmd.exe as Administrator

net localgroup Administrators /add networkservice

net localgroup Administrators /add localservice


Posted in thinking | Leave a Comment »

Failed to start nginx.service: Unit nginx.service is masked.

Posted by paolo on 29 March, 2016

To fix it I had to
‘cd /etc/systemd/system’
‘rm nginx.service’
(and reboot the system, but maybe that is not strictly necessary…)

Posted in Linux, nginx | 5 Comments »

NcFTP keeps downloading the file

Posted by paolo on 2 February, 2016

I was using NcFTP (NcFTP 3.2.5/474 Feb 02 2011, 05:13 PM) to download a file from another server that uses ProFTPD (1.3.5a). The default behaviour is to skip the file if it already exists, but that the file was being downloaded every time, because the size seemed different:

The local file “httpdocs/license.txt” already exists.
Local:         19545 bytes, dated Thu 07 Jan 2016 11:25:02 AM CET.
Remote:        19930 bytes, dated Thu 07 Jan 2016 11:25:02 AM CET.

Others files were OK:

The local file “httpdocs/index.php” already exists.
Local:         12872 bytes, dated Tue 17 Nov 2015 04:24:58 PM CET.
Remote:        12872 bytes, dated Tue 17 Nov 2015 04:24:58 PM CET.
(Files are identical, skipped)

I didn’t have access to the ProFTPD server, but the original file (from the author’s .zip) was:

license.txt: ASCII English text, with very long lines, with CRLF line terminators

while the downloaded one is

license.txt: ASCII English text, with very long lines

I tried to download it after issuing the “binary” or “ascii” command, but the outcome was the same.

**If I download that file with my Cyberduck on OSX, the size is the “correct” one, the 19930 bytes.**

So seemed that NcFTP was changing the file, but it was unlikely, given the fact that the file transfer was in binary.

I searched the whole Internet, and I tried to sleep over it, but nothing came out. As the last resort I contacted (very fast!) NcFTP support and I found out about the auto-ascii variable that says:

If set to a list of pipe-character delimited extensions, files with these extensions will be sent in ASCII mode even if binary mode is currently in effect. This option allows you to transfer most files in binary, with the exception of a few well-known file types that should be sent in ASCII. This option is enabled by default, and set to a list of common extensions (e.g., .txt and .html).

Posted in Linux | 1 Comment »

Iron Man 2 /etc/motd

Posted by paolo on 7 May, 2010

       I     I IIIIII I       IIIII  IIIIII I     I IIIIII   I     I IIIII       IIII  IIIIIII    I    IIIII  I    I
       I  I  I I      I      I     I I    I II   II I        II   II I    I     I    I    I      I I   I    I I   I
       I  I  I I      I      I       I    I I I I I I        I I I I I    I     I         I     I   I  I    I I  I
       I  I  I IIII   I      I       I    I I  I  I IIII     I  I  I IIIII       IIII     I    I     I IIIII  III
       I  I  I I      I      I       I    I I     I I        I     I I  I            I    I    IIIIIII I  I   I  I
       I  I  I I      I      I     I I    I I     I I        I     I I   I  III      I    I    I     I I   I  I   I
        II II  IIIIII IIIIII  IIIII  IIIIII I     I IIIIII   I     I I    I III  IIII     I    I     I I    I I    I

Posted in Bullshit | 5 Comments »

USB TEMPer v. 2.0 driver

Posted by paolo on 30 March, 2010

It’s a bit difficult to find it. So… here it is, from

USB TEMPer Thermometer Temperature Recorder PC Laptop Driver

Posted in thinking | Leave a Comment »

Debian Lenny, Lighttpd, PHP5 (php5-apc) and MySQL spikes

Posted by paolo on 27 November, 2009

On a clean server I installed Lenny, I used aptitude to install Lighttpd (1.4.19 a bit old, I know), Mysql, php5-cgi (with php5-apc).

Nothing unusual, nothing strange, no handmade modifications. I think that was pretty standard, but I found (thanks Munin) that MySQL was having big utilization spikes (and so was the server’s load) while admins of a WordPress installation where POSTing things, doing Uploads, etc.

Then I found someone on the Lighttpd forum having a similar issue with FreeBSD. So I tried to change the “” conf from “linux-sendfile” to “writev” and the issue disappeared.

I hope this can help someone else.

Posted in Lighttpd, networking | 2 Comments »

Monit SimpServer and startup script CentOS/RH

Posted by paolo on 9 October, 2009

# Simpserver: (MSN/IM Encryption server)
# ————————

check process simpserver with pidfile /var/run/
start program = “/etc/init.d/simpserver start”
stop program = “/etc/init.d/simpserver stop”
if 5 restarts within 5 cycles then timeout

# Startup script for simpserver
# description: simpserver is a socks proxy to encrypt IM/MSN/ICQ conversation
# processname: simpserver

# Source function library.
. /etc/rc.d/init.d/functions


# See how we were called.
case “$1” in
echo -n “Starting Simpserver: ”
sudo -u simpuser nohup $SIMPSERVER &
pidof simpserver > $PIDFILE
touch /var/lock/subsys/simpserver
echo -n “Shutting down simpserver: ”
killproc simpserver
rm -f $PIDFILE
rm -f /var/lock/subsys/simpserver
status simpserver
$0 stop
$0 start
echo “Usage: $0 {start|stop|restart|status}”
exit 1

exit 0

Posted in thinking | Leave a Comment »

Munin hosted version

Posted by paolo on 25 June, 2009

Anyone? It’s a really cool software, why doesn’t I can’t find an hosted version? I promise that I’m willing to pay! Little money, but for real.

Thanks for your patience

Posted in thinking | 1 Comment »

[Wii] Manuale Italiano – Italian Manual

Posted by paolo on 9 July, 2008

Avendo speso diversi minuti a cercarlo… eccolo!

Having spent several minutes finding this… here it is!


Posted in Wii | Tagged: | 1 Comment »

DNS query GetHostByName double check (Happy Xmas)

Posted by paolo on 25 December, 2007

Happy Xmas to all!

I was showering some minutes ago. And I was thinking about the fact that “Security is an illusion”. Then I thinked about the fact that the first entry in my resolv.conf is an OpenDNS IP and the second is the one of my ISP. So, if someone malicious get into OpenDNS’ servers or my ISP’s ones, they can get a lot of informations. That’s no doubt about it: getting into a DNS server is a big shot.
So, then, I thinked about an ipotetical gethostbyname() that does n queries to the n DNS servers specified in the /etc/resolv.conf and tell me if there are differences.
Of course if I query about “”, I may get tons of different results, but if I query about small ISP’s services (or banks’) I’ll be glad knowing if two DNS servers give me two differents IPs.
Maybe I’m talking about “already in the wild” solutions? Or maybe this is the regular functioning of the OpenBSD’s gethostbyname? (Don’t think so).
I’m gonna check if I can do something on a Linux system first, or on a Bind installation, because maybe this work can be done via Bind, making it checking others DNS’ replies.

Ok, sorry for that bullshit, today is Xmas here in Italy, so… happy Xmas again!

Posted in Security, thinking | Tagged: | Leave a Comment »