2 X MBWE 500gb
2 X MBWE 500gb
i see sforget lost his drive. I like the shots of what it's supposed to look like. I'm having trouble actually getting it up and running. I get a 403 forbidden error upon finding the page. Any ideas? help. thanks!
I am trying it right now.
I have translated it to spanish, so if you want, I can provide de es.ini file but… How do I to put it here in wikidot or where should I put it?
I am having some problems with the php shell and with the system info utility.
I will recheck the configuration and will post here the problems that I would find.
I have tried to install the new WebIF which i've dowloaded from sourceforge. But I can't get it to work. All I see is a 403-forbidden error.
Does anybody know what the problem could be?
Actually, I am working on this very thing.
My new web interface has all the features of the WD one plus:
More versatile user control (ssh access, smb access, and webif access)
startup/shutdown "Services" management
Defenetly in need of better web if. I'm willing to help as best as I can. I'm a bit time limited but that's my problem. :)
What I want to see in new web if. Everything that is there by default. But it needs to be smaller in memory consumption and preferebly faster in response time. So none of that crappy perl stuff if those can be ripped off.
Adding shares needs to support nfs and shares be named without all capital letters.
Is sforgets work available somewhere? For testing and to get inspiration to new ideas, fixes etc.
i could help you guys two, i have basic php knowlage ;)
willing to test the interface for bugs…
But it shouldnt use Mysql
I am nearly complete.
I haven't included support for NFS yet, but I can add that to the drawing board.
Most of the interface is quite fast, except the Optware page, and the User Control page. This is due to the amount of data that must be collected before the page is constructed
No perl what so ever. The entire WebIF is written in PHP, with some sh scripts to help with the actual config changes.
I should have a beta release ready by the end of the week.
A screenshot of my work so far is available at http://www.trainzhaven.com/new-Webif.jpg (1680x1050 jpeg)
Looking good. I'm waiting eagerly.
Looks like you are using some MS platform so you might not have any use for NFS. Not using NFS just might make testing NFS kind of hard.
I'm sure we'll get that supported.
Have you tested the pages with anything else than IE?
I'm using Fedora 9 and have Firefox, Opera and of course Konqueror installed. So I can test with those browsers.
I might be jumping way ahead, or be late, depends on how you see it, but have you thought about themes? :)
Once everything is working everyone wants nice themes they can change now and then. So it might be less work to think about it right from the start.
Looking at the screenshot you are using a table or frames. It would be easier to make themes when using css to layout the page.
I'm using webmin on my Gentoo machine with StressFree theme and I like it. So wouldn't mind seeing something like that on this web if.
(And to those who will point out: Yes I know webmin uses perl. I have nothing against perl. Just that the WD WebIf perl eats up 38% of the memory of my MBWE.)
Yeah, css and theme's add nice effects and looks, but I know nothing about either.
No I haven't been able to test the IF in anything other than IE yet. I've written other interfaces and web scripts before that have had no problems in other browsers, but testing is a good idea. I was going to fire up my ubuntu disk after I got everything working to run further tests.
I made two css tests for you to use, abuse or ignore. :)
Edit: Link removed. It has served it's purpose.
Unzip and open cssTest.html to your browser.
From cssTest.html change mbwe.css to mbwe2.css and reload.
Those are just quick hacks and someone who actually knows about writing css should do better ones.
Thanks for the tests, howvere those don't quite display right.
On the first one The status bar appears below the rest of the info, rather than to the right side.
ANd teh second one has the menu bar in a stair like pattern across the top.
I'll look into css after I get the basics down and running.
The image did'nt work. probably caus the server is down.. I just wondering if it had bee cool to have an function in the web if that view how many MBWE that using it. "There is xx MBWE online" I was thinkin a cron job thats wget a url to an server whit a scrit thats counting online MBWE and view the number in the Webif.
Was it bad explanation of what i meen? dont see mutch use for it but just for fun. :)
2 X MBWE 500gb
I have finished a preliminary beta.
There are a few instructions and requirements before use…..
1. Make a backup of your current system. I recommend "dd if=/dev/sda1 of=/shares/internal/backup" - requires about 3GB of disk space on the data partition
this backup can be used to restore your current system if you want to get rid of the new WebIF. You do not need to backup teh data partition as that partition is not touched by this guide.
2. You must have optware installed
3. You must have installed the php-fcgi and libiconv packages with all dependencies
4. /etc/sudoers needs to be modified so that "www-data" can run the "/usr/www/nbin/sudo.sh" script
5. Remove all scripts in /etc/init.d except rcS and rcK
6. Download http://www.trainzhaven.com/newwebif.tar.bz2
7. extract the archive to / making sure that the directory structure is maintained
8. open your web browser and go to http://<Your-MyBook-IP>/index.php
The default user is root and the pass is 123456
9. Go to the services page and disable or enable a service to recreate the proper files in /etc/init.d
10. Go to the User Control page and change the password for Root
This guide will overwrite any existing config for the lighttp server and change the lighttp user
All users follow these instructions at their own risk. I cannot take responsibility for any problems.
Great thanks. I'll try to install and test this tonight.
Step 5 sounds like a huge leap of faith. :)
What will happen if I don't do that?
Installed. Looks good.
Just couldn't get myself doing all the remove and replace things.
Things like /usr/www/-directories I just renamed and then copied yours. I kept everything and removed nothing.
I skipped step 5. The effect being there is nothing in Services page.
Didn't notice for example smart-spindown script in your service scripts. I want to use my own scripts.
I sure I had to stop before proceed. I'm a newbie and this is maybe a noob question, but I can't solve it, and It's almost bricked my MBWE. Although it might be off-topic
I actually used the first part of your instructions to backup the system. I had a working transmission+ helper + amule system and wanted to experiment more. I messed up with "web access" and when I tried to restore using dd if=/shares/internal/backup of=/dev/sda1, I ended up with a "read-only filesystem".
Now I can't do anything. No restore from the firmware upgrade (I'm ready to rebuild the working system I had from scratch), or fix the web-access messed installation.
Please, help, s.o.s, …—-…
Why should we remove the scripts in /etc/init.d?
Isnt there a way to keep al the stuff, lighttp.conf….etc.?
I like the idea of the custum webinterface, but not the way it gets installed….
It should be built on the framework which is provided by Western Digital.
Although many things could have been done better, it still provides a common base for all users of the WDHD….
With some minor patches in the lighttpd.conf you can make it to parse /etc/lighttpd/conf.d and add some files there.
That's the way how I implemented virtual hosting.
include_shell "cat /etc/lighttpd/conf.d/*.conf"
Here's an installation example: http://mybookworld.wikidot.com/forum/t-68493/virtual-hosting-quick-and-simple
It's great to modify the web-interface, but just do that….
There are ways to make it work without losing your standard config…
It is a good Idea to develop an additional configuration interface for the Mybook :-)
Just a high level point of view regarding this Web if project…
I think that a good Web if interface should be respectfull of existing things provided by western digital or potential hacks that may have been already done by people.
- Standard interface should continue working with no change
- Is it needed to provide features that are already covered by the standard Western Digital interface?
- The installation procedure does not necessarily needs to describe how to install PHP ( it can be assumed that people will have installed PHP before installing the Web if)
- A good feature would be that the interface is able to handle existing config files ( lighttpd.conf file for example ) instead of replacing them…
- What will be the exact features ( Added value) of this interface?
* reboot the Mybook
Just giving my ideas here, hoping it helps… as i cannot help much in php…
Just my opinions:
Good thing it's not using the perl stuff. Perl not running and eating up memory and the default if is slow. So I'm fine with the new one not using WD framework on this.
After the first point. Yes it need to cover what the default one offers.
I do agree using/installing this should not remove/delete anything. Keep the default stuff in there as a backup.
It should be easy to switch back to using the default if if wanted.
Big yes to handling existing configs.
Being the first alpha version of the interface, the installation is not that hard. It can be modified for better later.
As for the future added value I would say sky is the limit.
For those who have not even installed sshd it will offer nothing. Not that those people would have a way of installing the new if.
Add any configuration to the if, like configuring nfs mount points and doing it without all capital letters. For the future if something is missing from the if, get the codes and make it.
So I'm fine with the new one not using WD framework on this.
That's not what I ment with "framework".
I would hate to explain someone how he should install a script and find out later he has this interface installed.
If I would have installed this interface using the tutorial, all of my modification would be lost and I would have gotten very little in return….
I did mean framework as the perl web framework.
On scripts and configs I do agree. All instructions, mods and hacks use those scripts as they are and the instructions are for those. So no messing with the way boot scripts happen to be. Enabling and disabling services is fine but should be done as it is and making sure nothing gets lost.