Difference between revisions of "Indicio"

From Technologia Incognita
Jump to: navigation, search
(Added librespot to documentation)
 
(5 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|Hostname=Indicio
 
|Hostname=Indicio
 
|ID=3
 
|ID=3
 +
|IPv6=No
 +
|IPchaos=No
 +
|IPleiden=No
 
|Function=MPD Server
 
|Function=MPD Server
 
|Location=Below the mixer
 
|Location=Below the mixer
 
|IPv4=10.0.20.3
 
|IPv4=10.0.20.3
|IPv6=
 
 
}}
 
}}
Is a computer at the space. It's used for things.
+
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
 +
 +
== 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 ==
 +
 +
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 <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

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:

  1. ~/xinitrc
  2. -----------------------
  3. #!/bin/sh
  4. 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