Ceci est une ancienne révision du document !
Hector
J'ai découvert les logiciels libres par mozilla, puis firefox, puis thunderbird, puis openoffice , et enfin GNU/linux !
Je m'intéresse particulièrement aux documents libres, liées aux langues (dictionnaires, etc…) : je participe (avec d'autres membres du forum, sorbus et alteo_gange) au wiki polyglotte visant à promouvoir et améliorer les outils libres d'apprentissage des langues.
Je m'intéresse aussi aux logiciels libres mathématiques.
Mes contributions (parfois très mineures !) au wiki d'ubuntu-fr ont lieu principalement dans les pages :
Mon réseau
Couche physique
Type d'ethernet & vitesse :
- lspci | grep Ethernet
- serveur : nuttcp -S
- client : nuttcp -T20 -i1 IP
pratiques
transferts de (gros) fichier (réseau local) =⇒ netcat
- serveur : cat totot.txt | pv -b | nc -l 1337
- client : nc 192.168.0.1 1337| pv -b > test3.txt
Mon serveur
Machine
- boîtier lian li
- carte mère atom
- DD
administration
groupadd g1,g2,g3,admin cd .. mkdir musiques mkdir films chown u0 musiques chown u0 films chown u0 theatres chgrp g1 musiques chgrp g2 films chgrp g3 theatres chmod 770 musiques theatres films cp bienvenue.txt /etc/skel/ cd /etc/skel ln -s /home/films films ln -s /home/musiques musiques ln -s /home/theatres theatres ajout compte : useradd gugusse -m -G g1,g2,g3 -s /bin/bash passwd gugusse chgrp admin gugusse/ # le rép chmod 750 gugusse supp compte + répertoire : userdel -r gugusse /etc/pam.d/login (???) session optional pam_umask.so umask=0022
Serveur d'impression
Serveur http
(pas fait)
sudo apt-get install apache2 ( sudo service apache2 restart )
mkdir /var/www/local mkdir /var/www/internet1 mkdir /var/www/internet2 vim /etc/apache2/sites-available/local
Serveur courriel
Fichier :
- /etc/mailname
mutt
https://wiki.archlinux.org/index.php/mutt#Maildir : spécifier où on lit les courriels et le format (doit être cohérent avec le fichier /etc/postfix/main.cf ).
postfix
- sudo apt-get install postfix
- /etc/postfix/main.cf http://www.isalo.org/wiki.debian-fr/Configuration_d%27un_serveur_mail_avec_Postfix
exim
exim4 (MTA/MDA) + lecteur (mail, mutt, …)
sudo apt-get install exim4-base exim4-daemon-light sudo dpkg-reconfigure exim4-config
- distrib directe par SMTP
- Nom de courriel du système : gugusse.info
- Liste d'adresses IP où Exim sera en attente de connexions SMTP entrantes : 127.0.0.1
- Autres destinations dont le courriel doit être accepté : gugusse.info
- Domaines à relayer : vide
- Machines à relayer : vide
- Faut-il minimiser les requêtes DNS (connexions à la demande) ? non
- Méthode de distribution du courrier local : Format « mbox » dans /var/mail
- Faut-il séparer la configuration dans plusieurs fichiers ? oui
config DNS
www.ovh.com, http://guides.ovh.com/VotreServeurMail
config routeur
bilan
| trajet | Envoi | Réception |
| machine | ✔ | ✔ |
| réseau local | ||
| internet | ✔ |
logs : cat /var/log/mail.log
Serveur DHCP
✘
Serveur P2P
amule
amulecmd
- service amule-daemon restart
- amulecmd :
- search kad <xxxxx>
- results
- download <num>
- show dl
routeur : ouvrir 3 ports , correspondant à ceux mis dans amule.conf
ed2k :
- add ed2k:/ / | serverlist| http://www.gruk.org/server.met.gz |/ (sans blanc)
- search
- results
- download
bittorrent
- deluged
- deluge-console
Serveur DNS
- sudo service bind restart
- tuto config réseau local : http://www.agenux.org/0.agenux.org/Members/tapriuneclak/configuration-de-bind-pour-un-reseau-local.html
LIRC
Ma config lirc
Ayant galéré pendant des années à essayer de configurer ma télécommande avec lirc, je note aussi ma config qui marche , matérielle, logicielle et config : (cf aussi la page de quent57 et cette page http://mythtv-fr.tuxfamily.org/wiki/lirc) Note : depuis le noyau 2.36, rebelote , ça ne marche plus. il faut utiliser lirc.0.9 semble t'il. cf http://www.lirc.org/faq.html
matériel
télécommande vendue avec carté télé Pinnacle PCTV pro port série
versions
06/2012
hector@LaGrosseBete:~$ uname -a Linux LaGrosseBete 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux hector@LaGrosseBete:~$ lsmod|grep lirc ir_lirc_codec 12859 0 lirc_dev 19204 1 ir_lirc_codec rc_core 26412 8 ir_lirc_codec,ir_mce_kbd_decoder,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,bttv
après :sudo apt-get install lirc
hector@LaGrosseBete:~$ lsmod|grep lirc lirc_serial 19227 0 ir_lirc_codec 12859 0 lirc_dev 19204 2 lirc_serial,ir_lirc_codec rc_core 26412 8 ir_lirc_codec,ir_mce_kbd_decoder,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,bttv
précédentes tentatives
hector@LaGrosseBete:~$ uname -a Linux LaGrosseBete 3.0.0-13-generic #21-Ubuntu SMP Mon Oct 17 20:18:51 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux hector@LaGrosseBete:~$ lsmod|grep lirc ir_lirc_codec 12898 0 lirc_dev 19204 1 ir_lirc_codec rc_core 26963 7 ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder,bttv
lancement
hector@LaGrosseBete:~$ sudo service lirc start * Starting remote control daemon(s) : LIRC [ OK ]
hector@LaGrosseBete:~$ ps auxf |grep lirc hector 16131 0.0 0.0 15816 896 pts/2 S+ 10:12 0:00 | | \_ grep lirc root 16119 0.0 0.0 32304 680 ? Ss 10:11 0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd --driver=pinsys --listen root 16125 0.0 0.0 34404 940 ? Ss 10:11 0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd1 --driver=pinsys --device=/dev/lirc0 --connect=localhost 8765 --pidfile=/var/run/lirc/lircd1.pid
vieilles info
matériel
télécommande vendue avec carté télé Pinnacle PCTV pro port série
versions
hector@hector:~$ uname -a Linux LaGrosseBete 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux hector@hector:~$ lsmod |grep lirc lirc_dev 12140 0
2011 :
hector@LaGrosseBete:~$ uname -a Linux LaGrosseBete 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux hector@LaGrosseBete:~$ lsmod |grep lirc ir_lirc_codec 12898 0 lirc_dev 19232 1 ir_lirc_codec rc_core 26918 7 bttv,ir_lirc_codec,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
lancement
sudo lircd --driver=pinsys --nodaemon irexec -d irxevent -d
hector@hector:~$ ps auxf |grep lirc root 1502 0.0 0.0 26728 624 ? Ss 10:27 0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd --driver=pinsys --listen root 1510 0.0 0.0 28828 912 ? Ss 10:27 0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd1 --driver=pinsys --device=/dev/lirc0 --connect=localhost 8765 --pidfile=/var/run/lirc/lircd1.pid hector 5117 0.0 0.0 8980 876 pts/0 S+ 23:46 0:00 \_ grep lirc
fichiers de config
hector@hector:~$ cat /etc/lirc/lircd.conf
#
# contributed by Bart Alewijnse <scarfboy@yahoo.com>
#
# brand: Pinnacle Systems
# model: PCTV Remote (Perhaps other ones as well)
# supported devices: there's only one I know of. (serial)
#
# Mail me if your remote is only partly supported, or if it has different
# buttons than listed below.
#
begin remote
name PinnacleSysPCTVRemote
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 8
pre_data 0xFE
gap 180000
toggle_bit 0
begin codes
Mute 0xB53C #Mute 0x000000000000003C
Power 0x2D2F #Power 0x000000000000002F
Chan+Play 0x173F #Chan+Play 0x000000000000003F
Chan-Stop 0xC63E #Chan-Stop 0x000000000000003E
Vol+FF 0xF13B #Vol+FF 0x000000000000003B
Vol-Rew 0x643D #Vol-Rew 0x000000000000003D
1 0x9F31 #1 0x0000000000000031
2 0x3D32 #2 0x0000000000000032
3 0xEC33 #3 0x0000000000000033
4 0xA834 #4 0x0000000000000034
5 0x7935 #5 0x0000000000000035
6 0xDB36 #6 0x0000000000000036
7 0x0A37 #7 0x0000000000000037
8 0x5338 #8 0x0000000000000038
9 0x8239 #9 0x0000000000000039
Fullscreen 0x5E2D #Fullscreen 0x000000000000002D
0/AV 0x203A #0/AV 0x000000000000003A
Info 0xCB2B #Info 0x000000000000002B
Preview 0xFC2E #Preview 0x000000000000002E
Record 0x3027 #Record 0x0000000000000027
Chan_Last 0x4325 #Chan_Last 0x0000000000000025
F_TV 0xE126 #F_TV 0x0000000000000026
F_TELETEXT 0xB829 #F_TELETEXT 0x0000000000000029
F_RADIO 0x1A2A #F_RADIO 0x000000000000002A
#
# here are some extra buttons a new version of the remote seems to have
#
# contributed by Robbert Monna <rjmonna@kabelfoon.nl>
#
# brand: Pinnacle Systems
# model: PCTV Remote (newest version?)
# supported devices: dongle on serial port (from TV-Card)
#
L 0x631F #L 0x000000000000001F
Zoom 0xB21E #Zoom 0x000000000000001E
vol+ 0x851B #vol+ 0x000000000000001B
vol- 0x590F #vol- 0x000000000000000F
channel+ 0x7E17 #channel+ 0x0000000000000017
channel- 0xC11C #channel- 0x000000000000001C
middle 0x541A #middle 0x000000000000001A
Menu 0x101D #Menu 0x000000000000001D
next 0xF619 #next 0x0000000000000019
undo 0xAF16 #undo 0x0000000000000016
pause 0x0D15 #pause 0x0000000000000015
redo 0x9813 #redo 0x0000000000000013
Rewind 0x880E #Rewind 0x000000000000000E
Play 0x2A0D #Play 0x000000000000000D
Stop 0xBF0B #Stop 0x000000000000000B
FForward 0x4407 #FForward 0x0000000000000007
EPG 0x2718 #EPG 0x0000000000000018
# here are some more buttons that seem to be mapped differently from
# the ones above
# contributed by InterCeptor ceptor_7@freemail.hu
#
# brand: Pinnacle Systems PCTV Pro Remote
# model no. of remote control: (I can't find any numbers on it)
# supported devices: serial
#
9 0x0000000000000082
Zoom 0x00000000000000B2
middle 0x0000000000000014
end codes
end remote
hector@hector:~$ cat /etc/lirc/hardware.conf # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Pinnacle Systems PCTV (pro) receiver" REMOTE_MODULES="" REMOTE_DRIVER="pinsys" REMOTE_DEVICE="" REMOTE_SOCKET="" REMOTE_LIRCD_CONF="pinnacle_systems/lircd.conf.pctv" REMOTE_LIRCD_ARGS="" #Chosen IR Transmitter TRANSMITTER="Serial Port (UART) : Direct TV Receiver" TRANSMITTER_MODULES="lirc_dev lirc_serial" TRANSMITTER_DRIVER="pinsys" TRANSMITTER_DEVICE="/dev/lirc0" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="directtv/general.conf" TRANSMITTER_LIRCD_ARGS="" #Enable lircd START_LIRCD="true" #Don't start lircmd even if there seems to be a good config file #START_LIRCMD="false" #Try to load appropriate kernel modules LOAD_MODULES="false" # Default configuration files for your hardware if any LIRCMD_CONF="" #Forcing noninteractive reconfiguration #If lirc is to be reconfigured by an external application #that doesn't have a debconf frontend available, the noninteractive #frontend can be invoked and set to parse REMOTE and TRANSMITTER #It will then populate all other variables without any user input #If you would like to configure lirc via standard methods, be sure #to leave this set to "false" FORCE_NONINTERACTIVE_RECONFIGURATION="false" START_LIRCMD=""
cdurpp@LaGrosseBete:~$ cat .lircrc
# lircrc : fichier de configuration de lirc
# dernière modif : 26/10/2010
# conçu pour les logiciels:
# nativement : vlc
# irxevent : dico de VLC, gthumb
# irexec : lancement de tvtime
### lancement des programmes (irexec) #######################
begin
prog = irexec
button = F_RADIO
config = /usr/bin/audacious
mode = xmms
end
begin
prog = irexec
button = F_TV
config = vlc v4l2:///dev/video0 --v4l2-standard 255 --v4l2-input 2
repeat = 0
flags= once
end
begin
prog = irexec
button = F_TELETEXT
config = vlc
flags= once
end
#####Volume du son ########################
begin
prog = irexec
button = vol+
config = aumix -v +10
flags= once
end
begin
prog = irexec
button = vol-
config = aumix -v -10
flags= once
end
########################################
## vlc ####################
begin vlc
begin
prog = vlc
button = Play
config = key-play-pause
end
begin
prog = vlc
button = pause
config = key-play-pause
end
begin
prog = vlc
button = Stop
config = key-stop
end
begin
prog = vlc
button = Power
config = key-quit
end
begin
prog = vlc
button = Fullscreen
config = key-fullscreen
end
#begin
# prog = vlc
# button = Vol-Rew
# config = key-vol-down
#end
#begin
# prog = vlc
# button = Vol+FF
# config = key-vol-up
#end
begin
prog = vlc
button = Mute
config = key-vol-mute
end
begin
prog = vlc
button = Chan-Stop
config = key-vol-down
end
begin
prog = vlc
button = Chan+Play
config = key-vol-up
end
begin
prog = vlc
button = middle
config = key-nav-activate
end
begin
prog = vlc
button = L
config = key-subtitle-track
end
begin
prog = vlc
button = P
config = key-audio-track
end
begin
prog = vlc
button = redo
config = key-jump+extrashort
end
begin
prog = vlc
button = undo
config = key-jump-extrashort
end
begin
prog = vlc
button = FForward
config = key-jump+short
end
begin
prog = vlc
button = REWIND
config = key-jump-short
end
begin
prog = vlc
button = Record
config = key-snapshot
end
end vlc
###fin vlc ######################################
###irxevent daemon is needed for this section
begin
prog = irxevent
button = Vol+FF
config = Key Right CurrentWindow
end
begin
prog = irxevent
button = Vol-Rew
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = channel+
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = channel-
config = Key Down CurrentWindow
end
## audacious ######################################
begin audacious
begin
prog = audacious
button = Power
config = QUIT
end
begin
prog = audacious
button = Play
config = PLAYPAUSE
end
begin
prog = audacious
button = Pause
config = PAUSE
end
begin
prog = audacious
button = Stop
config = STOP
end
begin
prog = audacious
button = Previous
config = PREV
end
begin
prog = audacious
button = Next
config = NEXT
end
begin
prog = audacious
button = Vol+
config = VOL_UP
end
begin
prog = audacious
button = Vol-
config = VOL_DOWN
end
begin
prog = audacious
button = Mute
config = MUTE
end
end audacious
########################################