Terastation Midnight Commander
As stated in another location in this Wiki, there are PPC rpms available, but the TeraStation does not understand RPM. Therefore you need to convert the RPMs first. I wrote this small script named teradlppcrpm.sh, which needs to be run on another Linux machine:
#!/bin/bash # Download and convert .rpm to .tar.gz if [ $# -lt 1 ] then echo "Please specify packet name without .ppc.rpm extension!" exit fi wget ftp://core.ring.gr.jp/pub/linux/Vine/VineSeed/ppc/software/$1.ppc.rpm mkdir $1 cd $1 rpm2cpio ../$1.ppc.rpm | cpio -idv tar -zcpf ../$1.tgz . cd ..
Getting necessary files
Midnight Commander needs glib und gpm libraries before it will run, so there are four packages in total. Call this script teradl-mc.sh in the same folder:
#!/bin/bash # Download and convert packages necessary for Midnight Commander on TeraStation for folder in 'glib-1.2.10-0vl5' 'gpm-1.20.1-35vl3' 'gpm-libs-1.20.1-35vl3' 'mc-4.5.54-0vl4'; do ./teradlppcrpm.sh $folder done echo You may now copy the .tgz files to your TeraStation and install them there using echo sudo tar -xzv /mnt/array1/share/software/xyz.tgz echo where xyz corresponds to the tgz names created by this script.
It will call the first script to download and convert those four packages, and give you 4 tgz files you need to copy to your TeraStation.
You can also do this in one step if you don't like those scripts (I wrote them only because I think I might want to add more packages later). This allows you to put all into just one package as well:
wget ftp://core.ring.gr.jp/pub/linux/Vine/VineSeed/ppc/software/glib-1.2.10-0vl5.ppc.rpm wget ftp://core.ring.gr.jp/pub/linux/Vine/VineSeed/ppc/software/gpm-1.20.1-35vl3.ppc.rpm wget ftp://core.ring.gr.jp/pub/linux/Vine/VineSeed/ppc/software/gpm-libs-1.20.1-35vl3.ppc.rpm wget ftp://core.ring.gr.jp/pub/linux/Vine/VineSeed/ppc/software/mc-4.5.54-0vl4.ppc.rpm mkdir mcpluslibs cd mcpluslibs rpm2cpio ../glib-1.2.10-0vl5.ppc.rpm | cpio -idv rpm2cpio ../gpm-1.20.1-35vl3.ppc.rpm | cpio -idv rpm2cpio ../gpm-libs-1.20.1-35vl3.ppc.rpm | cpio -idv rpm2cpio ../mc-4.5.54-0vl4.ppc.rpm | cpio -idv tar -zcpf ../mcpluslibs.tgz . cd ..
Now just copy mcpluslibs.tgz to your TeraStation share.
With more packages I prepare for my TeraStation, I my provide a full script that automates everything in just one script.
Open a SSH shell to your TeraStation, and install those packages using
sudo sudo tar --numeric-owner -xzv /mnt/array1/share/software/xyz.tgz
When you're done, you can run Midnight Commander by simply typing mc.