Inspired by the contributions by (in alphabetical order) AndyA, Arne, Gabsor and s-n1965 I developed a small package which installs some utilities and changes some settings of the Playon!HD Mini (PV73200). This facilitates redoing modifications of the Mini after a new firmware installation.
The utilities are:
mountSwap (contributed by s-n1965. You must provide a Linux swap partition on a USB memory device (hard disk or memory stick) yourself, 128 MB is sufficient)
Stupid FTP server (contributed by Gabsor. FTP provides an alternative for copying files to and from your Mini. In my experience using the Stupid FTP server in combination with the Filezilla FTP client on the PC is faster and more reliable than the Mini's SMB (Samba) service.)
The changed settings are:
Download the
mini_utils.zip file to your PC and copy the unzipped
mini_utils folder to the root of a USB stick.
Disconnect all USB devices from your Mini and insert the USB stick with the
mini_utils folder.
In a Telnet session give the command (use copy and paste to copy this command into the Telnet window):
/tmp/usbmounts/sda1/mini_utils/utils.sh
The utilities will be installed and your Mini will reboot, disrupting the Telnet connection.
After reconnecting to your Mini in a new Telnet session you can give the following commands from any directory:
samba start|stop|status|restart (this will override the SAMBA setting of the GUI)
ftp start|stop|status
Further swapping will be enabled with the
minFree parameter set to 5120 and your Mini will be a member of the
MEDIAPLAYERS workgroup.
All changes are stored in the Mini's flash memory, so you need to run the script file only once after installation of the firmware. However, running the script more than once does no harm. If the FTP server is running, you will get an error message because the binary program cannot be copied then.
After installation the FTP server allows anonymous login with full permissions. You can change this in the
stupid/stupid-ftpd.conf file, either before or after installation. After installation the
stupid directory can be found in
/usr/local/etc/ . The default FTP server document root is
/tmp/usbmounts/, so you can access files on any USB memory device attached to your Mini. This may also be changed in the configuration file. Be careful not to change this file location to the Mini's flash memory. The comment lines in the configuration file provide explanation on these settings.
The name of the Mini's workgroup can be changed in the
smb_anonymous_head.conf file, also before or after installation. After installation the configuration file is located in
/usr/local/etc/package/samba/lib .
All changes in the package“s script files must be made with a suitable Linux editor on your PC or
vi on your Mini. Windows Notepad and Wordpad cannot correctly save Linux script files.
I used the opportunity to delete a great number of superfluous comment lines with obsolete commands from the original firmware scripts
rcS and
profile, that are replaced by this utility.
As I developed the utility for my own convenience, I omitted all error trapping from the scripts. So you use the script completely at your own responsibility and risk. In the worst case you may have to reinstall the firmware in the safe mode to undo the changes of the script.
Finally all errors in this package are mine, because I modified some of the contributors' scripts and files and disregarded their (especially s-n1965's) warnings.
I wish to thank all contributors for their efforts to improve the Playon's firmware.