Liberare Ram su Debian

 

Per liberare Ram su Debian ed altre distribuzioni Gnu/Linux, servono solo 2 comandi. Per vedere la differenza eseguire prima il comando:

 

$ free -m

 

per liberare la Ram:

 

# sync

# echo 3 > /proc/sys/vm/drop_caches

 

il mio risultato:

 

root@Debianbox:/home/edmond# free -m
             total       used       free     shared    buffers     cached
Mem:          2012       1824        188          0        106       1050
-/+ buffers/cache:        667       1345
Swap:         1047          0       1047
root@Debianbox:/home/edmond# echo 3 > /proc/sys/vm/drop_caches
root@Debianbox:/home/edmond# free -m
             total       used       free     shared    buffers     cached
Mem:          2012        659       1352          0          1         87
-/+ buffers/cache:        571       1441
Swap:         1047          0       1047

 

enjoy 😉

 

Abilitare Compiz Fusion su Debian Squeeze (Nvidia)

 

Tempo fa avevo fatto una guida su come modificare xorg.conf per avere il 3d funzionante e poter usare Compiz Fusion. Adesso scrivo altre due righe, giusto per conoscenza, dato che non serve più mettere mano a xorg.conf per aggiungere ulteriori opzioni. Io di solito uso installare i driver Nvidia scaricandoli direttamente dal sito ufficiale, ma ci sono altri modi per installarli, tra cui quello di usare module-assistant. Nell'esempio di seguito, riporto un'altro metodo, e cioè quello ufficiale, inserendo anche Compiz Fusion. I repository da usare sono quelli contrib non-free. La mia scheda è una Geforce 7300 GS.

 

# apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main
compiz-gnome compiz-gtk fusion-icon compiz-fusion-plugins-extra
compiz-fusion-plugins-unsupported
nvidia-glx nvidia-xconfig nvidia-kernel-dkms nvidia-settings


# reboot


una volta riavviato passare in tty1:


Ctrl-Alt-F1

/etc/init.d/gdm3 stop

X -configure

mv /root/xorg.conf.new /etc/X11/xorg.conf

nvidia-xconfig

/etc/init.d/gdm3 start

 

 

enjoy 😉

Deb kernel 2.6.38.2 per Debian/LMDE

 

 

 

A pochi giorni del rilascio del kernel 2.6.38, c'è stata un nuovo aggiornamento che porta il kernel stable al 2.6.38.2. Questo kernel per Debian Squeeze o LMDE, sia per architetture i386 che amd64 si trova nel repository. Con la speranza che questo rilascio sia ok, appuntamento per il 2.6.39.

 

Repository

 

enjoy 😉

Installare plugins in Gimp 2.7.2

 

 

 

In questi giorni ho provato a compilare Gimp 2.7.2, seguendo la mia guida, vecchiotta, ma ancora attuale, per vedere gli sviluppi. Per avere a disposizione dei plugins mancanti, bisogna fare l'installazione in /opt, i passi da seguire sono semplici.. Ipotizzando che ci serve il plugin ufraw:

 

$ cd ufraw-0.18

$ ./configure --prefix=/opt/gimp-2.7

$ make -j4

$ sudo make install

 

 

enjoy 😉

Intel PRO/Wireless 3945ABG [Golan] su GnackTrack

 

Scrivo due righe su questa scheda Intel Corporation PRO/Wireless 3945ABG [Golan], poichè facendo un'installazione di GnackTrack su un portatile Acer Aspire 5920G non mio, ho avuto qualche problema. GnackTrack è una distribuzione di Penetration Test basata su Ubuntu 10.10, ed io sinceramente Ubuntu non lo frequento più dalla versione 8.4. Comunque praticamente mi aspettavo che in automatico funzionasse tutto, ma purtroppo questa scheda se pur riconosciuta era bloccata, tanto e vero che il led era spento. Nei repository si trova un pacchetto dal nome firmware-iwlwifi , che ho installato, ma non ha funzionato. Per farla breve ed evitare inutili perdite di tempo, segnalo che manca il firmware specifico, ed io ho risolto così:

 

$ wget https://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-15.32.2.9.tgz

$ tar xzf iwlwifi-3945-ucode-15.32.2.9.tgz

$ cd iwlwifi-3945-ucode-15.32.2.9

$ sudo cp iwlwifi-3945-2.ucode /lib/firmware

$ sudo reboot

 

al riavvio dovremmo trovare il led acceso e la scheda funzionante.

 

enjoy 😉

Convertire da terminale pagina web in PNG o PDF

 

 

 

 

Questo è un trucchetto molto utile per ottenere la conversione di una pagina web in un file immagine PNG o PDF. Per ottenere ciò, per prima cosa serve un addons per Iceweasel/Firefox, dal nome, Command Line Print, che non si trova nella pagina ufficiale. Una volta installato, andare in Strumenti-Componenti aggiuntivi-preferenze di Command Line Print, e scegliere il formato di default per la conversione. La sintassi per la conversione è la seguente:

 

$ firefox -print https://www.example.com/ -printfile ~/prova.png

 

oppure:

 

$ firefox -print https://www.example.com/ -printfile ~/prova.pdf

 

 

enjoy 😉

Iceweasel 4 su Debian Squeeze/Wheezy

 

 

 

 

Come ottenere il nostro amato browser Iceweasel 4 appena nato? Semplice, basta aggiungere ad /etc/apt/sources.list:

 

deb https://mozilla.debian.net/ squeeze-backports iceweasel-4.0

quindi:

 

# apt-get update

# apt-get install -t squeeze-backports iceweasel

 

per importare la chiave:

 

$ GET https://mozilla.debian.net/archive.asc | gpg --import

$ gpg --export -a 06C4AE2A | sudo apt-key add -

 

una volta installato il nostro browser, toglere il repository.

 

enjoy 😉

Repository Debian Squeeze/Wheezy/Sid Marzo 2011

 

 

 

Repository per Debian Squeeze-Wheezy-Sid, ufficiali e di terze parti, aggiornati al 20 Marzo 2011.

 

 

Debian Squeeze (stable):

 

################  Repo Debian Squeeze Ufficiali ############

deb https://ftp.it.debian.org/debian/ squeeze main contrib non-free
deb-src https://ftp.it.debian.org/debian/ squeeze main contrib non-free

deb https://security.debian.org/ squeeze/updates main contrib non-free
deb https://ftp.it.debian.org/debian/ squeeze-proposed-updates main contrib non-free



###############  Repo Debian Backports ##########

deb  squeeze-backports main


##############  Squeeze-updates  ##############

deb https://ftp.debian.org/debian/ squeeze-updates main contrib non-free


###############  Repo Debian Squeeze terze parti ##########

#### Debian Multimedia
deb  squeeze main
deb-src  squeeze main


#### Bimoid - messenger
deb https://www.bimoid.com/debian/ stable non-free

#### Dotdeb - repository for Debian-based LAMP servers
deb https://packages.dotdeb.org oldstable all

#### Google Linux repository
deb  stable non-free main

#### E17
deb  squeeze main extras

#### Esmska
deb https://repo.palatinus.cz/stable /

#### Skype 32bit
deb  stable non-free

#### Skype 64bit
#leggere questo link
#https://www.edmondweblog.com/index.php/2010/11/29/skype-per-debian-squeezesid-amd64/

#### Opera
deb https://deb.opera.com/opera/ squeeze non-free

#### VirtualBox
deb https://download.virtualbox.org/virtualbox/debian squeeze contrib

#### Wine
deb https://www.lamaresh.net/apt squeeze main

#### aMule-AdunanzA i386-amd64
deb https://deb.matteobonora.it/debian squeeze main

####Hadret’s Debian
deb  unstable main

#### Edmond kernel repository
deb https://www.edmondweblog.com/repo/ binary/

 

 

Debian Wheezy (testing):

 

################  Repo Debian Wheezy Ufficiali ############

deb https://ftp.it.debian.org/debian/ testing main contrib non-free
deb-src https://ftp.it.debian.org/debian/ testing main contrib non-free

deb https://security.debian.org/ testing/updates main contrib non-free
deb https://ftp.it.debian.org/debian/ wheezy-proposed-updates main contrib non-free


###############  Repo Debian Wheezy terze parti ##########

#### Debian Multimedia
deb  testing main

#### Bimoid - messenger
deb https://www.bimoid.com/debian/ stable non-free

#### Google Linux repository
deb  stable non-free main

#### E17
deb  squeeze main extras

#### Esmska
deb https://repo.palatinus.cz/testing /

#### Skype
deb  stable non-free

#### Skype 64bit
#leggere questo link
#https://www.edmondweblog.com/index.php/2010/11/29/skype-per-debian-squeezesid-amd64/

#### Opera
deb https://deb.opera.com/opera/ squeeze non-free

#### VirtualBox
deb https://download.virtualbox.org/virtualbox/debian squeeze contrib

#### Wine
deb https://www.lamaresh.net/apt squeeze main

#### aMule-AdunanzA i386-amd64
deb https://deb.matteobonora.it/debian wheezy main

####Hadret’s Debian ppa
deb  unstable main

#### Edmond kernel repository
deb https://www.edmondweblog.com/repo/ binary/

 

 

Debian Sid (unstable):

 

################  Repo Debian Sid Ufficiali ############

deb https://ftp.it.debian.org/debian/ sid main contrib non-free
deb-src https://ftp.it.debian.org/debian/ sid main contrib non-free 


###############  Repo Debian Sid terze parti ##########

#### Debian Multimedia
deb  sid main

#### Bimoid - messenger
deb https://www.bimoid.com/debian/ stable non-free

#### Google Linux repository
deb  stable non-free main

#### E17
deb  sid main extras

#### Esmska
deb https://repo.palatinus.cz/unstable /

#### Skype
deb  stable non-free

#### Skype 64bit
#leggere questo link
#https://www.edmondweblog.com/index.php/2010/11/29/skype-per-debian-squeezesid-amd64/

#### Opera
deb https://deb.opera.com/opera/ sid non-free

#### VirtualBox
deb https://download.virtualbox.org/virtualbox/debian squeeze contrib

#### Wine
deb https://www.lamaresh.net/apt sid main

#### aMule-AdunanzA i386-amd64
deb https://deb.matteobonora.it/debian sid main

####Hadret’s Debian ppa
deb  unstable main

#### Edmond kernel repository
deb https://www.edmondweblog.com/repo/ binary/

 

 

Debian Experimental:

 

### Experimental
deb https://ftp.it.debian.org/debian experimental main

 

 

Importare chiavi GPG

 

 

Multimedia:

# apt-get update && apt-get install debian-multimedia-keyring && apt-get update

 

E17:

# wget -q  -O- | apt-key add -

 

Esmka:

# wget -q -O - https://repo.palatinus.cz/repo.key | apt-key add -

 

Skype:

# gpg --keyserver pgp.mit.edu --recv-keys 0xd66b746e
# gpg --export --armor 0xd66b746e  | apt-key add -

 

VirtualBox:

# wget -q https://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -


Wine:

# wget -O - https://www.lamaresh.net/apt/key.gpg | apt-key add -

 

Opera:

# wget -O - https://deb.opera.com/archive.key | apt-key add -
$ wget -O - https://deb.opera.com/archive.key | sudo apt-key add -

 

Hadret’s Debian ppa:

# wget -O -  | apt-key add -

 

Bimoid:

# wget -O - https://www.bimoid.com/debian/apt.key | apt-key add -

 

Dotdeb;

# wget -q -O - https://www.dotdeb.org/dotdeb.gpg | apt-key add -

 

Google Linux repository:

# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -

 

aMule-AdunanzA i386-amd64:

$ gpg --keyserver hkp://subkeys.pgp.net --recv-key D45A244D
$ gpg -a --export D45A244D | apt-key add -

 

enjoy 😉