Archive

Archive for the ‘Trucs’ Category

FSFE Smart Card + Dell Keyboard + Ubuntu

novembre 26th, 2008 No comments

Smart Card: https://www.fsfe.org/card

Teclat + Lector SC: http://reviews.dell.com/2341/310-8021/reviews.htm

sudo apt-get install libccid

Manual: http://www.gnupg.org/howtos/card-howto/en/smartcard-howto.html

Els errors al generar les claus s’han resolt afegint la següent opció:

gpg –disable-ccid –card-edit

Generar Sub-claus

http://wiki.fsfe.org/Card_howtos/Card_with_subkeys

Categories: Programari Lliure, Trucs Tags:

Munin + HDD Temp

gener 13th, 2008 No comments

L’eina munin ens serveix per monitoritzar molts paràmetres del sistema.

En aquest cas ens interessa la temperatura dels discos. I ho farem mitjançant S.M.A.R.T. I tenim dues eines hddtemp o smartctl. En aquest cas ens interessa el smartctl ja que el propi munin porta un plugin per smartctl.

Discos ATA: smartctl -A /dev/hda

Discos SATA: smartctl -d ata -A /dev/sda

Un cop veiem que la comanda smartctl ens retorna els valors correctes per el disc. haurem de configurar els paràmetres del plugin del munin .

[hddtemp_smartctl]
user root
env.drives sda sdb
env.type_sda ata
env.type_sdb ata

Per a discos ATA el propi script ja detecta tos els discos presents i els paràmetres correctes, en canvi per als discos SATA hem hagut d’indicar-li els dispositius (sda i sdb) i el paràmetre de tipus de disc (ata). Un cop aixì reiniciem el servei “munin-node” i el munin ja ens fara les gràfiques de la temperatura dels discos.

Categories: Trucs Tags:

Hardware: lshw i dmidecode

desembre 29th, 2007 No comments

lshw is a small tool to extract detailed information  on  the  hardware
configuration of the machine. It can report exact memory configuration,
firmware version, mainboard configuration, CPU version and speed, cache
configuration,  bus speed, etc. on DMI-capable x86 or IA-64 systems and
on some PowerPC machines (PowerMac G4 is known to work).
dmidecode  is a tool for dumping a computer’s DMI (some say SMBIOS) ta-
ble contents in a human-readable format. This table contains a descrip-
tion  of  the  system’s  hardware  components,  as well as other useful
pieces of information such as serial numbers and BIOS revision.  Thanks
to  this  table,  you  can  retrieve this information without having to
probe for the actual hardware.  While this is a good point in terms  of
report  speed  and  safeness, this also makes the presented information
possibly unreliable.

Categories: Trucs Tags:

CentOS+Repositoris

desembre 27th, 2007 No comments

Si estàs ben acostumat que amb debian/ubuntu hi trobes tots els paquets que et falten, amb altres distribucions això no és així de sèrie.

Si remenes una CentOS segurament trobaràs a faltar-hi paquets, això es soluciona ràpid (si ho saps) instal·lant aquest paquet (rpmforge-release) que automàgicament et configura el repositori DAG

http://dag.wieers.com/rpm/packages/rpmforge-release/

Una de les coses interessants que et permet fer és la següent:

Read more…

Categories: Programari Lliure, Trucs Tags:

Crear Paquets .deb i l’estructura de repositori

octubre 9th, 2007 No comments
Font per garbellar:
http://acacha.dyndns.org/mediawiki/index.php/Creaci%c3%b3_de_paquets_Debian
Crear Estructura del Repositori: 
$ apt-ftparchive packages . | gzip > Packages.gz
$ apt-ftparchive sources  . | gzip > Sources.gz

Categories: Com es fa, Programari Lliure, Trucs Tags:

Xarxa a través d’USB

abril 10th, 2007 No comments

http://maemo.org/platform/docs/howtos/howto_usb_networking.html

Categories: Trucs Tags:

Empaquetant Carpetes/Directoris

març 15th, 2007 No comments

tar -zcvf packagename.tar.gz folder/

Categories: Trucs Tags:

DNS amb vistes

gener 7th, 2007 No comments

http://bulma.net/body.phtml?nIdNoticia=1320

http://www.aplushosting.com/english/tutorials/dedi-webmin.phtml

Categories: Trucs Tags:

Eines de Còpies de Seguretat

desembre 25th, 2006 No comments

rsnapshot: http://rsnapshot.org/
bacula: http://bacula.org/
amanda: http://www.amanda.org/

Si voleu er backups d’una màquina amb w2k3 a través de “samba” muntant-ho a /etc/fstab, aneu amb compte, enlloc d’escollir com a sistema de fitxers smbfs escolliu cifs.

Per fer Backups des de Mac OS X

rsync -e “ssh” -rca –delete-after ~/directori_a_copiar usuari@maquina.domini.cat:directori_desti

http://backuppc.sourceforge.net/

Categories: Trucs Tags:

SSHD: a can finestrotes

desembre 25th, 2006 No comments

http://pigtail.net/LRP/printsrv/cygwin-sshd.html

Categories: Trucs Tags: