gototopgototop
Accueil Informatique Développement

MISE EN PLACE D'UN SERVEUR OSCAM SUR RASPBERRY PI OSMC

OSMC tourne sur une distribution raspbian, mais ce tuto est valable pour debian également.


1- Installation des outils de compilation et de quelques indispensables :

$ sudo apt-get update
$ sudo apt-get install subversion cmake build-essential libssl-dev libpcsclite1 libpcsclite-dev dialog nano
$ sudo apt-get install pcscd pcsc-tools mc

2- Donner un mot de passe à root

$ sudo passwd root

3- Installation de libusb (pour le lecteur de carte SmartReader V2)

$ sudo apt-get install libusb-1.0-0-dev

4- Installation d'Oscam

$ cd /usr/local/src
$ su -
# svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
# cd oscam-svn
# mkdir build
# cd build
# cmake ..
# make
# make install
# exit


Le binaire oscam devrait maintenant être situé à /usr/local/bin.
Par défaut oscam va tenter de lire les fichiers de configuration situés dans /usr/local/etc
Voici mes fichiers de configuration pour le câble DVB-C en Belgique, à adapter selon vos besoins:

oscam.conf

# oscam.conf generated automatically by Streamboard OSCAM 1.20-unstable_svn SVN r10662
# Read more: http://www.streamboard.tv/svn/oscam/trunk/Distribution/doc/txt/oscam.conf.txt

[global]
logfile                       = /var/log/oscam/oscam.log
disableuserfile               = 0
clienttimeout                 = 5000
fallbacktimeout               = 1500
clientmaxidle                 = 240
nice                          = -1
preferlocalcards              = 1
usrfile                       = /var/log/oscam/oscamuser.log
cwlogdir                      = /var/log/oscam/cw
lb_reopen_seconds             = 900

[cache]

[newcamd]
port                          = 12345@0100:000000,00AA41,00AA44
key                           = 0102030405060708091011121314

[webif]
httpport                      = 8011
httpuser                      = xbmc
httppwd                       = xbmc
httpallowed                   = 127.0.0.1,0.0.0.0-255.255.255.255

 

oscam.server

# oscam.server generated automatically by Streamboard OSCAM 1.20-unstable_svn SVN r10698
# Read more: http://www.streamboard.tv/svn/oscam/trunk/Distribution/doc/txt/oscam.server.txt


[reader]
label                         = Smargo_voo
protocol                      = smartreader
device                        = SRv2;Serial:FT232BM
#autospeed                     = 0
caid                          = 0100
detect                        = cd
#mhz                           = 600
ident                         = 0100:000000,00AA41,00AA44
group                         = 1
emmcache                      = 1,3,15,0

 

oscam.service

#
# definition of services 
#
# format:
#
# [name]
# caid=CAID[,CAID]...
# provid = provider ID[,provider ID]...
# srvid = service ID[,service ID]...
#


[VOO]
caid	= 0100
provid	= 000000,00AA41,00AA44

oscam.user

[account]
user = dvbviewer
pwd = dvbviewer
uniq = 0 
group = 1 
ident = 0100:000000,00AA41,00AA44 
caid = 0100 
au = 1

 oscam.srvid

###
### DVB-C - Voo - Belgium Cable
###

0100,181D,1850,0500:27E1|Voo|Al Aoula|TV
0100,181D,1850,0500:27DF|Voo|NOS2|TV
0100,181D,1850,0500:27DB|Voo|Rai 1|TV
0100,181D,1850,0500:27D9|Voo|TRT|TV
0100,181D,1850,0500:27DE|Voo|TVE|TV
0100,181D,1850,0500:27DC|Voo|ZDF|TV
0100,181D,1850,0500:2969|Voo|NOS1|TV
0100,181D,1850,0500:296F|Voo|RTP Internacional|TV
0100,181D,1850:28A9|Voo|Best of Shopping|TV
0100,181D,1812,1850:0066|Voo|Be 1+1h|TV
0100,181D,1812,1850:0068|Voo|Be Séries|TV
0100,181D,1812,1850:0069|Voo|Be Sport 1|TV
0100,181D,1812,1850:006A|Voo|Be Sport 2|TV
0100,181D,1812,1850:006B|Voo|Be 1|TV
0100,181D,1812,1850:006C|Voo|Be Ciné|TV
0100,181D,1812,1850:006D|Voo|VOOfoot|TV
0100,181D,1812,1850:0077|Voo|VOOfoot|TV
0100,181D,1850,0500:2AFB|Voo|ARD|TV
0100,181D,1850,0500:2AFA|Voo|Arte Belgique|TV
0100,181D,1850,0500:2AFD|Voo|BRF-TV|TV
0100,181D,1850,0500:2AFF|Voo|Canal Z|TV
0100,181D,1850:2779|Voo|LCI|TV
0100,181D,1850,0500:2AF9|Voo|Ketnet|TV
0100,181D,1850:00C9|Voo|InfoSport+|TV
0100,181D,1850:00CA|Voo|TéléToon+|TV
0100,181D,1850:00CB|Voo|Stylia|TV
0100,181D,1850:00CC|Voo|AB Moteurs|TV
0100,181D,1850:00CD|Voo|Animaux|TV
0100,181D,1850:00CE|Voo|Chasse & Pêche|TV
0100,181D,1850:00D0|Voo|Toute l'Histoire|TV
0100,181D,1850:00D1|Voo|Action|TV
0100,181D,1850:00D2|Voo|Mangas|TV
0100,181D,1850:00D3|Voo|Disney Junior|TV
0100,181D,1850:012D|Voo|Dorcel TV|TV
0100,181D,1850:012E|Voo|Planète+|TV
0100,181D,1850:012F|Voo|Voyage|TV
0100,181D,1850:0130|Voo|Canal J|TV
0100,181D,1850:0131|Voo|Cuisine+|TV
0100,181D,1850:0132|Voo|Cartoon Network|TV
0100,181D,1850:0133|Voo|TCM Cinéma|TV
0100,181D,1850:0134|Voo|Ciné+ Premier|TV
0100,181D,1850:0135|Voo|Ciné+ Classic|TV
0100,181D,1850:0136|Voo|Ciné+ Frisson|TV
0:2A3B|Voo|Bel RTL|Radio
0100,181D,1850:2906|Voo|Disney Channel|TV
0100,181D,1850:2907|Voo|Gulli|TV
0100,181D,1850:2908|Voo|MCS Tennis|TV
0100,181D,1850:2909|Voo|Radio Contact Vision|TV
0500,0100,181D,1850:2A35|Voo|Club RTL|TV
0:2A3F|Voo|Contact R'n'B|Radio
0500,1850,181D,0100:2A32|Voo|La Deux|TV
0:2A33|Voo|La Trois|TV
1850,0500,181D,0100:2A31|Voo|La Une|TV
0:2A3C|Voo|Mint|Radio
0500,181D,0100,1850:2A36|Voo|Plug RTL|TV
0100,181D,1850:2912|Voo|Sundance Channel|TV
0100,181D,1850:2913|Voo|D17|TV
0100,181D,1850:2914|Voo|DH Radio|Radio
0100,181D,1812,1850:0321|Voo|Be Sport 3|TV
0100,181D,1812,1850:0322|Voo|VOOfoot 2|TV
0100,181D,1812,1850:0323|Voo|VOOfoot 3|TV
0100,181D,1812,1850:0324|Voo|VOOfoot 4|TV
0100,181D,1812,1850:0325|Voo|VOOfoot 5|TV
0:2A3D|Voo|Radio Contact|Radio
0500,1850,0100,181D:2A34|Voo|RTL TVI|TV
0100,181D,1850,0500:2841|Voo|BBC 1|TV
0100,181D,1850,0500:2844|Voo|BBC 2|TV
0100,181D,1850:4E89|Voo|13ème Rue HD|TV
0100,181D,1850,0500:283D|Voo|CNN|TV
0100,181D,1850,0500:2843|Voo|Euronews|TV
0100,181D,1850,0500:283E|Voo|MTV|TV
0100,181D,1850,0500:2842|Voo|TV5 Monde|TV
1850,0100,181D:4EED|Voo|Ushuaïa TV HD|TV
0100,181D,1850,0500:28A2|Voo|France 2|TV
0100,181D,1850:4F4E|Voo|TCM Cinéma HD|TV
0100,181D,1850:4F4F|Voo|Disney Cinemagic HD|TV
0100,181D,1850:4F50|Voo|Test HD 4|TV
0100,181D,1850,466:4F51|Voo|Test HD 5|TV
0100,181D,1850,0500:28A8|Voo|France 24|TV
0100,181D,1812,1850:0386|Voo|service_id 902;(n|TV
0100,181D,1812,1850:0387|Voo|service_id 903;(n|TV
0100,181D,1812,1850:0389|Voo|service_id 905;(n|TV
0100,181D,1850:038A|Voo|service_id 906;(n|TV
0100,181D,1850,0500:28A3|Voo|France 3|TV
0100,181D,1850,0500:28A4|Voo|France 4|TV
0100,181D,1850,0500:28A5|Voo|France 5|TV
0100,181D,1850:296A|Voo|Piwi+|TV
0100,181D,1850:296B|Voo|13ème Rue|TV
0100,181D,1850:296C|Voo|Mediaset Italia|TV
0100,181D,1850:296D|Voo|Rai 3|TV
0100,181D,1850,0500:28A7|Voo|France Ô|TV
0100,181D,1850:2970|Voo|Ushuaïa TV|TV
0100,181D,1850,0500:28A1|Voo|TF1|TV
0100,181D,1850,0500:28A6|Voo|TV Breizh|TV
0100,181D,1850,0500:2777|Voo|AB3|TV
0100,181D,1850,0500:2778|Voo|AB4|TV
0100,181D,1850,0500:2776|Voo|Canvas|TV
0100,181D,1850,0500:2775|Voo|Eén|TV
0100,181D,1850,0500:277F|Voo|RTC Télé-Liège|TV
0100,181D,1850,0500:2910|Voo|BRF|Radio
0100,181D,1850,0500:290D|Voo|Classic21|Radio
0100,181D,1850,0500:290C|Voo|La Première|Radio
0100,181D,1850,0500:290E|Voo|Musiq3|Radio
0100,181D,1850,0500:290B|Voo|Nickelodeon|TV
0100,181D,1850,0500:2911|Voo|Pure FM|Radio
0100,181D,1850,0500:290F|Voo|VivaCité|Radio
0100,181D,1850:2AFE|Voo|Kombat Sport|TV
0:2905|Voo|VOO|TV
0100,181D,1850:0191|Voo|MTV Idol|TV
0100,181D,1850:0192|Voo|M6 Music|TV
0100,181D,1850:0193|Voo|Comédie+|TV
0100,181D,1850:0194|Voo|Disney XD|TV
0100,181D,1850:0195|Voo|Planète+ A&E|TV
0100,181D,1850:0196|Voo|Equidia Live|TV
0100,181D,1850:0197|Voo|Mezzo|TV
0100,181D,1850:0198|Voo|Game One|TV
0100,181D,1850:0199|Voo|Ma Chaîne Sport|TV
0100,181D,1850:019A|Voo|Disney Cinemagic|TV
0100,181D,1850:01F6|Voo|Boomerang|TV
0100,181D,1850:01F7|Voo|Maison+|TV
0100,181D,1850:01F8|Voo|Tiji|TV
0100,181D,1850:01F9|Voo|Nat Geo Channel|TV
0100,181D,1850:01FA|Voo|Planète+ Thalassa|TV
0100,181D,1850:01FB|Voo|Boing|TV
0100,181D,1850:01FC|Voo|Vivolta|TV
0100,181D,1850:01FD|Voo|Planète+ C&I|TV
0100,181D,1850:01FE|Voo|Syfy|TV
0100,181D,1850:0259|Voo|June|TV
0100,181D,1850:025A|Voo|MTV Pulse|TV
0100,181D,1850:025B|Voo|Trace Urban|TV
0100,181D,1850:025C|Voo|Bloomberg|TV
0100,181D,1850:025D|Voo|BFM TV|TV
0100,181D,1850:025E|Voo|Nat Geo Wild|TV
0100,181D,1850:0260|Voo|Histoire|TV
0100,181D,1850:0261|Voo|Extreme Sports|TV
0100,181D,1850:0263|Voo|Fashion TV|TV
0100,181D,1850:02BD|Voo|MCM Top|TV
0100,181D,1850:02BE|Voo|RFM TV|TV
0100,181D,1850:02BF|Voo|I> TELE|TV
0100,181D,1850:02C0|Voo|E!|TV
0100,181D,1850:02C1|Voo|CBS Reality|TV
0100,181D,1850:02C2|Voo|Nautical Channel|TV
0100,181D,1850:02C4|Voo|Seasons|TV
0100,181D,1850:02C5|Voo|Motors TV|TV
0500,0100,181D,1850:4E86|Voo|La Deux HD|TV
0:4E87|Voo|La Trois HD|TV
1850,0500,0100,181D:4E85|Voo|La Une HD|TV
0100,181D,1850:27DD|Voo|CNBC|TV
1850,0500,0100,181D:4E88|Voo|TF1 HD|TV
1850,0100,181D,0500:4EEC|Voo|Arte Belgique HD|TV
0100,181D,1850:27E0|Voo|Canal 24 Horas|TV
1850,0500,0100,181D:4EEA|Voo|Club RTL HD|TV
1850,0100,181D,0500:4EEB|Voo|Plug RTL HD|TV
0500,0100,181D,1850:4EE9|Voo|RTL TVI HD|TV
0100,181D,1850:283F|Voo|MCM|TV
0100,181D,1850:2840|Voo|M6 Boutique & Co|TV
0100,181D,1850,0500:4F4D|Voo|BBC 1 HD|TV
0100,181D,1850,0500:4F52|Voo|France 2 HD|TV
0100,181D,1850,0500:55F1|Voo|RTC HD|TV
0100,181D,1850,0500:55F2|Voo|Télévesdre HD|TV
0100,181D,1850:2845|Voo|CBBC/BBC 3|TV
0100,181D,1850:2846|Voo|CBeebies/BBC 4|TV

 

 

Après avoir copier les fichiers de config dans le dossier /usr/local/etc/ :

$ sudo chown osmc.osmc /usr/local/etc -R

5-Installation du lancement automatique d'oscam au démarrage avec systemd :

Créer un fichier appelé oscam.service dans le dossier /lib/systemd/system/

$ sudo nano /lib/systemd/system/oscam.service

Copiez-y le code ci-dessous :

[Unit]
Description=Service OSCAM - Open Source Conditional Access Modul
After=network.target

[Service]
Type=simple
User=root
PIDFile=/tmp/.oscam/oscam.pid
ExecStart=/usr/local/bin/oscam -b
ExecStop=/usr/bin/rm /tmp/.oscam/oscam.pid
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Sauver et quitter nano. (^O ^X)
Régler les attributs du fichier.

$ sudo chown root.root /lib/systemd/system/oscam.service
$ sudo chmod 644 /lib/systemd/system/oscam.service

Quelques commandes systemctl :

Pour activer le service au démarrage :
$ sudo systemctl enable oscam
Pour démarrer le service :
$ sudo systemctl start oscam
Pour arrêter le service :
$ sudo systemctl stop oscam
Pour redémarrer le service :
$ sudo systemctl restart oscam
Pour connaître le status du service :
$ sudo systemctl status oscam
Pour désactiver le service :
$ sudo systemctl disable oscam

Une fois le service démarré, il est accessible par web : http://[IP_SERVEUR]:[PORT] (selon votre config)
 

Mis à jour (Jeudi, 03 Décembre 2015 16:44)

 

poutre


POUTRE v1.0

Calcul d'une poutre en béton armé.

  • Visualisation graphique : 
    • des efforts tranchants
    • des moments de flexion
    • des aciers en traction et en compression
  • Aide au ferraillage.
  • Impression des résultats




 

fleche

 

FLECHE v1.0

Calcul de la flèche, de l'inertie, de la charge maximum ou de la portée maximum d'une poutrelle métallique ou d'une poutre en bois.

Mis à jour (Vendredi, 05 Octobre 2012 09:03)

Lire la suite...

 

Biorythme
BIORYTHME v2.0

 

Programme de calcul de biorythme.

Mis à jour (Mercredi, 15 Décembre 2010 14:56)

Lire la suite...