Remotely Access and manage your files without MIONET

Note that since 12/10/2008, the web File Manager is no longer maintened and is replaced by http://mybookworld.wikidot.com/accessbook that offer same features and more…

If you do not like MIONET but you needs to access your mybook files from anywhere, you may want to use my Web File Manager.
The file manager allows upload, copy, paste , rename and delete of folders and files. It can also wget some files from a typed url.
One of the great feature is that it can execute some tasks on the Mybook depending on file extensions : unrar, verify par file , etc…

Security is ensured via the authentification and encryption of the Admin Site of the Web Server tutorial(https + Authentification on port 3210).
The interface looks like this :

FileMgr.JPG

There are some limitations :
- Upload cannot be more than 8mb ( due to some bugs of lighttpd)
- Some special, non-graphical characters may prevent some actions to run correctly ( i do not have an exhaustive list…)

Installation Procedure :

- Configure the Web Server tutorial, including the Admin Site ( on port 3210). PHP is not necessary.
http://mybookworld.wikidot.com/web-server .

- Ensure that you are using the v1.1.6 version of WebMgr.pl script ( You may not have this version if you installed WebServer before 17 Oct. 2008.)

    wget http://mybookworld.wikidot.com/local--files/web-server/WebMgr.pl -O /shares/internal/PUBLIC/WWW/Admin/WebMgr.pl

- Copy necessary gif images to the web site :
wget http://mybookworld.wikidot.com/local--files/web-server/cross.gif -O /shares/internal/PUBLIC/WWW/Admin/cross.gif
wget http://mybookworld.wikidot.com/local--files/web-server/copy.gif -O /shares/internal/PUBLIC/WWW/Admin/copy.gif
wget http://mybookworld.wikidot.com/local--files/web-server/cut.gif -O /shares/internal/PUBLIC/WWW/Admin/cut.gif
wget http://mybookworld.wikidot.com/local--files/web-server/rename.gif -O /shares/internal/PUBLIC/WWW/Admin/rename.gif
wget http://mybookworld.wikidot.com/local--files/web-server/execute.jpg -O /shares/internal/PUBLIC/WWW/Admin/execute.jpg

- Open your 3210 port over internet on your internet Router/Firewall, to allow access from your job's office…

- Create a link in your Admin folder using the exact following syntax :

        ln -s /shares /shares/internal/PUBLIC/WWW/Admin/Mybook_HD

Access the Admin interface :

https://<Mybook>:3210

WebAdmin.JPG

Note that v1.1.3 version is displayed in the interface.
The "File Manager" item is now displayed at the end of the menu ( WebMgr.pl script has detected that you have created the link).

"Click File Manager"

Browse your files…
Note that the correct way to remove MIONET is described here : http://mybookworld.wikidot.com/mionet .

NEW! : with version 1.1.3 of WebMgr.pl, the File Manager has a new feature Remotely execute actions, depending on file extensions :

Unrar a rar file
Repair a Par file
Send an avi file to your multimedia box via FTP…
Any other action you want to associate to a specific file extension.

Adding the Unrar Feature to FileManager :
After you install this unrar feature, a green arrow will apear in front of each .rar file.
When you click the Green Arrow, the rar file will be unrared by the Mybook.
You will be able to check the log file..
unrardemo.JPG

Install Unrar using ipkg

/opt/bin/ipkg install unrar
ldconfig

Add the following line to the /internal/PUBLIC/WWW/Admin/FileMgrActions File :
unrar,.rar,cd %ParentFolder%;/opt/bin/unrar e -y -ad %FullPath%

Adding the par file repair feature to FileManager :
After you install this repair feature, a green arrow will apear in front of each .par file.
When you click the Green Arrow, the reparation of the associated PAR archive will be launched on the Mybook
You will be able to check the log file…

install par2cmdline using ipkg :

/opt/bin/ipkg install par2cmdline

Add the following line to the /internal/PUBLIC/WWW/Admin/FileMgrActions File :
repair,.par2,/opt/bin/par2repair %FullPath%

Enable Sending avi files to your multimedia box via FTP directly from the file manager :
After you install this ftp feature, a green arrow will apear in front of each .avi file.
When you click the Green Arrow, the file will be sent to the specified url via ftp.
You will be able to check the log file…

Install wput (ftp client utility) using ipkg

/opt/bin/ipkg install wput

Add the following line to the /internal/PUBLIC/WWW/Admin/FileMgrActions File : (replacing the url with your box's ftp url ! )

FtpToBox,.avi,/opt/bin/wput %FullPath% 'ftp://hd1.freebox.fr/Disque dur/Video/%FileName%'

configure your own custom actions
Simply add a linein the /internal/PUBLIC/WWW/Admin/FileMgrActions File

use the following syntax :

<TitleofAction>,<Extension>,<CommandLine>

TitleOfAction : Any title that will appear in the file manager when moving over the green arrow
Extension : Extension of files that will see this action : for example, ".rar"
CommandLine : the command line you want to execute.
Note that %FullPath% will be replaced by the full path of the selected file in the file manager
%FileName% will be replaced by the file name ( without the path)
If you need to launch several commandline, you can separate these by a ; ( See the .rar example)

a sample FileMgrActions File is available here

I hope that these explanations and the 3 provided examples will allow you to define your own custom actions,
please, send me your usefull custom action, i will add it to the wiki …
TeinturMan.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License