Freevo Software Final Notes
(Part of the BuildingFreevo set.)
A few of the build-log entries mention adding stuff to files, incrementally; here's a page of those files as they look now in complete form.
/etc/init.d/local:
#!/bin/sh PATH=$PATH:/usr/local/bin:/usr/sbin ifup wlan0 lircd ivtvctl -j reg=0x6c,val=0xfa -d /dev/video16 ivtvctl -j reg=0x2d,val=0x38 -d /dev/video16 irexec /usr/local/etc/irexec.restarter &
/usr/local/etc/cron_every1day.sh:
#!/bin/sh # move the ramdisk log into /var/log once an hour cat /tmpfs/ram.log >> /var/log/ram.log : > /tmpfs/ram.log PATH=$PATH:/usr/sbin ntpdate pool.ntp.org # clean-boot the frontend once daily, in the middle of the night /etc/init.d/gdm restart
/usr/local/etc/cron_every4hrs.sh:
#!/bin/sh PATH=$PATH:/usr/sbin ntpdate pool.ntp.org > /dev/null 2>&1
/usr/local/etc/cron_every5mins.sh:
#!/bin/sh
PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin
(
date
echo "Temps:"
sensors | perl -ne '/Proc/ and s/\(.*$// and print'
hddtemp /dev/hda
) 2>&1 | perl -e \
'while (<STDIN>) { s/\s/ /gs; print; } print "\n"' \
>> /tmpfs/ram.log
# attempt to bring up wireless if it's not already
if ifconfig wlan0 | grep "UP BROADCAST" > /dev/null 2>&1 ; then
true
else
ifup wlan0
fi
/home/mythtv/.mythtv/lircrc:
# lircrc.example.HauppaugeSilver-nativelirc
# 2005-01-27, Russell Salerno
# mailto:rsalern5@optonline.net
# Save this file in ~/.mythtv/lircrc
begin
prog = mythtv
button = Go
config = I
end
begin
prog = mythtv
button = Prev.Ch
config = I
end
begin
prog = mythtv
button = 1
config = 1
end
begin
prog = mythtv
button = 2
config = 2
end
begin
prog = mythtv
button = 3
config = 3
end
begin
prog = mythtv
button = 4
config = 4
end
begin
prog = mythtv
button = 5
config = 5
end
begin
prog = mythtv
button = 6
config = 6
end
begin
prog = mythtv
button = 7
config = 7
end
begin
prog = mythtv
button = 8
config = 8
end
begin
prog = mythtv
button = 9
config = 9
end
begin
prog = mythtv
button = Back/Exit
config = Esc
end
begin
prog = mythtv
button = 0
config = 0
end
begin
prog = mythtv
button = Menu/i
config = M
end
# Below are keys used with the Hauppauge Silver remote
begin
prog = mythtv
# This is the Red key
# We'll use it for "Delete"
button = Red
config = D
end
# Note the "repeat =" strings in the volume and channel.
# This means that if you hold down the key, every nth instance will be
# passed. This depends on your system, so you may want to increase or
# decrease this and see what happens. repeat = 1 is probably too
# fast.
begin
prog = mythtv
button = vol-
repeat = 3
config = F10
end
begin
prog = mythtv
button = vol+
repeat = 3
config = F11
end
begin
prog = mythtv
button = Ch+
config = Up
end
begin
prog = mythtv
button = Ch-
repeat = 3
config = Down
end
begin
prog = mythtv
button = Up
# This is the "up" on the central diamond
repeat = 3
config = Up
end
begin
prog = mythtv
button = Down
# This is the "down" on the central diamond
repeat = 3
config = Down
end
begin
prog = mythtv
# button = Vol-
button = Left
# This is the "left" on the central diamond
repeat = 3
config = Left
end
begin
prog = mythtv
# button = Vol+
button = Right
# This is the "right" on the central diamond
repeat = 3
config = Right
end
begin
prog = mythtv
# Middle button on the diamond
button = Ok
config = Return
end
begin
prog = mythtv
button = Mute
config = F9
end
begin
prog = mythtv
button = Blank
config = B
end
begin
prog = mythtv
button = Guide
config = M
end
begin
prog = mythtv
button = Rewind
config = Left
repeat = 1
end
begin
prog = mythtv
button = Play
config = P
end
begin
prog = mythtv
button = Forward
config = Right
repeat = 1
end
begin
prog = mythtv
button = Record
config = R
end
begin
prog = mythtv
button = #
config = T
end
begin
prog = mythtv
button = pause
config = P
end
begin
prog = mythtv
button = Replay/SkipBackward
# Use for backwards commercial skip
config = Q
end
begin
prog = mythtv
button = SkipForward
# Use for forward commercial skip
config = Z
end
begin
prog = mplayer
button = Back/Exit
config = quit
end
begin
prog = mplayer
button = MENU
config = osd
end
begin
prog = mplayer
button = Rewind
config = seek -10
repeat = 1
end
begin
prog = mplayer
button = Forward
config = seek +10
repeat = 1
end
begin
prog = mplayer
button = Replay/SkipBackward
config = seek -60
repeat = 1
end
begin
prog = mplayer
button = SkipForward
config = seek +60
repeat = 1
end
begin
prog = mplayer
button = Pause
config = pause
end
begin
prog = mplayer
button = Play
config = pause
end
begin
prog = mplayer
button = BACK
config = quit
end
begin
prog = mplayer
button = VOL+
config = volume +1
repeat = 1
end
begin
prog = mplayer
button = VOL-
config = volume -1
repeat = 1
end
begin
prog=mplayer
button=Mute
config=mute
end
# reassigned keys# TV [upcoming episodes]
# Videos ['/' all channels vs favourites]
# Music [sel songs for rearranging in mythmusic]
# Pictures Page Up
# Radio Page Down
# Prev.Ch ['?' mark channel as favourite]
# Asterix [popup menu in mythbrowser]
# Red [Delete]
# Green [<]
# Yellow [>]
# Blue [restarter]
begin
prog = mythtv
button = Green
config = <
end
begin
prog = mythtv
button = Yellow
config = >
end
begin
prog = mythtv
button = TV
config = O
end
begin
prog = mythtv
button = Music
config = Space
end
begin
prog = mythtv
button = Asterix
config = PrintScreen
end
begin
prog = mythtv
button = Videos
config = /
end
begin
prog = mythtv
button = Prev.Ch
config = ?
end
begin
prog = mythtv
button = Pictures
config = Page Up
end
begin
prog = mythtv
button = Radio
config = Page Down
end
Here's a PDF help sheet for the above keybindings: http://taint.org/xfer/2005/mythhelp.pdf
