Python install is available using OpenPogo.
Install OpenPogo using:
http://www.openpogo.com/wiki/index.php5?title=GUIDE:_Installing_Base_Package
or
http://www.pogoplugged.com/article/12101/How-to-Install-or-remove-OpenPogo-on...
and then
ipkg install python26
Categories: PogoPlug Development
I am considering PogoPlug, but would like to be able to install pyTiVo so that it could serve up my music library to my TiVo (without needing a computer added to the mix).
Can I install Python? Might not need ffmpeg since I am not planning to use it to transcode video.
If I install OpenPogo, does my PogoPlug still function as normal, access via the iPhone with their app, etc.?
If you install OpenPogo per the instructions above, then the Pogoplug will still function as normal. If you have the pink V2 Pogoplug there is only about 90MB of space for the /opt folder on the Pogoplug flash. If you expect to use more than that in the /opt folder then you should load OpenPogo on USB per the 2nd instructions above.
Hey ianjb,
I have installed Python and pyTivo and it works fine while logged in. But how would you recommend that I start it when booting?
I doubt that just adding "Python /opt/py/pyTivo.py" into the /etc/init.d/rcS file is the way to go.
What do you recommend?
Brandon,
Did you install OpenPogo to nand using the first guide or to USB using the second guide.
If you used the second guide then all you need to do is add a start up script in /opt/etc/init.d/ and it will start up on boot. The script name must start with an "S" and must be executable with chmod 755.
I found a start up script here:
http://www.nslu2-linux.org/wiki/HowTo/TiVoServer
which looks like this:
#! /bin/sh
echo "Starting pyTivo... "
python2.5 /opt/var/pyTivo/pyTivo.py
return 1
You will need to change the command line to match your version of python and the location of your pyTivo.py script.
If you installed to nand using the first guide then you will need to change the /etc/init.d/rcS file.
Hope this helps
ianjb,
I used the first guide to install OpenPogo since this is on a V1 plug. Using the info here. http://www.openpogo.com/wiki/index.php5?title=GUIDE:_Installing_Base_Package
Then installed python using. pkg install python26
The added create a /opt/py folder and put all the pyTivo files in it.
After configuring the .conf file I can run it in SSH by entering "Python /opt/py/pyTivo.py" and it runs fine and stops when i exit out.
I can't get to autostart tho.
My etc/init.d/rcS file looks like this after adding the script.
#! /bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
mount -t tmpfs none /tmp
mkdir /tmp/var
echo "/tmp/core_%e_%t" > /proc/sys/kernel/core_pattern
mount /dev/mtdblock3 /opt
hostname Pogoplug
ifconfig lo 127.0.0.1
ifconfig eth0 169.254.37.133
udhcpc -b -h `hostname`
telnetd
/etc/init.d/db
ntpd -g
/etc/init.d/hbmgr.sh start
#/bin/mount -a
#! /bin/sh
echo "Starting pyTivo... "
python2.6 /opt/py/pyTivo.py
return 1
What do you think?
Brandon,
the section you added was:
#! /bin/sh
echo "Starting pyTivo... "
python2.6 /opt/py/pyTivo.py
return 1
I don't think you need the "#! /bin/sh" as this is meant to be the first line of a script (there is already one at the top)
and I don't think you need the "return 1" although I don't think it hurts.
It's also possible that you need the path to python2.6
Let me know if that doesn't fix it.
Thanks for you help.
I got it running by doing it this way in rsC
/opt/bin/python2.6 /opt/py/pyTivo.py
Now if I could jut remember all the steps I did to get this going :) I could write it all out for others to utilize.
That would be awesome -- I'm hoping to install it once I order and receive my pogoplug.
lex3001,
Here ya go. My way of setting it up.
http://www.pogoplugged.com/article/12521/Run-pyTivo-on-your-PogoPlug/
Hey BC, installing PlugApps makes the guide you posted broken. Install OpenPogo for pyTivo for the time-being. :)
crimsonredmk said: Hey BC, installing PlugApps makes the guide you posted broken. Install OpenPogo for pyTivo for the time-being. :)Thanks. Fixed the link and verbiage.
RSS


