Written by Chris Seto (chris12892-AT-gmail.com), with contributions. Thanks to Lee Devlin for hosting this FAQ!
Fixing the TTY warning and getting the 'more' command to work
The MV2 has an issue when you log in via SSH that generates a TTY warning. This also prevents the 'more' command from responding properly to a <space bar> so that you can display files. You can fix it by copying these commands and executing them in this order. The first command makes a backup of a file and the second one performs a stream edit on the original file.
# cp /etc/udev/rules.
# sed -i -e '/ttyS0.*SYMLINK=
Then you must reboot for this to take effect.
Transmission is a simple bittorrent client that has a web interface. You can run it on the MV2 and access it from anywhere with a browser at the address http://hpmediavault:9091 (assuming your MV2 is named 'hpmediavault'). It's convenient to have the MV2 run a bittorrent client so that when you want to download a large torrent, you don't have to have PC on continuously. Before installing it, you'll need to use the the ipkg instructions on the MV2 hacking page to get ipkg working as explained here. After setting up ipkg, you can just type:
ipkg install transmission
To get it up and running, It is necessary to edit the settings.json file located under this directory:
/.config/transmission-daemon
Specifically, change these two lines to read as follows:
"download-dir": "\/share/1000/Videos",
(On my MV2, "/share/1000/Videos" is a valid directory, yours may be different, check to make sure since that number 1000 can change if you've been adding or removing drives.)
and
"rpc-whitelist": "192.168.*.*,127.0.0.1",
(Unless you add 192.168.*.* it will not allow logins from other computers on the network, it generated a 401 error. This assumes your internal network is on address 192.168.*.*, if not, modify accordingly.)
Then you'll need to set up these environment variables which, for testing purposes, you can do from the command line:
export EVENT_NOEPOLL=1
export TRANSMISSION_WEB_HOME=/opt/share/transmission/web/
/opt/bin/transmission-daemon -f
The -f option will run it with a text output on its status to your SSH window and help you to see if it's working. If it works, then it will just be a matter of putting those commands in a startup file to allow it to run automatically on startup. Otherwise, it will stop running when you log out of the SSH session.
To test it, open a browser and navigate to http://hpmediavault:9091 and see if you get a window. If you do, use a service such as mininova.org to find a valid URL for a torrent and paste it into the URL window to see if it works.
I added the lines to the end of /etc/init.d/rc.bootup that make it check for startup.sh as explained here.
Inside startup.sh put these lines to set the environment variables and launch Transmission during boot up:
export EVENT_NOEPOLL=1
export TRANSMISSION_WEB_HOME=/opt/share/transmission/web/
/opt/bin/transmission-daemon
This web page has had 7134 visits since Sept 22, 2009.