PDA

View Full Version : mvpmc config examples



ggee
2007-07-13, 04:16 AM
Can people reply with copies of there mvpmc config files. It would be nice to see combinations of GBPVR, MythTV, ReplayTV, CIFS, etc. Let's see how crazy things can get.

Thanks,
Greg

pz1
2007-07-13, 07:53 AM
Posting config files is a nice idea. Mine is a simple one-liner today, but I intend to do things with WOL as soon as I have upgraded my server. I could update this post while I am progressing on that, making this into a kind of sticky. May be something to consider for others.
At present to get automatically into emulation mode I use:


mvpmc --startup emulate --emulate 192.168.1.36 &
What I could describe in addition is how I made the share and what access rights I use. That has been problematic for beginners including myself.

EDIT: I only had to allow WOL in the BIOS and in XP power settings of the new motherboard. Works quite well now. (I did apply the GBPVRService patch of the 0.99.12. See sticky notes there)
EDIT2: Updated my config here (http://forums.gbpvr.com/showpost.php?p=260228&postcount=7)

jksmurf
2007-07-13, 02:05 PM
umount /etc/mvpmc
mount.cifs //192.168.1.10/mvpmc /etc/mvpmc -o username=guest,password=guest,rw
mvpmc -F /etc/mvpmc/defaults -o svideo -o passthru --flicker 2 --startup emulate --emulate 192.168.1.10 &


Cheers

k.

mvallevand
2007-07-14, 12:05 AM
I have two main ones. One is really boring it is



mkdir /test
mount.cifs //192.168.3.34/dev /test -o guest &
exit

This stops all processing of the config file since I do all my testing by telnet.

The real one is more interesting.


##########################
# SECTION 1
##########################

#set timezone to Eastern Time
#
TZ=EST+5EDT,M3.2.0/1,M11.1.0/2; export TZ;

# Run rdate to set the system time. $SERVER is the server IP address passed in with the
# DHCP response
#
rdate -s time.nrc.ca


mkdir /nfstest
mount -t nfs -o nolock,tcp,rsize=4096,wsize=4096 192.168.3.30:/share/data/ /nfstest/


# enable cifs extension here
#echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
#echo 0 > /proc/fs/cifs/LookupCacheEnabled
#echo 0 > /proc/fs/cifs/OplockEnabled
#echo 1 > /proc/fs/cifs/cifsFYI

mkdir /usr/music
mount.cifs //192.168.3.30/music /usr/music -o username=guest,password=guest

cd /usr/playlist
ln -s /music/playlist
ls -s /music/playlist/Indie/Indie.m3u indie.m3u
ln -s /music/playlist/cdncollegeradio.m3u

mkdir /usr/recording
mount.cifs //192.168.3.2/gbpvr /usr/recording -o guest


########################
# SECTION 2
# Setting the TZ variable above only affects the shell process this script
# runs in. If you want to telnet to the MVP and have the TZ variable set
# then we need to write it to the /etc/shell.config file that gets run
# everytime a new shell is started.
# This section is only needed if you want to telnet to the mvp
# and manually run things like mvpmc.
# It's great for deebugging.
########################

# Echo the command to set the TZ variable to the shell.config file
#
echo "TZ=EST+5EDT,M3.2.0/2,M11.1.0/2; export TZ" > /etc/shell.config;


######################
# SECTION 3
# Start the mvpmc application.
# Specify the 18 point font because the default 10 point
# font is unreadable.
######################

LIVE365DATA='notme&password=unknown'; export LIVE365DATA;

mvpmc -c 192.168.3.40 --vlc 192.168.3.2 --emulate 192.168.3.2 --startup filesystem:file=/usr/playlist > /dev/null &




Martin

JonRoyle
2007-07-15, 12:17 PM
Posting config files is a nice idea. Mine is a simple one-liner today, but I intend to do things with WOL as soon as I have upgraded my server. I could update this post while I am progressing on that, making this into a kind of sticky. May be something to consider for others.
At present to get automatically into emulation mode I use:


mvpmc --startup emulate --emulate 192.168.1.36 &
What I could describe in addition is how I made the share and what access rights I use. That has been problematic for beginners including myself.


Just come across MVPMC dongle and started to try it - I am impressed MVP is now a proper Linux client that I can connect to (MVP also now connects to network at 100M/Full).

Whilst I have managed to set the config file (ad above) to get MVP to automatically load Emulate (GBPVR) mode I am not happy about having Guest account enabled on the network. Is there a way to get MVP to automatically use a specific account? (without telnetting onto MVP after each reload of dongle).

Thanks

mvallevand
2007-07-15, 01:21 PM
Whilst I have managed to set the config file (ad above) to get MVP to automatically load Emulate (GBPVR) mode I am not happy about having Guest account enabled on the network. Is there a way to get MVP to automatically use a specific account? (without telnetting onto MVP after each reload of dongle).

No, but you do not need the Guest account enabled just Guest access through simple file sharing. I think this is a huge distinction. I'd be happy to discuss this further in a dedicated thread. I don't want to hijack this one.

Martin

pz1
2008-03-02, 10:53 AM
I have slightly extended my configuration using Martin's example. I came to realise that more than half of the time I used GBPVR for listening to Internet radio. So I edited the mvpmc playlist via the WEB interface. Later I put my personal .m3u list in the mvpmc share directory, which made it accessible in etc/mvpmc. But this required the GBPVR server to be on. Fortunately, my Fritz!Box (http://www.fritzbox.eu/en/products/FRITZBox_Fon_WLAN/index.php?tab=2) router has a USB port. I use an old memory stick to hold the playlists.


mkdir /usr/music
mount.cifs //192.168.1.22/USBDISKPro-0-1 /usr/music -o guest
mvpmc --startup emulate --emulate 192.168.1.36&

No need to fire up the GBPVR server :), but WAF is low :(

EDIT1: See next post from mvallevand to improve WAF
ATTENTION After every change in the configuration file remove power for 5 seconds from MVPMC to reboot and activate new settings.
EDIT2: In GBPVR version 1.3.7 (and up?) you can also specify the settings in config.xml instead of in a separate dongle config file.
The above example is converted in:
<MvpmcStartupConfig>mkdir /usr/music;mount.cifs //192.168.1.22/USBDISKPro-0-1 /usr/music -o guest;mvpmc --startup emulate --emulate ? &amp;</MvpmcStartupConfig>

mvallevand
2008-03-02, 12:23 PM
No need to fire up the GBPVR server :), but WAF is low :(

No graphic artists on our team that's for sure. One small thing you can do go into web config and change the startup directory to /usr/music. Then temporarily set r/w on the share and move the file to file into it

mv /etc/browser.config /usr/music

and then create a link to it

ln -s /usr/music/browser.config /etc

Add the same line to the config file and after that one time setup you always will start the filesystem in /usr/music minimizing exposure to the linux filesystem.

Just so you I use my mvp 80% for Internet radio and the PCH is vastly inferior for my needs. People talk about the mvp's successor a lot, but I think many years of listening still existing as long as governments don't get in the way. The American's keep trying and the British already did.

Martin

pz1
2008-03-02, 01:20 PM
No graphic artists on our team that's for sure. One small thing you can do go into web config and change the startup directory to /usr/music.
Thanks, this works! I might even be able to train the monky. I don't mean "her" of course ;)
Pieter

Azimuth
2008-04-30, 06:16 AM
what does "--em-safety 3&" do?

mvallevand
2008-04-30, 09:19 PM
It is obsolete when using of PVRx2.exe, it was used to fix potential problems which sub has fixed. You can find a little bit more information using the forum search tools.

Note the & is not part of the syntax, it just specifies end of line .

Martin

pz1
2008-05-01, 06:26 AM
Fixed my example, which had this safety parameter