Installation debian de base sans standard host : vdrbox compte utilisateur : vdruser mirroir oui choix du mirroir participer a l'etude : non choix paquet, decocher tout au reboot apt-get install openssh-server vi passwd remove vdruser vi shadow remove vdruser rm -R /home/vdruser cd /etc/apt cp sources.list sources.list.old vi sources.list #######Modification avec les # #deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 NETINST Binary-1 20080218-14:15]/ etch contrib main #deb http://security.debian.org/ etch/updates main contrib #deb-src http://security.debian.org/ etch/updates main contrib #Ajout # stable deb http://ftp2.fr.debian.org/debian/ stable main contrib non-free deb-src http://ftp2.fr.debian.org/debian/ stable main contrib non-free # testing deb http://ftp2.fr.debian.org/debian/ testing main contrib non-free deb-src http://ftp2.fr.debian.org/debian/ testing main contrib non-free deb http://security.debian.org/ testing/updates main contrib deb-src http://security.debian.org/ testing/updates main contrib :wq aptitute update aptitude dist-upgrade ok par default reboot vi /etc/apt/sources.list # Ajout de -> #Debian Multimedia deb http://www.debian-multimedia.org testing main :wq aptitute update aptitude install debian-multimedia-keyring vi /etc/apt/sources.list # ajout # # e-Tobi's Testing Etch VDR Repository # deb http://e-tobi.net/vdr-testing etch base backports addons vdr-standard deb-src http://e-tobi.net/vdr-testing etch base backports addons vdr-standard #deb http://e-tobi.net/vdr-testing etch base backports addons vdr-multipatch #deb http://e-tobi.net/vdr-testing etch base backports addons vdr-extensions # # e-Tobi's Experimental Etch VDR Repository # deb http://e-tobi.net/vdr-experimental etch base backports addons vdr-standard #deb http://e-tobi.net/vdr-experimental etch base backports addons vdr-multipatch #deb http://e-tobi.net/vdr-experimental etch base backports addons vdr-extensions :wq aptitude update aptitude install e-tobi-keyring aptitude dist-upgrade # Au question, laisser par default reboot ls /boot/vmlinuz-2.6.* choix de la plus vieille image aptitude remove linux-image-2.6.18-6-486 dpkg-reconfigure locales LANG="fr_FR.UTF-8" par LANG="fr_FR@euro" Sélectionner les 3 jeux de caractères fr_FR suivants * fr_FR ISO-8859-1 * fr_FR.UTF-8 UTF-8 * fr_FR@euro ISO-8859-15 Puis choisir fr_FR@euro ISO-8859-15 comme jeu de caractère par défaut. vi /etc/environment # replacer fr_FR.UTF-8 LANG="fr_FR@euro" :wq ``MMJJHHmmYYYY''. Par exemple, pour régler l'horloge sur le 15 septembre 2001 à 16h48 : date 091516482001 nano /root/.bashrc Décommenter les lignes suivantes : export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' aptitude install alsa-base alsa-utils pciutils alsaconf # pour moi, par default alsamixer # Par default le son est a 0 # teste du son aplay -f U8 /usr/share/sounds/alsa/*.wav vi /etc/group # Modifier l'utilisateur : vdruser en vdr : ex audio:x:29:vdr cdrom:x:24:vdr :wq #vi /etc/modules aptitude install hwinfo fbset collectd-sensors sensors-detect # Repondre par default sauf pour => # Do you want to add these lines automatically? (yes/NO)YES vi /usr/bin/sensors.sh #!/bin/bash VIEW=$(/usr/bin/sensors | grep 'fan2:' | awk '{ print $1 " " $2 " " $3 }' | sed "s/°/ /g" ) VIEW+="\n\n\n" VIEW+=$(/usr/bin/sensors | grep 'M/B Temp' | awk '{ print $1 " " $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9 }' | sed "s/°/ /g" ) VIEW+="\n" VIEW+=$(/usr/bin/sensors | grep 'CPU Temp' | awk '{ print $1 " " $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9 }' | sed "s/°/ /g" ) echo -e $VIEW :wq chmod a+x /usr/bin/sensors.sh ################ INSTALLATION DES HEADERS # Modification du noyau en linux-image-2.6.24-etchnhalf.1-486 # car pb de compilation avec l'image 2.6.26 et v4l # l'utilisation du vdr en version 2.6.26 sans et avec v4l pose des pb sur quelque chaine (TF1) par exemple qui fige aptitude install linux-image-2.6.24-etchnhalf.1-486 vi /boot/grub/menu.list deplacer linux-image-2.6.24-etchnhalf.1-486 avant 2.6.26-1-486 sur le noyau reboot aptitude install linux-headers-2.6.24-etchnhalf.1-486 aptitude remove linux-image-2.6.26-1-486 ############### INSTALL NOYAU # PAS OBLIGATOIRE Installation du noyau source aptitude install linux-source-2.6.24 tar jxf /usr/src/linux-source-2.6.24.tar.bz2 apt-get install build-essential fakeroot libncurses5-dev lirc-0.8.3 apt-get build-dep linux-source-2.6.24 ln -s linux-source-2.6.24 linux cd linux cp /boot/config-`uname -r` /usr/src/linux/.config make menuconfig -> Processor type -> Processor family *> Selection de sont type de processeur ex: Athlon/Duron/K7 Pour une utilisation sans accelerateur MPEG2, Utiliser le FrameBuffer de la carte video -> Device Drivers -> Graphics Support -> Console display drivers support *> Enable Scrollback Buffer in System RAM *> Map the console to the primary display device *> Bootup logo vi Makefile # Modification EXTRA = -1 #selon version dans /boot EXTRAVERSION = -10-686 make-kpkg clean time fakeroot make-kpkg --initrd --revision=PIII-10-686 kernel_image aptitude install grub dpkg -i ../linux-image-2.6.PIII-10-686_i386.deb uname -r # version 2.6.24-1-686 dpkg -i ../linux-image-2.6.PIII-10-686_i386.deb reboot uname -r # version 2.6.24-10-686 ################################################## DERNIER DRIVERS V4L # Attention version noyau max 2.6.24, sinon pb de compile # installer la partie linux-source de ######## LIRC # Mettre la derniere version de http://linuxtv.org/hg/v4l # http://kambing.ui.edu/gentoo-portage/app-misc/lirc/files/lirc-0.8.3-kernel-2.6.26.diff # patch pour la version 2.6.26 du noyau cd /usr/src apt-get update && apt-get install mercurial hg clone http://linuxtv.org/hg/v4l-dvb wget http://vdr.bluox.org/d/DVB/dvb-cwidx-v4l-dvb.diff cd v4l-dvb patch <../dvb-cwidx-v4l-dvb.diff -p0 # active le timeshefing make make install make kernel-links ## Mise a jour si existe hg pull -u http://linuxtv.org/hg/v4l-dvb make clean make make install # Erreur de compilation, /usr/src/v4l-dvb/v4l/saa5249.c: In function 'jdelay': /usr/src/v4l-dvb/v4l/saa5249.c:135: error: implicit declaration of function 'msleep_interruptible' make[3]: *** [/usr/src/v4l-dvb/v4l/saa5249.o] Error 1 make[2]: *** [_module_/usr/src/v4l-dvb/v4l] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-etchnhalf.1-486' make[1]: *** [default] Erreur 2 make[1]: quittant le répertoire « /usr/src/v4l-dvb/v4l » make: *** [all] Erreur 2 vi v4l/saa5249.c > #include > #include > #include > +#include > #include > #include > #include make make install ################ INSTALLATION LIRC # SI on veux utiliser lirc aptitude install setserial module-assistant aptitude install lirc setserial /dev/ttyS0 uart none tar xvf lirc-modules.tar.bz2 cd /usr/src/modules/lirc dpkg-reconfigure lirc-modules-source Pour moi, construction de serial Autre Emeteur, non Porteuse logiciel OUI/NON ? NON (com1)0x3f8 OK, 4 OK # POUR PATCH 2.6.26 # http://mythtv-fr.tuxfamily.org/forums/viewtopic.php?id=507 module-assistant auto-install lirc #doc : http://vdrbox.lautre.net/spip.php?article21 modifiez " vi /etc/lirc/hardware.conf DRIVER="default" DEVICE="" MODULES="lirc_dev lirc_serial" cd /etc/lirc # recuperation des parametres de la telecomande #wget -c http://lirc.sourceforge.net/remotes/technisat/FBPNA35 wget -c http://lirc.sourceforge.net/remotes/pinnacle_systems/RC-42D mv lircd.conf lircd.conf.old mv FBPNA35 lircd.conf aptitude install lirc #vi /etc/init.d/lirc #test -f /usr/sbin/lircd || exit 0 #test -f /usr/sbin/lircmd || exit 0 #test -f /etc/lirc/lircd.conf || exit 0 #test -f /etc/lirc/lircmd.conf || exit 0 #Ajout de -> setserial /dev/ttyS0 uart none #avant le lancement de lirc. :wq #################################### INSTALLER UNE NOVA T 500 PAR BESOIN DE LA PARTIE LIRC :~# dmesg | grep dvb #[ 11.663255] dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in cold state, will try to load a firmware #[ 11.663320] firmware: requesting dvb-usb-dib0700-1.10.fw #[ 11.981722] dvb-usb: did not find the firmware file. (dvb-usb-dib0700-1.10.fw) Please see linux/Documentation/dvb/ fo #r more details on firmware-problems. (-2) #[ 11.981844] usbcore: registered new interface driver dvb_usb_dib0700 #########################################################################################"" # dmesg | grep dvb dvb-usb: found a 'Hauppauge Nova-T 500 Dual DVB-T' in cold state, will try to load a firmware dvb-usb: did not find the firmware file. (dvb-usb-dib0700-1.20.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2) usbcore: registered new interface driver dvb_usb_dib0700 ################################################################################################ # INSTALLER HAUPAGE WINTV NOVA 500 T cd /lib/firmware wget -c http://www.wi-bw.tfh-wildau.de/~pboettch/home/linux-dvb-firmware/dvb-usb-dib0700-1.10.fw wget -c http://www.wi-bw.tfh-wildau.de/~pboettch/home/files/dvb-usb-dib0700-1.20.fw vi /etc/modprobe.d/options options dvb-usb-dib0700 force_lna_activation=1 :wq Sous debian, créer un fichier dvb-usb-dib0700 ds vi /etc/modules # contenant la ligne options dvb-usb-dib0700 force_lna_activation=1 reboot # pour la nova pas besoin de lircd #voir plugins installation vdr-remote #aptitude install vdr-plugin-remote cat /proc/bus/input/devices I: Bus=0003 Vendor=2040 Product=9950 Version=0100 N: Name="IR-receiver inside an USB DVB receiver" P: Phys=usb-0000:01:09.2-1/ir0 S: Sysfs=/class/input/input3 U: Uniq= H: Handlers=kbd event3 B: EV=3 B: KEY=14afc336 284284d 0 0 0 4 80058000 2190 40000801 9e96c0 0 900200 ffd vi /etc/udev/rules.d/10-local.rules KERNEL=="input*", ATTRS{name}=="IR-receiver inside an USB DVB receiver", SYMLINK+="input/dvb-ir" #* = Numero de Sysfs :wq # doc http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-NOVA-T-500 #################################### XORG aptitude install xorg less Driver propietaire ATI Radeon 9600 Pro ( RV350 ) # voir le site pour la version http://ati.amd.com/support/drivers/linux/linux-radeon.html wget -c https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driver-installer-8-9-x86.x86_64.run chmod 744 ati-driver-installer-8-9-x86.x86_64.run ./ati-driver-installer-8-7-x86.x86_64.run cd /lib/modules/fglrx/build_mod ./make.sh cd .. ./make_install.sh modprobe fglrx # module ati radeon option TV vi /etc/modules # ajjout de fglrx :wq #aticonfig --initial --input=/etc/X11/xorg.conf #aticonfig --force-monitor=tv --input=/etc/X11/xorg.conf #aticonfig --tv-geometry=800x600 --input=/etc/X11/xorg.conf #aticonfig --help | less vi /etc/X11/xorg.conf # xorg.conf (X.Org X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg Section "Device" Identifier "ATI Technologies Inc RV350 AP [Radeon 9600]" # Driver "fglrx" # Option "ForceMonitors" "tv" # Option "EnableMonitor" "tv" Driver "radeon" Option "AGPMode" "8" # valeurs possibles: 1/2/4/8 dépend de la carte Option "TVDACLoadDetect" "1" Option "ForceTVOut" "1" Option "TVStandard" "pal" BusID "PCI:2:0:0" EndSection Section "Screen" Identifier "Default Screen" Monitor "Dell E151FPp" DefaultDepth 24 SubSection "Display" Depth 24 Modes "720x576" "800x600" "640x480" EndSubSection EndSection Section "Files" EndSection Section "Module" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "fr" Option "XkbVariant" "latin9" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" EndSection Section "Monitor" Identifier "Dell E151FPp" Option "DPMS" EndSection :wq #aptitude install xserver-xorg-video-ati aptitude install xserver-xorg-video-radeon :wq ################################### VDR # voir si la carte dvb est detecter sur le systeme # dmesg | grep dvb # ls /dev/dvb # # adaptor0 ... # sinon pas reconnu cp libxineliboutput-sxfe.so.1.0.0rc2 /root/ aptitude install vdr vdr-dev #lsb aptitude install vdr-plugin-xineliboutput libxineliboutput-fbfe libxineliboutput-sxfe # Affiche avertisement # il ne veut pas installer les paquets, Choix : N jusqu'a # Autre choix dessendre de version xine : #Installer les paquets suivants : #libxine1-xvdr [1.0.1-5 (testing)] #Mettre à jour les paquets suivants : #libxineliboutput-sxfe [1.0.0~rc2-2etch7 (, now) -> 1.0.1-5 (testing)] #vdr-plugin-xineliboutput [1.0.0~rc2-2etch7 (, now) -> 1.0.1-5 (testing)] cd /usr/lib/vdr/plugins ls -l # verifier la version du plugins xineliboutput pour qu'elle soit en 1.6.0 comme la version de vdr -version libvdr-xineliboutput.so.1.6.0 libxineliboutput-sxfe.so.1.0.1 vi /etc/vdr/plugins/plugin.xineliboutput.conf --local=sxfe --video=auto --fullscreen --audio=auto --primary --remote=127.0.0.1:37890 :wq # Modif de xinirc pour les tests vi /etc/X11/xinit/xinitrc xhost + local:vdr@ xset -display :0.0 s off -dpms #invoke-rc.d vdr start . /etc/X11/Xsession :wq # Passer a 1 ENABLED pour le teste de vdr vi /etc/default/vdr # Change to 1 to enable vdr's init-script ENABLED=1 ENABLE_SHUTDOWN=1 :wq # avec la NOVA aptitude remove lirc aptitude install vdr-plugin-remote ######## startx tail -f /var/log/user.log invoke-rc.d vdr start # Test OK 20 update-rc.d -f vdr remove aptitude install vdr-plugin-burn vdr-plugin-mplayer aptitude install vdr-addon-vdrconvert #vdr-addon-acpiwakeup aptitude install vdr-plugin-extrecmenu vdr-plugin-sysinfo vdr-burnbackgrounds aptitude install vdr-plugin-clock vdr-plugin-trayopen vdr-plugin-games vdr-plugin-tvonscreen # Activer la mise en veille : http://www.mythtv.org/wiki/index.php/ACPI_Wakeup aptitude install vdr-plugin-live aptitude install dvb-utils # pour une carte sat scan -o vdr -x 500 -e 6 -p /usr/share/doc/dvb-utils/examples/scan/dvb-s/Astra-19.2E| tee /root/Mychannels.conf cp Mychannels.conf /var/lib/vdr/channels.conf pour une carte Tnt scan -o vdr -x 500 -e 6 -p /usr/share/dvb/dvb-t/fr-Paris | tee /root/MyTntParis.conf # Il n'y a pas toute les frequences dans le fichier fr-Paris voir le site http://www.tvnt.net/multiplex_frequences.htm # Formule : Fréquence (Hz) = (306 + 8*(N° du canal))*1000000 # Exemple : 586000000 = ( 306 + 8 * 35 ) * 1000000 # Paris Tour Eiffel # T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy T 562000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 498000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 474000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 586000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 522000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 650000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 490000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE T 514000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE cp MyTntParis.conf /var/lib/vdr/channel.conf ############################## MISE A JOUR DES GROUPS vi /usr/share/vdr/groups.d/vdr.groups #Ajout de audio plugdev :wq ############################ MISE A JOUR DES PLUGINS SUR LA TELECOMMANDE vi /var/lib/vdr/keymacros.conf #Ajout de User1 @tvonscreen User2 @mplayer User3 @trayopen User4 @sysinfo :wq ############################ NON UTILISER ####################### vdr-addon-acpiwakeup vdr-plugin-autosort vdr-plugin-xineliboutput vdr-plugin-cdda #vdr-plugin-tvtv #vdr-plugin-vbox #vdr-plugin-mailbox #vdr-plugin-live #vdr-plugin-ffnetdev VDR network streaming plugin ################################################################# ####### PURGE DES LIEN CASSEE http://www.commentcamarche.net/forum/affich-5392729-probleme-paquet-casse-eeepc-linux-sfr http://www.commentcamarche.net/forum/affich-5878908-erreur-n-15-file-not-found ######################### AJOUT SENSORS A VDR vi /etc/vdr/command-hooks/commands.custom.conf # Ajout a la fin du fichier Sendors : /usr/bin/sensors.sh :wq ################## Mise A Jour Auto vi /usr/bin/aptitude_update.sh #!/bin/sh export USER="root" export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" export LANG="fr_FR@euro" export TERM="linux" date su $USER -c "aptitude update && aptitude -y safe-upgrade && aptitude clean" echo "--------------------------------------------------------------------FIN" :wq chmod a+x /usr/bin/aptitude_update.sh crontab -e # m h dom mon dow command # Mise a Jour du systeme 00 20 * * * /usr/bin/aptitude_update.sh>/var/log/aptitude_update.log :wq touch /var/log/aptitude_update.log ############################ MODIFICATION MPLAYER vi /etc/vdr/plugins/vdrmplayer.sh.conf VO="xv" AO=alsa NTSC="false" AC3AOUT="-ao alsa9 -ac hwac3" TV_ASPECT="16/9" DETC_FILTER="ivtc=1" DVDLANG="fr" DVD="/dev/dvd1" DVDOPTIONS="-af volume=+10" #USERDEF="-quiet -osdlevel 0" ? lecteur de cdrom fdisk -l pour voir ou cat /etc/fstab l /dev/dvd vi /usr/share/vdr-plugin-mplayer/mplayer CMDLINE="$MPLAYER -vo $VO $AOUT -vf scale=$NEW_X:${NEW_Y}${DETC},expand=$NEW_X:$REAL_Y:-1:-1:1 $SPEED $FDSTR $CACHESTR $REMOTE $SUBTITLES $USERDEF $FORCEIDX" # ,$VOP:$NEW_FPS # <- suppression de cette ligne #/usr/bin/mplayer -vo xv -ao alsa -vf scale=704:320,expand=704:576:-1:-1:1 -framedrop -cache-min 10 -slave -nolirc -subpos 80 -sub-bg-color 0 -sub-bg-alpha 30 " #lavc=5000:25 # a suprimer vi /etc/vdr/plugins/mplayersources.conf # Ajout de /media/cdrom;CDROM;1 /media/partage;partage;2 /media/video.00;video;3