Difference between revisions of "Indicio"
(Added librespot to documentation) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 12: | Line 12: | ||
* MPD | * MPD | ||
+ | * Librespot (Spotify connect) | ||
* XMBC | * XMBC | ||
* Printer server for the label printer and the laser printer | * Printer server for the label printer and the laser printer | ||
Inidicio is also permanently connected to the projector | Inidicio is also permanently connected to the projector | ||
+ | |||
+ | == Spotify Speakers == | ||
+ | |||
+ | You can play audio on the speakers through Spotify Connect. In your regular spotify client you can go to Devices and you should see "Techinc Speakers". If you don't see these speakers you can also try the unfirewalled network. | ||
+ | |||
+ | Spotify connect works through librespot installed through cargo | ||
+ | |||
+ | cargo install librespot | ||
+ | |||
+ | and started through this systemd service at <code>/etc/systemd/system/librespot.service</code> | ||
+ | |||
+ | [Unit] | ||
+ | Description=Librespot Daemon for Techinc Speakers | ||
+ | |||
+ | [Service] | ||
+ | ExecStart=/home/techinc/.cargo/bin/librespot -n "Techinc Speakers" -b 320 | ||
+ | Restart=always | ||
+ | RestartSec=90 | ||
+ | User=techinc | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=default.target | ||
+ | |||
== Wiimote control for inidicio == | == Wiimote control for inidicio == | ||
Line 32: | Line 56: | ||
* 2 = volume down | * 2 = volume down | ||
+ | == Beamer == | ||
+ | Here folows a quick walktrough of using the beamer trough the indicio server | ||
+ | === Start the beamer === | ||
+ | There is a small switch on the beamer on the side of the kitchen, if you turn it the buttons should turn orange. | ||
+ | Press the on button. | ||
+ | Make sure the beamer is on RGB 1. | ||
+ | |||
+ | === Setup the Xserver === | ||
+ | You should be able to ssh in to the server. | ||
+ | Use yout favorite editor to make a ~/.xinitrc file containing your favorite window manager, in this case awesome: | ||
+ | |||
+ | #~/xinitrc | ||
+ | # ----------------------- | ||
+ | # #!/bin/sh | ||
+ | #exec awesome | ||
+ | |||
+ | Now you should be able to start the x server by typing | ||
+ | |||
+ | $ xinit | ||
+ | |||
+ | If you want to start it in the background so you can continue using ssh use: | ||
+ | |||
+ | $ screen -dmS xserver xinit | ||
+ | |||
+ | You should see X starting on the beamer. | ||
+ | === VNC === | ||
+ | First install a vnc client on you own laptop, can't help you here. | ||
+ | |||
+ | than, while X is running, run the command <code>x11vnc</code> on the server, this will start a vnc server on the current X session. | ||
+ | You should now me enable to connect to 10.0.20.3:0 with you vnc client. | ||
+ | |||
+ | !! x11vnc will only aloow one connect, you have to restart it if you close your viewer. | ||
+ | === Stopping it === | ||
+ | On the server run | ||
+ | |||
+ | $ pkill X | ||
+ | |||
+ | Than go to the beamer and pres the on/off button, do not switch it off yet! | ||
+ | let it cool down for 5/10 minutes before switching it off with the switch on the side. | ||
+ | |||
+ | === MPD === | ||
+ | |||
+ | Update MPD database | ||
+ | mpc update | ||
+ | |||
[[Category:Service]] | [[Category:Service]] |
Latest revision as of 14:05, 12 August 2022
Indicio | |
---|---|
Hostname | Indicio |
IPv4 | 10.0.20.3 |
Function | MPD Server |
Location | Below the mixer |
Contact |
Indicio supports a few space features:
- MPD
- Librespot (Spotify connect)
- XMBC
- Printer server for the label printer and the laser printer
Inidicio is also permanently connected to the projector
Contents
Spotify Speakers
You can play audio on the speakers through Spotify Connect. In your regular spotify client you can go to Devices and you should see "Techinc Speakers". If you don't see these speakers you can also try the unfirewalled network.
Spotify connect works through librespot installed through cargo
cargo install librespot
and started through this systemd service at /etc/systemd/system/librespot.service
[Unit] Description=Librespot Daemon for Techinc Speakers [Service] ExecStart=/home/techinc/.cargo/bin/librespot -n "Techinc Speakers" -b 320 Restart=always RestartSec=90 User=techinc [Install] WantedBy=default.target
Wiimote control for inidicio
Indicio can be controlled by wiimote, wciid runs in the background to connect it to uinput for X. At the moment all input from the wiimote is used for X controls.
- wiimote controls the mouse by using it's IR camera, the leds on the wall need to be turned on for this to work.
- turn the wiimote on by pressing the buttons 1 & 2 at the same time and wait untill the leds stop blinking
- turn the wiimote off by pressing the powerbutton on the wiimote for a few seconds
Gnome MPC mappings
- + = next song
- - = previous song
- home = play/pause
- 1 = volume up
- 2 = volume down
Beamer
Here folows a quick walktrough of using the beamer trough the indicio server
Start the beamer
There is a small switch on the beamer on the side of the kitchen, if you turn it the buttons should turn orange. Press the on button. Make sure the beamer is on RGB 1.
Setup the Xserver
You should be able to ssh in to the server. Use yout favorite editor to make a ~/.xinitrc file containing your favorite window manager, in this case awesome:
- ~/xinitrc
- -----------------------
- #!/bin/sh
- exec awesome
Now you should be able to start the x server by typing
$ xinit
If you want to start it in the background so you can continue using ssh use:
$ screen -dmS xserver xinit
You should see X starting on the beamer.
VNC
First install a vnc client on you own laptop, can't help you here.
than, while X is running, run the command x11vnc
on the server, this will start a vnc server on the current X session.
You should now me enable to connect to 10.0.20.3:0 with you vnc client.
!! x11vnc will only aloow one connect, you have to restart it if you close your viewer.
Stopping it
On the server run
$ pkill X
Than go to the beamer and pres the on/off button, do not switch it off yet! let it cool down for 5/10 minutes before switching it off with the switch on the side.
MPD
Update MPD database
mpc update