Jetway-mediaplayer

From XPUB & Lens-Based wiki

Jetways - nettop - media player

MMCD has a few Jetways nettop computers, which we use as media players for shows. Although they can be set to do other "jobs"

jetway-nettop.jpg


Configuration

  • operating system: Debian (Jessie)
  • window manager: evilwm: For launching a terminal do Ctl+Alt+Return


configuration

  • hostname: mmdc-tiny
  • root passw: PietZwart
  • user: student
  • user passw: pzi
  • su: xpub/xpub

auto login

Is set to user student.


As SystemV is no longer in use in recent versions of Debian, and instead Systedmd is used /etc/inittab settings are no longer performed.

Instead this post indicated /etc/systemd/system/getty.target.wants/getty@tty1.service and /etc/systemd/system/getty@tty1.service.d/autologin.conf needed to be edited

auto startx

in ~/bash_profile

if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then while true do startx -- sleep 10 done fi

Applications

run on startx

use .xinitrc file to decide what applications/scripts will run when your window manager (x server) starts.

#!/bin/sh

/home/student/bin/nosleep.sh &
/home/student/bin/run-jackd.sh &
#/home/student/bin/slideshow.sh &
/home/student/bin/video-loop.sh &


## Scrensaver off
exec xset s off
exec xset -dpms #disable DMPS (every star) features
exec xset s noblank

audio output

As media player software the Jetways use mpv

Its audio output can be changed from analog audio out to HDMI audio out, by editing the mpv line in /home/student/bin/video-loop.sh:

mpv --fs --loop=inf --audio-device=jack --volume=25 $DIR

# --audio-device=jack -- audio to analog audio output
# --audio-device=alsa -- audio to HDMI audio output

Applications

  • evilwm
  • x-11
  • mpv
  • emacs
  • feh
  • alsa-utils
  • jackd
  • openssh-server
  • iceweasel
  • chromium
  • sshfs
  • smartmontools
  • terminator

Scripts: in /home/student/bin/

  • nosleep.sh
  • run_jackd.sh
  • slideshow - Artyom
  • video-loop

Issues

auto mount

HOW IS AUTO MOUNT DONE IN JETWAYS?


Config file: /etc/usbmount/usbmount.conf

Line: FS_MOUNTOPTIONS="-fstype=vfat,flush,gid=plugdev,dmask=0007,fmask=0117" allows users in the plugdev group to write to mounted devices


missing network hardware

missing firmware rtl_nic/rtl18168d-1.fw

https://packages.debian.org/wheezy/firmware-realtek

http://forums.debian.net/viewtopic.php?f=17&t=72645