This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech:mythtv:start [2017/11/19 22:22] rk4n3 |
tech:mythtv:start [2018/08/05 12:07] (current) rk4n3 |
||
---|---|---|---|
Line 6: | Line 6: | ||
* Run (as root): ''apt update'' | * Run (as root): ''apt update'' | ||
* Run (as root): ''apt upgrade'' | * Run (as root): ''apt upgrade'' | ||
+ | |||
+ | ===== Ubuntu FrontEnd ===== | ||
+ | ==== Samba Shares ==== | ||
+ | <code> | ||
+ | //myth/recordings /home/dvr/Videos/mythtv/tv cifs credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127 0 0 | ||
+ | //myth/videos /home/dvr/Videos/mythtv/library cifs credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127 0 0 | ||
+ | //myth/music /home/dvr/Music/mythtv cifs credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127 0 0 | ||
+ | //myth/pictures /home/dvr/Pictures/mythtv cifs credentials=/home/dvr/etc/auth-myth.cifs,uid=1000,gid=127 0 0 | ||
+ | </code> | ||
===== Raspberry Pi FrontEnd ===== | ===== Raspberry Pi FrontEnd ===== | ||
Line 36: | Line 45: | ||
... you might have to find the values for ''SDN'' and ''VDN'' from ''.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'' | ... you might have to find the values for ''SDN'' and ''VDN'' from ''.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml'' | ||
+ | |||
+ | ==== Execute script at boot ==== | ||
+ | Here's a sample script to put at ''/etc/init.d/YourScriptName'':<code> | ||
+ | #!/bin/sh | ||
+ | # /etc/init.d/mythdvr | ||
+ | ### BEGIN INIT INFO | ||
+ | # Provides: mythdvr | ||
+ | # Required-Start: $remote_fs $syslog | ||
+ | # Required-Stop: $remote_fs $syslog | ||
+ | # Default-Start: 2 3 4 5 | ||
+ | # Default-Stop: 0 1 6 | ||
+ | # Short-Description: MythTV frontend boot steps | ||
+ | # Description: MythTV frontend boot steps | ||
+ | ### END INIT INTO | ||
+ | |||
+ | echo "performance" | tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | ||
+ | /usr/sbin/alsactl restore | ||
+ | |||
+ | case "$1" in | ||
+ | start) | ||
+ | echo "Starting mythdvr" | ||
+ | ;; | ||
+ | stop) | ||
+ | echo "Stopping mythdvr" | ||
+ | ;; | ||
+ | *) | ||
+ | echo "Usage: /etc/init.d/mythdvr {start|stop}" | ||
+ | exit 1 | ||
+ | ;; | ||
+ | esac | ||
+ | exit 0 | ||
+ | </code> | ||
+ | Run this to register the script:<code>update-rc.d YourScriptName defaults</code> | ||
+ | Run this to un-register the script:<code>update-rc.d YourScriptName remove</code> | ||
\\ | \\ |