Outils pour utilisateurs

Outils du site


projets:chaine

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
projets:chaine [2017/06/22 18:29] – [Expériences] gepetoprojets:chaine [2024/02/09 16:56] (Version actuelle) – modification externe 127.0.0.1
Ligne 86: Ligne 86:
 <code> <code>
 # partie alsa base # partie alsa base
-cat <<EOF > /home/nanopi/.asoundrc +cat <<EOF > /etc/asound.conf 
-pcm.!default {  +pcm.!default { type hw card 0 } 
- type hw +ctl.!default { type hw card 0 }
- card 0 +
-+
-ctl.!default { +
- type hw            +
- card 0 +
-}+
 EOF EOF
  
 +apt-get purge whoopsie libwhoopsie0
 +vi /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf # et enlever ous les trucs user whoopsie
  
-# partie dbus au cas ou jackd +# partie dbus au cas ou jackd et user pi 
-echo 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket' >> ~/.bashrc+echo 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket' >> /home/pi/.bashrc
 echo ' echo '
 <!DOCTYPE busconfig PUBLIC <!DOCTYPE busconfig PUBLIC
Ligne 110: Ligne 106:
        <allow own="org.freedesktop.ReserveDevice1.Audio2"/>        <allow own="org.freedesktop.ReserveDevice1.Audio2"/>
   </policy>   </policy>
-  <policy user="nanopi">+  <policy user="pi">
        <allow own="org.freedesktop.ReserveDevice1.Audio0"/>        <allow own="org.freedesktop.ReserveDevice1.Audio0"/>
        <allow own="org.freedesktop.ReserveDevice1.Audio1"/>        <allow own="org.freedesktop.ReserveDevice1.Audio1"/>
Ligne 119: Ligne 115:
 # /etc/fstab # /etc/fstab
 echo "none    /dev/shm    tmpfs    defaults    0 0" >> /etc/fstab echo "none    /dev/shm    tmpfs    defaults    0 0" >> /etc/fstab
 +</code>
 +Modifs 
 +  * cf https://github.com/dynobot/TinyCore-Sound-Adjustments/
 +  * https://github.com/dynobot/Linux-Audio-Adjustments
 +
 +<code>
 +
 +echo "#modif latence reseau" > /etc/sysctl.d/network-latency.conf
 +echo 'net.core.rmem_max = 16777216' >> /etc/sysctl.d/network-latency.conf
 +echo 'net.core.wmem_max = 16777216' >> /etc/sysctl.d/network-latency.conf
 +
 +cat <<EOF >/etc/rc.local
 +#!/bin/bash
 +
 +#Reduce Audio thread latency
 +#chrt -f -p 43 $(pidof ksoftirqd/0)
 +#chrt -f -p 43 $(pidof ksoftirqd/1)
 +#chrt -f -p 43 $(pidof ksoftirqd/2)
 +#chrt -f -p 43 $(pidof ksoftirqd/3)
 +#Reduce operating system latency
 +echo noop > /sys/block/mmcblk0/queue/scheduler
 +echo 1000000 > /proc/sys/kernel/sched_latency_ns
 +echo 100000 > /proc/sys/kernel/sched_min_granularity_ns
 +echo 25000 > /proc/sys/kernel/sched_wakeup_granularity_ns
 +
 +sleep 5
 +#chrt -f -p 27 $(LE_PID_DE_LAPPLI_AUDIO)
 +
 +exit 0
 +EOF
 </code> </code>
 qjackctl et donc jackd fonctionne bien avec une carte son USB qjackctl et donc jackd fonctionne bien avec une carte son USB
Ligne 140: Ligne 166:
  
 === Partie serveur coté local === === Partie serveur coté local ===
-Installation d'un bureau interface X11 fluxbox +Installation d'un bureau interface X11 fluxbox et Installation d'un serveur X reseau xtightvnc-server 
-  apt-get install fluxbox pcmanfm lxterminal xpad +<code> 
-Installation d'un serveur X reseau xtightvnc-server +apt install fluxbox xterm tightvncserver xfonts-base x11-xserver-utils 
-  apt-get install tightvncserver xfonts-base x11-xserver-utils+apt install pcmanfm xpad # options 
 +</code> 
 +Pensez en étant l'utilisateur à un vncpasswd et lancez par vncserver 
 Installation de [[https://github.com/novnc/noVNC | noVNC ]] Installation de [[https://github.com/novnc/noVNC | noVNC ]]
   cd /usr/local/bin   cd /usr/local/bin
Ligne 158: Ligne 187:
  
 Si noVNC ne fonctionne pas : une version précédente ok : {{ :projets:novnc.tgz |}} Si noVNC ne fonctionne pas : une version précédente ok : {{ :projets:novnc.tgz |}}
-cote hat + 
 +**cote hat pour les NEO** venant de  http://wiki.friendlyarm.com/wiki/index.php/Main_Page
   git clone https://github.com/friendlyarm/BakeBit.git   git clone https://github.com/friendlyarm/BakeBit.git
   git clone https://github.com/friendlyarm/WiringNP   git clone https://github.com/friendlyarm/WiringNP
 +  git clone https://github.com/friendlyarm/NanoHAT-Motor-Python-Library
      
 === Préparation d'un site méthode === === Préparation d'un site méthode ===
projets/chaine.1498148983.txt.gz · Dernière modification : 2024/02/09 16:55 (modification externe)