User Tools

Site Tools


spacefoo:fnord42

übersiedelt zu: https://wiki.local.cccsbg.at/en/infra/space/fnord42

Es kann Musik über “mpv” über die Shell 192.168.240.23 abgespielt werden.\\Für eine eigene Musik gibt es auch noch die Möglichkeit:

  • direkt via Pulseaudio in Richtung Fnord42 zu streamen (siehe Pulseaudio)
  • zuspielen über Bluetooth (siehe Bluetooth)

Fnord42 hängt auch am VGA Eingang des Beamers und kann deshalb benutzt werden um Videos/DVD's usw. darauf abzuspielen.

Fnord42

tbd

Anlage

tbd

Shell

Per SSH: User fpletz, Passwort alarm. Es gibt den Alias “tmux” der die Shell an die gemeinsame Tmux session attached.
Funktionen:

  • mpv (pr0n ist unter /mnt eingehängt)
  • mpsyt (mps-youtube)
  • pulsemixer (zum anpassen der Lautstärken/muten verschiedener Streams)
  • mimimi (Wenn Mimi reinkommt oder jemand übertrieben jammert)

Pulseaudio

Einfacher Weg auf der Linux-CLI

pactl load-module module-tunnel-sink-new server=192.168.240.23

Danach sollte in der Audioverwaltung deiner Wahl ein Ausgabegerät mit der IP auftauchen. Wenn die Netzwerkverbindung abreißt, muss man den Befehl erneut absetzen.

Auto-Discover mit Zeroconf

Um Pulseaudio “Zeroconf” Support zu benutzen müssen die folgenden Pakete auf deinem Linux-Notebook installiert werden:

  • avahi-discover
  • pulseaudio-module-zeroconf

Am besten man installiert sich auch noch das Tool “PulseAudio Preferences” und aktiviert dort im ersten Tab “Make discoverable PulseAudio network sound devices available locally”.
Nach dem restart/start von Avahi/Pulseaudio sollte Fnord42 als Output Device automatisch sichtbar werden wenn du dich im gleichen Netzwerk wie Fnord42 befindest (Wlan + Lan funktioniert).

Mauli: musste avahi service starten/enablen, und “load-module module-zeroconf-discover” bei “/etc/pulse/default.pa” hinzufügen. Nach neustart (kill) von pulseaudio ging es :)

Bluetooth

bluetoothctl
Agent registered
[bluetooth]# agent on
Agent is already registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 00:1A:7D:DA:71:15 Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
 
//Am Handy verbinden
 
[NEW] Device AA:BB:CC:DD:EE:FF HalloWelt
Request confirmation
[agent] Confirm passkey 850845 (yes/no): yes
[CHG] Device AA:BB:CC:DD:EE:FF Modalias: bluetooth:v00E0p1200d1436
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF ServicesResolved: yes
[CHG] Device AA:BB:CC:DD:EE:FF Paired: yes
Authorize service
[agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110d-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000112d-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device AA:BB:CC:DD:EE:FF UUIDs: 00001801-0000-1000-8000-00805f9b34fb
Authorize service
[agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes

Automation

Tools, users, dinge

  • hat eingenen sys_spaceapi user, zb. Schalter bot macht ssh auf fnord42, ssh authorized key command womit space-up und space-down getriggered wird
  • mqtt broker mosquito - wird auf space-infra VM gemoved damit IOT geräte verbinden können
  • home-assistant - (User Zugang wie bei fnord42) greift per mqtt broker auf geräte zu (zb. Tasmota/Sonoff) - wird auf space-infra VM gemoved

Troubleshooting

Ich will Musik abspielen, aber es geht nicht

  • Anlage aufgedreht und auf richtiger Lautstärke?
  • mixersettings auf Fnord42 korrekt, Stream nicht gemuted?
  • Verkabelung richtig?
spacefoo/fnord42.txt · Last modified: 2022/02/21 20:07 by reini