Help please with minimyth.pm perl script

Help with using MiniMyth (except Booting)

Moderator: Pablo

Post Reply
emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Help please with minimyth.pm perl script

Post by emlsnws » Wed Nov 12, 2008 2:33 pm

Hi,

This is related to getting my Imon LCD working (on a new Antec Fusion Black Remote enclosure ... LCD is model 15c2:0038).

I had a little success with the following command at the telnet prompt:

cp /etc/lcdproc.d/LCDd.conf.d/LCDd.conf /etc/LCDd.conf
/bin/sed -i s%@MM_LCDPROC_DRIVER@%imonlcd% /etc/LCDd.conf
/bin/sed -i s%@MM_LCDPROC_DEVICE@%/dev/lcd1% /etc/LCDd.conf
/usr/sbin/LCDd -c /etc/LCDd.conf

They worked from the command prompt, although I have not seen what the LCD displayed yet.

(Of course, what I am doing is replicating what the minimyth scripts should be doing, but for some reason did not).

I have set:
MM_LCDPROC_DEVICE='/dev/lcd1'
MM_LCDPROC_DRIVER='imonlcd'
MM_LCDPROC_FETCH_LCDD_CONF='no'

Anyway, in anticipation I tried to integrate them in the minimyth.pm script:

Code: Select all

#!/usr/bin/perl

package init::minimyth;

use strict;
use warnings;

require MiniMyth;

sub start
{
        my $self     = shift;
        my $minimyth = shift;

(snip unrelated lines)

        system(qq(/bin/echo 1 > /sys/module/lirc_imon/parameters/islcd));

        system(qq(cp /etc/lcdproc.d/LCDd.conf.d/LCDd.conf /etc/LCDd.conf ));

        system(qq(/bin/sed -i s%@MM_LCDPROC_DRIVER@%imonlcd% /etc/LCDd.conf ));
        system(qq(/bin/sed -i s%@MM_LCDPROC_DEVICE@%/dev/lcd1% /etc/LCDd.conf ));
        system(qq(/usr/sbin/LCDd -c /etc/LCDd.conf ));

        return 1;
}
However, this script hangs the machine - and I cannot telnet it to see what's up. I would guess some of the special characters are confusing it, but I don't know much Perl.

Perhaps we should work out why the minimyth scripts are not doing the expected? I will have to enable minimyth logging and see, when I get control back. Meanwhile, it would be nice to know what made the perl script foul up?

Thanks,
Simon.
Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Wed Nov 12, 2008 4:00 pm

I suspect you are having the following problem with your perl code. Whatever is inside of qq() becomes a double quoted, interpolated string. In perl, the @ indicates and array. Therefore, perl would attempt to substitute the arrays @MM_LCDPROC_DRIVER and @MM_LCDPROC_DEVICE, which would fail because they are not defined (and is not what you want anyway). Using q(), which treats everything as a single quoted, uninterpolated, instead of qq() should solve the problem.

Yes, it would be good to figure out why the lcdproc init script is not working. One way to test it out is to not use your minimyth.pm script, telnet into the frontend as user 'root' after booting, run

Code: Select all

mm_server lcdproc start
and see whether or not you can see any problems. For example, are there any error messages in printed to either the console or /var/log/messages and is /etc/LCDd.conf present with the correctly substituted variables,
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Guierrmo
Member
Posts: 39
Joined: Sat Mar 10, 2007 9:44 pm
Location: East Bay area

Post by Guierrmo » Wed Nov 12, 2008 6:47 pm

I have an antec fusion black with the imonlcd and I only had to add the below to my minimyth.pm, notice there is an underscore in is_lcd.

Code: Select all

system(qq(/bin/echo 1 \> /sys/module/lirc_imon/parameters/is_lcd)) && die;
and this is in my minimyth.conf.

Code: Select all

MM_LCDPROC_DRIVER='imonlcd'
MM_LCDPROC_DEVICE='/dev/lcd0'
I do not need to manually start lcdproc.

emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Post by emlsnws » Wed Nov 12, 2008 9:43 pm

Hi Guierrmo,

Excellent that you have it working - what build of minimyth are you using?


I have just got 'first characters' displayed .... using these commands at the telnet prompt after booting:

After booting, echo /sys/module/lirc_imon/parameters/is_lcd returns 1 ... ok.
But the LCD doesn't work from bootup.

But I then did these things:

Code: Select all


# cat /sys/module/lirc_imon/parameters/is_lcd 
1
# cp /etc/lcdproc.d/LCDd.conf.d/LCDd.conf /etc/LCDd.conf
# echo $MM_LCDPROC_DRIVER 
imonlcd
# ecgo $MM_LCDPROC_DEVICE
/dev/lcd0
# /bin/sed -i s%@MM_LCDPROC_DRIVER@%imonlcd% /etc/LCDd.conf
# /bin/sed -i s%@MM_LCDPROC_DEVICE@%/dev/lcd1% /etc/LCDd.conf
# /usr/sbin/LCDd -c /etc/LCDd.conf
imonlcd: sending command: 40
# 
# tail /var/log/messages
(snip)
Nov 12 20:38:30 (none) user.info kernel: lirc_imon: VFD port opened
# 

The result is I see the '## LCDproc Server ##' and 'Cli: 0 Scr: 0' :-) :-)

The last character on the top line is chattering a bit between 2 states, but it's loads better than a blank!

Just noticed, the boot process seems stuck, mythfrontend has not started for some reason. Maybe when that starts, all will work well?
Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

Guierrmo
Member
Posts: 39
Joined: Sat Mar 10, 2007 9:44 pm
Location: East Bay area

Post by Guierrmo » Wed Nov 12, 2008 9:59 pm

I'm running ram-minimyth-0.21.0-60b3.

emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Post by emlsnws » Wed Nov 12, 2008 10:19 pm

Thanks for that, it's the same as I am running - only I compiled mine myself (to get nvidia 96.43.07 drivers and mame included).

Thinking back over today, the FE worked this morning when it was using a minimyth.script file (shell script). Now, it is using a minimyth.pm type script.

Pablo, can you offer any advice? It looks like this problem.... http://minimyth.org/forum/viewtopic.php ... o&start=15

I too have a file /STDOUT which is timed at the time of the last bootup.
# cat /STDOUT
Can't use an undefined value as a HASH reference at /usr/lib/perl5/site_perl/5.10.0/MiniMyth.pm line 595, <FILE> line 21.

Just a guess, line 21 of /etc/X11/xorg.conf is "# Local dri"
Relevant?

Pablo, here is my /etc/conf.d/minimyth for comparison:

Code: Select all

 # cat /etc/conf.d/minimyth 
MM_ACPI_EVENT_BUTTON_POWER='off'
MM_ACPI_VIDEO_FLAGS='0'
MM_AUDIO_CARD_NUMBER='0'
MM_AUDIO_DEVICE_NUMBER='0'
MM_AUDIO_TYPE='analog'
MM_BACKEND_ENABLED='no'
MM_CODECS_URL='confrw:codecs.sfs'
MM_CONF_VERSION='36'
MM_CPU_FAMILY='6'
MM_CPU_FETCH_MICROCODE_DAT='no'
MM_CPU_FREQUENCY_GOVERNOR='performance'
MM_CPU_MODEL='8'
MM_CPU_VENDOR='AuthenticAMD'
MM_CRON_FETCH_CRONTAB='no'
MM_DEBUG='yes'
MM_DHCP_DOMAIN_NAME=''
MM_DHCP_DOMAIN_NAME_SERVERS='192.168.1.1'
MM_DHCP_HOST_NAME='mythfront-sempron'
MM_DHCP_LOG_SERVERS=''
MM_DHCP_NTP_SERVERS='0.uk.pool.ntp.org'
MM_DHCP_TCODE='Europe/London'
MM_EXTERNAL_POWER_OFF=''
MM_EXTERNAL_POWER_ON=''
MM_EXTERNAL_VOLUME_DOWN=''
MM_EXTERNAL_VOLUME_ENABLED='no'
MM_EXTERNAL_VOLUME_MUTE=''
MM_EXTERNAL_VOLUME_UP=''
MM_EXTRAS_URL='file:/minimyth/extras'
MM_FLASH_URL=''
MM_FONT_FILE_TTF_ADD=''
MM_FONT_FILE_TTF_DELETE=''
MM_GAME_BIOS_ROOT='/mnt/game/bios'
MM_GAME_GAME_ROOT='/mnt/game/game'
MM_GAME_SAVE_ENABLED='no'
MM_GAME_SAVE_LIST='.fceultra:.jzintv:.mednafen:.stella:.mame:.vba:.zsnes:VisualBoyAdvance.cfg'
MM_HARDWARE_KERNEL_MODULES='nvidia w83627hf'
MM_INIT_TYPE='perl'
MM_KERNEL_IMAGE='kernel'
MM_LCDPROC_DEVICE='/dev/lcd0'
MM_LCDPROC_DRIVER='imonlcd'
MM_LCDPROC_FETCH_LCDD_CONF='no'
MM_LCDPROC_KERNEL_MODULE=''
MM_LCDPROC_KERNEL_MODULE_OPTIONS=''
MM_LIRC_AUTO_ENABLED='yes'
MM_LIRC_DEVICE=''
MM_LIRC_DEVICE_BLACKLIST=''
MM_LIRC_DEVICE_LIST='/dev/lirc-usb:1d6b:0001:0000:00:02.0,default'
MM_LIRC_DRIVER=''
MM_LIRC_FETCH_LIRCD_CONF='no'
MM_LIRC_FETCH_LIRCRC='no'
MM_LIRC_IREXEC_ENABLED='auto'
MM_LIRC_KERNEL_MODULE=''
MM_LIRC_KERNEL_MODULE_OPTIONS=''
MM_LIRC_SLEEP_ENABLED='yes'
MM_LIRC_WAKEUP_ENABLED='yes'
MM_LOGFILE='/var/log/minimyth.log'
MM_MASTER_DBNAME='mythconverg'
MM_MASTER_DBPASSWORD='mythtv'
MM_MASTER_DBUSERNAME='mythtv'
MM_MASTER_SERVER='192.168.1.8'
MM_MASTER_WOLSQLCOMMAND='wakelan -b @MM_MASTER_WOL_BROADCAST@ -m @MM_MASTER_WOL_MAC@'
MM_MASTER_WOLSQLCONNECTRETRY='20'
MM_MASTER_WOLSQLRECONNECTWAITTIME='15'
MM_MASTER_WOL_ADDITIONAL_DELAY='0'
MM_MASTER_WOL_ENABLED='no'
MM_MASTER_WOL_MAC='00:00:00:00:00:00'
MM_MEDIA_DVD_RIP_MOUNTPOINT='/mnt/dvd'
MM_MEDIA_DVD_RIP_URL='nfs://192.168.1.8/storage/temp'
MM_MEDIA_GALLERY_MOUNTPOINT='/mnt/gallery'
MM_MEDIA_GALLERY_URL='nfs://192.168.1.8/storage/pictures'
MM_MEDIA_GAME_MOUNTPOINT='/mnt/game'
MM_MEDIA_GAME_URL=''
MM_MEDIA_MUSIC_MOUNTPOINT='/mnt/music'
MM_MEDIA_MUSIC_URL='nfs://192.168.1.8/storage/music'
MM_MEDIA_TV_MOUNTPOINT='/mnt/tv'
MM_MEDIA_TV_URL=''
MM_MEDIA_VIDEO_MOUNTPOINT='/mnt/video'
MM_MEDIA_VIDEO_URL='nfs://192.168.1.8/storage/videos'
MM_MINIMYTH_BOOT_URL='file:/minimyth/'
MM_MINIMYTH_FETCH_MINIMYTH_PM='yes'
MM_MINIMYTH_FETCH_MINIMYTH_SCRIPT=''
MM_MINIMYTH_UPDATE_URL='http://minimyth.org/download/stable/latest/'
MM_NETWORK_INTERFACE='eth0'
MM_PLUGIN_BROWSER_ENABLED='yes'
MM_PLUGIN_DVD_ENABLED='no'
MM_PLUGIN_GALLERY_ENABLED='yes'
MM_PLUGIN_GAME_ENABLED='yes'
MM_PLUGIN_INFORMATION_CENTER_ENABLED='yes'
MM_PLUGIN_MUSIC_ENABLED='yes'
MM_PLUGIN_NEWS_ENABLED='yes'
MM_PLUGIN_OPTICAL_DISK_ENABLED='yes'
MM_PLUGIN_PHONE_ENABLED='yes'
MM_PLUGIN_STREAM_ENABLED='yes'
MM_PLUGIN_VIDEO_ENABLED='yes'
MM_PLUGIN_WEATHER_ENABLED='yes'
MM_PLUGIN_ZONEMINDER_ENABLED='yes'
MM_ROOTFS_IMAGE='rootfs'
MM_ROOTFS_TYPE='squashfs'
MM_SECURITY_ENABLED='no'
MM_SECURITY_FETCH_CA_BUNDLE_CRT='no'
MM_SECURITY_FETCH_CREDENTIALS_CIFS='no'
MM_SECURITY_USER_MINIMYTH_GID='1000'
MM_SECURITY_USER_MINIMYTH_UID='1000'
MM_SSH_SERVER_ENABLED='no'
MM_TFTP_BOOT_URL=''
MM_TFTP_SERVER=''
MM_THEMECACHE_URL='confrw:themecache.sfs'
MM_THEMEOSD_NAME='Titivillus-OSD'
MM_THEMEOSD_URL='hunt:themes/Titivillus-OSD.sfs'
MM_THEME_FILE_MENU_ADD=''
MM_THEME_NAME='Titivillus'
MM_THEME_URL='hunt:themes/Titivillus.sfs'
MM_VERSION='0.21.0-59'
MM_VERSION_MINIMYTH='59'
MM_VERSION_MYTH='0.21.0'
MM_VERSION_MYTH_BINARY='0.21.20080304-1'
MM_VERSION_MYTH_BINARY_EXTRA='1'
MM_VERSION_MYTH_BINARY_MAJOR='0'
MM_VERSION_MYTH_BINARY_MINOR='21'
MM_VERSION_MYTH_BINARY_TEENY='20080304'
MM_VIDEO_ASPECT_RATIO='4:3'
MM_VIDEO_DEINTERLACER='none'
MM_VIDEO_FONT_SCALE='100'
MM_VIDEO_MPEG2_DECODER='xvmc'
MM_VIDEO_PLAYBACK_PROFILE='CPU++'
MM_VIDEO_RESIZE_ENABLED='no'
MM_WIIMOTE_ADDRESS_0=''
MM_WIIMOTE_ADDRESS_1=''
MM_WIIMOTE_ADDRESS_2=''
MM_WIIMOTE_ADDRESS_3=''
MM_WIIMOTE_ENABLED='no'
MM_X_DISPLAYSIZE='200x150'
MM_X_DRIVER='nvidia'
MM_X_ENABLED='yes'
MM_X_FETCH_XINITRC='no'
MM_X_FETCH_XMODMAPRC='no'
MM_X_FETCH_XORG_CONF='no'
MM_X_HACK_HIDE_BLUE_LINE_ENABLED='no'
MM_X_MODE='800x600'
MM_X_MODELINE=''
MM_X_MODELINE_0=''
MM_X_MODELINE_1=''
MM_X_MODELINE_2=''
MM_X_MODE_0=''
MM_X_MODE_1=''
MM_X_MODE_2=''
MM_X_MYTH_PROGRAM='mythfrontend'
MM_X_OUTPUT_DVI='none'
MM_X_OUTPUT_TV='none'
MM_X_OUTPUT_VGA='auto'
MM_X_REFRESH='VertRefresh 58-62'
MM_X_RESOLUTION=''
MM_X_RESTART_ON_SLEEP_ENABLED='no'
MM_X_SCREENSAVER='none'
MM_X_SCREENSAVER_HACK='blank'
MM_X_SCREENSAVER_TIMEOUT='2'
MM_X_SYNC='HorizSync 10.0-70.0'
MM_X_TV_OUTPUT='AUTOSELECT'
MM_X_TV_OVERSCAN='0.0'
MM_X_TV_TYPE='NTSC-M'
MM_X_VIRTUAL='800x600'
MM_X_VNC_ENABLED='yes'
MM_X_WM_ENABLED='yes'
Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Post by emlsnws » Wed Nov 12, 2008 10:46 pm

Su'ing to minimyth and executing 'xinit' gives:

Code: Select all

Lots of X startup stuff, until.......

2008-11-12 21:35:10.410 MSqlQuery: SELECT data FROM settings WHERE value = 'ChannelRecordRecPriority'
2008-11-12 21:35:10.411 MSqlQuery: SELECT data FROM settings WHERE value = 'AllRecordRecPriority'
2008-11-12 21:35:10.411 MSqlQuery: SELECT data FROM settings WHERE value = 'Theme' AND hostname = 'mythfront-sempron' ;
2008-11-12 21:35:10.412 MSqlQuery: SELECT data FROM settings WHERE value = 'RandomTheme' AND hostname = 'mythfront-sempron' ;
2008-11-12 21:35:10.412 No theme dir: /home/minimyth/.mythtv/themes/Titivillus
2008-11-12 21:35:10.413 No theme dir: /usr/share/mythtv/themes/Titivillus
2008-11-12 21:35:10.413 No theme dir: /usr/share/mythtv/themes/G.A.N.T
2008-11-12 21:35:10.413 Could not find theme: Titivillus
Couldn't find theme Titivillus
2008-11-12 21:35:10.415 MythSocket: readyread thread exit

waiting for X server to shut down X connection to :0.0 broken (explicit kill or server shutdown).
FreeFontPath: FPE "/usr/lib/X11/fonts/misc" refcount is 2, should be 1; fixing.


But again, Tititvillus was working this morning and is in /minimyth/themes:

Code: Select all

# ls -l /minimyth/themes/T*
-rw-rw-rw-    1 root     root       135168 Nov 11 21:11 /minimyth/themes/Titivillus-OSD.sfs
-rw-rw-rw-    1 root     root      5619712 Nov 11 21:11 /minimyth/themes/Titivillus.sfs
# 

Is it possible that the su'd shell does not have all the MM_... shell variables?

Returning to the original shell with exit, I do 'set' and see:

Code: Select all

# set
BOOT_IMAGE='kernel'
DISPLAY=':0.0'
HISTFILE='/root/.ash_history'
HOME='/root'
(BIG SNIP)
MM_TFTP_SERVER=''
MM_THEMECACHE_URL='confrw:themecache.sfs'
MM_THEMEOSD_NAME='Titivillus-OSD'
MM_THEMEOSD_URL='hunt:themes/Titivillus-OSD.sfs'
MM_THEME_FILE_MENU_ADD=''
MM_THEME_NAME='Titivillus'
MM_THEME_URL='hunt:themes/Titivillus.sfs'
MM_VERSION='0.21.0-59'
MM_VERSION_MINIMYTH='59'
MM_VERSION_MYTH='0.21.0'
MM_VERSION_MYTH_BINARY='0.21
 
Look at the end. The last variable is not terminated correctly. And the cursor remains at the end until I press return.
Very strange.
Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Post by emlsnws » Thu Nov 13, 2008 10:26 am

I don't know what was going on in my last post. I also saw some errors from vi (yes, vi....) when I attempted to edit various config files, it complained "cannot read user input" and returned to the prompt. Something was certainly wrong.

Anyway, a reboot and using MM_INIT_TYPE=sh on the boot line (and MM_DEBUG=yes) gives me complete bootup again. (However my minimyth.script is not actually executed, but that's another story).


I would definitely say something is up with the perl init scripts, perhaps only under certain circumstances - as Guierrmo doesn't seem to suffer any problems and he is using perl scripts.


For the LCD to work, after a fresh bootup with sh init script, I telnet in and do the following:

Code: Select all

# echo 1 > /sys/module/lirc_imon/parameters/is_lcd 
# mm_service lcdproc start
... and I get a 2-line date and time, and then when in a Myth frontend menu other than the top, I get the name of menu and sub-menu.

In /var/log/messages I see:

Code: Select all

Nov 13 08:31:03 (none) local0.info minimyth: starting remote control(s) ...
Nov 13 08:31:03 (none) local0.info minimyth: started '/usr/sbin/lircd --device=/dev/lirc-usb:1d6b:0001:0000:00:02.0 --driver=default --output=/dev/lircd --pidfile=/var/run/lircd.pid'.
Nov 13 08:31:03 (none) local0.info minimyth: attempting to auto-configure usage of 'irexec'.
Nov 13 08:31:03 (none) local0.info minimyth: auto-configured usage of 'irexec' as 'yes'.
Nov 13 08:31:03 (none) user.info kernel: lirc_imon: IR port opened
Nov 13 08:31:03 (none) local0.info minimyth: starting LCD/VFD ...
Nov 13 08:31:04 (none) user.info kernel: lirc_imon: VFD port opened
Nov 13 08:31:04 (none) local0.info minimyth: configuring MythTV ...

Nov 13 08:31:16 (none) user.err LCDd: error: huh? Too much data received... quiet down!

Nov 13 08:31:52 (none) auth.info login[8521]: root login on 'pts/0'

(This is where I log in to set is_lcd = 1 and mm_service lcdproc start)
Nov 13 08:32:47 (none) local0.info minimyth: starting LCD/VFD ...
When the 'quiet down' error occurs, is_lcd is still set to 0, but Minimyth has started the LCD/VFD. This indicates that the minimyth.script hasn't operated correctly as it included a command to set it to 1.

But on the whole, very good :-) :-)

So just for the record, this is with self-built 60b3 which contains lirc-0.8.4a.

Now we just need to look at the problems of bootup (perl scripts giving errors / sh scripts apparently nonfunctional).
Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

emlsnws
Contributor
Posts: 52
Joined: Wed Sep 03, 2008 9:13 am
Location: Gloucestershire, UK

Post by emlsnws » Fri Nov 14, 2008 11:07 pm

Forum member nietu pointed out that I had missed changing . /etc/rc.d/functions -> . /etc/rc.d.sh/functions

Doing that made my minimyth.script (sh version) work 100% so I now have my mounted directories back, and - wait for it - the LCD type is set to 1 in the script, so my LCD works from boot! It is the infamous 15c2:0038 from Imon in a Fusion Black Remote case.

So many thanks to Guierrmo, nietu, and Pablo for supporting my questions :-) :-)

I am still using build 60b3 for this. It works now :-)

But, I won't be trying perl scripts with this build, something odd was going on there. I have nearly finished building svn r3960 which I might not need to use. But I could make it available if required.

For completeness, below are my minimyth.script and minimyth.conf:

minimyth.script (called by MM_INIT_TYPE=sh on bootline in syslinux.cfg) :

Code: Select all

# Include the MiniMyth configuration variables and functions.
. /etc/rc.d.sh/functions

/bin/echo 1 > /sys/module/lirc_imon/parameters/is_lcd

# Mount the posters directory
mkdir /mnt/posters
mount -o nolock 192.168.1.8:/storage/posters /mnt/posters

# Mount the roms directory
mkdir -p /storage/roms
mount -o nolock 192.168.1.8:/storage/roms /storage/roms

minimyth.conf :

Code: Select all

MM_DHCP_HOST_NAME='mythfront-sempron'
MM_DHCP_DOMAIN_NAME_SERVERS='192.168.1.1'

MM_MASTER_SERVER='192.168.1.8'

MM_DHCP_TCODE='Europe/London'

MM_DHCP_NTP_SERVERS='0.uk.pool.ntp.org'

MM_LOGFILE='/var/log/minimyth.log'

MM_LCDPROC_DEVICE=/dev/lcd0
MM_LCDPROC_DRIVER=imonlcd
MM_LCDPROC_KERNEL_MODULE=imonlcd
MM_LCDPROC_KERNEL_MODULE_OPTIONS='is_lcd=1'

MM_MINIMYTH_FETCH_MINIMYTH_SCRIPT='yes'

MM_X_FETCH_XORG_CONF='no'

MM_X_VNC_ENABLED='yes'
MM_X_SCREENSAVER='none'

MM_X_OUTPUT_VGA='auto'
#MM_X_OUTPUT_TV='none'
#MM_X_MODE='800x600'

MM_EXTRAS_URL='file:/minimyth/extras'

MM_HARDWARE_KERNEL_MODULES=w83627hf

MM_THEME_URL='auto'
MM_THEME_NAME='Titivillus'
MM_THEMEOSD_URL='auto'
MM_THEMEOSD_NAME='Titivillus-OSD'
MM_THEMECACHE_URL='auto'

MM_MEDIA_GALLERY_URL='nfs://192.168.1.8/storage/pictures'

MM_MEDIA_MUSIC_URL='nfs://192.168.1.8/storage/music'

MM_MEDIA_VIDEO_URL='nfs://192.168.1.8/storage/videos'

MM_MEDIA_DVD_RIP_URL='nfs://192.168.1.8/storage/temp'
MM_MEDIA_DVD_RIP_MOUNTPOINT='/mnt/dvd'

MM_VIDEO_MPEG2_DECODER='xvmc'
MM_VIDEO_PLAYBACK_PROFILE='CPU+'

Backend: AN7-Guru w/Athlon XP-M 2400+ running FC8 and Mythtv SVN 17450
Frontend1: EPIA M10000 running Minimyth pre-built
Frontend2: MSI K7N2 (MS-6777) Athlon running Minimyth 66b5, Antec Fusion Black, VGA to Scart PAL

Post Reply