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/03/29 14:41] – [Expériences] gepetoprojets:chaine [2024/02/09 16:56] (Version actuelle) – modification externe 127.0.0.1
Ligne 29: Ligne 29:
 ==== Gestion de serveur/services ==== ==== Gestion de serveur/services ====
   * [[https://yunohost.org/|Yunohost]] du code python pour gerer ses sites,messagerie,partage sur une petite machine armbian/debian   * [[https://yunohost.org/|Yunohost]] du code python pour gerer ses sites,messagerie,partage sur une petite machine armbian/debian
 +  * https://github.com/B4rb3rouss/hostathome alternative a yunohost plus directe et moins casse pieds
   * [[http://armbian.com|Armbian]] le système d'exploitation , base Debian pour tout un tas de carte ARM   * [[http://armbian.com|Armbian]] le système d'exploitation , base Debian pour tout un tas de carte ARM
   * topologie réseau   * topologie réseau
Ligne 80: Ligne 81:
   apt-get install avahi-utils libnss-mdns avahi-autoipd   apt-get install avahi-utils libnss-mdns avahi-autoipd
   avahi-set-host-name neo-1 # neo-1 a changer ...   avahi-set-host-name neo-1 # neo-1 a changer ...
 +  # deja fait sur les version armbian >= 5.27
   echo "blacklist rtl8192cu" >> /etc/modprobe.d/blacklist.conf  # pb sur wifi rtl8192cu!   echo "blacklist rtl8192cu" >> /etc/modprobe.d/blacklist.conf  # pb sur wifi rtl8192cu!
 +
 +<code>
 +# partie alsa base
 +cat <<EOF > /etc/asound.conf
 +pcm.!default { type hw ; card 0 }
 +ctl.!default { type hw ; card 0 }
 +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 et user pi
 +echo 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket' >> /home/pi/.bashrc
 +echo '
 +<!DOCTYPE busconfig PUBLIC
 + "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 + "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 +<busconfig>
 +  <policy user="root">
 +       <allow own="org.freedesktop.ReserveDevice1.Audio0"/>
 +       <allow own="org.freedesktop.ReserveDevice1.Audio1"/>
 +       <allow own="org.freedesktop.ReserveDevice1.Audio2"/>
 +  </policy>
 +  <policy user="pi">
 +       <allow own="org.freedesktop.ReserveDevice1.Audio0"/>
 +       <allow own="org.freedesktop.ReserveDevice1.Audio1"/>
 +       <allow own="org.freedesktop.ReserveDevice1.Audio2"/>
 +  </policy>
 +</busconfig>
 +'>/etc/dbus-1/system.d/audiojack.conf
 +# /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>
 +qjackctl et donc jackd fonctionne bien avec une carte son USB
 +  /usr/bin/jackd -v -dalsa -r44100 -p1024 -n2 -D -Chw:Device -Phw:Device
 +Il semble y avoir un probleme avec alsa sur la carte interne, que pulsaudio n'a pas... Donc dans les cas ou on utlise jackd et puredata : utiliser une carte USB !
 +
 +Sinon pour une lecture simple pulsaudio fait l'affaire
  
 === Partie serveur coté Internet === === Partie serveur coté Internet ===
Ligne 96: 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 113: Ligne 186:
    su neo -c "cd /usr/local/bin/noVNC ; ./utils/launch.sh --vnc localhost:5901 " &    su neo -c "cd /usr/local/bin/noVNC ; ./utils/launch.sh --vnc localhost:5901 " &
  
-cote hat +Si noVNC ne fonctionne pas : une version précédente ok : {{ :projets:novnc.tgz |}} 
 + 
 +**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.1490791319.txt.gz · Dernière modification : 2024/02/09 16:55 (modification externe)