Pagina principale
Da PiemonteWireless.
|
Benvenuto su PiemonteWireless,
wiki di informazione su wireless, radio & co.
73 articoli
|
| | Elettronica Teorica e Pratica | | Informatica Programmazione, OS e Hacks | | Matematica nell' Elettronica e Informatica |
| | Storia Contemporanea | | Libri Biblioteca | | Video Videoteca |
How to load METLDR in ps3 20100314
| ||||||
|---|---|---|---|---|---|---|
Compile available codecs in PJSip with iPhone SDK3.1.2 20100203
| ||||||
Using Settings.bundle in Siphon project instead of SiphonSettings project 20100130
| ||||||
How compile PJSip 1.x (svn or 1.5.5) with iPhone SDK 3.1.2 20100128
| ||||||
How to install python PaiMei on Mac OSX Snow Leopard 20091215
| ||||||
Install AircrackNG on Mac OS X 20091213
| ||||||
Promemoria per CPIO 20091212
| ||||||
Copiare un albero con scp 20091211
| ||||||
SSH_Key per accedere senza richiesta di password 20091210
| ||||||
Modding HTC Dream di TIM con Ubuntu 20090613
| ||||||
Phrack66 is out 20090613
| ||||||
Poesie di Alekos Panagulis 20090304
|
| IL MIO INDIRIZZO Un fiammifero per penna | MY ADDRESS A match as a pen |
| Carcere militare di Boiati, isolamento 5 giugno 1971 – dopo un pestaggio | Military Prisons of Bogiati, 5 June 1971 – after beating |
[.........]
Dischi Solid State (SSD) Intel X25-E su Ubuntu 20090304 
Dischi Solid State (SSD) Intel X25-E su Ubuntu
Dopo aver visto le ottime performance dei nuovi dischi solid state della Intel, ho montato questi dischi su un nuovo server Supermicro, in particolare una coppia di Intel X25-E da 32Gb.
Ho installato la versione server della ultima Ubuntu e ho montato i dischi con un RAID1 software.
Quindi ho preso qualche piccolo accorgimento per aumentare le performance e allungare la vita ai dischi SSD, che dopo un tot di accessi al disco si deteriorano e muoiono.
Gli accorgimenti sono:
- Montare i volumi con l'opzione noatime: di default Linux aggiorna l'attributo "ultimo accesso" ogni volta che un file viene visto, il che comporta un notevole (e per me inutile) accesso al disco. Per disabilitare questa funzione occorre cambiare l'opzione relatime in noatime nel file /etc/fstab ad ogni riga che monta i device SSD.
[.........]
Cluster storage using DRBD and GFS2 20090117 
How create a good shared storage to be used in a cluster (using DRBD and GFS2)
I tried different way to create a shared storage for my cluster.
My first and most important rule (after performance) was synchronization in both direction, so I can't use simple rsync command.
I tested Glusterfs but performances was very low, then I tried Unison but it's pretty unstable and I had alot of problem just to compile it.
So I decided to use a block level Distributed file system and I choose DRBD with OCFS2, becouse I read alot of good news about them.
The following text is my experience with them,
[.........]
OpenVPN: a tutorial 20090114 
OpenVPN: a tutorial
This document describe how to install OpenVPN software on an Ubuntu Linux system (or Debian like one).
For info on OpenVPN, what is and what can do, please refer to Main OpenVPN site.
In this tutorial I'll compile and install OpenVPN from source. If you prefer to install it by APT, please skip the "Compile and Install section" and go to "Configuration section" replacing all occurence to my openvpn config dir (/opt/openvpn/etc) with the default config dir
[.........]
Aste al ribasso 20090104 
La verita su Bidplaza e sulle aste al ribasso
Analisi tecnica delle lotterie meno conosciute (e meno chiare) del mondo
A cura di: Piero Tofy
La prima volta che sentii parlare di aste al ribasso non volli credere che ci fossero dei pazzi che vendevano una Porsche per poche decine di euro e degli apparecchi elettronici come I-Pods e PlayStations dal valore di diverse centinaia di euro per pochi centesimi. Incuriosito, mi documentai sulla loro pagina http://www.bidplaza.it/t_contact.php a proposito del funzionamento di quest'idea mangiasoldi del secolo. Riassunto brevemente, l'idea geniale consiste nel fatto che si, puoi effettivamente comprare un oggetto per pochi centesimi se la tua offerta è unica (non ci sono altre persone che hanno offerto la tua cifra) e la più bassa (tutte le offerte piu basse della tua sono state prese da 2 o più persone). Piccolo particolare: per fare un'offerta devi pagare una sorta di "commissione", che su Bidplaza al momento in cui scrivo è pari a 2,00 €
Dove sta il guadagno per i proprietari vi chiederete?
[.........]
Connettori per radiofrequenza 20081118 
Introduzione
In questa piccola guida intendo fare un pò di chiarezza sul mondo dei connettori coassiali per la radiofrequenza.
Per chi si accosta per la prima volta al mondo della radiofrequenza, la molteplici tipologie di connettori sono spesso una delle causa delle difficoltà di realizzazione di semplici impianti e il loro errato utilizzo porta alle volte ad una notevole dispersione del segnale di antenna,
Inizio quindi a riassumere le tipologie di connettori dividendole per modalità di assemblaggio per poi passare ad una descrizione dettagliata di ognuno
[.........]
Navigare in modo anonimo sul web 20081111 
Diventare anonimi con Tor e Privoxy
Se vuoi navigare in modo anonimo sul web, ovvero nascondere il tuo IP di provenienza, un ottima soluzione è usare Tor inseme a Privoxy.
Questi sono i passi da eseguire su un Ubuntu (Debian like).
sudo apt-get install tor privoxy
Poi edita il file /etc/privoxy/config, aggiungendo questa riga:
forward-socks4a / 127.0.0.1:9050 .
e commenta queste due linee dello stesso file:
#logfile logfile #jarfile jarfile
Quindi riavvia privoxy:
sudo /etc/init.d/privoxy restart
Infine conviene usare Firefox
[.........]
Plone Big Icons 20081111 
Change icon size in Plone
For a client we had to customize default Plone icon size. The Zope Component Architecture allowed us to do it very easily.
This is not a howto: it is a "note to self" that might be useful to others. Find good documentation about Plone on Plone.org.
There is a related (minimal) egg here.
Plone is great, but customers always want custom-looking sites.
Icons in the navigation portlet can be customized ttw or in a product, because they come from the plone_images skin layer.
But they will always be 16 pixels x 16 pixels images.
[.........]
Rapidshare e Wget 20081025 
Usare WGET (o CURL) per scaricare files da RapidShare
Rapidshare (inseme a Megaupload e a qualche altro) è un ottimo provider dove è possibile scaricare un pò di tutto, dai films alla musica ai softwares (in modo legale o no... questo sta a voi deciderlo).
Rapidshare offre due tipologie di accesso:
- Gratis: permette di scaricare un solo file per volta di massimo 100Mb e limita sia la banda che il numero totale di download (restando comunque perfettamente utilizzabile)
- Premium: è la modalità senza limitazione (tranne un limite di bytes scaricati che si aggira sui 5Gb al giorno) accessibile a fronte di un pagamento mensile
In questo breve tutorial intendo spiegarvi come scaricare files tramite wget (oppure curl) dal sezione Premium del sito Rapidshare.
[.........]
Internet in Italia 20081025 
Topologia della rete in Italia
Vi sono parecchi operatori rivolti ad un'utenza differenziata (commerciale piuttosto che accademica):
GARR
La Rete GARR (il cui acronimo singifica "Gestione Amplimento Rete Ricerca") è composta da tutte le Entità che rappresentano la Comunità Accademica e della Ricerca Scientifica in Italia. Offre una rete con banda fino a 10 Gb/s con peering verso gli altri gestori nazionali in molti punti e fino a 10 Gb/s verso le altre reti europee ed interzaionali (TELIA nel NordEuropa, Géant sul resto dell'Europa) di cui fruiscono principalmente Università, centri di ricerca e organismi governativi ed altri enti pubblici. (link)
[.........]
Xargs e Mv 20080926 
Usare il comando xargs per muovere un grande numero di files
Mi è capitato di dover muovere un numero enorme di files presenti in una directory senza poter muovere la directory stessa.
Ecco un esempio su come procedere.
Immaginiamo di avere una directory /store dove sono presenti moltissimi file e di voler spostare tutti i files wav presenti al suo interno in un'altra directory /musica.
Il comando è:
utente@macchina:~$ find /store -iname '*.wav'|xargs -I '{}' mv {} /musica
e il gioco è fatto.
[.........]
Postgrey antispam 20080814 
Postgrey: un metodo antispam semplice ed efficace
Il software Postgrey usa delle liste di quarantena, chiamate greylist in cui deposita le mail in arrivo.
Il funzionamento è semplice: ogni mail in ingresso viene identificata dalla tripletta IP_SORGENTE/MITTENTE/DESTINATARIO (CLIENT_IP/SENDER/RECIPIENT). Se è la prima volta che la tripletta viene incontrata, o se è già stata vista da meno di 5 minuti, la tripletta (e quindi la mail) è messa in quarantena (greylisted), e la mail sarà respinta con un messaggio di "errore temporaneo". Se la stessa tripletta è vista dopo 5 minuti e prima di 35 giorni, la mail sarà accettata (ovviamente i valori di 5 minuti e 35 giorni sono configurabili).
L'idea chiave alla base di questo metodo antispam è che gli spammers non possono rispettare gli standard RFC che dicono che quando una mail non può essere trasmessa,
[.........]
FileSystem Distribuito GlusterFS 20080425 
File System Distribuito: GlusterFS
GlusterFS è un file system clusterizzato capace di gestire molti petabytes.
Segue un dettaglio della mia installazione su un sistema Ubuntu-like.
Il lato client di GlusterFS usa Fuse per il mount.
Scaricare l'ultima versione di GlusterFS da [1].
E' consigliabile installare anche una versione patchata di Fuse, fatta su misura per GlusterFS (migliori performance IO ed altro). Si può scaricare da [2].
$ cd /opt/source $ mkdir glusterFS $ wget http://europe.gluster.org/glusterfs/1.3/glusterfs-1.3.8pre6.tar.gz $ wget http://europe.gluster.org/glusterfs/fuse/fuse-2.7.2glfs9.tar.gz $ tar xvzf glusterfs-1.3.8pre6.tar.gz $ tar xvzf fuse-2.7.2glfs9.tar.gz
Cominciamo con Fuse (ricordarsi di backappare il modulo originale di fuse,
[.........]
DHCP Server 20080418 
Installare un Server DHCP per una configurazione automatica degli IP
Premetto che mi baso su una distribuzione Debian-compatibile, ovvero Ubuntu etc...
Installo il pacchetto dhcpd
$ sudo apt-get install dhcp3-server
Abilito il server DHCP sull'interfaccia di rete eth0
# /etc/default/dhcp3-server INTERFACES="eth0"
Edito il file di configurazione del server DHCP:
$ vim /etc/dhcp3/dhcpd.conf
Qui mostro un esempio di assegnazione di IP tramite riconoscimento di MAC address, in modo che tutte le richieste provenienti da una data scheda di rete restituiscano sempre lo stesso IP. L'esempio assegna al computer apollo, con scheda di rete avente MAC 00:10:20:530:A0:B0 l'indirizzo IP 192.168.50.10 (router 192.168.50.1, dns 208.67.222.222, etc...)
# dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.50.0 netmask 255.255.255.0 {
host apollo {
# 'ping target_host', 'ar
[.........]
Installazione tramite PXE 20080418 
Installazione di Ubuntu da remoto tramite PXE
Vi sarà capitato di dover installare Linux su una macchina senza CDRom, o di non averne uno a portata.
La soluzione è PXE (Preboot Execution Environment), ovvero un metodo per eseguire il boot di un computer tramite ethernet.
Per prima cosa occorre installere un server DHCP (vedi qui).
Poi aggiungiamo le seguenti righe al file di configurazione del DHCP, ovvero dhcpd.conf
next-server 192.168.50.1; filename "pxelinux.0";
dove 192.168.50.1 è l'IP del server su cui stiamo lavorando.
Adesso installiamo il server TFTP (Trivial file transfer protocol) ed anche un client per fare testing:
$ sudo apt-get install tftpd-hpa tftp-hpa
Abilitiamo il server TFTP e settiamone la directory di lavoro:
$ sudo vim /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa RUN_DAEMON="yes" OPTIONS="-l -s /home/pxetero/"
Aggiungiamo un utente per il servizio TFTP:
$ sudo adduser pxetero
Devo permettere al
[.........]
Phrack #65 Released 20080415 
Phrack #65 RELEASED
TOC of this issue:
0x01 Introduction TCLH 0x02 Phrack Prophile of The UNIX Terrorist TCLH 0x03 Phrack World News TCLH 0x04 Stealth Hooking: another way to subvert the Windows kernel mxatone,ivanlefou 0x05 Clawing holes in NAT with UPnP felinemenace 0x06 The only laws on Internet are assembly and RFCs Julia 0x07 Hacking the System Management Mode BSDaemon, coideloko, d0nand0n 0x08 Mystifying the debugger for ultimate stealthness halfdead 0x09 Australian Restricted Defense Networks and FISSO The Finn 0x0a Phook - The PEB Hooker shearer & dreg 0x0b Hacking the $49 Wifi Finder openschemes 0x0c The art of exploitation: Samba WINS stack overflow max_packetz 0x0d The Underground Myth anonymous 0x0e Hacking your brain: Artificial Conciousness -C 0x0f International scenes various
[.........]
Controller Sitronix ST7066U ed FPGA 20080412 
Gestire il controller LCD della board FPGA Xilinx Spartan 3AN
La scheda FPGA Xilinx Spartan 3AN (o simile come il modello 3E) possiede un LCD composto da 2 linee per 16 caratteri.
Lo schermo LCD e' gestito da un controller Sitronix ST7066U, che è equivalente a:
- Samsung S6A0069X or KS0066U
- Hitachi HD44780
- SMOS SED1278
Ho da poco ricevuto questa scheda e, poichè assolutamente nuovo a questo mondo, ho cominciato con qualche semplice esercizio in VHDL quali accendere led, settare interrutori etc...
Riporto qui il codice VHDL che ho implementato per la gestione del controller LCD, ritenendolo interessante ed utile per un principante
[.........]
DNS Server su Ubuntu 20080309 
Installare un server DNS su Ubuntu (o Debian)
Delle volte conviene installare sul proprio gateway, oltre ad un server DHCP (consiglio udhcp) anche un server DNS.
In questo modo potremo sia assegnare un nome di dominio alla nostra lan, sia semplificare la configurazione delle altre macchine, usando l'indirizzo del gateway anche come DNS. Chi non considera utili queste motivazioni, la semplice curiosità può bastare. Il server che usiamo è BIND9 La rete del mio esempio comprende un gateway 192.168.1.1 che chiamiamo gateway.ufficio.lan (su cui lavoriamo) e due macchine 192.168.1.10 e 192.168.1.11 che chiamiamo rispettivamente pollicino.ufficio.lan e paperino.ufficio.lan. Riassumendo:
- 192.168.1.1 gateway.ufficio.lan
- 192.168.1.10 pollicino.ufficio.lan
- 192.168.1.11 paperino
[.........]
Programmatori per chip AVR 20080224 
PIC vs AVR 20080224 
PIC vs AVR
Ultimate fight!
The fight is ON!
OK, I know what you people want. You want ultimate fighting, embedded E.E. style. You want to know WHICH IS BETTER, PIC OR AVR?
Well, I know what side I'm placing my bets on (AVR of course) but for 99% of beginners, it doesn't matter too much which way you start.
Regardless, I'm tired of answering the same questions over & over, so here we go!
[.........]
WiFi Spectrum Analyser 20080220 
DIY 2.4GHz Spectrum Analyser
This is a simple project that allows you to monitor the 2.4GHZ ISM band in your immediate vicinity.
There many wireless devices available on the market now that broadcast in the 2.4GHz spectrum including Bluetooth, 802.11a/b ethernet (WiFi), Zigbee, wireless USB, cordless phones, wireless mice and keyboards and the humble microwave oven. Depending where you live in the world your government has allocated a roughly 80MHz block for transmitting all manner of data starting at 2.4GHz. It's getting a bit crowded in this band, especially if you live in a built up urban area. With this project you can monitor what's going on and figure out what channel to change your WiFi network to in order for it to keep working when your neighbor rudely sets up their wireless network on the same channel as you (that'd be channel 6, you lazy sod).
[.........]
Pover Over Ethernet 20080220 
Yet Another Power Over Ethernet
A friend of mine aquired a pair of DLink DWL-900APs which he wanted for a 2.5km point to point link. He wanted to replace the 486's currently in his roof cavity containing ye olde ISA Wavelan cards with something that would be less of a potential fire hazard. Understandable. And he wanted to go above 2Mbit. Even more understandble. So I undertook to make him a Power Over Ethernet kit. I found NYCWireless's POE which I used as a guide. As the DWL-900AP needs 5V to operate, I have included regulation so that the AP will get consistent power over a variety of CAT5 cable lengths.
Note that this POE IS NOT compatible with the IEEE 802.3af POE standard. See the bottom of this page for details on 802.3af.'
[.........]
Argument List Too Long 20071202 
/bin/rm: Argument List Too Long
Mi e' capitato piu' volte di voler cancellare il contenuto di una directory dove il numero dei files presenti e abbastanza grande.
Purtroppo il numero di argomenti che si puo' passare a /bin/rm e' limitato:
utente@macchina:~$ rm /opt/unaDirectory/*.txt /bin/rm: Argument list too long.
[.........]
Sound With Ceres3 20071026 
Transforming Sound With Ceres3
(da un articolo di Dave Phillips una volta su [3] ma ora quasi introvabile)
Ceres3 is a spectral domain editor for audio files. Its display represents the frequency content of a sound as it changes over time, and the program's toolkit provides the means for directly editing and transforming that content. Ceres3 is a fantastic tool for studying, editing, and creating sounds, and in this tutorial we'll take a look at what can be done with some of Ceres3's powerful Transforms.
Preparation
The examples here were made under certain conditions. I used a 29-second monaural AIFF file (Ceres3 reads and writes only mono AIFF soundfiles), and I started the program with this command sequence:
ceres3 4096 4096 128 800
The command options set the FFT and window sizes, the window step factor, and the display width. Higher values for the first three options will result in higher resolution analysis and a much larger analysis file
[.........]
Apache MPM Types 20070918 
Apache MPM Worker (the thread way) e PHP5
Recentente mi sono posto la domanda di cosa fossero tutte quei possibili pacchetti di installazione di Apache2 che si trovano su una Ubuntu.
# apt-cache search apache2|grep apache2-mpm apache2-mpm-event - Event driven model for Apache HTTPD 2.1 apache2-mpm-perchild - Transitional package - please remove apache2-mpm-prefork - Traditional model for Apache HTTPD 2.1 apache2-mpm-worker - High speed threaded model for Apache HTTPD 2.1 apache2-mpm-itk - multiuser MPM for Apache 2.2
Ho cosi' scoperto che sono delle diverse compilazioni di Apache.
[.........]
Microchip Simulation Links 20070803 
Microchip Simulation Software
A commented list of software simulation for various microcontrollers.
PIC (Microchip)
| gpsim is a full-featured software simulator for Microchip PIC microcontrollers distributed under the GNU General Public License. | Linux (ported to Windows) | |
| Program for development and simulation of software for the PIC16F84 microcontroller made by Microchip. | Windows / Linux (Java) |
[.........]
Chaos Communication Camp 2007 20070801 
Chaos Communication Camp 2007
Dopo il WTH di due anni fa in Olanda, quest'anno e' la volta del congresso del piu' noto e longevo gruppo H. europeo, il CCC (Chaos Computer Club).
In due parole, un Camp e' un luogo di ritrovo all'aperto dove i migliori nel campo tengono conferenze (Speech) su argomenti di sicurezza informatica.
Il prezzo della 5 giorni e' di 150 euro, prezzo modico se consideriamo le strutture e le persone che un evento di questo genere richiede, nonchè l'altissima qualità degli speakers che intervengono
(non paragonabile nemmeno lontanamente ad alcuni di quei pseudo Hackmeeting italiani, dove la gratuità dell'ingresso è proporzionale alla vacuità dei contenuti).
[.........]
Hacking the World of Warcraft 20070724 
Reversing World of Warcraft
- First Article (from: Decoding the World of Warcraft.)
Understanding the structure of protocols is essential to being able to identify potential problems or suspicious activity. But, how does one confidently identify a protocol when there is no documentation nor obvious signs? This is the challenge for us when creating our gaming filters. Gaming protocols are unique, proprietary protocols with zero documentation. In this blog entry, I will dissect the first packet in the authentication session for the popular MMO game, "World of Warcraft".
Note: If you want to test this dissection out for yourself, please note that I take no responsibility in any accounts getting banned for Terms Of Service violations. And no, I don't have an active account anymore; I '/wowquit' on my own terms long ago.
[.........]
PHRACK is back!!! 20070527 
Phrack Is BACK !!!
"As long as there is technology, there will be hackers.
As long as there are hackers, there will be PHRACK magazine.
We look forward to the next 20 years"
Wonderfull news!!!
The best security ezine ever is back! In the last release of #63 the Phrack staff announced their final issue.
NOW I JUST DISCOVERED THE NUMBER 64 IS OUT.
[.........]


