Categorie

Archivio Articoli

Categorie

Commenti recenti

[Draft] Raspberry Pi e LCD nokia 5110

[Public Draft]

 

 

 

 

 

Source:

http://binerry.de/post/25787954149/pcd8544-library-for-raspberry-pi

https://projects.drogon.net/raspberry-pi/wiringpi/pins/

[FIX][Linux] Evince non apre i link dei pdf in Firefox

 

 

 

 

 

Da quando ho rimosso la versione di Mozilla Firefox presente nei repository e sono passato a Mozilla Firefox ESR (installato in /opt/firefox)
ho riscontrato il seguente problema con l'apertura dei link presenti nei documenti pdf visualizzati con evince (il visualizzatore di default di Ubuntu):

Esecuzione del processo figlio "/opt/firefox/firefox" non riuscita
(Permesso negato)

Sembra che AppArmor impedisca ad evince di eseguire Firefox, che è il browser predefinito nel mio sistema.

Fix

Da terminale eseguire i seguenti comandi:

$ sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/usr.bin.evince
$ sudo service apparmor restart

Fonte: Xubuntu Geek: [FIX] Evince is unable to open external link.

[bash] md5/sha1 and other commands in a bash variable


 

 

 

 

 

 

Create a bash script (in my case I've called it 'cryptotest') with those commands:

#!/bin/bash

filename="filename.txt"
md5="$(md5sum "${filename}")"
md5="${md5%% *}" # remove the first space and everything after it

sha1="$(sha1sum "${filename}")"
sha1="${sha1%% *}" # remove the first space and everything after it

echo md5 =  "'$md5'"
echo sha1 = "'$sha1'"

Give it execute permission:

$ chmod a+x cryptotest

Execute it:

$ ./cryptotest

obtaining:

$ md5 = '40d5fd4f88036501efcd73ab87a037fc'
sha1 = 'd67aef9d1a5cb5ef73bb0a028fc1bbf83c8ec718'