Ls-mvkw-bootstrap1.2-7arm.xsh mv /etc/init.d/optware /etc/init.d/rc.optware ipkg update Updating package – ipkg update Upgrading package.
This document briefly describes how to install NFS on your buffalo device,along with how to get remote root access, via SSH.
There are two systems involved here:
- My desktop system - which will mount the exports.
10.0.0.10
- The NAS device itself.
10.0.0.108
To get root on the device you can use the bundled
acp_commander.jar
command - of course you'll need a Java installation to do that.Using
acp_commander.jar
you can execute arbitrary commands on the NAS, as root
, you just need to know the IP address of your NAS and the password for the admin
user.Add your details to the nas script, then execute it like so:
Assuming this works for you then you can now examine the get-root script which will run a couple of commands:
- root.sh
- Change the
root
password tossh.pass
.- NOTE: This is the password you'll use for SSH, the
admin
webui login will remain unchanged.
- NOTE: This is the password you'll use for SSH, the
- Enable SFTP/SSH support.
- Stop & start the
sshd
server
- Change the
Once you have root you can login to your NAS via SSH and run commandsinteractively, as you'd expect:
![Buffalo Linkstation Install Optware Ipkg Buffalo Linkstation Install Optware Ipkg](/uploads/1/2/6/3/126311504/869411719.png)
REMEMBER: The
root.sh
script will have set the ssh-password to be ssh.pass
.Install ipkg
Install
ipkg
like so:NOTE: If this site disappears you can look at the
archive/
directory in this repository.The
.xsh
script will boosttrap the system, by unpackaging a binary-archive embedded within itself, and then executing it.To view the contents of the archive you can run this:
NOTE: Use
.. | tar xf
if you wish to unpack locally and read what will be executed.Ultimately when
./bootstrap/bootstrap.sh
is executed it will install the two bundled .ipkg
files (giving ipkg
itself, and wget
which is used to download packages), and configure ipkg
.Install NFS
Once you have
ipkg
, the package-manager, installed you can install things via:To get the (user-space) NFS-server you'll run:
To configure your exports you need to edit the configuration file
/opt/etc/exports
. My example is this:Once that file has been updated you'll need to restart NFS:
NOTE: We're explicitly installing the user-space NFS server here. My first attempt involved using the kernel-mode NFS server, via a third-party repository. This failed to boot, effectively bricking the device neatly. Recovering from that was a real pain, and something I have no wish to repeat! (You need a third-party kernel because the default kernel contains zero NFS-modules. Also doesn't contain a kernel
.config
file either.)Testing NFS
From a local system in your LAN, with IP
10.0.0.10
, you should nowbe able to list those exports:Mounting NFS Shares
This is what I did to mount the shares on my desktop:
All done.