Playstation Portable (PSP)
From NAS-Central Buffalo - The Linkstation Wiki
(→Configuring) |
|||
| Line 101: | Line 101: | ||
<font color=red>UMDTYPES="iso dax cso"</font> | <font color=red>UMDTYPES="iso dax cso"</font> | ||
| - | Remove "umount $USBS" and "done" | + | Remove from the very bottom of usbripper.sh "umount $USBS" and "done" then add: |
pico /usr/local/bin/usbripper.sh | pico /usr/local/bin/usbripper.sh | ||
| - | #Get UMD | + | #Get UMD |
| - | + | FINDNAME="" | |
| - | + | for TYPE in $UMDTYPES ; do | |
| - | + | if [ "$FINDNAME" != "" ] ; then | |
| - | + | FINDNAME=`echo -n "$FINDNAME -o "` | |
| - | + | fi | |
| - | + | FINDNAME=`echo "$FINDNAME -name \"*.$TYPE\" "` | |
| - | + | done | |
| - | + | FINDNAME=`echo -n " find $USBS \\( $FINDNAME \\) -print -exec cp -af {} $UMDDIR \\; "` | |
| - | + | eval $FINDNAME | |
| - | + | umount $USBS | |
| - | done | + | done |
Revision as of 22:33, 5 September 2007
[[Image:<...>|right]]
Contents |
Nethostfs
Using nethostfs you can stream your legally backed up games, music, movies and more straight from your Linkstation to your PSP. You can also rip your games straight to your Linkstation using mediaripper
Get this version for ppc here: http://aabb6467.hp.infoseek.co.jp/pspfiles/nethostfs_kurobox.zip Get this version for mips here: <------>
Features
- Network Streaming
Running nethostfs
To run nethostfs you will need to have a custom firmware (3.52 m33-2 is the latest at time of writing that works with iR Shell 3.61)
Installing nethostfs
This is the server that will allow the PSP to connect to your Linkstation. You can download the source code and patch required from this Japenese guys blog HERE. The source code will compile but not work (due to Big Endian?), so there's a patch too. Fortunately there is a pre-compiled binary in there that just works, so:
cd /tmp wget http://aabb6467.hp.infoseek.co.jp/pspfiles/nethostfs_kurobox.zip unzip nethostfs_kurobox.zip cd nethostfs_kurobox cp nethostfs /usr/bin
I've then just got a script to start it at boot. You will obviously need to change "/mnt/share/PSPGames" to where your games are stored.
pico /etc/init.d/nethostfs
Copy this to it:
#!/bin/sh
#
PATH=/usr/sbin:/usr/bin:/bin:${PATH}
export PATH
NETHOSTFS='/usr/bin/nethostfs'
PORT='7513'
case "$1" in
start)
echo -n "Starting nethostfs: "
$NETHOSTFS -p $PORT /mnt/share/PSPGames &
echo "done"
sleep 1
;;
stop)
echo -n "Shutting down nethostfs: "
$NETHOSTFS -p $PORT poweroff &
killall nethostfs
sleep 1
echo "done"
;;
restart)
echo -n "Restarting nethostfs: "
$0 stop
sleep 1
$0 start
;;
status)
echo "Status of nethostfs: "
ps auxw|grep nethostfs
;;
*)
echo "Usage: nethostfs {start|stop|restart|status}"
exit 1
esac
exit 0
Then link it:
cd /etc/rc2.d && ln -s /etc/init.d/nethostfs S99nethostfs
cd /etc/rc6.d && ln -s /etc/init.d/nethostfs K99nethostfs
cd /etc/rc0.d && ln -s /etc/init.d/nethostfs K99nethostfs
Configuring
If you want to rip the games you legally own to your Linkstation you will need Waites "mediaripper"
Once mediaripper is installed you'll need to adjust it abit:
pico /usr/local/bin/ripper.conf
INTERVAL=60 IMGDIR="/mnt/share/Images" VIDDIR="/mnt/share/Video" MUSICDIR="/mnt/share/Music" UMDDIR="/mnt/pspgames" IMGTYPES="jpg bmp gif" VIDTYPES="xvid mpg wmf" MUSICTYPES="ogg mp3 wav flac" UMDTYPES="iso dax cso"
Remove from the very bottom of usbripper.sh "umount $USBS" and "done" then add:
pico /usr/local/bin/usbripper.sh
#Get UMD
FINDNAME=""
for TYPE in $UMDTYPES ; do
if [ "$FINDNAME" != "" ] ; then
FINDNAME=`echo -n "$FINDNAME -o "`
fi
FINDNAME=`echo "$FINDNAME -name \"*.$TYPE\" "`
done
FINDNAME=`echo -n " find $USBS \\( $FINDNAME \\) -print -exec cp -af {} $UMDDIR \\; "`
eval $FINDNAME
umount $USBS
done

