Il blog di Gas

Solo un altro sito WordPress

Archive for the ‘Linux’ tag

Kiss WordPress Upgrade Script

without comments

Description

This is a KISS ( Keep It Simple Stupid ) script to backup and upgrade to the latest version your wordpress blog.You will need a shell / ssh to run this script ( tested on standard linux bash ).

Features

  • No configuration needed
  • Full Database Backup
  • Full blog root backup excluding the backup directory
  • Automagic blog upgrade
  • Easily written and hence easily adaptable

Installation

open a shell and “cd” to your wordpress blog root path ( the one that contains wp-admin directory or wp-config.php for example)
wget http://www.lucagasperini.com/wpautoupgrade.sh
chmod u+x wpautoupgrade.sh

Usage

open a shell and “cd” to your wordpress blog root path
sh wpautoupgrade.sh
Now point your browser to http://www.example.com/wp-admin/upgrade.php

Restore

I have an idea for doing things the KISS way but no time for now so you have to do things manually . The backup performed is standard so you can simply follow the codex.

Notes

  • Two different backups are made , content and sql table, they are stored in /pathtoblog/backup.
  • To download your blog backup file point your browser to http://www.example.com/backup/files.tar.gz.
  • To download your sql table backup point your browser to http://www.example.com/backup/sql.gz
  • All backups are kept and are not backed-up ( buckups don’t contain older backups). This mean that over time the backup directory can potentially become huge.Check it and delete older ones
  • I didn’t want this script to call the upgrade.php autamatically cause it means no feedback at all.
  • If you don’t have a standard wordpress install don’t use this script. For example if you use a Debian package to install wordpress this script won’t work because the deb has been debianized and all config have been moved to /etc/wordpress rather than standard /blogroot
  • If it doesn’t work is your fault :P

Written by gas

aprile 6th, 2007 at 10:26 pm

Posted in English

Tagged with , ,

Italian anti-Microsoft Terrorism

without comments

aka: Google hates Microsoft or Google loves me?

Weird …..the page rank misteries.

A few weeks ago I wrote a post concerning how much vista is expansive compared to computers shipped with linux where you just pay the hardware and you get a bunch of good free software.

Nowadays when you go to a computer shop you find a lot of laptops with big “Ready for Vista” stickers so i called my article “Get Ready for Windows Vista” that is in italian “Preparati a Windows Vista”, just for the sake of joking .

It happens that if you search for “Preparati per Windows Vista” instead of seeing results from shops, newspapers, magazines that actually talk about getting ready for vista you see the first result from Microsoft and the second one is from my blog where I actually tell people that buying Vista is stupid, expensive and in the case you still want it I left there a link to a financial institute that make loans and I called it “Preparati a Windows Vista”.

Vista Screen


Here you are , “Get Ready for” or “Preparati a ” Windows Vista” using google.

P.S. What happens when you don’t know this stuff and you look for “Get ready for Linux”? And mostly “How the hell is possible?”

Written by gas

aprile 6th, 2007 at 12:21 pm

Posted in English

Tagged with , , , ,

The Sound of RAM

with 2 comments

I just read a crazy article and I wanted to try it. Here’s how you can enconde in ogg the sound of your machine’s RAM.

To listen it:

sudo cat /dev/mem >> /dev/audio

To record it:

sudo cat /dev/mem | oggenc -rq 1 -o mem.ogg -

Here’s mine

The Sound of RAM

I used ogg2mp3 in portage for the transcoding.

Original aricle: mogrify » Blog Archive » 33 seconds of RAM

Written by gas

aprile 1st, 2007 at 4:13 pm

Posted in English,Linux

Tagged with ,

Metalink

without comments

Oggi ho scoperto metalink, è uno standard che cerca di unire modi diversi di scaricare file (http , ftp , torrent) in un unico formato. A prima vista non sembra nulla di nuovo rispetto a quello che già fa getright (il download segmentato) ma in realtà non è vero. Getiright usa filemirrors per ottenere una lista dei siti web o ftp che hanno il file e ad alcuni di questi viene poi affidato download di un segmento . I metalink funzionano in modo più simile a torrent, i file .metalink” sono dei file in formato XML:

archlinuxhttp://www.archlinux.org/

Arch Linux, a lightweight and flexible linux distribution that tries to Keep It Simple.

0.7.2

Linux-x86

aa7ded55704d6d9f982f68f9872fac79

ftp://archlinux.puzzle.ch/0.7.2/iso/i686/arch-0.7.2.iso

ftp://cle.linux.org.tw/pub/ArchLinux/iso/0.72/arch-0.7.2.iso

ftp://ftp.estpak.ee/pub/archlinux/0.7.2/iso/i686/arch-0.7.2.iso

ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/0.7.2/iso/i686/arch-0.7.2.iso

ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/0.7.2/iso/i686/arch-0.7.2.iso
.............................................................

Utilizzando i tag dell’XML vengono descritte alcune informazioni sul file tipo le varie sorgenti ( anche P2P ) con locazione (Italia,Svizzera ecc), l’md5 (per controllare che il file non sia corrotto a fine download) , ed una descrizione dettagliata sul file e chi lo rilascia.
In windows getright supporta i metalink mentra per linux ho provato aria2 ( in command line).

Aria2

Più di un mega… ho visto di meglio ma è stato stabile.

Written by gas

marzo 20th, 2007 at 7:27 pm

Posted in Linux

Tagged with ,

Simpaticone linux

without comments

L’amministratore delegato di Netscape entra in un ascensore con una pistola in mano.Nell’ascensore ci sono 3 persone: Bin Laden , Mr Unabomber e Bill Gates. L’unico problema : ha solo 2 proiettili.A chi spara? Bill , 2 volte.

 

Il mac è per chi non vuole sapere perchè il computer funziona.
[tag]Linux[/tag] è per chi vuole sapere perchè il loro computer funziona.
Dos è per chi vuole sapere perchè il loro computer non funziona.
Windows è per chi non vuole sapere perchè il loro computer non funziona.

 

Nel mondo Linux , dove tutto è bello e silenzioso, se ascolti con attenzione, potrai sentire la macchine windows che si riavviano.

 

Fatal error: trovato windows

 

Linux, Dos , Windows : Il Buono , il Brutto e il Cattivo.

 

Il fallimento non è una possibilità: è di default per tutti con Vista.

 

Il nome in codice del “Corso introduttivo Microsoft a Windows Vista?” Crash Test

 

Written by gas

febbraio 18th, 2007 at 2:21 pm

Posted in Generale,Linux

Tagged with ,

Tor e Privoxy su Debian Sarge

with 4 comments

Io navigo sempre dietro ad un proxy per migliorare l’efficienza della rete ( Squid ) e non per motivi di anonimato. Avevo un oretta libera ed ho provato tor. TOR è il diminutivo di The Onion Routing , un gruppo di server sparsi per il mondo che hanno il compito di proteggere i dati e le comunicazioni personali degli utenti.In parole povere serve a non mostrare il proprio ip ma quello di uno dei computer Onion Router.

Da solo serve a poco o a nulla , c’è bisogno di un proxy anonimo vero con cui Tor puo collaborare , nel caso ho scelto Privoxy ( ma potevo scegliere il polipo). Con questo setup privoxy è il proxy che anonimizza la connessione ( non mostra dati sulle pagine precedentemente visitate e riferimenti di vario tipo) e si appoggia a tor per “anonimizzare” l’ip.

Read the rest of this entry »

Written by gas

febbraio 16th, 2007 at 9:16 pm

Posted in Generale,Linux

Tagged with , , ,

Citazione

without comments

Stavo leggendo la mailinglist di planetplanet quando ho letto questa bella citazione

“Linux is not like Novell, it isn’t going to run out of money – it
started off bankrupt, in a way” – Steve Ballmer

Ovvero

“Linux non è come Novell, non può finire i soldi perchè , in un certo senso , è come fosse partito dalla bancarotta” - Steve Ballmer

Written by gas

febbraio 11th, 2007 at 12:55 pm

Posted in Generale,Linux

Tagged with , ,

gentoo 2.6.19

without comments

Che menata…ho appena finito di configurare il nuovo kernel .

Il supporto per il sata è cambiato di posizione nel menu e forse anche qualcos’altro dato che non sono l’unico sul forum di gentoo con intel e problemi. Non è suffiente sonfigurare solo il “sata” ma anche la parte scsi immediatemente prima.Insomma smena qua e la ora parte anche se c’è ancora qualcosa da sistemare

config funzionante

Written by gas

febbraio 5th, 2007 at 3:01 pm

Posted in Linux

Tagged with ,

Preparati a Windows Vista

with 4 comments

Non vedo l’ora d’installarlo , devono aver fatto passi da gigante…..

Ubuntu Computer:

Processor: AMD Sempron TM 3000+ – 1,8 GHz – L2 cache: 256 kB

RAM : 512 MB DDR400 (max. 2 GB)

Hard disk: 80 GB – SATA – 7200 RPM

Video: Integrated GeForce 6

Audio: Integrated Realtec ALC655

Ports: 1 x parallel – 1 x serial – VGA – PS/2 Keyboard – PS/2 Mouse – 6 x USB (2 front; 4 back) – RJ45 LAN jack

Drives: floppy – combo: DVDROM / CDRW

Accessoires: Keyboard (Belgian Azerty) / Mouse (optical)

Operating system: [tag]Linux[/tag]

[tag]Software[/tag]: Openoffice, Koffice, Kmail, Kontact, Cad, Thunderbird, Amsn,
Gimp, Groupware, un vero firewall.

Prezzo: 510Euro

[tag]Windows[/tag] [tag]Vista[/tag] Ultimate (solo software senza Office senza antivirus) : 570 Euro (misco , 1/2/2007)

PREPARATI A WINDOWS VISTA

Written by gas

febbraio 1st, 2007 at 1:43 pm

Posted in Generale,Linux

Tagged with , , ,

Mencoder hardsub

with one comment

Per fare un hardsub ( hard-sub ) il canale video va rencodato , deve essere presente il file subfont.ttf in “~/.mplayer” che definisce i caratteri da usare per i sottotitoli , la grandezza dei caratteri si controlla con “-subfont-text-scale x”

mencoder origfile.avi -ovc xvid -xvidencopts fixed_quant=4 -o output.avi -oac copy -sub subfile.srt -subfont-text-scale 3

Written by gas

gennaio 6th, 2007 at 4:15 pm

Posted in Linux

Tagged with , , , , ,