Before doing anything described on this page, please recognize that using a device that holds your only copy of your backup is not compatible with 'experimenting'. If you intend to do anything explained here, please either get another Media Vault that you reserve for experimentation purposes or backup all your Media Vault files to another location, in the event that you make your Media Vault non-operational and lose its contents.
Karl Brose came up with a way to run ipkg modules compiled for the MIPS architecture by using a program he wrote called JRUN to change the location of the root directory to some directory on the hard drive. JRUN stands for 'jail run' since this allows you to run programs from inside what is a sort of 'jail' or sandbox so as not to need to change the actual root directory structure on the Media Vault.
You can use the startup.sh script to launch these programs and, in the event that something stops working, a hard reset will break the connection by deleting startup.sh and should put your Media Vault back to normal. However, this is not a 100% guarantee so please heed the warning in the first paragraph concerning your data!
Download zip file for JRUN. You can unzip it on a PC and then follow the README file which is inside that zip file. Here are the contents of the README file:
Date: Nov 4, 2007, Last Update: 2007/11/04 22:14:15
$
Author: Karl Brose, karlbrose at gmail dot com
License: This file and all software in this package is
released under the GNU General Public License 2.0,
RUNNING 3RD PARTY LINUX APPLICATION PACKAGES (IPKG)
ON THE HP MEDIA VAULT
* Introduction
* Prerequisites
* Installation
create a designated folder or separate share on the Media Vault
copy the provided zip file to that share or folder
extract the contents of the zip file into the same directory with
WinZip or another archiver program
telnet into your HPMV
locate the package just installed in your filesystem
and run the 'jrun' program, when running the program add a
parameter '/setup'
i.e.:
/shares/Volume1/MYJRUNSHARE/jrun /setup
Now you can login to the new environment by executing
/shares/Volume1/MYJRUNSHARE/jrun
You will get a new shell prompt after this.
* Installing Applications
First initialize your ipkg configuration:
ipkg update
Try installing some packages:
ipkg install vim
ipkg install rsync
* Installation From Source Code
* Change Log
2007-11-04 Initial Public Offering @ US$0.00, only upside potential !!
* Known Issues
DNS resolution seems to be very slow, I included the ip/host for openwrt in
the /etc/hosts file.
* Credits
The current busybox implementation used by JRun was taken from the OpenWRT
project by installing the OpenWRT build system and compiling a basic
configuration with busybox and uclibc and extracting the executable and
libraries from the root file system. Refer to http://www.openwrt.org
---------|---------|---------|--------|---------|--------|--------|--------|----
$Id: README,v 1.1 2007/11/04 22:14:15 nasmaker Exp $
Here is a short step-by-step guide that Chris Seto wrote on using JRUN:
** IPKG on the HP-MV **
* Written by Chris Seto (aka, aximbigfan, blue765d(at)aol.com) with information
by Karl Brose
* Questions/Comments? write me at blue765d(at)aol.com
* PLEASE: do not redistribute the document without my written permission.
* VER. 1.00 RW3 PUBLIC
** PREFACE **
* If you are reading this, chances are you know what IPKG is. In case you don't,
IPKG is a package system originally built for computers with severe storage
limitations.
* Packages are files which contain programs to extend the functionality of a
device.
* IPKG has been used on such embedded Linux firmwares as OpenWRT, UNslung, DD-WRT,
and the Asus-WL router firmware.
* IPKG is an acronym for Itsy Package Management System.
* This guide is about, as the title suggests, how to get IPKG running on the HP
MediaVault.
* IPKG packages have an .ipk file extension.
* Some examples of IPKG packages are: NTP servers, Rsync, VIM, VPN clients,
http/https proxies, SQL servers,and much, much more!
** DISCLAIMER **
* WARNING: this is an experimental procedure. Attempt this at your own risk.
* I nor Karl Brose may not be held responsible if something goes wrong, and you
end up with damaged hardware and/or software.
* This guide is provided AS-IS with NO warranty what-so-ever.
!!-WARNING Please read this entire document before attempting the described
procedure-!!
NOTE: This guide was designed for Windows XP. Commands and/or methods may vary
on other OSes.
=================================
Step A:
NOTES: You may put jrun where you see fit, but you will also need to modify the
commands for that location.
A1. Create a share on the MV where you want IPKG to live. For the guide, we will
name this share "jrun", and it will be in Volume1.
A2. Unzip jrun_kit.zip, by right clicking on it, and selecting "Extract All..." and
extract it to the share created in Step A, A1.
DONE; Move to Step B.
Step B:
NOTES: none.
B1. We need to telnet into your MediaVault. Start>run, and type "cmd" (Without
quotes) and hit enter.
B2. In the terminal window, type "telnet <your-MV's-name>" without quotes and
without the brackets.
NOTE: From now on, every command you see after # should be inputted in the MV
telnet session.
B3. Tell jrun to setup: # /shares/Volume1/jrun/jrun /setup
B4. Start jrun: # /shares/Volume1/jrun/jrun
B5. # mount /proc
B6. Update IPKG's database of packages # ipkg update
DONE; IPKG is installed! Move to STEP C.
Step C:
NOTES: This is a list of the very basic commands and info for/about IPKG, for a
more extensive list of commands, just type "# ipkg" at the jrun prompt.
* You may install IPKG packages by "# ipkg install <package name>"
* You may run packages by "# /shares/Volume1/jrun/jrun <package> &"
* You may start packages by inserting "/shares/Volume1/jrun/jrun <package> &"
into the startup.sh file in /shares/Volume1/.
* You may remove installed packages by "# ipkg remove <package name>"
* Please do not install too many packages. The MV is not as powerful as a full
blown computer, and too many packages may cause it to become unstable.
* By default, packages are downloaded from the OpenWRT repository.
=================================
Many thanks to Karl for figuring out how to take advantage of the ipkg repositories with minimal risk to the Media Vault. Also thanks to Chris Seto for his testing and step-by-step instructions.