juin 28th, 2011
On cree la grappe (4 disques satas de 2To) :
mdadm --zero-superblock /dev/sd{a,b,c,d}1
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 --chunk=128
pvcreate /dev/md0
vgcreate -s 32M md0_vg /dev/md0
lvcreate -n documents_lv -L 20G md0_vg
mkfs.ext4 -b 4096 -E stride=32,stripe-width=96 /dev/mapper/md0_vg-documents_lv
Quelques liens :
http://www.linuxquestions.org/questions/linux-software-2/optimize-filesystem-performance-on-top-of-mdadm-raid5-luks-845868/
http://busybox.net/~aldot/mkfs_stride.html
Posted in linux | No Comments »
juin 28th, 2011
Lancement de sa propre session via vnc (dans un tunnel ssh par exemple), sans avoir la résolution exact de la machine (dans mon cas 1920×1080)…
vnc4server -geometry 1024x768 -nolisten tcp -localhost -depth 8
Tags: vnc
Posted in linux | No Comments »
mars 29th, 2011
Le but est ici de créer un media-center à base d’Xbmc, avec télécomande via lirc, ainsi que la fameuse clé Tnt usb Avermedia volar hd (A835). En bonus, Xbmc ainsi que TVheadend. Voici donc les bidouilles utilisées pour faire fonctionner cette clé sous debian 2.6.35 :
On commence par compiler un 2.6.35, car le patch pour tda18218 ne fonctionne qu’avec ça (en tout cas, je n’ai pas réussi à faire marcher tout ça avec un autre kernel).
Vient ensuite l’installation proprement dite (source : ici) :
$ apt-get install mercurial build-essential
$ hg clone http://linuxtv.org/hg/~anttip/tda18218
$ cd tda18218
$ wget http://xgazza.altervista.org/Linux/DVB/Drivers/tda18218_patch_af9035.diff
$ patch -p1 < tda18218_patch_af9035.diff
$ make
$ make install
Ensuite rien de bien compliqué pour le channels.conf et la configuration de Tvheadend avec les chaines voulues. La où ça été compliqué, c’est quand j’ai essayé d’associer xbmc et tvheadend sans connexion réseau active. J’entends par la, sans cable réseau actif branché. La solution m’a été donné ici
Tags: debian, tvheadend, vola hd 1835, xbmc
Posted in linux | No Comments »
mars 29th, 2011
A ma grande suprise, l’installation d’une Squeeze se passe sans problème de reconnaissance des différentes cartes réseaux, contrairement à Sarge… C’est don partit pour une netinstall. Vient ensuite l’installation des drivers « emgd » pour xorg très bien détaillé ici. Il faudra ensuite adapter le xorg.conf comme ceci pour que l’utilitaire d’emgd, puisse correctement gérer les différents affichages :
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
# Primary (First/only) display
Section "Device"
Identifier "Card0"
Driver "emgd"
VendorName "Intel(R) DEG"
BoardName "Embedded Graphics"
BusID "0:2:0"
Screen 0
# VideoRam 32768
Option "PcfVersion" "1792"
Option "ConfigId" "1"
Option "SWCursor" "true"
Option "ALL/1/name" "fit-PC2 "
Option "ALL/1/General/PortOrder" "20000"
Option "ALL/1/General/DisplayConfig" "1"
Option "ALL/1/General/DisplayDetect" "1"
Option "ALL/1/General/xVideo" "1"
Option "ALL/1/General/XVideoBlend" "0"
Option "ALL/1/General/DRI" "1"
Option "ALL/1/Port/2/General/name" "DVI"
Option "ALL/1/Port/2/General/EdidAvail" "2"
Option "ALL/1/Port/2/General/EdidNotAvail" "1"
Option "ALL/1/Port/2/General/Rotation" "0"
Option "ALL/1/Port/2/General/Edid" "1"
Option "PortDrivers" "sdvo"
Option "XAANoOffscreenPixmaps" "true"
Option "ALL/1/Port/4/General/EdidAvail" "6"
Option "ALL/1/Port/4/General/EdidNotAvail" "4"
Option "ALL/1/Port/4/Dtd/1/PixelClock" "83600"
Option "ALL/1/Port/4/Dtd/1/HorzActive" "1600"
Option "ALL/1/Port/4/Dtd/1/HorzSync" "32"
Option "ALL/1/Port/4/Dtd/1/HorzSyncPulse" "65"
Option "ALL/1/Port/4/Dtd/1/HorzBlank" "194"
Option "ALL/1/Port/4/Dtd/1/VertActive" "768"
Option "ALL/1/Port/4/Dtd/1/VertSync" "1"
Option "ALL/1/Port/4/Dtd/1/VertSyncPulse" "1"
Option "ALL/1/Port/4/Dtd/1/VertBlank" "10"
Option "ALL/1/Port/4/Dtd/1/Flags" "0x20000"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "enable"
EndSection
Section "ServerFlags"
Option "DontZap" "false"
Option "GlxVisuals" "all"
Option "IgnoreABI" "true"
EndSection
Concernant le wifi, wicd est un bon candidat. Pour l’utiliser avec wpa, il faudra modifier le fichier /etc/wicd/encryption/templates/wpa (dans mon cas) pour favoriser TKIP (source : ici)
Tags: emgd, vgn-p29vn
Posted in linux | No Comments »
mars 28th, 2011
Quelques options à retenir pour ffmpeg :
-ar : Souvent 22050, 44100, 48000 Hz.
-ac : 2
-ab : 128k, 256k etc…
-acodec flac etc…
-ss : Pour définir un décallage à partir duquel on commence
-t : Temps en seconde pour l’application du traitement
# Par exemple pour extraire un flux ac3 en 2 canaux, 256k pour le bitrate et le convertir en flac en commencant à 18 minutes et 30 sec pour une durée de 5 minutes et 34 secondes :
$ ffmpeg -i mon_fichier_de_depart.mkv -ss 00:18:30 -t 00:05:34 -ab 256k -ac 2 -acodec flac mon_fichier_flac.flac
Tags: ffmpeg
Posted in linux | No Comments »
mars 24th, 2011
Voici le fichier de conf (exemple) d’une harmony 680 que j’utilise avec lirc 0.8.7, il n’est pas parfait, quelques touches ne fonctionnent pas, mais ça dépanne tout de même. Je mettrais à jour ce fichier au fur et à mesure des mes découvertes :
$ cat /etc/lircd/harmony_680.conf
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.7(default) on Sun Mar 13 23:35:31 2011
#
# contributed by
#
# brand: plouf.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name harmony
bits 13
flags RC6|CONST_LENGTH
eps 30
aeps 100
header 2630 877
one 441 438
zero 441 438
pre_data_bits 24
pre_data 0x1BFF83
gap 105432
min_repeat 2
suppress_repeat 2
# uncomment to suppress unwanted repeats
toggle_bit_mask 0x8000
rc6_mask 0x100000000
begin codes
live 0x1BDA
recd 0x1BB7
more 0x1BF0
rec 0x1BE8
stop 0x1BE6
farr 0x1BEA
ava 0x1BE5
fava 0x1BEB
play 0x1BE9
pause 0x1BE7
haut 0x1BE1
bas 0x1BE0
gauche 0x1BDF
droite 0x1BDE
ok 0x1BDD
guide 0x1BD9
ch+ 0x1BED
ch- 0x1BEC
un 0x1BFE
deux 0x1BFD
trois 0x1BFC
quatre 0x1BFB
cinq 0x1BFA
six 0x1BF9
sept 0x1BF8
huit 0x1BF7
neuf 0x1BF6
zero 0x1BFF
enter 0x1BF4
clear 0x1BF5
end codes
end remote
Toujours utile, le lien vers le site d’harmony pour mettre à jour son firmware ici
Enfin, l’installation et l’utilisation de concordance afin de pousser son nouveau firmware depuis son os préféré :
Pour le test de connectivité avec harmonyremote :
concordance -t Connectivity.EZHex
Pour mettre à jour le firmware téléchargé :
concordance -C Update.EZHex
Tout ça en root !
Tags: concordance, harmony 680, lirc
Posted in linux | No Comments »
mars 24th, 2011
Le howto qui m’a servit à compiler les noyaux persos sur Debian Testing. Les options qu’il a fallu rajouter au .config pour que ca fonctionne un peu près normalement :
CONFIG_USB_STORAGE=m
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=850
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
# CONFIG_ZISOFS is not set
CONFIG_UDF_FS=y
CONFIG_UDF_NLS=y
CONFIG_NLS_ISO8859_1=y
CONFIG_LIRC=m
Tags: .config, 2.6.38-rc8, kernel
Posted in linux | No Comments »