macsat.com OpenWrt and ASUS WL Forum

SMC EZ Connect Storage (SMCWAPS-G), Micronica MGB100 Wi-Fi Hard Disk, Level One WAP-0007 and compatible => Firmware => Topic started by: schufti on January 11, 2008, 11:27:58 AM



Title: MGB111 update
Post by: schufti on January 11, 2008, 11:27:58 AM
Hi,

for the really brave at heart MGB111 owners:

here (http://style-o-design.rivido.de/mgb111/index.html) is an upgrade that should bring your box to the level of the OvisLink/AirLive R400a9_0830 (don't rename, GUI only accepts *.bin). Unfortunately I don't know if the GUI on your box is comatible (usually it should be).

But in the odd case:
if there is no fw available from the vendor of your box, then there is no way back!

and something extra: The attached file might be accepted via the recovery loader and bring the GUI from the above mentioned FW to your box. You know, it's on your risk ...

And for the DIYs, there also are sources, toolchain and howto (german)

schufti


Title: Re: MGB111 update
Post by: SergeBa on January 12, 2008, 10:17:52 AM
This FW already for a long time is on a site from AirLive. I established it on WAP-0008. Bittorent worked not correctly.

I have not understood for what a file u65gui.zip?


Title: Re: MGB111 update
Post by: schufti on January 12, 2008, 21:34:38 PM
Hi,

there are also other vendors, that have different branding and only supply (much) older version of sw and different branding disables cross-update of full branded fw.

So these people need upgrade.bin that is accepted by every brand. And because maybe there was an change in the GUI also, I tried to provide some possibility to flash same version GUI to all brands of MGB111.

schufti


Title: Re: MGB111 update
Post by: SergeBa on January 13, 2008, 13:40:26 PM
And probably to correct it for WAP-0008?


Title: Re: MGB111 update
Post by: schufti on January 13, 2008, 16:03:30 PM
Hi,

AFAIK there is no newer FW than this one. Even the GPLsources show the same AMIT binaries. So no help from here....

What is not functioning on WAP-0008 / this FW Version ?

schufti


Title: Re: MGB111 update
Post by: SergeBa on January 13, 2008, 19:49:37 PM
What is not functioning on WAP-0008 / this FW Version ?


WAP-0008 cannot download the file more than 2GB. ( FW - WAP-0008(R4.00a8)_2007-07-18 )


Title: Re: MGB111 update
Post by: schufti on January 13, 2008, 23:10:01 PM
Hi,

you are sure about the versions? on the webpage of OvisLink it says:

   WMU-6500FS Firmware Version R400a9, Modify the upgrade FW issue form FW(R4.00a8), 2007/08/30
   WMU-6500FS Firmware Version R400A814, Fix download limited 2GB, and Forgot UPnP issue. 2007/08/14
   WMU-6500FS Firmware Version R400a8, Fix IP compatibility problem with 192.168.0.X Subnet 2007/07/11


and this upgrade is from R400A9 source... so the 2GB problem should be solved ....

schufti


Title: Re: MGB111 update
Post by: Kael on January 14, 2008, 11:34:58 AM
Hi all,

@ Schufti:

For the gui file, does i bring the appearance from the Airlive FW? i actually got the Pearl Model, could you explain how do u use this file? tried to upload it from Upgrade Firmware window, it tells the filename isnt right...

Another thing is that we've worked with Stylesuxx and finally, it seems like we've got telnet working on the device... so we will soon be able to correct the Torrent DL bug.. ;o)

It is probably due to some CGI-BIN scripts files... the value that is kept have to be corrected.

We will let u know when it's ready but, right now, pple should be advised that PE4088 and WMU6500Fs are probably slightly different, and that some firmwares could cause their device to crash on firmware update...


Title: Re: MGB111 update
Post by: schufti on January 14, 2008, 12:26:21 PM
For the gui file, does i bring the appearance from the Airlive FW? i actually got the Pearl Model, could you explain how do u use this file? tried to upload it from Upgrade Firmware window, it tells the filename isnt right...

...hm, I did write to use the recovery loader, right? and yes, it could bring the appearance from the OvisLink/AirLive FW or render your box completly dead and useless as a brick...

to be on the safe side of FW tinkering, you should at least have the serial console installed and made a backup of your FLASH image. You can trust me on this - and I speak from experience - when I say that even Jtag is a must.

Another thing is that we've worked with Stylesuxx and finally, it seems like we've got telnet working on the device... so we will soon be able to correct the Torrent DL bug.. ;o)

Stylesuxx allready successfully compiled an upgrade.img from the GPL sources, so as telnetd is allready enabled in BB just ad one line (telnetd &) at the end of "your GPL path"/rom_disk/bak.etc/rc.d/rc.bridge ....

does the torrent DL bug (which, 2GB?) still exist? In the sources it is V0.72, whereas in the latest release Ovis upgd to 0.82 which I also had trouble with. Unfortunately they didn't release the patched source and straight out of the box it will never work with the GUI. For versions from 0.9 you need openssl, too. And without encryption many peers/trackers won't accept your connect.

... that PE4088 and WMU6500Fs are probably slightly different, and that some firmwares could cause their device to crash on firmware update...

have to see to believe ...


but keep up the good spirit. Once there was a job where all experts sayed it can't be done. Then came a man who din't hear the experts before and just did it ;)

schufti


Title: Re: MGB111 update
Post by: Kael on January 14, 2008, 12:47:21 PM
@Schufti

Sorry for my stupid question about the Gui update...  :-\

For the rs232 connection, i've talked with someone that could help a few, i'll soon be trying to get this working, a must to recover the device if it is bricked...

About the telnetd, this was not exactly this, in fact when we've tried to launch the telnetd, there was a problem with an environment path, Stylesuxx just fixed it.

About the torrent problem, i should have give the whole detail, when you try to launch a torrent from the gui, using a linux computer, it simply doesnt work... case the MGB111 seems to keep the full path to the torrent file as the torrent name... strange isnt it?

and so, it finally tries to load the torrent from /mnt/.C/.dl/home/user/Desktop/xxx.torrent instead of /mnt/.C/.dl/



Title: Re: MGB111 update
Post by: schufti on January 14, 2008, 15:43:11 PM
Hi Kael,

the serial doesn't help you much when the box is bricked. It only helps to see what went wrong...  easiest/cheapest way to get a serial cable for mobile phone (I prefer siemens: no longer made -> cheap surplus in store) better real rs232, some usb need strange driver (no linux)

pitfalls in development:
bad flash (destroyed bootloader, - kernel, - recoveryloader),..., kernel oops, fs too big, init killed - kernel panic, etc

all after ... can be solved via recovery-loader IF you have an accepted full fw file.

so the best way ist to:
1) find someone with a box where orig fw (not upgrade file) exists (most likely OvisLink/AirLive)
2) try what has to be done to the header that the recoveryloader accepts your files for most unneeded part (example: u65gui.img)
3) extract FLASH image from pearl box, split in usefull parts (5, see splitamitbin.c from laxan)
4) attach new header from 2) to kernel, romfs, gui, cat together to get new fw for e.g. pearl-box.

Advice: all (incl. kernel) but wireless-tools,bridge-utils and BusyBox have heavily been modified by AMIT to interact with their control-binaries and GUI. So just replacement with newer version will break functionality for sure!

BT:
if it's on the box, it's a gui problem that you won't be able to resolve soon. Noone up to now tried to hack the gui as it is stored in separate filesystem that is not accessible yet.
OTOH, it may only be a browser-problem, did you try different browsers in Linux?

schufti


Title: Re: MGB111 update
Post by: Kael on January 14, 2008, 16:32:41 PM
Again thank you for all these tips...

allready got an rs232 cable, used it to flash some LG phones ;o) just have to to get some cutter..

I was sure that we could bring back to life bricked MGB111... seems like i was wrong... so i'll probably try to enable the cable before critical changes...

Have u got an idea about why some identical devices can get killed with a modded FW and some others not? seems really strange to me...

About the Transmission / Gui problem, would it be possible to modify files with Telnet directly? even if all is stored in the GUI part?

EDIT : I'm so stooopid, tried the torrent thing with Opera... IT WORKS even the source code seems to be correctly seen, thing that was not with firefox...

Another really freaking bug with firefox, is that, when you try to launch some torrent, like said before it cannot work, but the htm frame from the MGB111.. keeps all the torrents names you've uploaded!!! and this aint no joke! i've opened the page on aother computer, cleared the cache, reloaded the page... and all the names are here, just have to look at the right frame sources.. so how could firefox write in an admin page...


Title: Re: MGB111 update
Post by: schufti on January 14, 2008, 23:26:23 PM
Hi kael,

without log from the console, there is only wild guessing about why and how boxes got bricked. They even get bricked when the upload in the webpage gets interupted ....

No, GUI files are directly accessed in flash from AMIT binaries only via amitlib.

This is no bug in Firefox modifying html source, this is the way the download assistent is implemented (at least in MGB100). The torrent files and names are stored in RAM and reflected in html until transfer is started/scheduled, then it is written to .dl/torrent

schufti

P.s.: I sometimes load MGB111 image on my MGB100, so I will check next time about FF/W32


Title: Re: MGB111 update
Post by: Kael on January 16, 2008, 14:10:08 PM
What would u think about an Openwrt on this MGB111? got some links to see if possible and how to do this?
I've also seen some interface to Openwrt are possible...


Title: Re: MGB111 update
Post by: schufti on January 16, 2008, 16:02:25 PM
Hi kael,

What would u think about an Openwrt on this MGB111? got some links to see if possible and how to do this?
I've also seen some interface to Openwrt are possible...

do you think like autobootfs on MGB100? or generic in flash?

schufti


Title: Re: MGB111 update
Post by: Kael on January 16, 2008, 18:00:46 PM
i was thinking about autobootfs, like on MGB100


Title: Re: MGB111 update
Post by: schufti on January 16, 2008, 22:52:18 PM
Hi kael,
i was thinking about autobootfs, like on MGB100
that's not too complicated, will pm some guideline to you and stylesuxx

schufti


Title: Re: MGB111 update
Post by: Kael on January 17, 2008, 08:19:52 AM
Great! thank you again.. have you heard about some interesting interface for openwrt? dunno if it comes with it.
I4ve seen this, and it seems interesting :

http://ajaxian.com/archives/openwrt-gui-ajax-in-your-router (http://ajaxian.com/archives/openwrt-gui-ajax-in-your-router)



Title: Re: MGB111 update
Post by: Kael on February 04, 2008, 22:25:02 PM
I finally got an update for my MGB111!!!

directly from AMIT the R400b2 version, corrects lot of bugs and especially the bt client  with firefox.

This one is provided with an utility to update out of the web interface.

If someone can host, i can provide the file, tested with my PEARL MGB111 PE 4088

May crash with an Airlive device.... be carefull

People should allways know that to update their firmware can cause their devices to stand as useless as a brick, you have been warned, i am not reponsible, this file can be provided as i got it from AMIT, without modifications.


Title: Re: MGB111 update
Post by: schufti on February 05, 2008, 12:10:42 PM
Hi,

you could attach it. Max size is 5MB.

would be nice to see the soures too....

schufti


Title: Re: MGB111 update
Post by: Kael on February 05, 2008, 13:16:03 PM
Here are the files:

http://rapidshare.com/files/90660098/20080121_NetworkStorage_R400b2.zip.html (http://rapidshare.com/files/90660098/20080121_NetworkStorage_R400b2.zip.html)

I'll check with AMIT for the sources


Title: Re: MGB111 update
Post by: SergeBa on February 05, 2008, 20:21:10 PM
It too most or not? http://www.airlive.com/support/WMU-6500FS/20080118_Ovislink_WMU-6500FS_R400b2.BIN


Title: Re: MGB111 update
Post by: Kael on February 05, 2008, 20:24:56 PM
This one does not work on PEARL devices. But this can be the same enhancement... I dont know about Upnp media A/V on the Airlive model


Title: Re: MGB111 update
Post by: SergeBa on February 05, 2008, 20:33:55 PM
With little changes this FW works on L1 WAP-0008, but to me work FW R400a9 more arranges.

And what such PEARL device?


Title: Re: MGB111 update
Post by: Kael on February 05, 2008, 20:38:27 PM
PEARL devices are MGB111 sold by PEARL in France and Germany with the reference PE4088, Airlive ones are working with a slightly different firmware and GUI.

You cannot upgrade PEARL device with Airlive firmware



Title: Re: MGB111 update
Post by: SergeBa on February 05, 2008, 20:47:18 PM
You cannot upgrade PEARL device with Airlive firmware

For WAP-0008 was in FW AirLive five times enough to change OVS_RUS021 on DDC_RUS021.


Title: Re: MGB111 update
Post by: schufti on February 06, 2008, 12:19:10 PM
Hi,

@sergeBa
did you flash modified FW via GUI or recoveryloader?

@Kael
the 1st Attachment (not utility) is not good, all downloads only 0 byte....

schufti


Title: Re: MGB111 update
Post by: Kael on February 06, 2008, 12:42:20 PM
Curious, just re uploaded it... still doesnt work, i'll upload it from another place to see if thats ok... sorry


Title: Re: MGB111 update
Post by: SergeBa on February 06, 2008, 19:07:22 PM
@sergeBa
did you flash modified FW via GUI or recoveryloader?

I have opened AirLive FW by means of the HEX-editor, have found line OVS_RUS021 (it repeats five times) and have replaced it on DDC_RUS021, have written down changes. After that it is possible to load under the instruction:
1. Please power off the device.
2. Push backup and shut down reset button don’t release then power on.
3. Still not release button, then see the usb1,usb2,status/backup, hdd status LED light or not? If it light,
     then release the button.
4. If so, then use the DOS command line also put the new firmware on your computer c:\ folder
     tftp -i 192.168.123.254 put FW.bin (use the new firmware)
5. After done then reboot.

I think as on MGB111 it will work. Only it is necessary to define a line for MGB111.


Title: Re: MGB111 update
Post by: Kael on February 06, 2008, 19:59:16 PM
Got  problem with the firmware file... cannot upload it correctly, from linux or windows...still comes with 0 bytes anyone got an idea?


Title: Re: MGB111 update
Post by: schufti on February 06, 2008, 20:21:33 PM
Hi kael,

maybe a malfunction of the board-sw. Did you try to attach it to the same post as the utility?
maybe it is a "per thread/user" limit ???

schufti


Title: Re: MGB111 update
Post by: Kael on February 06, 2008, 20:25:06 PM
i did try to attach it in the msg where I put it first time...
did try in this post, same issue

it seems like to send it via mail cause the same problem! the code appears directly in the mail body, but no attached file!!!

what the hell is it...


Title: Re: MGB111 update
Post by: schufti on February 06, 2008, 21:47:55 PM
hi kael,
maybe it's not really a zip file (explore with hexedit). Try to (re)pack it as .tgz
schufti


Title: Re: MGB111 update
Post by: Kael on February 07, 2008, 12:57:37 PM
this one is really zip, i've zipped it on windows and on linux... same issue...
never seen this before, i'll try to put it somewhere else online and link it here tonight... sorry


Title: Re: MGB111 update
Post by: buck08 on February 07, 2008, 22:39:22 PM
Hello all,

I am pretty new with the mgb-111 and I did the update as described the pages before.
It works great so far.

But now there is this new Point "UPnP". Does anybody know how to do all the "UPnP AV Media Server settings"   :-\
and could do a little step by step description?
This would be very great.

Thanks in advance.

cheers buck08


Title: Re: MGB111 update
Post by: Kael on February 08, 2008, 20:22:33 PM
Still trying to upoad the file, still does not work, zipped it 2 times...


Title: Re: MGB111 update
Post by: schufti on February 09, 2008, 01:22:53 AM
hi kael,

soo that seems to be a bug in the board-sw, maybe macsat knows?

you can ask stylesuxx to put it on his page? or put it on rapidshare...

schufti

@buck08: maybe you don't know what 'UPnP AV Media Server is'?


Title: Re: MGB111 update
Post by: buck08 on February 10, 2008, 09:45:09 AM
hello schufti,

this might be true, because I have never worked with networkstreaming before.
Could you pls give me a little hint, how to work this "UPnP AV Media Server"? :'(

Cheers

buck08


Title: Re: MGB111 update
Post by: Kael on February 10, 2008, 14:56:37 PM
Ok... did put the full zip file utility + firmware on rapidshare, here is the link...finally...

http://rapidshare.com/files/90660098/20080121_NetworkStorage_R400b2.zip.html

All should be ok now


Title: Re: MGB111 update
Post by: schufti on February 10, 2008, 15:40:26 PM
Hi buck08,

I don't have the MGB111 FW on my dev.HW right now, so I don't exactly know the details of the config page. But generally UPnP AV server scans all your hd for media files and offers them to UPnP media clients (e.g. Windows MediaPlayer). What you mainly can configure is where an when the server scans the hd for media content.

schufti


Title: Re: MGB111 update
Post by: Kael on February 10, 2008, 17:53:53 PM
Upnp on this MGB111, you have to select up to 3 directory to scan and specify type of content, after this you got an option to generate the database, all you need on your other computer is a media player able to scan network to find your uPNP server.


Title: Re: MGB111 update
Post by: ciko on February 11, 2008, 23:35:08 PM
Hi all!

I have installed the firmware that Kael shared with us and succeeded without any problems.

I have noticed a small problem with the new firmware (the original had it as well) and I hope you can help me to debug it. I plan to use the MGB111 as a Network Storage device that is always on. I hoped that the disk would switch off when not in use and so it did but after some minutes the disk starts up again for some seconds and then shuts down again. Can you think of anything that might cause this behaviour or any way I could use to debug this thing?

Is there already a way to update to the latest version of e.g. Samba (the installed seems to be quite buggy)?
Has anyone been able to access a console on a MGB111?

Thanks for any hints or help

best regards

Michael


Title: Re: MGB111 update
Post by: Kael on February 12, 2008, 08:12:04 AM
Good to see you did update your FW ;o)
I've never faced the bug you described, i've sent a mail to AMIT to ask them the FW sources, when we'll got these ones, we can probably try to update the SMB.


Title: Re: MGB111 update
Post by: schufti on February 13, 2008, 12:21:18 PM
Hi,

this can occur if some Windows client has a samba share mounted and does not disconnect automatically. Or did you enable UPnP autosearch?

I don't think that AMIT will adapt a new samba version soon as they just recently upgraded from 2.2.27 to 3.0.14.... (at least for MGB100)

But it would be nice to at least get the patched sources of the btcli 0.82.

btw. the new fw brings another UPnP Database & daemon (amit_avs) too.

schufti


Title: Re: MGB111 update
Post by: stylesuxx on February 13, 2008, 19:19:42 PM
Oh, so here you meet :-)
Good to know.

I wrote an article about unbricking the MGB111, cause some users seem to had Problems with my FW, so far only in german, but englisch will follow, first here => http://stylesuxx.twoday.net/stories/4702831/ than here => http://style-o-design.rivido.de/mgb111/

There are some other great news too, but I leave them to Kael :-P

Chris


Title: Re: MGB111 update
Post by: Kael on February 13, 2008, 19:23:44 PM
I'm here ;o)

AMIT urrently uploads the full sources of the FW on my FTP... huge file about 280 Mb  :o
I'll zip it and see how to put it online for you all to DL ;o)



Title: Re: MGB111 update
Post by: stylesuxx on February 13, 2008, 19:56:51 PM
So, the new Amit bin and Uploader (for Win) can be found here too => http://style-o-design.rivido.de/mgb111/20080121_NetworkStorage_R400b2.zip


Title: Re: MGB111 update
Post by: ciko on February 13, 2008, 21:04:44 PM
this can occur if some Windows client has a samba share mounted and does not disconnect automatically. Or did you enable UPnP autosearch?

Thank's for the hint schufti! Though I can surely tell that no samba client was active at the time of the happening i did not at all think of an automated procedure to update the upnp thing. I have disabled it and hope that the issue is gone now.

It's great that there finally is some source for this thing. Though i think i won't be able to compile my own version I strongly hope that anyone of you will create a telnet-enabled version ;)

Big thanks to all of you for your efforts

greets

Michael


Title: Re: MGB111 update
Post by: Kael on February 13, 2008, 21:44:01 PM
F*** got a problem with my device, SMB seems to refuse to work, cannot access on the network and does not appear in the workgroup... dont understand...


Title: Re: MGB111 update
Post by: Kael on February 14, 2008, 11:26:41 AM
@ ciko :

Telnet enabled has allready been done wih older FW, probably will be too with new one ;o)

Hope my device will work this evening, i'll backup my datas and format the drive... maybe the SMB problem is due to some mess with the directories attributes and rights management... i dont think this is an hardware problem, what do you think about this Schufti?

Soon the device works, i'll check the uploaded source file, if all is ok, we can put it online.

Edit : Files checked, all is ok, i'll see with Stylesuxx to host it and to put a link here. I had to erase all datas on MGB and reset it fully to make it work again, now seems ok.


Title: Re: MGB111 update
Post by: ukez on February 16, 2008, 22:03:22 PM
Hiya i've just bought a MGB111.

So ive got a few questions.

1)Whats the maximum capacity disk it will take?
2)Can anyone point out any major problems that i may encounter with this device?
3)What firmware should i ensure is on it before i start to fill my drive with files?
4)Can the AMIT MGB111 support multiple users logining in at the same time sharing different access rights?
5)Can i upload and download to this drive across a network? or are the uploads only by the USB option?
6)What file type do you recommend i stick to when formating this device? (NTFS, FAT32?) i may at some point use this with linux.
7)Whats this device like for streaming across the wireless option?
8) Is there any particular way i should set this up on my network to get the most benifits from it?
9)Does anyone have any screen shots of the menu?

Id really appreciae any input any of you can post to me regarding the above, many thanks in advance! ;D

Ezra


Title: Re: MGB111 update
Post by: Kael on February 17, 2008, 09:48:28 AM
Hi ukez

About this device, you may encounter problems with download managers, stabilty, bug with firefox and size limitations, to fix all of theses and add functionality, you may update it with the FW described and linked a few posts before, but be sure your MGB111 is a PEARL PE4088 one, or it may not work .

Downloads and Uploads can be done at the same time via network, easily, dont have to use USB.
Users can log at the same time on the network.
The admin interface is easy but take some time to look at all options.
Read carefully the manual...

For your fat / ntfs question... well you dont have to do this, your driver will be totally formatted by the MGB111 as it uses ext3 filesystem, the MGB11 is a linux based device.

For the streaming, with the latest FW provided here, you can use upnp to stream medias accross your network.

I use the MGB111 as a Wireless router / access point, no problems, got many options for security.

As i allways say, Read the manual... especially if you don't know how to use, and how it works...


Title: Re: MGB111 update
Post by: ukez on February 17, 2008, 16:12:26 PM
Kael, many thanks for your input, much appreciated. 

Hey, regarding the PEARL PE4088, is there any way in particular that i can identifiy if my one is compatible with the latest firmware when it arrives?


Title: Re: MGB111 update
Post by: Kael on February 17, 2008, 16:23:47 PM
hmm, you should see if thats an Airlive device or not... on the box or in the webadmin, due to the look and feel of the webpages.


Title: Re: MGB111 update
Post by: ciko on February 19, 2008, 22:32:42 PM
Edit : Files checked, all is ok, i'll see with Stylesuxx to host it and to put a link here. I had to erase all datas on MGB and reset it fully to make it work again, now seems ok.

As you know Kael managed to obtain the SourceCode from Amit.
Here you can find all files provided by him if you are interested to modify your firmware:

http://mgb111.cicogna.at/MGB111/ (http://mgb111.cicogna.at/MGB111/)

Best regards

Michael

Edit: According to Kael the files have to be extracted as root to prevent errors


Title: Re: MGB111 update
Post by: chimbo on February 21, 2008, 16:21:17 PM
Hi,

a modified (hopefully enhanced) bin file for the device can be found here

http://style-o-design.rivido.de/mgb111/upgrade-r400b2.bin

What's new?
autoexec script (on 1st hdd partition or usb) execution à la schufti
printserver function
more busybox options (commandline editing + tab expansion, dmesg, vi, free, ...)
telnet

have fun, chimbo


Title: Re: MGB111 update
Post by: buck08 on February 21, 2008, 20:27:27 PM
@chimbo

Hi chimbo,

what can I do now with the upgrade-r400b2.bin ? ???
Can I just load it up with the webinterface? ???

I'm a little confused because the last FW update was something about 4MB and your update is just
something around 220 KB.  :P

Did someone already try to install this to the mgb-111? :'(

cheers

buck


Title: Re: MGB111 update
Post by: Kael on February 21, 2008, 20:39:06 PM
I've tried the file, seems it does not work for me... the admin page to load it doesnt load anything, or maybe i've got a crash somewhere in my MGB111... the update procedure just give me "cannot load webpage"


Title: Re: MGB111 update
Post by: chimbo on February 22, 2008, 11:34:14 AM

I'm a little confused because the last FW update was something about 4MB and your update is just
something around 220 KB.  :P


Looks like something went wrong with the download. Size should be 3.659.716 bytes. Just try it again and update with web interface.

chimbo


Title: Re: MGB111 update
Post by: chimbo on February 22, 2008, 18:12:48 PM
Hi,

a modified (hopefully enhanced) bin file for the device can be found here

http://style-o-design.rivido.de/mgb111/upgrade-r400b2.bin

What's new?
autoexec script (on 1st hdd partition or usb) execution à la schufti
printserver function
more busybox options (commandline editing + tab expansion, dmesg, vi, free, ...)
telnet

have fun, chimbo


Some people experienced loss of user configuration and user data on disk after installing this firmware. So be carefull and backup your user data and configuration if any before updating.

chimbo


Title: Re: MGB111 update
Post by: chimbo on February 22, 2008, 18:28:33 PM
I've tried the file, seems it does not work for me... the admin page to load it doesnt load anything, or maybe i've got a crash somewhere in my MGB111... the update procedure just give me "cannot load webpage"

Hi Kael,

first check the size of your downloaded bin. Should be 3.659.716 bytes.
Second try it with unmodified http://style-o-design.rivido.de/mgb111/20080121_NetworkStorage_R400b2.zip
If this too doesn't load, you might have a problem with your MGB111.

chimbo


Title: Re: MGB111 update
Post by: Kael on February 22, 2008, 22:34:48 PM
Hi,

@chimbo : Yes i know about the 20080121_NetworkStorage_R400b2.zip, thats me that asked this one to amit ;o)

About the Upgrade procedure, i've also tried different things, like recovery mode with this file, unmodded.
Everything works.

Tried with your mod with recovery procedure, tftp goes on very fast... too fast... and nothing really hapens, your mod isnt loaded...

This is only about the admin "update firmware" page, seems it doesnt want to load anything...

If somebody updated his MGB111 with the same file and has such problem, let me know.
I've send a mail to AMIT to know if they have seen something like that.

Hard to believe this could be some hardware problem... especially because of nature of the problem itself. Thought maybe if the hardware part was broken, this could cause some other problems, and this one came just after i updated the FW with AMIT one.

[EDIT] tried something, just made a backup of my config, and used the "update / restore backup config" and... this works, it seems it doesnt work only with firmware bin files...


Title: Re: MGB111 update
Post by: Kael on February 23, 2008, 10:41:36 AM
OK i'll know this device on heart... lol

I just had to disconnect the hdd, and without it, updates work flawlessly.

@chimbo : could you tell me, just to verify, where i can find the options you added? is it all in telnet terminal?


Title: Re: MGB111 update
Post by: chimbo on February 23, 2008, 18:03:26 PM
@chimbo : could you tell me, just to verify, where i can find the options you added? is it all in telnet terminal?

I'm not shure if I understand your question. Added busybox options can be verified in telnet session. Other options by looking at /etc/mini-lpd and /etc/rc.d/rc.bridge.

chimbo


Title: Re: MGB111 update
Post by: Kael on February 23, 2008, 18:51:10 PM
@ chimbo : now all is ok for me, except the printer, my PSC 1210 doesnt seem to be recognized, can tell me more about how the printserver is implemented?

For ftp public access you can disable it directly with telnet, modifying the vsftpd.conf with telnet access, and restart vsftpd..


Title: Re: MGB111 update
Post by: chimbo on February 24, 2008, 12:12:09 PM
@ chimbo : now all is ok for me, except the printer, my PSC 1210 doesnt seem to be recognized, can tell me more about how the printserver is implemented?

Well, very most of the job has already been done by Amit. All that was left to do is creating the configuration dir /etc/mini-lpd in r/w memory. This is a symlink to /var/config/mini-lpd which is created in /etc/rc.d/rc.bridge. Have a look at the readme in the mini-lpd source dir. The Amit hotplug binary does the rest, that is building the data for mini-lpd and starting it. Unfortunately the amit binary does not recognize all printers which seems to be your problem.
Mini-lpd can be replaced by lpd wich is also handled by Amit. All it needs is adding the lpd binary. Look here

http://www.macsat.com/macsat/compone...g3523/#msg3523

chimbo


Title: Re: MGB111 update
Post by: ciko on February 24, 2008, 12:22:37 PM
Hi chimbo!

Thanks for providing the upgrade binary. As the others I also have problems to get it onto my device. I have tried with and without hdd in place but its always the same thing. In the webinterface I get "unallowable upgrade file" after a few seconds. Flashing via TFTP takes 3 seconds and does not change anything in the flash. The only image I am able to flash is the original amit binary b2.

do you have any idea what I could do?

best regards

Michael


Title: Re: MGB111 update
Post by: chimbo on February 24, 2008, 12:39:29 PM
do you have any idea what I could do?
Hi ciko,
really have no idea. Also no idea why hdd connected or not should have any influence. All I can imagine is that anything went wrong with download. Try it once again and check size.
chimbo


Title: Re: MGB111 update
Post by: ukez on February 29, 2008, 12:57:54 PM
I cant see all of the users ive created under the permission tab in the Access Control options. Can someone do a step by step guide on what i need to do to resolve this please.. ???



Title: Re: MGB111 update
Post by: Kael on February 29, 2008, 13:14:27 PM
@ ukez:

Try this, open the mgb, save your datas on another computer using linux, delete all partitions on your hdd, boot your mgb without hdd inside, and use the recovery flash (procedure in german on the stylesuxx blog : http://stylesuxx.twoday.net/stories/4702831/).

After this, put your blank hdd inside, use the mgb options to create partition and format, and try to use again.
There are not printer options on this device, this aint no printer server, you can use some with the mod thats has been posted in this thread but this may not work with every device.

For the airlive firmware, it will probably give you error msg too, not compatible as far as i know.

good luck


Title: Re: MGB111 update
Post by: ukez on February 29, 2008, 14:33:10 PM
@Kael:

I tried the link that you posted but it doesnt work... worst luck.

Update:  If you can not get through to this link (http://stylesuxx.twoday.net/stories/4702831/) via firefox or internet explorer you may need to access the site via www.altavista.com website translater.  Thats the only way i can access that site, plus you can translate it to any language you prefer, in my case english.

He must have certain IP ranges barred from access for some reason.


Title: Re: MGB111 update
Post by: Kael on February 29, 2008, 14:40:36 PM
The link to stylesuxx blog works for me...

May i ask where did you bought your device? seems some reseller made a mistake...
Or maybe am i wrong, but as far i've seen with original fw, it does not work.


Title: Re: MGB111 update
Post by: Kael on March 01, 2008, 09:50:38 AM
on stylesuxx blog, procedure describes also hoow to recovery flash on windows. Try it.
After flash, verify if all settings are back to factory default and maybe try another hdd in the device.


Title: Re: MGB111 update
Post by: ukez on March 01, 2008, 17:04:47 PM
Ok heres what i did to re-flash it.

1. I switched on my MGB111 device

2. Activated the recovery loader by continously holding down the (Shutdown) & (Backup) switch on the MGB111 (this also defaults the device so to anyone else attempting this ensure your ip address on your pc is set to 192.168.123.xxx range).

3. Once the bottom 4 LED's continously flashed together really fast i opened the command prompt, by typing CMD and pushing the enter key in the run option on the start menu.

4. Once the command prompt was open i typed the following C:\>tftp -i 192.168.123.254 PUT C:\IMAGE.BIN, (C:\ being the location of my firmware file & Image.bin being the name of my file).

5. I then pushed enter and run the upload.

6. Then once the following displayed on my screen (Transfer successful: 3873531 bytes in 61 seconds, 63500 bytes/s) i switched off and on my device and that was the firmware update complete.




Title: Re: MGB111 update
Post by: ukez on March 01, 2008, 17:34:21 PM
Just out of curiousity, what is the largest supported hard drive that this enclosure supports, does any body know please?


Title: Re: MGB111 update
Post by: Kael on March 03, 2008, 13:07:12 PM
hmmm sorry, no idea...is your device configured in Authorization mode?
Could you post some screenshots of the problem just to be sure i understand it well...


Title: Re: MGB111 update
Post by: olifre on March 03, 2008, 19:00:23 PM
Hello,
I'm also a (now quite happy) owner of the MGB 111, as I just flashed the new image from chimbo. Runs quite smoothly ^^.
The bittorrent-problems some might encounter (code on the web-interface) was something I could solve by renaming the torrent file to something shorter (the name simply was too long, as the device saves everything in subfolders of a name similar to the torrent!).
The problem with the users 'anonymous', 'nobody', 'ftp' and 'root' being able to access the ftp-server (well, root with password was led to a folder in the flash, 'anonymous' and 'ftp' could anonymously see the public-folders + USB and 'nobody' finally could see the flash / ramdisk INCLUDING .passwd containing all your passwords) can also be solved quite quickly. As I did not have much time, I just tried out the autoexec-feature (thanks, chimbo!).
Here is my autoexec (placed on 'C' or the 'Public' folder, named autoexec, if you want to be safe, they shoud not be writable for anybody but root [you can do this with chmod, chown and chgrp via telnet, if you want to know more, you may ask]):
Code:
#!/bin/sh
#
killall vsftpd
vsftpd /mnt/C/vsftpd.conf &
Then, you need the files vsftpd.conf and vsftpd.user_list in the same folder, same permissions. vsftpd.conf is the same you may find in the Flash, just changed 'anonymous_enable=NO' in the first line and added three lines:
Code:
userlist_file=/mnt/C/vsftpd.user_list
userlist_enable=YES
userlist_deny=YES
This loads the userlist I will show you in a few seconds and DENIES ftp-access to all users in this list.
Here is my vsftpd.user_list:
Code:
root
ftp
nobody
anonymous
Note that anonymous might be superfluous here, but why not add this one?
Maybe chimbo can add these to a new .BIN, would make things much simpler for many people...

So, finally my question :P...
Has anybody already managed to boot another system or to compile for / on the machine other programs? As chimbo added vi and some other handy tools, this must be possible somehow. As I am not that deep into programming C and compiling with Linux (well, I compiled some things already, even a kernel once, but it's something different without a manual at hand), I wonder how this might be done. Another board focussing on another MGB-device (the 2.5'' one) already managed to use chroot to boot Ubuntu or some less-extensive distributions (ones that are focussed on embedded devices). I am especially interested in a small (not fast, just as a kind of backup) server featuring simple CRON-jobs, maybe even Apache, PHP oder MySQL. A LaTeX-compiler might also be an option, or SSH-access (sshfs is much easier to use when in Linux...).
I'm not sure how much this thing can take with its 40 MHz, but with enough swap space and time, some things should 'theoretically' work.
Hope to hear from you soon,
OliFre

EDIT: Those who had problems with the download of chimbo's .BIN... I had too small files, too, with a DownloadManager, everything was perfect immediately.


Title: Re: MGB111 update
Post by: Kael on March 03, 2008, 21:08:52 PM
Great! i allready made th custom conf files (even smb to delete he public directory...) but had problems to load these ones via autoexec ;o) now i just wonder why i didnt thought about this way to do it...

There might be some guys trying to get openwrt running on the device... think that Kamikaze could do the thing.

Amit will release a new firmware with some fix for the nobody problem... i'll tell them to take a look at this thread ^^


Title: Re: MGB111 update
Post by: olifre on March 03, 2008, 23:33:03 PM
Wonderful that things are still developing. There is also a problem deleting download-jobs, might be a simple array-index-error in the webgui (it deletes job 1 and 2 instead of 0 and 1).
I was thinking about something like this:
http://wl500g.info/showthread.php?t=9513&page=46 (http://wl500g.info/showthread.php?t=9513&page=46)
Schufti has been quite active there, and I wonder whether similar things are possible with the MGB 111.
I wonder how binaries can be compiled for this thing ^^.


Title: Re: MGB111 update
Post by: ukez on March 05, 2008, 07:09:29 AM
Kael, did you get my email last night?


Title: Re: MGB111 update
Post by: chimbo on March 05, 2008, 11:27:09 AM
I wonder how binaries can be compiled for this thing ^^.

Hi,
all you need to compile stuff for this device can be found here

http://mgb111.cicogna.at/MGB111/

and here

http://stylesuxx.twoday.net

http://stylesuxx.twoday.net/month?date=200711

chimbo


Title: Re: MGB111 update
Post by: Kael on March 05, 2008, 13:35:51 PM
There might some reallllly good news next days...
Amit just send me a message and this should be possible to send me some sources for binary AMIT files (for example initrd.bin and many others)... If we can get these ones... well we can customize a lot more this device... and maybe open a project especially about this one.

The only thing would be to send them mods, and free to them to put it in the official release or not ;o)

I'll let you all know wen i'll have final answer from AMIT.

I allready received the initrd.bin file beta state, this one slightly improves security.


Title: Re: MGB111 update
Post by: schufti on March 05, 2008, 17:04:24 PM
hmmm, interesting....

I sent them some comments about errors in their system (error in kernel sources, wrong mount option, failure to create directory for mini-lpd) and had only one question about a minor building issue (capacity not shown in device page) but didn't get any response.

What is the magical incantation to get an answer from lily?

schufti


Title: Re: MGB111 update
Post by: Kael on March 05, 2008, 21:50:41 PM
No magical incantation here ;o)
In fact i must admit that my contact isnt Lily... and here i must tell also that i work as a computer reseller... ;o) maybe thats easy from my position to stay in touch with them.


Title: Re: MGB111 update
Post by: olifre on March 06, 2008, 00:24:27 AM
Ah, thanks for the links, chimbo. Just downloading everything, will test the next days.
Maybe we can collect some useful binaries here that can simply be copied on the HDD and then started via autoexec...
Some things like dropbear, OpenVPN or so...
I'm currently out of time to try out more, but in a week or so, I'll have a look at it again.


Title: Re: MGB111 update
Post by: chimbo on March 07, 2008, 23:47:12 PM

Maybe chimbo can add these to a new .BIN, would make things much simpler for many people...

EDIT: Those who had problems with the download of chimbo's .BIN... I had too small files, too, with a DownloadManager, everything was perfect immediately.

Finally someone who managed to install this image!
I made a new image which takes care of olifred's sugestions. It can be downloaded from here

http://rapidshare.com/files/97785014/upgrade_b2_080307.bin.html

Size of downloaded file MUST be 3.680.179 Bytes. Please check BEFORE flashing.

Config files for vsftpd are moved to /var/config, where they can be changed by the user to meet his personal preferences. 'vsftpd.user_list' can be modified by means of 'autoexec', vsftpd.conf and 'vsftpd.user_list' later by 'vi' or whatever. No need to kill and restart vsftpd for the changes to become active.
For those who want to know what has been changed in the amit sources there is a tar file here

http://rapidshare.com/files/97786417/MGB111_GPL_B2_080307.tar.html

By the way, I did not succeed in using olifred's autoexec file. The reason seems to be, autoexec is executed before vsftpd is started for the 1st time.

Chimbo


Title: Re: MGB111 update
Post by: Kael on March 08, 2008, 00:03:39 AM
@ chimbo : Great, may i ask where did you get these amit sources? as said i'll manage to get some too... i didnt put online the initrd.bin file i got from amit to correct some vsftpd bug, the solution provided here is really better and lot more secure.


Title: Re: MGB111 update
Post by: olifre on March 08, 2008, 00:07:28 AM
Wonderful, thanks a lot, chimbo!

With me, the autoexec works perfectly. However, when you add or remove users in the webinterface while the NAS is running, vsftpd is restarted and reuses the old config-file. This problem should be solved with the new image, however. I will try it out in a few days (after the 11th, there will be much more time to join some testing ^^).

Thanks for all your work!
OliFre


Title: Re: MGB111 update
Post by: chimbo on March 08, 2008, 13:36:59 PM
@ chimbo : Great, may i ask where did you get these amit sources?

I simply modified amit's ed binary with hexeditor


Title: Re: MGB111 update
Post by: Kael on March 08, 2008, 14:05:48 PM
ho i see, i wish i knew how to do this... ;o)


Title: Re: MGB111 update
Post by: ukez on March 08, 2008, 18:54:57 PM
ho i see, i wish i knew how to do this... ;o)

Hey kael, thanks for logging into my device for me the othe day...

Should i be uploading this new firmware now?


upgrade_b2_080307.bin.html  ???


Title: Re: MGB111 update
Post by: Kael on March 08, 2008, 19:33:31 PM
;o) yes you could update but be sure you know what you do and how to configure vsftpd.

@chimbo : about the problem when vsftpd restarts, is it possible to mod the FW to replace vsftpd.conf with a symlink to the new vsftpd.conf with enhanced security? This may solve the problem when it restarts and use the bad vsftpd.conf


Title: Re: MGB111 update
Post by: chimbo on March 09, 2008, 11:01:16 AM
@chimbo : about the problem when vsftpd restarts, is it possible to mod the FW to replace vsftpd.conf with a symlink to the new vsftpd.conf with enhanced security? This may solve the problem when it restarts and use the bad vsftpd.conf

This has already been done. /etc/vsftpd.conf is a symlink to /var/config/vsftpd.conf

chimbo


Title: Re: MGB111 update
Post by: stylesuxx on March 10, 2008, 20:01:07 PM
Hello :-D

Always nice to see something happening.

Thanks to olifre for the solution, and chimbo for the bin.

And here the link =>

http://style-o-design.rivido.de/mgb111/upgrade_b2_080307.bin

And on my Blog => http://stylesuxx.twoday.net/stories/4774854/


Title: Re: MGB111 update
Post by: ciko on March 12, 2008, 00:34:06 AM
Hi All!

I did some investigations on the horribly long boot time of my MGB111 and found several chown and chmod processes
eg: chmod -R 775 /tmp/mnt/Private/mp3s
After killing those the boot continued normally and very fast. Can you imagine any special reason for those (considering the fact that i never remove my disk from the device). Do you have an idea how to speed up or prevent that thing? I think it's part of the amit_reset program that is executed in rc.bridge

greets

Michael


Title: Re: MGB111 update
Post by: schufti on March 12, 2008, 16:13:29 PM
Hi,

no, it is due to
  'amit_disk_mode'
which is called in
  'hotplug.sh'
that is started by
  'hotplug boot &'
in
  'rc.bridge'

schufti


Title: Re: MGB111 update
Post by: wojo2000 on March 12, 2008, 21:12:25 PM
Hi,

I read this topic carefully and I am very happy that someone is trying modify orginal firmware and it's works :)
but I would like to ask You about something else:
Do You know possibility to multi-download via http ?
I have a lot of links via http and it's hard to add it one by one so maybe you know some trick how to add it all together? maybe I can edit some file?
second problem is that my http links looks like this one:
http://username:passwd@link.com
and my ovislik don't recognize it :(, first it cut off http:// and next it can;t recognize
username:passwd@link.com

Thank You for Your Help


Title: Re: MGB111 update
Post by: ToMikaa on March 18, 2008, 10:01:20 AM
Hi!

Can you tell me how can I start telnetd on another port on my MGB111? Because my ISP blocks port 23 and I want to use telnet remotely!

Thanks!

P.S.: sorry for my English!


Title: Re: MGB111 update
Post by: chimbo on March 20, 2008, 12:01:11 PM
Can you tell me how can I start telnetd on another port on my MGB111? Because my ISP blocks port 23 and I want to use telnet remotely!

hi ToMikaa

Try this autoexec script:

Code:
#!/bin/ash
telnetd -p 24 &
exit

Replace "24" by whatever port number you want to use.

btw. what's wrong with your english?

chimbo


Title: Re: MGB111 (hard drive constantly spinning)
Post by: ukez on March 21, 2008, 11:25:46 AM
I was just wondering if their was any particular reason why my hard drive doesnt slow down or stop when it isnt in use.  Shouldnt it go into standby mode or something until its accessed via the network.

Its constantly spinning and and my mgb111 housing is running fairly warm, a bit warmer than id like it to. 

Any Ideas?  Im using the latest firmware off here at the moment.. upgrade_b2_080307.bin

Thanks....  :)


Title: Re: MGB111 update
Post by: chimbo on March 21, 2008, 15:16:09 PM
There is a new slightly modified image at

   http://rapidshare.com/files/101234112/mgb111_b2_080321.bin.html

Size is 3680193 Bytes.Please check BEFORE flashing!

Anonymous ftp is now allowed as in original fw, but "nobody" and "root" are denied. Ftp logging is enabled again.
Those who don't want anonymous access may use an autoexec script like this

Code:
#!/bin/ash
cat > /etc/vsftpd.user_list << EOF
nobody
root
ftp
anonymous
EOF
exit

Don't forget to

chmod 700 /mnt/C/autoexec
chown root /mnt/C/autoexec
chgrp root /mnt/C/autoexec

via telnet

chimbo


Title: Re: MGB111 update
Post by: ukez on March 21, 2008, 18:03:44 PM
Chimbo you seem to know allot about this drive..

Question, i know i tunes can see this drive as its a itunes server..  Would it be possible to make the xbox360 see it across the network?

Its probably impossible, but i thought id ask..... that would be cool if it could.

could this device support DLNA?

also Chimbo.. Why cant the mgb111 ftp be accessed via internet explorer?


Title: Re: MGB111 update
Post by: chimbo on March 21, 2008, 22:46:44 PM
Question, i know i tunes can see this drive as its a itunes server..  Would it be possible to make the xbox360 see it across the network?

Its probably impossible, but i thought id ask..... that would be cool if it could.

could this device support DLNA?

also Chimbo.. Why cant the mgb111 ftp be accessed via internet explorer?
excuse me, I don't know anything about xbox360, but I can't imagine why it shouldn't be able to communicate over standardized paths. DLNA??? I first have to google for it to say anything. But access via IE ore firefox: no problem! At least if you use last img with anonymous access.

chimbo


Title: Re: MGB111 update
Post by: ukez on March 22, 2008, 13:50:11 PM
ref: internet explorer and firefox.. i'll update to the latest image now..  thanks


Title: Re: MGB111 update
Post by: ToMikaa on March 22, 2008, 21:16:36 PM
Can you tell me how can I start telnetd on another port on my MGB111? Because my ISP blocks port 23 and I want to use telnet remotely!

hi ToMikaa

Try this autoexec script:

Code:
#!/bin/ash
telnetd -p 24 &
exit

Replace "24" by whatever port number you want to use.

btw. what's wrong with your english?

chimbo


Thank you for the solution! It worked! I have tried many ways like telnetd 8003 but i have totally forgotten -p switch. But it's logical! :D

ToMikaa

P.S.: I haven't used my english for a long time so i'm on a level of a beginner now. :/
P.S.2.: Thank you for the new firmware!


Title: Re: MGB111 update
Post by: ToMikaa on March 23, 2008, 17:46:14 PM
Hi!

Another question. How can i control the bittorrent client through console? I mean starting, stopping, deleting and pausing torrents (like the web interface does).

And a problem: if i select a job on the Download Assist's job list and click on pause or delete, it deletes/pauses all jobs or random selected jobs and don't care about my selection. Sometimes selecting one job causes to delete all of the jobs in the list. (In addition there are few horrible grammar issues, like "Please waiting for formatting...".  :-\)
I have read about that the web interface is coded to the amit_httpd. Is there any way to fix this annoying issue?

Thank you!

ToMikaa


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 13:40:51 PM
Firmware to testing (working in airlive wmu-6500fs)
http://mgb111.pradnik.net/mgb111-update-400b2.c005.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c005.tar)
including httpd, cron, vi, sysctl ant many others. including busybox commands great to scripting (awk, sed, tr, etc..).
vsftpd including chroot, user_list etc...
changed identity wget->firefox, transmission->azureus
system folders on hdd:

/mnt/C/sys/ -> Sys dir (example):
-----------
sys/bin:
helloworld

sys/etc:
crontabs/
rc-local   <- "autoexec"
smb.conf
tmp.crontabs/

sys/www:
index.html

changed PATH (+ /mnt/C/sys/bin and /mnt/USB/USB_C/sys/bin)
+ link /usr/sbin -> /mnt/C/sys/sbin

Default dirs for user config (to cron, httpd, sysctl, etc...): /mnt/C/sys/etc/

and others (-;

Polish site:
http://mgb111.pradnik.net/ (http://mgb111.pradnik.net/)


Hack to torrent limits - web configuration: http://mgb111.pradnik.net/wwwconfig.zip (http://mgb111.pradnik.net/wwwconfig.zip)
change in html source IP.URZADZENIA to ip of your box.
use after log in.

 


Title: Re: MGB111 update
Post by: chimbo on March 24, 2008, 18:39:34 PM
Firmware to testing (working in airlive wmu-6500fs)

Hi Slawek,

just tried out your image. Very impressive!
How do you configure vsftpd? Seems that /etc/vsftpd.conf doesn't do the job.

chimbo


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 21:01:45 PM
vsftpd.conf and vsftpd.user_list -> /var/config/      (/etc/ links only)
to comatibility with webinterface

oher vsftpd user config (vsftpd.banned_emails, vsftpd.chroot_list, vsftpd.email_passwords): /mnt/C/sys/etc/

http://mgb111.pradnik.net/dodatki/ (http://mgb111.pradnik.net/dodatki/) compiled extra binaries
/new wget, wput, full new busybox, inadyn dyn-dns client, lighttpd, and elinks (-; /


Title: Re: MGB111 update
Post by: ToMikaa on March 24, 2008, 21:23:35 PM
@Slawek: Thank you for the fw! It's very cool! ;) But I have a question: what version of Transmission is included in the firmware? Because I can't check it since it identifies itself as Azureus 3.0.4.2.

And still there is the web interface issue. Any ideas?

ToMikaa


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 21:32:57 PM
This is original transmission, included on/in 4.00b2 firmware.
Only ident/peerid/user-agent was changed. unfortunately not all trackers are stupid (-;


Title: Re: MGB111 update
Post by: ToMikaa on March 24, 2008, 21:42:52 PM
And how can I replace the original busybox with the full version and hack the web interface?


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 21:57:16 PM
don't replace (is big and not compatible to the system), us change name, e.g busybox2 on /mnt/C/sys/bin/ (in $PATH). make links command->busybox2 if you wish.

Webinterface is not readable (or something) at this time )-:
(if you are asking about torrent config hack, use wwwconfig.zip (link bottom)
change in html source IP.URZADZENIA to ip of your box.
use after log in. and change limits.)


Title: Re: MGB111 update
Post by: ToMikaa on March 24, 2008, 22:00:42 PM
I asked because I saw a screenshot of a modified web interface on your website. Thanks!

**

And a final question. ;) It's possible to include a newer version of Transmission client to the firmware that supports protocol encryption? (>= 0.90)


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 22:35:27 PM
modified interface is veeery pre pre pre alpha (-; now it is changed login page and pictures, but not working ok.

transmission in firmware is very small, edged (?) to the webif and system.
I am working now above the compilation rtorrent/ctorrent, to the console.
any version of the transmission is blocked (if tracker block this soft)


Title: Re: MGB111 update
Post by: ToMikaa on March 24, 2008, 22:38:41 PM
rtorrent is fine, too. I'm waiting for your new web interface! ;) The current one is s*cks!


Title: Re: MGB111 update
Post by: Slawek on March 24, 2008, 22:58:08 PM
I think that earlier I will do the new interface in userland, on other httpd (-;


Title: Re: MGB111 update
Post by: ToMikaa on March 24, 2008, 23:10:44 PM
It's a good idea if you can use scripts with httpd. Without them it's impossible to control the device, I think.


Title: Re: MGB111 update
Post by: chimbo on March 25, 2008, 00:53:20 AM
Did you already try to implement NFS? There are many people who yearn for this. When I enable kernel support for NFS, I get an image that is rejected with "Unallowable ..." error. Probably because the kernel surpasses a limited size.

chimbo


Title: Re: MGB111 update
Post by: ToMikaa on March 25, 2008, 11:39:31 AM
Hi!

Another question to Slawek: could you compile sshd? It's better than telnet because I usually use unencrypted wireless connection in school and one of my friend's habit is stoling TCP packets and I don't want to let him know my password to the server. ;)


Title: Re: MGB111 update
Post by: Slawek on March 25, 2008, 13:54:49 PM
ssh + sshd http://mgb111.pradnik.net/dodatki/ (http://mgb111.pradnik.net/dodatki/) file "dropbear"
you must make new devices (mknod) in /mnt/C/sys/dev/ to the sshd and ssh.
default config path in dropbear help


Title: Re: MGB111 update
Post by: ToMikaa on March 25, 2008, 17:17:31 PM
Can you write down the instructions how to use dropbear?  :-\ I have tried dropbearkey util to generate key file but it failed with an error: "Exited: couldn't open random device".


Title: Re: MGB111 update
Post by: Slawek on March 25, 2008, 19:50:10 PM
you must make new devices (mknod) in /mnt/C/sys/dev/ <---- (-;

if software cause error "couldn't open XXX device" then make this (:
google "mknod XXX" e.g

mknod -m 777 /mnt/C/sys/dev/random c 1 8
mknod -m 777 /mnt/C/sys/dev/urandom c 1 9

etc...

this example is enough to use ssh client


Title: Re: MGB111 update
Post by: ToMikaa on March 25, 2008, 23:07:35 PM
Thank you Slawek!

I have followed your instructions and created the two keys needed by dropbear. But I can't connect to the SSH server because my SSH client (PuTTY) shows an error (Incoming packet was garbled on decryption) and fails to connect. What is the problem?

ToMikaa


Title: Re: MGB111 update
Post by: Slawek on March 26, 2008, 07:34:08 AM
I will check it.


Title: Re: MGB111 update
Post by: Slawek on March 26, 2008, 10:08:58 AM
Ok, new different version of dropbear, tested and workin (-;
http://mgb111.pradnik.net/dodatki/dropbear-ssh-sshd-050.3.tgz (http://mgb111.pradnik.net/dodatki/dropbear-ssh-sshd-050.3.tgz)

now is a multiaplication (e.g busybox)

binary: dropbearmulti
and links:
dbclient ssh dropbearconvert  dropbearkey scp  dropbear

no more needed /mnt/C/sys/dev/
no DSS keys, only root login


Title: Re: MGB111 update
Post by: ToMikaa on March 26, 2008, 14:31:04 PM
Thanks JKR! SSH is working fine! :)


Title: Re: MGB111 update
Post by: Slawek on March 26, 2008, 15:07:34 PM
http://mgb111.pradnik.net/dodatki/ctorrent-dnh32-TEST-2.tgz (http://mgb111.pradnik.net/dodatki/ctorrent-dnh32-TEST-2.tgz) cTorrent for testing.
and http://mgb111.pradnik.net/dodatki/e3-text-editor-271.tgz (http://mgb111.pradnik.net/dodatki/e3-text-editor-271.tgz) text editor


Title: Re: MGB111 update
Post by: ToMikaa on March 27, 2008, 08:37:23 AM
Thank you JKR! They are working fine! :)

It would be possible to compile a Midnight Commander and mcedit? It would be fine if I could use a file manager. ;)

Edit: JKR, can you inform me about changes in the newest (006) firmware?


Title: Re: MGB111 update
Post by: Slawek on March 27, 2008, 21:06:11 PM
Fixed shell $PATH for ssh logins.
added /etc/shells for future use.
nothing more (-:


Title: Re: MGB111 update
Post by: Slawek on March 29, 2008, 15:02:28 PM
Did you already try to implement NFS? There are many people who yearn for this. When I enable kernel support for NFS, I get an image that is rejected with "Unallowable ..." error. Probably because the kernel surpasses a limited size.

mgb111-update-400b2.c006n01.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c006n01.tar)
+ NFS_FS, NFSv3
+ NFSD, NFSDv3, NFSD_TCP
- DOS, FAT, NTFS

no software for nfs in firmware (maybe somebody else could try to compile nfs-utils and make some tests)

firmware working.


Title: Re: MGB111 update
Post by: Slawek on March 30, 2008, 19:23:55 PM
Now "advanced" firmware, version C006-M.
http://mgb111.pradnik.net/mgb111-update-400b2.c006m.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c006m.tar)

This is C006 + changes (in kernel only)

Added:

ADVANCED ROUTER
MULTIPLE ROUTING TABLES
ROUTE NAT
SCHEDULING ->
         CBQ (module)
         HTB (module)
         SFQ (module)
NFS FS
NFS V3
NFSD
NFSD V3
NFSD TCP

USB DEBUG
USB NET [USB to USB cable]
USB LCD (module)

ISO9660 FS [CD/DVD]
JOLIET EXTENSION

-------------------

Deleted:

USB SCANNER
NLS ->
   CODEPAGE ->
            936
            950
            932
            949
            874
            ISO8859-6
            ISO8859-7


Title: Re: MGB111 update
Post by: ToMikaa on March 31, 2008, 17:38:26 PM
Hi!

Thank you JKR for the new FW and the tools! I have read you have added USB LCD module, so this FW can handle an LCD screen if it has USB interface? (like Crystalfontz LCD) And what LCD software could be used with this system? Lcd4linux?

ToMikaa


Title: Re: MGB111 update
Post by: Slawek on March 31, 2008, 19:45:45 PM
This driver supports the  HD44780 interface module (https://ssl.bulix.org/projects/lcd4linux/wiki/USBLCD)
added for the test, maybe he will be useful someone / sorry for my english (;.
If not, I will remove.

PS: ATA CD support will be removed in the future (not supported by onboard controller)



Title: Re: MGB111 update
Post by: ToMikaa on March 31, 2008, 20:29:11 PM
Please don't remove the LCD module! ;) It's very useful for me. I'm addicted to LCD screens. :D I have a HD44780 20x4 LCD connected to my PC and I would like to have another one to the AirLive server. If I can get or make a USB to LCD converter, I will make a screen for the server.


Title: Re: MGB111 update
Post by: Slawek on March 31, 2008, 20:49:04 PM
ok, if something missing in rom (maybe in /dev/) write  me.


Title: Re: MGB111 update
Post by: chimbo on March 31, 2008, 22:40:17 PM
Now "advanced" firmware, version C006-M.
http://mgb111.pradnik.net/mgb111-update-400b2.c006m.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c006m.tar)

Hi JKR,
thank you for building this kernel and for readding fat and nfs. Could you please be so kind to make /etc/exports a symlink pointing to a location somewhere in r/w fs e.g. /var/config/exports. Maybe then I can do some tests, although I've never been using nfs before. If you need an example of how to build a system using nfs-utils then have a look at schufti's sources for the mgb100. All needed binaries are already included.
chimbo


Title: Re: MGB111 update
Post by: Hero on April 01, 2008, 05:56:35 AM
Hello,

I've got a device named Levelone WAP-0008. Reflashed it with Airlive a9 firmware to fix 2 Gb bug, now it's look like AirLive WMU-6500FS. How can I reflash it with mgb111-update-400b2.c006m.tar? Will it work through recovery loader? Did anybody try to test it with WAP-0008? What are your recomendations?

Also I've got a strange thing with restarting of torrent download. I pause from seeding any downloaded file, after that I resume it and it starts to check the file that takes about 20 minutes for 1,4Gb file. The same situation happens with all torrent downloads when I switch the box off and start it again. Is this normal or not? Is it possible to fix it?

Thank you!


Title: Re: MGB111 update
Post by: Slawek on April 01, 2008, 11:14:29 AM
Hi JKR,
thank you for building this kernel and for readding fat and nfs. Could you please be so kind to make /etc/exports a symlink pointing to a location somewhere in r/w fs e.g. /var/config/exports.

If you need an example of how to build a system using nfs-utils then have a look at schufti's sources for the mgb100.

thx (-:
new version http://mgb111.pradnik.net/mgb111-update-400b2.c006m3.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c006m3.tar)
added link /etc/exports to /mnt/C/sys/etc/exports
and /etc/rc.nfsd init script for nfs (no auto start, if you want use rc-local)
for nfs must download this http://mgb111.pradnik.net/dodatki/nfs-utils.tar (http://mgb111.pradnik.net/dodatki/nfs-utils.tar)

Code:
$ more /etc/exports
/tmp/mnt/C/test 10.168.1.190(rw,async,no_root_squash,no_wdelay,insecure)

$ /etc/rc.nfsd start

$ showmount -a
All mount points on gatefs:
jkr.gate.lan:/tmp/mnt/C/test

$ more /var/lib/nfs/etab

/tmp/mnt/C/test jkr.gate.lan(rw,async,no_wdelay,hide,nocrossmnt,insecure,no_root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2)

$ more /var/lib/nfs/rmtab
jkr.gate.lan:/tmp/mnt/C/test:0x00000003

tested & work.


Title: Re: MGB111 update
Post by: Slawek on April 01, 2008, 12:28:48 PM
I've got a device named Levelone WAP-0008. Reflashed it with Airlive a9 firmware to fix 2 Gb bug, now it's look like AirLive WMU-6500FS. How can I reflash it with mgb111-update-400b2.c006m.tar? Will it work through recovery loader? Did anybody try to test it with WAP-0008? What are your recomendations?

i tested my updates only on airlive 4.00b2 firmware and only via webinterface.


Title: Re: MGB111 update
Post by: Hero on April 01, 2008, 13:09:33 PM
i tested my updates only on airlive 4.00b2 firmware and only via webinterface.

Thank you. I'm going to try to load b2 firmware on my WAP-0008 and after that will try your updates. Will I be able to return to a9 if something will be wrong?


Title: Re: MGB111 update
Post by: Slawek on April 01, 2008, 13:35:37 PM
return to a9 is possible in recovery mode


Title: Re: MGB111 update
Post by: chimbo on April 02, 2008, 04:38:34 AM
new version http://mgb111.pradnik.net/mgb111-update-400b2.c006m3.tar (http://mgb111.pradnik.net/mgb111-update-400b2.c006m3.tar)
added link /etc/exports to /mnt/C/sys/etc/exports
and /etc/rc.nfsd init script for nfs (no auto start, if you want use rc-local)
for nfs must download this http://mgb111.pradnik.net/dodatki/nfs-utils.tar (http://mgb111.pradnik.net/dodatki/nfs-utils.tar)

tested & work.

You are really a fast one. Thank you very much

chimbo


Title: Re: MGB111 update
Post by: Aqualung on April 03, 2008, 11:54:12 AM
return to a9 is possible in recovery mode

What's "recovery mode"? How do you put the WMU-6500FS in recovery mode please? I just tried and it looks like I cannot flash my device via the Web UI anymore! Dunno what could've happened. It's this damn' b2 firmware that's wreaking havoc...


Title: Re: MGB111 update
Post by: Slawek on April 04, 2008, 06:25:10 AM
Recovery (http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,690.msg3962/#msg3962) mode.
next time try to use search option (;


Title: Re: MGB111 update
Post by: Aqualung on April 04, 2008, 13:40:52 PM
Recovery (http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,690.msg3962/#msg3962) mode.
next time try to use search option (;

Thanks, but that doesn't work for me. I never get the 4 bottom LEDs blinking continously. I am starting to suspect that my device is really damaged. Or could it be that the HDD is failing (after so much BT-ing)? I also realized, among others, that I can no longer shutdown the WMU-6500FS by pressing the "Shutdown" button. I seem to recall that that used to work.

Suggestions? (Change the HDD and start fresh? Reformat existing HDD?)

P.S. Thanks for translating your website in English. Much appreciated ... though I could use more explanations on some of the issues there, like, e.g., what is the WebUI torrent config - hack supposed to achieve? (Or should I do a search on this one too?  ;D)


Title: Re: MGB111 update
Post by: Slawek on April 04, 2008, 14:39:17 PM
disconnect the hard drive, press both buttons at  turned off box. next (holding buttons)  press power on - and still hold buttons.

torrent hack: for changing torrent job limit >10 and other limits.


Title: Re: MGB111 update
Post by: Slawek on April 04, 2008, 17:14:36 PM
You are really a fast one. Thank you very much
chimbo

Today new releases (;
added iptables support - M4 with basic options (allow/deny, etc..) and M5 with full NAT/redirect.


Title: Re: MGB111 update
Post by: Aqualung on April 04, 2008, 17:53:05 PM
i don't remember if box use dhcp in recovery. try connect to the box with direct link(?)

Alright, I'll just change the damn' router settings, and change them back once done.

Thanks


Title: Re: MGB111 update
Post by: deshwasi on April 04, 2008, 21:44:27 PM
does this also work on the SMCWAPS-G? i scanned thru the wiki and this thread but didnt see any conclusive statement about this firmware being applicable to ALL compatible devices.


Title: Re: MGB111 update
Post by: Aqualung on April 05, 2008, 00:43:44 AM
Today new releases (;
added iptables support - M4 with basic options (allow/deny, etc..) and M5 with full NAT/redirect.

Flashed/installed the M5 version. Funny thing is that my WebUI login screen shows the old R4.00a9 0830 version, and looks pretty much like nothing has changed ... meaning nothing like this: http://mgb111.pradnik.net/2-in.jpg (http://mgb111.pradnik.net/2-in.jpg) or this: http://mgb111.pradnik.net/1-out.jpg (http://mgb111.pradnik.net/1-out.jpg), that is, no b2 options ... Could that be because I am using IE?

Otherwise, the telnet welcome screen shows the proper M5 version.


Title: Re: MGB111 update
Post by: ukez on April 05, 2008, 13:25:02 PM
Did anyone manage to compile any firmware with DLNA media support for the XBOX360 and PS3

The Qnap  TS-109 and TS-209 wireless storage drives both fully support it.

More info below:

http://www.olgn.net/archives/ps3-or-xbox-360-add-some-wireless-network-attached-dlna-storage

http://elinux.org/DLNA_Open_Source_Projects

http://www.linuxdevices.com/news/NS2381056192.html


Title: Re: MGB111 update
Post by: Slawek on April 05, 2008, 18:51:50 PM
Flashed/installed the M5 version. Funny thing is that my WebUI login screen shows the old R4.00a9 0830 version

WebUI shows official version.
Quote
http://mgb111.pradnik.net/2-in.jpg (http://mgb111.pradnik.net/2-in.jpg) or this: http://mgb111.pradnik.net/1-out.jpg (http://mgb111.pradnik.net/1-out.jpg), that is, no b2 options ... Could that be because I am using IE?

no, this images show (or something) preview (non public) version of my firmware. very unstable.


Title: MGB111 update
Post by: Kpu4 on April 06, 2008, 16:41:43 PM
Did anyone was able successfuly instal this firmware on Level One WAP-0008? And what pains me no less - HOW? Finding the solution will solve most problems. Many people have this device instead of AirLive, so I find this important to make guide or something on "how to instal" it to WAP-0008 also in the future. Thank you for atention.

Problem solved. Successfuly instaled Firmware update file "mgb111-update-400b2.c006m5" on WAP-0008 with a8 firmware trough WebUI.


Title: Re: MGB111 update
Post by: Slawek on April 08, 2008, 11:02:30 AM
info: new version C007 and C007-M2 with terminfo, for Midnight Commander (in addons) and other future software.
+ fixed PATH for ssh.


Title: Re: MGB111 update
Post by: chimbo on April 09, 2008, 15:25:11 PM
enable telnetd on unmodified firmware (temporary)

WebUI:
Download Assistant -> HTTP option

Job name: whatever
URL: $(telnetd)

press 'save', wait a while and clear download job in status list.
telnet to box (-;

Hi JKR
could you please tell us how did you find out THIS?
chimbo


Title: Re: MGB111 update
Post by: Slawek on April 09, 2008, 17:03:55 PM
aaaa, long time ago (-;
i find telnetd in GPL sources and testing how to execute (it?)
I searched for holes (or bugs?) in webui knowing that it is linux. such companies are never caring about security.
btw: this "hack" execute any existing command in shell.


Title: Re: MGB111 update
Post by: ToMikaa on April 09, 2008, 22:21:56 PM
Hi again!

JKR! Help me! I have a big problem. I have tried to update my box with C007M3 from C006M5 but I couldn't do it through the web UI because the my box always reset the connection. I have tried updatin via TFPT. The firmware uploading was OK but after reboot, the telnet showed me C006-M5 firmware version again... I have reset my box and now I cannot access the web UI and cannot login to telnet. What shuold I do?

Web UI: 192.168.1.5:2005 -> The connection was reset.

Telnet:

   ==========================
  [ Network Attached Storage ]
  [ AirLive WMU 6500FS [JKR] ]
   ==========================

(none) login: root <- "(none)" instead of "Airlive_Storage"
Password: <- my password
Login incorrect
(none) login: root
Password: <- original password: airlive
Login incorrect
(none) login:

TFTP:

H:\Documents and Settings\ToMikaa\Desktop\mgb111-update-400b2.c007m3>..\tftp.exe
 -i 192.168.123.254 put C007M3.BIN

WinAgents TFTP Client version 1.4 Copyright (c)2004-2007 by Tandem Systems,Ltd.
http://www.winagents.com - Software for network administrators

Transfering file C007M3.BIN to server in octet mode...
File C007M3.BIN was transferred successfully.
3657744 bytes transfered for 45 seconds, 81283 bytes/second


ToMikaa

Edit:

I've solved the problem by flashing the original fw and after the C007M3. But the flashing issue is still exists in this version. Connection reset instead of flashing. Can you check this out? Because I cannot flash new fw nor load saved settings.

And another little bug: HDD Status LED if not flashing.


Title: Re: MGB111 update
Post by: Slawek on April 10, 2008, 09:07:35 AM
hmm SOA#1
leds flashing
I checked now, loading flash 3 times, and no problems.
maybe your downloaded firmware is broken? check md5sum or re-download.
EDIT:
use tftp to original firmware, and webui to my updates. if box reset the connection then unplug hard disk and again. sometimes it is happening by the unchecked filesystem on disk,or on sata disks.


Title: Re: MGB111 update
Post by: ToMikaa on April 10, 2008, 11:57:07 AM
Thanks! I'll try it. But the status LED is still not flashing.  ??? FW MD5 is OK.


Title: Re: MGB111 update
Post by: Slawek on April 10, 2008, 13:03:12 PM
I don't know why, but me and a few asked persons led flashing ok.


Title: Re: MGB111 update
Post by: ToMikaa on April 10, 2008, 18:04:31 PM
Another problem: Shutdown button is not working. :S I think I'll try to upgrade the box without HDD via web interface.

Edit: I have successfully updated the fw without HDD. The sutdown button only works when the hard disk is not connected. It's possbile that one of the programs on my sys/bin causes this issue?

Edit2: The function keys from f6 to f12 is not working in MC so I can't close the program.


Title: Re: MGB111 update
Post by: Slawek on April 10, 2008, 18:53:28 PM
shutdown and hdd: check if "partition checking" fix this problem.
F-keys works with TERM=xterm, vt102 (default in telnet, if not set in profile) is a hmmm simple terminal. with "xterm" work mouse, f-keys and mc is in color mode (-;

to test type in console:
export TERM=xterm
and run mc again (;

BTW: with term vt102 F-keys  = ESC+digit  (F10 = ESC+0)


Title: Re: MGB111 update
Post by: ToMikaa on April 10, 2008, 19:04:10 PM
Thanks! I'll try.

Another thing: how can I configure thttpd server? Is there any conf files or something?

Edit: fsck to all partitions -> HDD Status is blinking again. Shutdown button: OK.

Edit2: it's possible to make password-protected folder shares with nfsd?


Title: Re: MGB111 update
Post by: Slawek on April 10, 2008, 20:25:17 PM
http://www.acme.com/software/thttpd/  home page of thttpd
I am using nfsd in the basic configuration so I won't help you


Title: Re: MGB111 update
Post by: ToMikaa on April 10, 2008, 20:30:52 PM
I have problems with mounting nfs file system:

root@tomikaa-pc:/home/tomikaa# mount 192.168.1.5:/mnt/C /home/tomikaa/airlive/
mount: wrong fs type, bad option, bad superblock on 192.168.1.5:/mnt/C,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

What should I do?


Title: Re: MGB111 update
Post by: Slawek on April 10, 2008, 20:54:16 PM
try
mount -o tcp -t nfs [...]


Title: Re: MGB111 update
Post by: locke85 on April 13, 2008, 12:33:46 PM
Hi JKR,

thanks to chimbo, I was able to retrieve your contacts. He adviced me to connect with you regarding a firmware add-on for my mgb111.

Currently I'm running the NAS on firmware version R4.00b2 (chimbo's latest). My goal is to run a streaming software called TwonkyMedia. The installation, however, fails due to missing libraries. Please help me get he following two files

libc.so.6
ld-linux.so.2

incorporated into the firmware (target directory: /lib/).

Thanks in advance,
locke85


Title: Re: MGB111 update
Post by: Slawek on April 13, 2008, 16:17:07 PM
I don't know the firmware from chimbo, but it is still impossible, ld-linux from another linux is incompatible around uclibc and putting him to box doesn't make any sense.
and no TwonkyMedia sources.


Title: Re: MGB111 update
Post by: Kael on April 14, 2008, 11:46:33 AM
Woaow! what a work since my first posts! I'm impressed!
unfortunaltely, i didn't managed to get full sources from amit... their rd told they cannot agree.

@ JKR : Could explain me how do u use your hack files? i also wonder if that would be possible to implement Fail2ban on the device... that seem possible, and would be great security improvement ;o)

Gonna try your firmwares and hack this evening.

Thanks for your work.


Title: Re: MGB111 update
Post by: Slawek on April 14, 2008, 12:54:10 PM
how? it was already explained on the forum and on the website.
I didn't still try to port security software


Title: Re: MGB111 update
Post by: Kael on April 14, 2008, 17:49:41 PM
oops, i didnt took time to take a look further, sorry, i'll check about your files and explanations.
I'll also try to implement fail2ban


Title: Re: MGB111 update
Post by: Aqualung on April 14, 2008, 20:29:25 PM
how? it was already explained on the forum and on the website.

All my respects fly to JKR and his firmware hacks. I have, nevertheless, been having difficulties figuring out how to use (some/most of) the files he provided. The explanations I managed to find (here, there, and everywhere) are a bit too sketchy for my taste, although I didn't dare ask for more seeing as all this comes for free... In the beginning, for example, I attempted to "install" the programs by simply unzipping the archives on my Windows computer, and then transferring the result in the "Public" folder of the Airlive box (why "Public"? not sure why, but that looked to me to be the safest choice). But that didn't work, as, it seems, they have to be unzipped using the box's Linux tar command, which blows up the archives into a structure impossible to reproduce automatically using usual Windows archiving programs (e.g. 7-Zip). At any rate, I have, in the end, managed to use some programs, although I am still at a loss when it comes to installing others.

It may be, on the other hand, that his explanations target someone with a Linux background way heftier than mine, although somehow I am beginning to suspect that even diehard Linux fanboys may find them a bit on the sketchy side.

Anyhow, many, many thanks for JKR's contribution and hacks. Keep'em coming, and keep up the good work!


Title: Re: MGB111 update
Post by: Kael on April 14, 2008, 21:02:10 PM
just updated my device with your fw : great
and your "add on" files a quiet good too

many thanks again

just one question : if i need to configure vsftpd differently do i have to kill and restart vsftpd from rc-local at boot specifying my /mnt/C/sys/etc/vsftpd.conf file? or is there another way to do this?


Title: Re: MGB111 update
Post by: Slawek on April 14, 2008, 21:09:18 PM
free/not free, no difference. I cannot explain precisely for some reason what is obvious.
im poor teacher  (; but linux is linux and it is possible to seek help in google (: sorry

kael: vsftpd config is in /var/config/vsftpd.conf (for closed source software from amit):
you must replace it with your config every restart. (with rc-local). / kill is not needed (if remember - i'm not using ftpd)


Title: Re: MGB111 update
Post by: Kael on April 14, 2008, 21:15:26 PM
about closed source binaries, i'll check again with AMIT... maybe we can finally get some more sources...


Title: Re: MGB111 update
Post by: chimbo on April 14, 2008, 23:31:50 PM

All my respects fly to JKR and his firmware hacks.
@ Aqualung
At your first posts I thought, what an impertinent person, hiding himself behind Bill Gates. He should really have kept his mouth closed. But as time went by, I don't want to miss his contributions. Not only because of increasing knowledge, but of being pleased by someone walking in the steps of Shakespeare. NO FUN!
chimbo


Title: Re: MGB111 update
Post by: locke85 on April 15, 2008, 08:46:03 AM
I don't know the firmware from chimbo, but it is still impossible, ld-linux from another linux is incompatible around uclibc and putting him to box doesn't make any sense.
and no TwonkyMedia sources.

Fair enough, JKR. Now, which alternatives do I have? Suggestions sorted by decreasing preference.

1.) Can I use any other linux-based Twonky software offered on their website (http://twonkyvision.de/Download/TwonkyMedia/TM4Technicians.html)?
2.) If that's a dead end, is there any way one can install a FSN1000 image (link: http://schuggi.de/FNS-1000/FNS1000-tbx.zip) on wgb111? Reasoning being, there is a twonky version aligned to FNS1000.
3.) Are you aware of any other streaming software being compatible to mgb111?

Thanks much, locke85


Title: Re: MGB111 update
Post by: Slawek on April 15, 2008, 09:13:49 AM
locke85: at this time you can copy to some folder different linux distr. and chroot there.
I will look what choice is in the streaming software

Quote
1.) Can I use any other linux-based Twonky software offered on their website (http://twonkyvision.de/Download/TwonkyMedia/TM4Technicians.html)?

maybe this version:
Linux x86 uclibc 0.9.28

EDIT: I compiled ushare with the xbox360 support, unfortunately without DLNA for ps3
available in addons.

Code:
$ ushare -p 50001 -c /mnt/C/pub/filmy/ -i br0 -x -t
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Initializing UPnP subsystem ...
Starting in XboX 360 compliant profile ...
UPnP MediaServer listening on 10.100.1.71:50001
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /mnt/C/pub/filmy/
Found 5 files and subdirectories.


Title: Re: MGB111 update
Post by: Falcon300 on April 15, 2008, 12:56:31 PM
Hello. Sorry for my English  :)

I have the problem with torrent client (btcli ?, default). Its don't want to upload. Average upload speed is 4-5 kb/s, max 50-60 but VERY rear  >:( I have a 70-72 kb/s permanent upload speed on Windows machine with mTorrent on same ISP channel (ADSL, 5 mbit download, 768 kb upload )

I try to use ctorrent, but situation is not so better


WAP-0008 with 4.00b2-C007M2


Title: Re: MGB111 update
Post by: Slawek on April 15, 2008, 13:27:12 PM
default torrent via webui or console?
ctorrent with open port? (not the same if webui torrent)

from my webui
Code:
1.
Progress: [96.29] %, 6 peers, download from [3] [16.00 KB/s], upload to [4] [23.03 KB/s] [0.993]

2.
Seeding: uploading to [4] of [5] peers, [52.43 KB/s] [1.281]


Title: Re: MGB111 update
Post by: Falcon300 on April 15, 2008, 14:23:24 PM
Default torrent via webui on port 19500
ctorrent on port 19430-19450 (one port per one ctorrent instance)


Title: Re: MGB111 update
Post by: Slawek on April 15, 2008, 14:44:41 PM
maybe:

check traffic priority on router or something
check webui torrent config (limits)
check system load
isp filtering ports
or something


Title: Re: MGB111 update
Post by: spanish_biker on April 16, 2008, 03:25:20 AM
your driver will be totally formatted by the MGB111 as it uses ext3 filesystem, the MGB11 is a linux based device.

I'm using the R400b2 firmware and after formatting via the Web interface the file system shown is ext2. I have tried to manually create an ext3 partition as well (by using the mke2fs -j command and manually modifying the /etc/fstab from ext2 to ext3) and although the .journal file is successfully created, the partition goes back to ext2 after rebooting. I mean, the /etc/fstab is automatically reverted from ext3 to ext2 and the Web interface keeps displaying ext2.

Any idea about why this could be happening? Does your system displays ext3 in the web interface when it is working in Guest mode?

Cheers!


Title: Re: MGB111 update
Post by: Falcon300 on April 16, 2008, 05:32:36 AM
Quote
check traffic priority on router or something
check webui torrent config (limits)
check system load
isp filtering ports
or something

When I set IP address of WAP to Windows computer and listen port of WAP torrent client to mTorrent, I result an upload speed aprox 72 kb/s. It's mean what its right with router configuration, filtering port and all. Webui torrent config limits set to unlimited (-1) by you hack...

It's all very strange...

One more question: how can I change listen port on existing download jobs? When I try to change it by webui torrent config, I result 'Invalid port' on existing download jobs...



Title: Re: MGB111 update
Post by: chimbo on April 16, 2008, 08:29:36 AM
Any idea about why this could be happening? Does your system displays ext3 in the web interface when it is working in Guest mode?

There is no buildin support for ext3 fs in this firmware.

chimbo


Title: Re: MGB111 update
Post by: spanish_biker on April 16, 2008, 12:30:41 PM
There is no buildin support for ext3 fs in this firmware.
chimbo

Ah, ok, I thought I was overlooking something!. And do you know any way to create a FAT32 partition from the telnet session? I cannot see any mkdosfs in the available addons and the mkdosfs.exe file provided by Airlive is compiled to be used in Windows not in linux! :(


Title: Re: MGB111 update
Post by: chimbo on April 16, 2008, 14:34:50 PM
There is no buildin support for ext3 fs in this firmware.
chimbo

Ah, ok, I thought I was overlooking something!. And do you know any way to create a FAT32 partition from the telnet session? I cannot see any mkdosfs in the available addons and the mkdosfs.exe file provided by Airlive is compiled to be used in Windows not in linux! :(
Not from telnet session. Why don't you remove the disk and connect it to a pc (either directly or using usb)?
chimbo


Title: Re: MGB111 update
Post by: spanish_biker on April 16, 2008, 15:16:14 PM
Not from telnet session. Why don't you remove the disk and connect it to a pc (either directly or using usb)?
chimbo

Thanks m8!, that's what I tried at the very beginning, but no luck. I just have a laptop, so I cannot directly connect the SATA drive to the motherboard and I do not have a sata-usb box/cable to be able to connect it using usb. I borrowed a small 2.5" sata-usb box from a friend the other day and it did not work either, the PC did not recognized the HDD. Not sure why but the enclosure had written in the back (maximum supported size 80G) so maybe it is a problem of lack of power of something similar and my 750GB is not recognized (not even appearing in the disk manager). I'll have a look again later on and if I manage to find out any other way to achieve this, I'll post it here for future reference...


Title: Re: MGB111 update
Post by: filodej on April 16, 2008, 16:25:51 PM
Hi JKR,
first of all I want to thank you for your effort, about month ago I have installed the dd-wrt to my linksys router (with some addons from optware) and later on I wondered if there is something similar for my Airlive. Now thanks to you and your know-how I have a small linux farm at my home ;)

I am using several your addons (I was especially pleased by the python distribution) and migrate apps from Linksys router to Airlive, since I think it makes much more sense. Sorry for wasting your time, but I feel that instead of demanding more and more pre-built addons from you I would prefer to build my own now.

I have some (basic) linux background but I have no experience with cross-compiling at all. To start somewhere, I have followed the instructions "building_the_firmware" (here
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/id,building_the_firmware), It seem to work for me (more or less), but maybe I miss something important (e.g. I am using the MGB100 toolchain since I have not found any for MGB111).

I am trying to compile (e.g. subversion 1.4.6) on VMWare Fedora 4 distro. When I make the [ "./configure" ; "add include to Makefile" ; "make" ; "make install" ] sequence - everything seem ok and working on fedora but when deployed to Airlive it does not work. The shell just says "command not found". It seems to me that I miss some libraries on Airlive as compared to Fedora. According to ldd on fedora there are dependencies to /lib directory, I thought that the only dependencies should point to /opt/i386-linux/lib if everything was ok.

I feel lost a bit, sorry for maybe totally stupid or wrong question, could you, please, describe how you cross-build and especially deploy the binaries? I am doing it by hand now and I am sure it is the most stupid way to do so. Or in case there is some general tutorial on web, I would be thankful for a link.

Thanks in advance and thank you very much for what you have done so far.

Filodej


Title: Re: MGB111 update
Post by: Ernst on April 16, 2008, 20:00:26 PM
Hi JKR,
first of all I want to thank you for your effort, about month ago I have installed the dd-wrt to my linksys router (with some addons from optware) and later on I wondered if there is something similar for my Airlive. Now thanks to you and your know-how I have a small linux farm at my home ;)

I am using several your addons (I was especially pleased by the python distribution) and migrate apps from Linksys router to Airlive, since I think it makes much more sense. Sorry for wasting your time, but I feel that instead of demanding more and more pre-built addons from you I would prefer to build my own now.

I have some (basic) linux background but I have no experience with cross-compiling at all. To start somewhere, I have followed the instructions "building_the_firmware" (here
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/id,building_the_firmware), It seem to work for me (more or less), but maybe I miss something important (e.g. I am using the MGB100 toolchain since I have not found any for MGB111).

I am trying to compile (e.g. subversion 1.4.6) on VMWare Fedora 4 distro. When I make the [ "./configure" ; "add include to Makefile" ; "make" ; "make install" ] sequence - everything seem ok and working on fedora but when deployed to Airlive it does not work. The shell just says "command not found". It seems to me that I miss some libraries on Airlive as compared to Fedora. According to ldd on fedora there are dependencies to /lib directory, I thought that the only dependencies should point to /opt/i386-linux/lib if everything was ok.

I feel lost a bit, sorry for maybe totally stupid or wrong question, could you, please, describe how you cross-build and especially deploy the binaries? I am doing it by hand now and I am sure it is the most stupid way to do so. Or in case there is some general tutorial on web, I would be thankful for a link.

Thanks in advance and thank you very much for what you have done so far.

Filodej

Not JKR here  ;) but I guess that when you compile the Fedora system still uses the native GCC compiler; i.e. you are not cross compiling at all. If you run the compiled program on Fedora does it work? It shouldn't work but give you an error like 'Bad ELF interpreter'. If the compiled program works under Fedora then you have not cross-compiled it!

For cross compiling you need to export some system settings that tell most Makefiles what compiler to use, what libraries etc...

For the MGB100 the following works fine:

---

export CC = i386-linux-uclibc-cc
export CXX = i386-linux-uclibc-c++
export LD = i386-linux-uclibc-ld
export AR = i386-linux-uclibc-ar
export AS = i386-linux-uclibc-as
export STRIP = i386-linux-uclibc-strip
export RANLIB = i386-linux-uclibc-ranlib
export NM = i386-linux-uclibc-nm
export CFLAGS='-I/opt/i386-linux/include -Os'
export LDFLAGS=-L/opt/i386-linux/lib
export OBJCOPY = i386-linux-uclibc-objcopy
export OBJDUMP = i386-linux-uclibc-objdump
export ARCH=i386
export CROSS_COMPILE=/opt/i386-linux/bin/i386-linux-uclibc-
export PATH=/opt/i386-linux/bin:$PATH

---

Put this in a text file (called for instance 'cc-settings' on your Fedora system and from the system prompt - before compiling - enter:

source cc-settings

This command will make these settings global.

Also keep in mind that most Makefiles tend to set their own variables, so check the Makefile and make sure that it doesn't contain a setting like:

CC=GCC

because that will set the compiler back to the native compiler...

Also check in the Makefile for the setting of the LD variable. Some Makefiles set it back to the wrong set of libraries.

With me most of the times it helps to just comment out any setting for CC, LD, RANLIB, CFLAFGS and LDFLAGS.

(LD is the linux linker.)

Hope this helps.

Ernst

(Who struggled with this also but has compiled some apps, but not so many as JKR; it is amazing that something like Python can be made to work on this small box.)



Title: Re: MGB111 update
Post by: Kael on April 16, 2008, 20:37:04 PM
did someone managed to have some php server running on the device? this is the last thing i need to use my nas as a medias server with my tv box (it uses http and php with some special script from a french internet provider).

I did try but no success...


Title: Re: MGB111 update
Post by: Slawek on April 17, 2008, 10:59:34 AM
kael: apache with php5 already exist (-;


fidolej: ernst already explained you, but better he is build  full uclibc system and use native compilation (or something). cross compile it is terrible work.
i remember because i used before (;


Title: Re: MGB111 update
Post by: Kael on April 17, 2008, 12:34:48 PM
@JKR : yes i've tried but does not work, but this probably is somthing else than the php itself... i'll check another solution with lighttpd and fastcgi.


Title: Re: MGB111 update
Post by: locke85 on April 17, 2008, 14:41:33 PM

EDIT: I compiled ushare with the xbox360 support, unfortunately without DLNA for ps3
available in addons.

Code:
$ ushare -p 50001 -c /mnt/C/pub/filmy/ -i br0 -x -t
uShare (version 1.1a), a lightweight UPnP A/V and DLNA Media Server.
Benjamin Zores (C) 2005-2007, for GeeXboX Team.
See http://ushare.geexbox.org/ for updates.
Initializing UPnP subsystem ...
Starting in XboX 360 compliant profile ...
UPnP MediaServer listening on 10.100.1.71:50001
Sending UPnP advertisement for device ...
Listening for control point connections ...
Building Metadata List ...
Looking for files in content directory : /mnt/C/pub/filmy/
Found 5 files and subdirectories.

Any chance you can share the compiled ushare as a zip-file?

Thanks, locke85


Title: Re: MGB111 update
Post by: filodej on April 17, 2008, 15:15:45 PM
Ernst:
thank you for your help, I appreciate that. I thought that the Makefile.Config from the MGB111_GPL directory (included from the top of applications' Makefile) takes care of variables like CC, CPP, CFLAGS, ... It is partly the case but you were definitely right that Makefiles tend to overwrite it, so it is not nearly as straigthforward as I thought. Previously I totally omitted the "--host=i386-linux" parameter to the configure script so (surprisingly for me ;) ) I was not cross-compiling at all.

Yesterday I was trying to build subversion really hard, perhaps I even broke through some barriers (like sizeof size_t detected as 8 bytes, apr-util "gen_uri_delims" generator being compiled for target platform but used as a part of compilation on the host, but then I got stuck on some linkage problems)

Now I am experimenting with the uclibc build system (prebuilt version from http://www.uclibc.org) - thank you for the tip JoKeR - but so far the only thing I have managed is to run JoKeR's mc-4135 binary on my coLinux-debian hosting chroot-ed root_fs_i386 environment (downloaded from uclibc site).

I really enjoy learning anything new, however this it is very painful experience for me, I do not even know what (if any) progress I am doing. Sorry for bothering you, If (any of you) had any hint for me in this area, I would really appreciate that.

Thanks,
Filodej


Title: Re: MGB111 update
Post by: ukez on April 18, 2008, 06:17:43 AM
ushare with the xbox360 support

Thanks for looking into the ushare xbox360 support. Is there a firmware that it is already setup on that i can just flash my device with?



Title: Re: MGB111 update
Post by: peacy on April 18, 2008, 09:59:08 AM
 It is possible a UPNP A/V Media server for PS3 Supplement ??

Thanks peacyge


Title: Re: MGB111 update
Post by: Ernst on April 18, 2008, 14:58:49 PM
@filodj:

Perhaps my Linux - uClibc experience is even mor limited than yours...  ;D

I have tried the same today; downloaded the ready made root_fs from uclibc.org and tried to compile a small program but on my CHD2WLANU it refuses to run. So I will stick with my normal cross-compile environment, which works fine... but compiling large distributions that rely on configure/make take a lot of time to adapt. Life sucks (and then you die).

I have to say that the learning curve with console type Linux is very, very steep. I have searched everywhere to find a book that explains all this but no luck so far. But we are learning...

Perhaps JKR can try to explain how he gets these massive distributions compiled... since we then can work together to get more useful tools compiled... or wait until JKR has compiled them all...  :D

What I would like to run is Freebasic on this box; managed to get BWBASIC running but that is too limited. Even a C compiler would be nice on this box... but GCC is too hefty.

So; to JKR could you please take the time to explain a little bit how you are doing things? I volunteer to help you with English...  ;)

Ernst
 


Title: Re: MGB111 update
Post by: bpr on April 18, 2008, 15:47:40 PM
Quote
Even a C compiler would be nice on this box... but GCC is too hefty.

Try http://www.tinycc.org/ (http://www.tinycc.org/).

This should really work. It is an extremly fast compiler, that can even compile to memory and run the program from there, so you can use c like a scripting language. It can even compile a Linux kernel (on a PC) in 15 seconds (see http://fabrice.bellard.free.fr/tcc/tccboot.html (http://fabrice.bellard.free.fr/tcc/tccboot.html)). However, it doesn't support C++.


Title: Re: MGB111 update
Post by: Slawek on April 18, 2008, 15:55:49 PM
ernst:
get this http://mgb111.cicogna.at/MGB111/cross-i386-linux-gcc.tgz
and build with _all_ options except X.org (and dont use  "download CVS version" of uclibc and others)
a created file system which you can use as loop mounted partition, with chroot (worst option),
or copy all from this image to any folder and use with chroot,
or... build the full boot system from it, with lilo/grub.
in any case you will have to compile a lot of libraries and programs which are missing in toolchains.
and have fun (;

EDIT: my buildroot config http://mgb111.pradnik.net/config.gz


Title: Re: MGB111 update
Post by: filodej on April 18, 2008, 20:14:36 PM
JoKeR:
In the meantime I also have found cross-i386-linux-gcc.tgz package (I managed at least something to do on my own :-) ),
but I don't think I'd be able to configure it properly.
So the buildsystem's .config was exactly what I was looking for, many many thanks for that.

Now I am building my brand new buildsystem :-)

Ernst:
I am glad that you share my curiosity how the things work, now when we are two of us asking questions, JoKeR started to share his know-how :-)

Update: it seems the sleepycat ftp server is currently down (damn it, tomorrow morning I am going to vacation for one week, I wonder if I manage to build at least something today  ???


Title: Re: MGB111 update
Post by: spanish_biker on April 19, 2008, 02:53:50 AM
Has someone had a problem with "busybox-full-20080324.zip"? I have downloaded it around 10 times from different servers and windows keeps telling me that the file is damaged :S. Is there a .tar somewhere so I can try to download it directly in the 6500FS?

I've tried to upgrade to "mgb111-update-400b2.c008m1" from the WebUI and I'm receiving the 'unallowable upgrade file' message (even with the HDD unplugged) from both, clean 400b2 and 400b2 patched with c007m. Should I try to upgrade from the recovery mode?

Thanks!


Title: Re: MGB111 update
Post by: cypresstwist on April 19, 2008, 09:19:29 AM
First of all, great work. I've been waiting for something like this for my AirLive 6500FS.
I have a little problem. How do I install software on the root partition? It is read-only. Do I have to change something in my /etc/fstab?

Code:
$ cat /etc/fstab
/dev/ram0 / ext2 defaults 1 1
none /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
/dev/hda1 /tmp/mnt/C ext2 defaults,usrquota,grpquota 1 1
/dev/hda2 /tmp/mnt/D ext2 defaults,usrquota,grpquota 1 1

Thanks in advance


Title: Re: MGB111 update
Post by: chimbo on April 19, 2008, 11:22:49 AM
First of all, great work. I've been waiting for something like this for my AirLive 6500FS.
I have a little problem. How do I install software on the root partition? It is read-only. Do I have to change something in my /etc/fstab?
@cypresstwist
Modifications to the root partition can only be done by building a new image. But I'm not shure if you really need this.
chimbo


Title: Re: MGB111 update
Post by: Slawek on April 19, 2008, 11:32:07 AM
Has someone had a problem with "busybox-full-20080324.zip"? I have downloaded it around 10 times from different servers and windows keeps telling me that the file is damaged :S. Is there a .tar somewhere so I can try to download it directly in the 6500FS?

I've tried to upgrade to "mgb111-update-400b2.c008m1" from the WebUI and I'm receiving the 'unallowable upgrade file' message (even with the HDD unplugged) from both, clean 400b2 and 400b2 patched with c007m. Should I try to upgrade from the recovery mode?

Thanks!

maybe your windows is damaged, busybox archive 100% work, upgrades 100% work.


Title: Re: MGB111 update
Post by: cypresstwist on April 19, 2008, 12:45:56 PM
I'm a Linux user, I don't use Windows. Maybe I didn't install the firmware correctly, maybe I'm just not getting it, but... if I cannot place - late's say - NFS binaries on the root partition (due to -w), where do I install them?


Title: Re: MGB111 update
Post by: spanish_biker on April 19, 2008, 12:47:17 PM
maybe your windows is damaged, busybox archive 100% work, upgrades 100% work.

Thanks for the tip JKR!. I redownloaded busybox and the new C008-M1 upgrade from a linux system and they are working flawlessly. BTW, this new upgrade worked with my HDD connected, quality!!. Really good work, I must say :).

Is there a way to create an encrypted password for a samba user (smbpasswd or an alternative command)?


Title: Re: MGB111 update
Post by: chimbo on April 19, 2008, 14:01:00 PM
I'm a Linux user, I don't use Windows. Maybe I didn't install the firmware correctly, maybe I'm just not getting it, but... if I cannot place - late's say - NFS binaries on the root partition (due to -w), where do I install them?
I suppose you are using one of JKR's 'advanced' images. Then you should copy his 'nfs-utils.tar' addon to /mnt/C/ and untar it there. But in principle you can put it at any (mounted) place you like if you use full pathname to start them. Same is true for all (or at least most) other addons of JKR. Have a look at your $PATH variable.
chimbo


Title: Re: MGB111 update
Post by: Kael on April 19, 2008, 18:00:54 PM
@jkr : Thats now ok for me, apache and php are working flawessly ;o) and i've just finished to implement my mediacenter (for all those french users that have got their connection with "neuf", and are using mediacenter provided, feel free to msg me).

Just one last thing : i added "apachectl start" in rc-local and it seems that it doesnt want to start at all, no logs , nothing, if i have to reboot the mgb, i must connect and start the apache / php server on telnet connection... have you got an idea about this?

Thanx again for the good work


Title: Re: MGB111 update
Post by: Slawek on April 19, 2008, 18:06:28 PM
i dont use apachectl, only httpd command.
link /mnt/C/sys/apache_dir/bin/httpd -> /mnt/C/sys/sbin/apache
in rc-local:apache &
work


Title: Re: MGB111 update
Post by: spanish_biker on April 19, 2008, 21:16:50 PM
When I set IP address of WAP to Windows computer and listen port of WAP torrent client to mTorrent, I result an upload speed aprox 72 kb/s. It's mean what its right with router configuration, filtering port and all. Webui torrent config limits set to unlimited (-1) by you hack...

It's all very strange...

Did you manage to find out what the problem was? I have a very similar problem (if not the same!). Everything works fine with a windows client, but with the built-in client or with ctorrent, the download speed drops to 0-5KBs. I have forwarded the ports from my router (9090 for the default client and 2106-2706 for ctorrent) but no improvements in any of the clients, so not sure what I am missing...

Do you need to manually configure something else in order to increase the download speed?


Title: Re: MGB111 update
Post by: Kael on April 20, 2008, 11:13:38 AM
@jkr and all that can have informations : is there somwhere i can find informatons about ssh and dropbear and how it works to secure connection?
it works on my box, i've generated the key... but i'm surprised when i connect using putty or console ssh, it only asks for my password, i thought that i would need to generate something on the client computer or to do something harder to secure...

any tips?


Title: Re: MGB111 update
Post by: Slawek on April 20, 2008, 13:33:45 PM
first connection:

[j@HQ]$ ssh j@mgb111
The authenticity of host 'mgb111 (******)' can't be established.
RSA key fingerprint is XXXXXXXXXXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'mgb111 (******)' (RSA) to the list of known hosts.
j@mgb111's password:



next connections:


[j@HQ]$ ssh j@mgb111
j@mgb111's password:



Title: Re: MGB111 update
Post by: Kael on April 20, 2008, 14:36:14 PM
yes got this but.. in the end if i connect from another ip? this one will be added too?
i wonder how ssh works and why is it better than telnet...


Title: Re: MGB111 update
Post by: Slawek on April 20, 2008, 15:57:33 PM
http://en.wikipedia.org/wiki/Secure_Shell
"is a network protocol that allows data to be exchanged over a secure channel between two computers. Encryption provides confidentiality and integrity of data."


Title: Re: MGB111 update
Post by: Slawek on April 20, 2008, 17:11:53 PM
And do you know any way to create a FAT32 partition from the telnet session?

dosfstools in addons.


Title: Re: MGB111 update
Post by: spanish_biker on April 20, 2008, 18:50:32 PM
dosfstools in addons.

Thank you for that!!! I tried to compile that package myself but I was not able to format partitions over 2GB.

For future reference about "dosfstools-2.8.tar", mkdos worked perfectly and I was able to create a FAT32 partition of 65GB. dosfsck however fails with the following error:

          "dosfsck 2.8, 28 Feb 2001, FAT32, LFN
           Warning: FAT32 support is still ALPHA.
           File system has 16028009 clusters but only space for 7623038 FAT entries."

I have tried with the version 2.11 and although is kind of working (it does not cancel the execution), it displays another error and does not perform any correctoin (which seems to be a bug in linux):

          "dosfsck 2.11, 12 Mar 2005, FAT32, LFN
           Free cluster summary wrong (16011624 vs. really 282984)
           1) Correct
           2) Don't correct
           ? 1
           Leaving file system unchanged.
           /dev/hdc6: 1 files, 1/282985 clusters"

I think I would rely on the ext2 system for the time being...


Title: Re: MGB111 update
Post by: Slawek on April 20, 2008, 19:19:10 PM
i compiled now v2.11 - maybe check.


Title: Re: MGB111 update
Post by: spanish_biker on April 20, 2008, 20:26:38 PM
i compiled now v2.11 - maybe check.
This one does not stop as soon as you launch it, but after ~5mins I get:
      "dosfsck 2.11, 12 Mar 2005, FAT32, LFN
       malloc:Cannot allocate memory"

Many thanks for trying again but I think this has not been designed to fully support vfat..hhehehe. BTW, I'm trying your new mldonkey, still configuring it, but... you are THE man. Thanks for all your work!! This device is becoming a proper server :)


Title: Re: MGB111 update
Post by: kalin on April 20, 2008, 20:51:28 PM
Hi,

I´m new in this,  and have a few Questions,

Can use the firm from JKR in MGB 111 PE-4088 (http://www.pearl.de/a-PE4088-1335.shtml)?

Is possible to change the bittorrent client?

Is possible add Jobs to FTP upload?

Thanks in advance

Cheers

Sorry my bad english  ;)


Title: Re: MGB111 update
Post by: spanish_biker on April 20, 2008, 20:59:58 PM
Hi,

I´m new in this,  and have a few Questions,

Can use the firm from JKR in MGB 111 PE-4088 (http://www.pearl.de/a-PE4088-1335.shtml)?

Is possible to change the bittorrent client?

Is possible add Jobs to FTP upload?

Thanks in advance

Cheers

Sorry my bad english  ;)

No idea about the FTP upload but you should be able to use this firmware with that device and change the bittorrent client. Although I'm still in the process of doing this.

I've downloaded mldonkey and I created a new_user for it. Everything seemed ok until I rebooted the box, at this moment, the user/group disapperad (from /etc/groups for example) and all the directories did not belong to anyone any more.
It is not possible to launch it as root as it fails with "Read-only file system for directory /root/.mldonkey".
Is it possible to permanently add user/groups to the device? or, how have you managed to keep it running after rebooting?


Title: Re: MGB111 update
Post by: kalin on April 20, 2008, 21:10:11 PM
No idea about the FTP upload but you should be able to use this firmware with that device and change the bittorrent client. Although I'm still in the process of doing this.



Thanks,  the firm works OK,   ;D

I dont have any idea about change the client,  and my experince with linux is poor,  but i try to learn  ;) with your help maybe I can do it!!  ;D

Cheers


Title: Re: MGB111 update
Post by: Slawek on April 20, 2008, 21:41:39 PM
Is it possible to permanently add user/groups to the device?

add user from webui (access control)


Title: Re: MGB111 update
Post by: spanish_biker on April 20, 2008, 22:20:15 PM
add user from webui (access control)

I'll give it a go after copying my data to a safer place.

I have not managed to have a stable bittorrent yet. Using the windows client, I get download speeds of over 100KB/s but with all the BT clients in the device (built-in, ctorrent and mldonkey) I'm usually getting 0-10KB/s (I have seen 20KB/s for a couple of minutes though). I have tried using the same ports in that I'm using with the laptop but no improvements.

The airlive box does not have any built-in firewall or anything similar, does it? Can someone explain which parameters he changed to get higher speeds (and which ports he's using, max connections, etc, just out of curiosity) ?

Cheers!


Title: Re: MGB111 update
Post by: Slawek on April 21, 2008, 08:53:44 AM
little bonus (-;
compiled uclibc dev-system
http://mgb111.pradnik.net/addons/uclibc-basic.tar.bz2
87MB archive. ~420MB unpacked.


Title: Re: MGB111 update
Post by: SergeBa on April 21, 2008, 20:26:40 PM
How to use CTorrent?


Title: Re: MGB111 update
Post by: Slawek on April 21, 2008, 21:19:20 PM
http://www.google.pl/search?q=How+to+use+CTorrent


Title: Re: MGB111 update
Post by: kalin on April 21, 2008, 22:12:36 PM
Hi,

I unpak  wPut  in /mnt/C/sys/bin/   and works OK,  I run in Telnet,  if I close Telnet  wPut stop to upload,  how I can let wPut uploading without telnet Open?

Thanks in advance


Title: Re: MGB111 update
Post by: Slawek on April 22, 2008, 09:18:16 AM
maybe read help of wput.


Title: Re: MGB111 update
Post by: spanish_biker on April 22, 2008, 20:33:33 PM
add user from webui (access control)

The situation is that I had 3 partitions, after going to Authorization mode it did something to the whole disk (not just to the 1st two partitions) and then it emptied the 3rd partition (where I had already data!!! :( ). I managed to reconstruct the partitions table and I have read the only thing I need to do now is to update the fstab file with the new information and the problem should be fixed after a reboot.

Is there a way to permanently modify the /etc/fstab file in the box? Whatever I put in that file or in /var/config/fstab is deleted when I reboot... :S


Title: Re: MGB111 update
Post by: kalin on April 23, 2008, 00:07:18 AM
maybe read help of wput.

I swear,  i read the help before posting, now a can see de option -b  run in background  :o

Other Doubts!

Why when I access  http://IP  go to  configuration page?   can I change this?

I format my disk private,  and don´t have  Space Quota activated,  have 40GB of free space, but when i download something, say me  "Insufficient free space",  something wrong with  Space Quotas?

Thanks in advance.


Title: Re: MGB111 update
Post by: Slawek on April 23, 2008, 14:04:29 PM
Quote from: kalin

Why when I access  http://IP  go to  configuration page?   can I change this?

why you cannot read example on my page?

example httpd redirect with iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to BOX.IP:HTTPD_PORT



Quote from: kalin

I format my disk private,  and don´t have  Space Quota activated,  have 40GB of free space, but when i download something, say me  "Insufficient free space",  something wrong with  Space Quotas?

e2fsck or check disk from webui


Title: Re: MGB111 update
Post by: kalin on April 23, 2008, 15:36:13 PM
Quote from: kalin

Why when I access  http://IP  go to  configuration page?   can I change this?

why you cannot read example on my page?

example httpd redirect with iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to BOX.IP:HTTPD_PORT



Quote from: kalin

I format my disk private,  and don´t have  Space Quota activated,  have 40GB of free space, but when i download something, say me  "Insufficient free space",  something wrong with  Space Quotas?

e2fsck or check disk from webui


Sorry if i bother you,  bout I´m newbie in this things, i try to learn,  I see your example, but I´cant delete that Prerouting,  i use iptables -L -t nat to see the chains, but nothing,  please give a little help.

About my Disk,  i do a check and is OK.

Cheers.


Title: Re: MGB111 update
Post by: Slawek on April 23, 2008, 15:44:50 PM
Quote
I´m newbie in this things, i try to learn

but google did close?

-A append
-D delete

http://www.google.pl/search?q=iptables+howto

and i am removing my profile.


Title: Re: MGB111 update
Post by: kalin on April 23, 2008, 16:42:07 PM
Quote
I´m newbie in this things, i try to learn

but google did close?

-A append
-D delete

http://www.google.pl/search?q=iptables+howto

and i am removing my profile.

I know, thanks,  a use this

Code:
$ iptables -t nat -D PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.100:2005

insmod: ip_tables.o: no module by that name found
modprobe: failed to load module ip_tables
iptables v1.3.3: can't initialize iptables table `nat': Table does not exist (do
 you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

and try this too

Code:
$ iptables -D PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.100:2005

What i doing wrong.

If I bother with my questions,  tell me, and I leave the Forum.

Cheers


Title: Re: MGB111 update
Post by: SergeBa on April 23, 2008, 19:02:07 PM
Whether the web-interface with ctorrent works?
http://wl500g.info/attachment.php?attachmentid=1665&stc=1&d=1184756205


Title: Re: MGB111 update
Post by: macsat on April 24, 2008, 06:41:04 AM

Kalin: No worries. All questions are welcome, if someone has a hot temper and can't undestand that not everyone is at the same skill level, they should either exhale or consider not reading the forum  :)


Title: Re: MGB111 update
Post by: peacy on April 29, 2008, 20:29:46 PM
How can i play AVI Files from the MGB111. ???

thank peacy



Title: Re: MGB111 update
Post by: Aqualung on May 01, 2008, 11:02:15 AM
Whether the web-interface with ctorrent works?
http://wl500g.info/attachment.php?attachmentid=1665&stc=1&d=1184756205

Hello SergeBa, should I understand that you found a web interface for Enhanced CTorrent? Which one's that? CTCS? Is it working fine on the MGB111? I am very much interested in such a web interface myself...

Please get back to us with the result of your investigations.


Title: Re: MGB111 update
Post by: chimbo on May 01, 2008, 16:39:21 PM
Whether the web-interface with ctorrent works?
http://wl500g.info/attachment.php?attachmentid=1665&stc=1&d=1184756205

Hello SergeBa, should I understand that you found a web interface for Enhanced CTorrent? Which one's that? CTCS? Is it working fine on the MGB111? I am very much interested in such a web interface myself...

Please get back to us with the result of your investigations.

If anybody wants to use a download tool with web gui, why not use mldonkey from here

http://mgb111.pradnik.net/addons/

which has one.

chimbo


Title: Re: MGB111 update
Post by: Aqualung on May 01, 2008, 17:30:34 PM
If anybody wants to use a download tool with web gui, why not use mldonkey from here

Thanks chimbo, that's nice to know. I've been surfing left and right on MLdonkey's website, and all I could gather was that MLdonkey does not develop its own GUI, so you'd have to install Sancho or somethin'. It looks to me that these guys do make a difference b/w a GUI and a WebUI, hence I may have been searching for the wrong string...

Otherwise, I don't suppose that you have any useful advice on how to use JKR's mldonkey file, do you? I got as far as unzipping the archive in Airlive's Public folder, though I still have to figure out how to start mldonkey. Typing mlnet (which is the only non-empty mldonkey file I could find) gives the following error message:

Code:
2008/05/01 18:05:47 error mkdir failed on /root/.mldonkey: Read-only file system
 for directory /root/.mldonkey

Among others, I'd be very interested to find out how to access mldonkey's WebUI. (The http://mldonkey.sourceforge.net/Main_Page has, so far, turned out to be supremely useless.)

Many thanks for the tip.


Title: Re: MGB111 update
Post by: kalin on May 01, 2008, 18:01:14 PM
@Aqualung

If I not wrong,  you need to unzip in /mnt/C 

I don´t use mldonkey becouse is not allowed in most importat trackers.

Cheers.


Title: Re: MGB111 update
Post by: chimbo on May 01, 2008, 19:54:01 PM

Here is a short guide on how to install mldonkey.

Your box must be equipped with one of JKR's firmwares.
First you should have a solid base in your box.
My base already contains mc (the filemanager 'midnight commander') and many more usefull tools (all supplied by JKR).
Please use PuTTY to telnet to your box if using WIN to have mouse support in mc.
You can download my base from here

http://rapidshare.com/files/111788923/C.zip.html

Unzip it to your box (\\192.168.xxx.xxx\Storage\C or \\192.168.xxx.xxx\Public or /mnt/C depending on how your box is configured and what system you are using to do the unzip).
You now have the file C.tar at this place.
Download this file  from JKR's addons

http://mgb111.pradnik.net/addons/mldonkey-2.9.4-multi.tar

Copy it to the same location.

Login to your box as root using telnet (password is 'admin' or 'airlive' by default).
Backup all valuable data, if any, in /mnt/C/sys/ and /mnt/C/root (this of course can also be done before).
Type in the following commands:

Code:
cd /mnt/C
tar xvf C.tar
tar xvf mldonkey-2.9.4-multi.tar
reboot

The last command closes the connection and your box reboots.

Login to your box again as root using telnet.
Edit '/mnt/C/root/.mldonkey/downloads.ini' to add your pc (or all machines in your subnet) to the list of allowed gui clients.
You can use 'e3' wchich is a simple wordstar like editor (or mc or vi or ...).

Code:
e3 /mnt/C/root/.mldonkey/downloads.ini

These lines work in my installation

Code:
allowed_ips = [
  "192.168.178.0/24";
  "192.168.123.0/24";
  "127.0.0.1";]

All 192.168.178.xxx and 192.168.123.xxx adresses and the box itself are allowed.

Now you can start mldonkey

Code:
mldonkey &

Wait a minute or three until the message 'core started' appears on screen.


Now you should be able to use your webbrowser to connect to mldonkey using an URL like this

http://192.168.xxx.xxx:4080/

Hope I didn't forget anything

chimbo


ps. All this is running also on my mgb100 box. If anyone wants to know more, simply ask

pps. I forgot to mention that swapping must be active on your box. Check with

Code:
free

when logged in.


Title: Re: MGB111 update
Post by: Aqualung on May 01, 2008, 20:02:41 PM
If I not wrong,  you need to unzip in /mnt/C

I think the Public folder is the same as /mnt/C.


Title: Re: MGB111 update
Post by: kalin on May 01, 2008, 20:06:51 PM
@Chimbo great guide  y thanks for sharing your Knowledge,  have you any guide to run this add-on  http://mgb111.pradnik.net/addons/apache-1.3.41-php-gdlib-mysql.tar.gz  or what recommend to use.

Thanks in advance,


Title: Re: MGB111 update
Post by: Aqualung on May 01, 2008, 20:21:06 PM
Here is a short guide on how to install mldonkey.

Thanks!

Quote
Your box must be equipped with one of JKR's firmwares.

It is.

Quote
First you should have a solid base in your box.

What's a "base"?

Quote
My base already contains mc (the filemanager 'midnight commander') and many more usefull tools (all supplied by JKR).

Already got mc. Do I need anything else?

Quote
Please use PuTTY to telnet to your box if using WIN to have mouse support in mc.

No problem using mc w/o mouse. Been used to "it" since it was called Norton Commander  :D

Quote
You can download my base from here

http://rapidshare.com/files/111788923/C.zip.html

Okay.

Quote
Unzip it to your box (\\192.168.xxx.xxx\Storage\C or \\192.168.xxx.xxx\Public or /mnt/C depending on how your box is configured and what system you are using to do the unzip).
You now have the file C.tar at this place.
Download this file  from JKR's addons

http://mgb111.pradnik.net/addons/mldonkey-2.9.4-multi.tar

Copy it to the same location.

Login to your box as root using telnet (password is 'admin' or 'airlive' by default).
Backup all valuable data, if any, in /mnt/C/sys/ and /mnt/C/root (this of course can also be done before).
Type in the following commands:

Code:
cd /mnt/C
tar xvf C.tar
tar xvf mldonkey-2.9.4-multi.tar
reboot

Is this different from unzipping all stuff to Airlive's Public folder using Windows tools? 'Cause that's how I've been doing it so far...

Quote
The last command closes the connection and your box reboots.

Well, that's one thing that I didn't do the first time around.

Quote
Login to your box again as root using telnet.
Edit '/mnt/C/root/.mldonkey/downloads.ini' to add your pc (or all machines in your subnet) to the list of allowed gui clients.
You can use 'e3' wchich is a simple wordstar like editor (or mc or vi or ...).

Code:
e3 /mnt/C/root/.mldonkey/downloads.ini

These lines work in my installation

Code:
allowed_ips = [
  "192.168.178.0/24";
  "192.168.123.0/24";
  "127.0.0.1";]

All 192.168.178.xxx and 192.168.123.xxx adresses and the box itself are allowed.

Now you can start mldonkey

Code:
mldonkey &

Wait a minute or three until the message 'core started' appears on screen.


Now you should be able to use your webbrowser to connect to mldonkey using an URL like this

http://192.168.xxx.xxx:4080/

Hope I didn't forget anything

chimbo


ps. All this is running also on my mgb100 box. If anyone wants to know more, simply ask

pps. I forgot to mention that swapping must be active on your box. Check with

Code:
free

when logged in.

Will do all that and report back.

Many thanks.


Title: Re: MGB111 update
Post by: chimbo on May 01, 2008, 20:49:02 PM

A solid base is something you can build on. In this case a sys directory containing all needed libraries and init files and (very important especially in your case) a root directory (home dir for user root) with appropriate rights.

Unzipping in WIN is done as user 'nobody' which is quite different from doing that as root.

chimbo

And 'untaring' in WIN is almost impossible because WIN does not know about 'symlinks'


Title: Re: MGB111 update
Post by: Kael on May 02, 2008, 09:38:20 AM
hi all,

I'm trying to change my root password on my mgb111, and it seems like i cannot usng passwd or smbpasswd...
Changed the login paswd on the web interface, but my telnet / ssh pass is still the same... any idea?

I also would like to remove the "Public" folder, i've delete Public in my smb conf file, but it still appears on ftp connection and in file browser on the web interface...

thanks


Title: Re: MGB111 update
Post by: Aqualung on May 02, 2008, 19:42:35 PM
I don´t use mldonkey becouse is not allowed in most importat trackers.

Hi Chimbo, Kalin's right, MLdonkey is not very popular with relevant trackers. Besides, it's a configuration nightmare--I spent most day today attempting to find out how to change the friggin' download ("incoming") folder, and I still couldn't figure it out. The WebUI sucks as well.

All in all, can you suggest some other BT client that would work on the Airlive (or whatever) please? Even better, can I/we get you (or JKR) to please compile Deluge for the Airlive? :-[ Or at least KTorrent?  :D

Otherwise, I am in further need of:

(1) a file manager that allows for fast file transfers between the Airlive HDD and the USB port (the speeds I get with mc are quite lame--believe it or not, at this point it's faster to do transfers via network than directly!)

(2) a (simple) web server (...as far as I can recall, configuring Apache requires a time commitment way beyond what I am willing to invest)

(3) an SSH server

Would you recommend any of the files in JKR's repository for the above tasks?

Thanks

P.S. I see he just posted a newer version of mc ... Could that be faster?


Title: Re: MGB111 update
Post by: kalin on May 02, 2008, 22:27:29 PM

(2) a (simple) web server (...as far as I can recall, configuring Apache requires a time commitment way beyond what I am willing to invest)

Try to use httpd included in JKR firm, put your .html files in  /mnt/C/sys/www
to star httpd server only run
httpd
in your browser use this  http://ip-box:8080

(3) an SSH server

Would you recommend any of the files in JKR's repository for the above tasks?


I use Dropbear http://mgb111.pradnik.net/addons/dropbear-ssh-sshd-050.3.tgz
download in /mnt/C and extract
then change directory to /mnt/C/sys/etc
and run
dropbearkey -t rsa -f dropbear_rsa_host_key
wait to create the key
then run
dropbear
ssh server is now running
use putty to conect using ssh

I use this method, if exist other, please correct me  if I´m wrong ;D

Cheers


Title: Re: MGB111 update
Post by: bogyman on May 03, 2008, 17:02:24 PM
Hi - I have a MGB 111 PE-4088 from pearl and i wanted to update it with following firmware

mgb111-update-400b2.c008m3

in web-gui i recive an error that refers to the name - so i renamed it to mgb111.bin -> but with this i got an other error

on my box now is the firmware 20080121_NetworkStorage_R400b2.BIN

and i can update it with the firmware from chimbo -> upgrade_b2_080307.bin

but i want to test that from jkr - can somebody perhaps help me?

thanks


Title: Re: MGB111 update
Post by: kalin on May 03, 2008, 21:24:20 PM
Hi - I have a MGB 111 PE-4088 from pearl and i wanted to update it with following firmware

mgb111-update-400b2.c008m3

in web-gui i recive an error that refers to the name - so i renamed it to mgb111.bin -> but with this i got an other error

on my box now is the firmware 20080121_NetworkStorage_R400b2.BIN

and i can update it with the firmware from chimbo -> upgrade_b2_080307.bin

but i want to test that from jkr - can somebody perhaps help me?

thanks

I use the same box,  and upgrade the firm to C008M3.BIN  without problems,  try to download again, or use the simple version of JKR and then update to advanced version.

Cheers


Title: Re: MGB111 update
Post by: spanish_biker on May 03, 2008, 23:42:59 PM
If anybody wants to use a download tool with web gui, why not use mldonkey from here
chimbo

Have you checked your CPU/memory usage? I have tried both of JKR's files and it seems really demanding. I know that mlnet uses a lot of resources but not sure if there's something wrong in the configuration or something:

%CPU   %MEM  COMMAND
92.1      69.4    mlnet

%CPU    %MEM   COMMAND
16.4      72.5      mlnet

 %CPU   %MEM   COMMAND
 76.7     71.4      mlnet

It does not look OK to me...


Title: Re: MGB111 update
Post by: cypresstwist on May 04, 2008, 23:54:59 PM
I'd really like a htop and a mpd binary.  ;D


Title: Re: MGB111 update
Post by: spanish_biker on May 06, 2008, 03:48:28 AM
Have you checked your CPU/memory usage?

Chimbo, another question. Besides cpu/memory usage. What is the download speed you achieve with your torrents? I'm still not passing from 30KB/s (maximum!!), with an average of ... 5 or 10KB/s :(


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 08:44:30 AM
Have you checked your CPU/memory usage?

Chimbo, another question. Besides cpu/memory usage. What is the download speed you achieve with your torrents? I'm still not passing from 30KB/s (maximum!!), with an average of ... 5 or 10KB/s :(
It's the same with me. But when I run my two boxes in parallel, I get twice this rate. Memory usage is approximately the same as yours, cpu load much less. I didn't care too much about this cause I'm not that big downloader. Did you already try to play with down/upload speed configuration?
chimbo


Title: Re: MGB111 update
Post by: Aqualung on May 06, 2008, 13:35:35 PM
I use Dropbear http://mgb111.pradnik.net/addons/dropbear-ssh-sshd-050.3.tgz
download in /mnt/C and extract
then change directory to /mnt/C/sys/etc
and run
dropbearkey -t rsa -f dropbear_rsa_host_key
wait to create the key
then run
dropbear
ssh server is now running
use putty to conect using ssh

I use this method, if exist other, please correct me  if I´m wrong ;D

Thanks, I got it running w/no problems. Now I have to figure out how to get Dropbear to start automatically--that is without my having to fire it up manually every time I reboot the box. What I am, hence, looking for is the Linux equivalent of the Startup folder in Windows. This is, as a matter of fact, a general problem that is in no way specific to Dropbear: how would I be running a program automatically at startup or, even better, as a service (I believe it's daemon in Linux lingo, right?)?

Now, I didn't bother scouring the Linux manuals in search of this info just because it may be that setting this up in an embedded Linux environment like my/our Airlive box may be quite different than setting it up on a normal Linux desktop PC. (If it ain't, I'd appreciate your simply posting a link--no need to start explaining it here from scratch.)

Finally, I don't suppose any of the Linux aficionados reading this forum have given some thought to compiling Deluge for the Airlive device, have they?


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 13:44:50 PM
I'd really like a htop and a mpd binary.  ;D
I know it's not htop. Did not manage to compile it until now. But meanwhile you could use atop from here

http://mgb111.pradnik.net/addons/soft-system/atop-1.23.tar

If it complains about missing libz, this is included in this tar

http://mgb111.pradnik.net/addons/uclibc-basic.tar.bz2

chimbo


Title: Re: MGB111 update
Post by: Muzzy on May 06, 2008, 14:04:52 PM

If it complains about missing libz, this is included in this tar

http://mgb111.pradnik.net/addons/uclibc-basic.tar.bz2

chimbo
better way is download this: http://mgb111.pradnik.net/addons/libs-essential-20080502.tar.bz2


Title: Re: MGB111 update
Post by: cypresstwist on May 06, 2008, 15:15:51 PM
Wow, thanks.  ;D Now if i could only find a way to get an MPD daemon on my Airlive...


Title: Re: MGB111 update
Post by: Muzzy on May 06, 2008, 15:27:50 PM
What I am, hence, looking for is the Linux equivalent of the Startup folder in Windows. This is, as a matter of fact, a general problem that is in no way specific to Dropbear: how would I be running a program automatically at startup or, even better, as a service (I believe it's daemon in Linux lingo, right?)?
dropbear is a daemon, always.
http://mgb111.pradnik.net/addons/rc-local.example.txt


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 15:33:48 PM

If it complains about missing libz, this is included in this tar

http://mgb111.pradnik.net/addons/uclibc-basic.tar.bz2

chimbo
better way is download this: http://mgb111.pradnik.net/addons/libs-essential-20080502.tar.bz2
Did you already look for libz in this tar?
chimbo


Title: Re: MGB111 update
Post by: Muzzy on May 06, 2008, 15:52:00 PM
libz is in flash image. duplicating is not needed.
Code:
[root@nas C]# l /lib/libz.*
lrwxrwxrwx    1 root     root           13 Apr  4 11:39 /lib/libz.so.1 -> libz.so.1.2.2
-rw-r--r--    1 root     root        57976 Mar 23 16:53 /lib/libz.so.1.2.2


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 18:32:59 PM
Quote
I´m newbie in this things, i try to learn

but google did close?

-A append
-D delete

http://www.google.pl/search?q=iptables+howto

and i am removing my profile.
Hi Slawek,
why don't you come back to us. If some people are bothering you, why not ignore them? I would really like to know which environment you are using, to compile all these binaries. Is it really uclibc?
chimbo


Title: Re: MGB111 update
Post by: JoKeR on May 06, 2008, 20:22:40 PM
yes, i compile software in uclibc - native. And everyone may use  basic env "uclibc-basic.tar.bz2" (unarchived on other linux, and chrooted) to compile software, and libraries if neeeded (not firmware). Or may build bootable linux with this.


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 22:06:48 PM
yes, i compile software in uclibc - native. And everyone may use  basic env "uclibc-basic.tar.bz2" (unarchived on other linux, and chrooted) to compile software, and libraries if neeeded (not firmware). Or may build bootable linux with this.
Thank you JoKeR,
really nice to have you back ;D
chimbo


Title: Re: MGB111 update
Post by: chimbo on May 06, 2008, 22:09:27 PM
libz is in flash image. duplicating is not needed.
Code:
[root@nas C]# l /lib/libz.*
lrwxrwxrwx    1 root     root           13 Apr  4 11:39 /lib/libz.so.1 -> libz.so.1.2.2
-rw-r--r--    1 root     root        57976 Mar 23 16:53 /lib/libz.so.1.2.2
Ok! Just a word to explain: I tried this with my mbg100, which has no libz in /lib
chimbo


Title: Re: MGB111 update
Post by: Aqualung on May 06, 2008, 22:20:17 PM
Thank you JoKeR,
really nice to have you back ;D
chimbo

Alright chimbo, now that you know how to do it  ;) , why don't you please take a stab at compiling Deluge please  :D

Many thanks in advance...


Title: Re: MGB111 update
Post by: filodej on May 06, 2008, 23:49:27 PM
Hi,
I can confirm that with the uclibc-basic.tar.bz2 environment the native build is relatively easy (even for me with limited linux knowledge). Prior that I tried to build the uclibc environment on my own (with JoKeR's buildsystem config file), but now - with all these pre-built essential libs it is much simpler, co thanx for the bonus JoKeR ;-)

I have just almost-succesfully compiled the subversion 1.4.6 (along with swig-1.3.27 for svn python bindings) and mod_python 3.3.1 for Apache. Almost succesfully means that although the svnserve is up and running, the svn client builds ok, but has some problem with locales, loader writes "svn: can't resolve symbol '__ctype_tolower'" during the launch. Disabling the locales support in svn (--disable-nls) did not solve the problem. I have found some workarounds on web (based on renaming the __ctype_* symbols family to __ctype_*_loc) though was not successful at that. I do not actually need the svn client on the box but am still wondering what I am doing wrong.

For the deployment of built binaries, I currently parametrize the configure script with --prefix pointing to /mnt/C/sys and then gzipping all the files based on its date/time, but it seems to me little bit error prone (for example in case the make install made some changes outside the sys directory).

So I'd like to ask:
1) Did anybody (namely JoKeR) encounter such problem with symbols and if so, do you know a solution?
2) How do you automate the deployment? Is there a more elegant way to do that? (possibly directly from the configure/make)

Thanks in advance.


Title: Re: MGB111 update
Post by: filodej on May 07, 2008, 00:08:35 AM
@Aqualung:
it seems to me that Deluge is implemented in C++ (not in C), it depends on the Boost library; and as such it needs to be compiled against C++ libraries (like uClibc++ http://cxx.uclibc.org - C++ counterpart of uClibc). I am not saying it is hopeless (although the uClibc++ project is currently in the alpha phase, its status seems promising to me), but it would mean to build C++ environment (similar like the one JoKeR provided to us for C ) prior one may even try to build the Deluge project.

Others, please, correct me if I am wrong...


Title: Re: MGB111 update
Post by: JoKeR on May 07, 2008, 09:38:38 AM
[...] compiling Deluge [...]
http://deluge-torrent.org/faq.php#6n56


Title: Re: MGB111 update
Post by: JoKeR on May 07, 2008, 10:00:59 AM
For the deployment of built binaries, I currently parametrize the configure script with --prefix pointing to /mnt/C/sys and then gzipping all the files based on its date/time, but it seems to me little bit error prone (for example in case the make install made some changes outside the sys directory).
sometimes --datadir and other prefixes must be used.
Quote
So I'd like to ask:
1) Did anybody (namely JoKeR) encounter such problem with symbols and if so, do you know a solution?
hand made changes, only. (sed will help you)
Quote
2) How do you automate the deployment? Is there a more elegant way to do that? (possibly directly from the configure/make)
prefixes will be enough for most compilations, if path not staticaly writen in sources.

I am working on ipkg to the box, it will be easier to install new stuff.


Title: Re: MGB111 update
Post by: JoKeR on May 07, 2008, 11:28:19 AM
Ok! Just a word to explain: I tried this with my mbg100, which has no libz in /lib

http://mgb111.pradnik.net/addons/libs-for-mgb100.tar (-; (smaller than uclibc-basic archive)


Title: Re: MGB111 XBOX360 update
Post by: ukez on May 11, 2008, 16:35:29 PM
Can anyone tell me how to use the ushare addon on my mgb111 device, i really really want to set this thing up but i havent got a clue where to start. I know its time consuming, but can anyone help me please? ???


Title: Re: MGB111 update
Post by: JoKeR on May 11, 2008, 18:17:28 PM
http://ushare.geexbox.org/#Usage


Title: Re: MGB111 update
Post by: kind on May 12, 2008, 13:55:28 PM
Hi.
I've got wap-0008 with last firmware from here http://mgb111.pradnik.net (http://mgb111.pradnik.net). I want to use my device as ftp-server for my friends/relatives/people-I-know. So, my question is about vsftpd. In my case ideal solution is: A) I create a user; B) User connects to my server, enters login/password; C) User is free to do whatever he wants (no restriction).
What I did:
1. I switched ftp off (in web-interface).
2. Every startup I copy my own vsftpd.conf to /var/config/vsftpd.conf using rc-local and starting daemon       from here.
3. My vsftpd.conf has anonymous_anable=NO option.
Here I stoped...
Please advice what's the best way to add my own users in order only they can login to server?
What should I set in vsftpd.conf?


Title: Re: MGB111 update
Post by: JoKeR on May 12, 2008, 14:07:11 PM
add users from webui (storage section)
or use rc-local  (or rc.d/rc.*) - and copy passwd/users from disk to master /var/config/passwd, every restart



Title: Re: MGB111 update
Post by: kind on May 12, 2008, 19:46:35 PM
Finally did like this:
- copied passwd and group files to HDD
- made necessary changes (both passwd and group)
- on startup (using rc-local): cp -f my_group_file /var/config/group
                                        cp -f my_passwd_file /var/config/passwd

Looks "freaky", but it works.
There was trouble with setting user password: after adduser -H -G my_group user_name and confiming password I got error message. I solved it up somehow... it's all over now.



Title: Re: MGB111 update
Post by: JoKeR on May 12, 2008, 20:58:05 PM
echo "user1:_generated_password_:100:99:1:_home_dir1_:/bin/ash" >> /var/config/passwd
echo "user2:_generated_password_:101:99:2:_home_dir2_:/bin/ash" >> /var/config/passwd
etc..
with this, root and other real users work normal, with webui config.
passwd and other system commands  not writing passwords to passwd file, but... you can use htpasswd (from apache) to generating the passwords and write result to startup scripts.
this mess  is the result of closed code parts.


Title: Re: MGB111 update
Post by: kind on May 12, 2008, 21:49:04 PM
JoKeR
Thank you really much!


Title: Re: MGB111 update
Post by: Aqualung on May 13, 2008, 12:34:43 PM
I want to use my device as ftp-server for my friends/relatives/people-I-know. So, my question is about vsftpd. ... What I did: 1. I switched ftp off (in web-interface).

Just curious, any particular reason why you'd not want to use the default FTP server? Why vsftpd? Security? SSL?


Title: Re: MGB111 update
Post by: JoKeR on May 13, 2008, 12:38:36 PM
vsftpd = default/internal ftp server [-:


Title: Re: MGB111 update
Post by: Aqualung on May 14, 2008, 11:16:41 AM
vsftpd = default/internal ftp server [-:

Whoa! So why the trouble of working around the Web UI then? Is it more configurable that way? (Just ignore if this is a stupid question.)


Title: Re: MGB111 update
Post by: kind on May 14, 2008, 12:30:39 PM
Aqualung
It is. Almost fully functional (look at vsftpd documentation).


Title: Re: MGB111 update
Post by: ukez on May 15, 2008, 02:27:53 AM
http://ushare.geexbox.org/#Usage

Hi'ya joker, this still doesn't give me a step by step guide showing me how to set it up on a mgb111 device.  Has anyone here already set ushare up, or can anyone give me some clear guidance or help please, I'm getting desperate now! ???


Title: Re: MGB111 update
Post by: chimbo on May 17, 2008, 10:16:03 AM
Hi Joker
After updating to C009-M (from C008-M5) 'df' and 'mount' are no longer working with me.
In C008-M5 there is no /etc/mtab either, nevertheless df and mount do their job.

Code:
$ df
Filesystem                Size      Used Available Use% Mounted on
df: /etc/mtab: No such file or directory
$ mount
mount: /etc/mtab: No such file or directory
$

chimbo


Title: Re: MGB111 update
Post by: JoKeR on May 17, 2008, 11:10:18 AM
/etc/mtab never exists in all firmware versions. remove links mount/df in busybox2 or dont change  default PATH variable (;


Title: Re: MGB111 update
Post by: Aqualung on May 17, 2008, 11:19:00 AM
After updating to C009-M

Dear chimbo, could I get you to send me your C: after you're done updating your unit with Joker's latest and greatest, and after patching, fixing etc.  ;D ?

Many thanks,

A


Title: Re: MGB111 update
Post by: chimbo on May 17, 2008, 11:34:39 AM
/etc/mtab never exists in all firmware versions. remove links mount/df in busybox2 or dont change  default PATH variable (;

Hi Joker

could you please have a look at this

Code:
login as: root
root@192.168.178.17's password:
$ df
Filesystem                Size      Used Available Use% Mounted on
df: /etc/mtab: No such file or directory
$ which df
/bin/df
$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/bin:/sbin:/bin:/usr/sbin:/mnt/C/sys/bin
$
chimbo


Title: Re: MGB111 update
Post by: JoKeR on May 17, 2008, 13:23:17 PM
sorry, im using bash, in this is inner/other(?) PATH.
remove /mnt/C/sys/bin/df & mount. in busybox2 (u)mount/df is not compatible


Title: Re: MGB111 update
Post by: chimbo on May 17, 2008, 14:47:13 PM
After updating to C009-M

Dear chimbo, could I get you to send me your C: after you're done updating your unit with Joker's latest and greatest, and after patching, fixing etc.  ;D ?

Many thanks,

A

Dear Aqualung,
I'll see what I can do. May be it will last a little while.
chimbo


Title: Re: MGB111 update
Post by: kalin on May 17, 2008, 23:51:46 PM
Still no help with ushare ???

You only need to unpack the add-on in /mnt/C
then read this guide (http://ushare.geexbox.org/#Usage) to use.



Title: Re: MGB111 update
Post by: ukez on May 18, 2008, 12:37:48 PM
Still no help with ushare ???

You only need to unpack the add-on in /mnt/C
then read this guide (http://ushare.geexbox.org/#Usage) to use.



Well tell me the commands to unpack to C then please.

sorry guys i am really struggling to understand this and its so frustrating...


Title: Re: MGB111 update
Post by: Aqualung on May 18, 2008, 13:07:35 PM
Well tell me the commands to unpack to C then please.

Place your archive in the C: root, replace mc-4.6.1.tar with the name of your archive, and and skip the wget line in the piece of code here: http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,731.msg4119/#msg4119.


Title: Re: MGB111 update
Post by: JoKeR on May 18, 2008, 16:14:47 PM
is ok


Title: Re: MGB111 update
Post by: chimbo on May 18, 2008, 18:36:40 PM
After updating to C009-M

Dear chimbo, could I get you to send me your C: after you're done updating your unit with Joker's latest and greatest, and after patching, fixing etc.  ;D ?
Ok, you can find the content of my newest /mnt/C dir (sys/ and root/ only) here

http://rapidshare.de/files/39449435/C.tar.gz.html

Size is about 58MB. What you should know to use it:

   no telnet, only ssh connections
   no upnp server
   bash shell for root
   mldonkey allows connections from all 192.168.xxx.xxx clients (start as root with 'mldonkey &')
   nfs server running
   
chimbo


Title: Re: MGB111 update
Post by: Aqualung on May 18, 2008, 21:41:45 PM
Ok, you can find the content of my newest /mnt/C dir (sys/ and root/ only) here

http://rapidshare.de/files/39449435/C.tar.gz.html

Many thanks. I don't suppose that, by any chance, you updated mc to the latest mc-20070623, did you?

Quote
Size is about 58MB. What you should know to use it:

   no telnet, only ssh connections

Mkay, I can live w/that.

Quote
   no upnp server

Don't need it.

Quote
   mldonkey allows connections from all 192.168.xxx.xxx clients (start as root with 'mldonkey &')

I don't really need MLDonkey, though it doesn't really bother me... I do need to turn it off though--I guess I should edit rc-local for that, right?

Quote
   nfs server running

I recall reading earlier in Wikipedia about this NFS thingie, though I'm not really sure what it is. Although it sounds like some file system, doesn't look to be on a par with NTFS, Reiser FS and the like. Anyway, don't bother explaining if you think it cannot be summarized in a few phrases. What I think I understand is that I may not need to use SAMBA if I have this NFS server running, is that so?

Again, many thanks,

Aqualung


Title: MGB111 XBOX360 MEDIA SERVER
Post by: ukez on May 18, 2008, 21:54:39 PM
is ok
XBOX MEDIA SERVER
OK it seems I am one step closer to setting up  ushare on my MGB111 device to enable media sharing to work with my XBOX360.

I'm going to try and put together a step by step which will hopefully help others to customise their MGB111 to work as a UPnP (TM) A/V & DLNA Media Server with their XBOX360, if anyone notices any mistakes please correct me.

The files used were obtained from the  http://mgb111.pradnik.net website, its worth checking out.

The MGB111 device User Access Configuration was configured in [Guest] mode when i carried out the following.

Note: [Authorisation] mode wasn't enabled for this configuration setup.


1.) Type the following-->       Telnet 192.168.xxx.xxx - (The digits being your drives ip address)

2.) Hit Enter

3.) Type the following-->       cd /mnt/C/

4.) Hit Enter

5.) Type the follwing-->         wget http://mgb111.pradnik.net/addons/servers-av-upnp/ushare-1.1a2-xbox.tar

6.) The word Connected will then be displayed and also Length: 2,641,920 [application/x-tar]

7.) Type the following-->       tar xvf ushare-1.1a2-xbox.tar (to uncompress files to directory's)

8.) Hit Enter

9.) The following below will be displayed.*

Quote
*

./sys
./sys/share
./sys/share/locale
./sys/share/locale/fr
./sys/share/locale/fr/LC_MESSAGES
./sys/share/locale/fr/LC_MESSAGES/ushare.mo
./sys/share/locale/de
./sys/share/locale/de/LC_MESSAGES
./sys/share/locale/de/LC_MESSAGES/ushare.mo
./sys/etc
./sys/etc/ushare.conf
./sys/etc/init.d
./sys/etc/init.d/ushare
./sys/bin
./sys/bin/ushare
./sys/lib
./sys/lib/libupnp.a
./sys/lib/libupnp.la
./sys/lib/libupnp.so
./sys/lib/libupnp.so.2
./sys/lib/libupnp.so.2.0.3
./sys/lib/libixml.a
./sys/lib/libixml.la
./sys/lib/libixml.so
./sys/lib/libixml.so.2
./sys/lib/libixml.so.2.0.3
./sys/lib/libthreadutil.a
./sys/lib/libthreadutil.la
./sys/lib/libthreadutil.so
./sys/lib/libthreadutil.so.2
./sys/lib/libthreadutil.so.2.1.0


10.) Type the following-->       rm ushare-1.1a2-xbox.tar  (To remove Archive from drive)

11.) Telnet your device again, login the run the following:  ushare -x

12.) Switch on your xbox360 check your Videos, Pictures, Music ( Don't forget to change the source on your XBOX360 to MGB111 device.

Note, i am still trying to work this out myself, but I've had it partially working up to the point i'm showing here, although it only works while the telnet application is open, i haven't worked out how to make it automatically boot up with the drive yet.

Pro's & Cons Below:

Pros:
1) I've not yet and any problems at all video streams, I've even ad some High Definition movies running sweet from another room over wifi and its so far very impressive.

2) Videos Play pretty much instant so far.

3) Divx seems to be fully supported.


Cons:

This application works fine, but I recommend you use it to stream video and Images only.  The problem i found with using audio files is that it dumps them all in the same category i.e if you select the album tab on your console the console displays every single individual track under that tab, the same apply's to artist name and genre as well.


Title: Re: MGB111 update
Post by: chimbo on May 19, 2008, 08:58:58 AM

As far as I know, I did not update mc. This I left to you.
All settings are of course configurable (in 'env-ng' and 'rc-local' and 'profile'). Current setup is just my own preference.
No need to do anything to get rid of mldonkey. Just don't start it.
Yes, you could use NFS as replacement for samba. In WIN you would have to install an NFS client, so better stay with samba.

chimbo


Title: Re: MGB111 XBOX360 MEDIA SERVER
Post by: chimbo on May 20, 2008, 08:31:27 AM

Can anyone help with this please, I still need to know how to get this to boot with the drive when the drive is powered up.

Thanks ;D
Add this command (ushare -x) to your /mnt/C/sys/etc/rc-local. Don't use notepad. Do it in linux.
chimbo

Better add 'ushare -x &'


Title: Re: MGB111 update
Post by: JoKeR on May 20, 2008, 11:06:47 AM
Better way: edit /mnt/C/sys/etc/ushare.conf
(ENABLE_XBOX=no/yes, USHARE_DIR=/mnt/whatever)
and add "ushare -D &" (-D = daemon) to rc-local


Title: Re: MGB111 update
Post by: Aqualung on May 21, 2008, 09:46:09 AM
Ok, you can find the content of my newest /mnt/C dir (sys/ and root/ only) here

http://rapidshare.de/files/39449435/C.tar.gz.html

Chimbo, did you by any chance install Aircrack-ng as well?  ;D


Title: Re: MGB111 XBOX360 MEDIA SERVER
Post by: ukez on May 22, 2008, 21:20:55 PM

Can anyone help with this please, I still need to know how to get this to boot with the drive when the drive is powered up.

Thanks ;D
Add this command (ushare -x) to your /mnt/C/sys/etc/rc-local. Don't use notepad. Do it in linux.
chimbo

Better add 'ushare -x &'

I cant find that directory it says its not found, and if i browse it i cant see it either... ???


Title: Re: MGB111 XBOX360 MEDIA SERVER
Post by: chimbo on May 23, 2008, 10:06:23 AM

Can anyone help with this please, I still need to know how to get this to boot with the drive when the drive is powered up.

Thanks ;D
Add this command (ushare -x) to your /mnt/C/sys/etc/rc-local. Don't use notepad. Do it in linux.
chimbo

Better add 'ushare -x &'

I cant find that directory it says its not found, and if i browse it i cant see it either... ???
rc-local is not a directory, it is a script file. If you don't have it, make a new one or copy one of joker's examples.



Title: Re: MGB111 update
Post by: Kael on May 23, 2008, 11:53:21 AM
Hi all,

Recently found that somebody is trying to brute force my vsftpd.
I was allready looking at fail2ban to secure vsftpd and ssh, but it seems we need more iptables modules available (ipt_recent).
After this, we can use fail2ban "out of the tar archive" or compile it to use on the mgb111.

Did someone successfully compile all iptables modules? i've tried JKR archives, but it seems some modules are not yet implemented to block ip after a few failed login.


Title: Re: MGB111 update
Post by: JoKeR on May 23, 2008, 16:04:51 PM
Quote from: Kael
i've tried JKR archives, but it seems some modules are not yet implemented to block ip after a few failed login.
http://mgb111.pradnik.net/addons/modules-kernel-extra.tar


Title: Re: MGB111 update
Post by: Kael on May 23, 2008, 17:29:22 PM
thank you for the reply but i've allready installed those ones... i'll try again maybe i missed something... or did you updated the file?

EDIT : Ho sorry, made a mistake i installed modules but not modules extras ^^ thank you!


Title: Re: MGB111 update
Post by: Kael on May 23, 2008, 18:59:22 PM
well, installed the file, all .o files are here.. but :
$ modprobe ipt_recent 
modprobe: module ipt_recent not found.
modprobe: failed to load module ipt_recent

anyone knows why i cannot load modules?


Title: Re: MGB111 update
Post by: JoKeR on May 23, 2008, 19:59:07 PM
Code:
cd /mnt/sys/etc/modules/net/ipv4/netfilter/
insmod ipt_recent.o
or
Code:
insmod /mnt/sys/etc/modules/net/ipv4/netfilter/ipt_recent.o

that's why they are in separate package


Title: Re: MGB111 update
Post by: Kael on May 23, 2008, 20:03:01 PM
i've tried and it gives me this ...

insmod: kernel-module version mismatch
   ipt_recent.o was compiled for kernel version 2.4.28
   while this kernel is version 2.4.28-JKR.

^^ so i use "insmod -f" and  it works, i can now work on iptables settings and fail2ban ;o)
thx again


Title: Re: MGB111 update
Post by: JoKeR on May 23, 2008, 20:26:04 PM
   ipt_recent.o was compiled for kernel version 2.4.28
   while this kernel is version 2.4.28-JKR.

download fresh version, fixed


Title: Re: MGB111 update
Post by: Kael on May 23, 2008, 20:32:52 PM
great! i've seen a file named HDDdir.sh could you tell me more about this file? i see this one creates some dirs but i wonder why is it made and placed here?


Title: Re: MGB111 update
Post by: JoKeR on May 23, 2008, 21:07:54 PM
this script is in 4.00b2 version only, in b4 not. created for lazy users (-;
better is get minimal-config and unpack.


Title: Re: MGB111 update
Post by: Kael on May 24, 2008, 09:28:57 AM
ok ^^

in the end i did uptade my FW, but i'm still using -f as it keep on give me same "taint kernel" message.


Title: Re: MGB111 update
Post by: Aqualung on May 24, 2008, 09:41:03 AM
Dear MGB111 aficionados, a while ago I posted some questions on the Airlive WMU-6500FS thread that have yet to benefit from your attention and devotion, and I'd like to invite you kindly to visit that thread, hoping that you may be of help. I won't repost them here, on pains of redundancy.

Many thanks,

Aqualung


Title: Re: MGB111 update
Post by: JoKeR on May 24, 2008, 10:29:50 AM
ok ^^

in the end i did uptade my FW, but i'm still using -f as it keep on give me same "taint kernel" message.

withouf -f work:
[root@gatefs ~]# insmod /mnt/C/sys/etc/modules/net/ipv4/netfilter/ipt_recent.o
[root@gatefs ~]# lsmod
Module                 Size  Used by    Tainted: PF
ipt_recent            7660  0 (unused)
tun                      3248  3

tainted is from wifi module (currently unloaded at me)


Title: Re: MGB111 update
Post by: romizt on May 24, 2008, 21:16:57 PM
Is it possible to update with OPENWRT?
Thanks.


Title: Re: MGB111 update
Post by: Deciman on May 24, 2008, 22:06:39 PM
Hi all

After finding this board and having to read a lot i've managed a lot with my Airlive WMU-6500FS.
But there are still more questions than answers.

I am everything but a linux expert....
But I managed to set up my Dreambox and my dBox2, so a low skill in linux is available to me.

I want my 6500FS to replaye my PC (acting as a server).
Setting up several shared directories with the 'basic' firmware was not possible.
So i've installed JKR's updates and got the NFS server running.
I've allso been able to install mlDonkey and MC (looks like the former Norton Commander I know from my MSDos time *g*)

And now some of my questions...

Do I have to update my firmware to b2 (installed) or b4 (newest one) before installing JKR's updates?
Or do those updates have the actual firmware installed?
Installing a new firmware caused lot of trouble every time I've tried that by the WebUI.
I had to reset several times via the program provided with my box, then start a new instance of that program and update by that new instance.
Sometimes it worked - sometimes not (just killing the window / box without any activity on the LED panel and still having the old software after reboot)

How do I setup an NFS client on my windows pc's.
Programs are available (server is acting as a NFS server)
group and passwd taken from the 6500FS or how should I set up that to create accounts for several pc's?

How can I permanently (boot resistant) add users and rights for NFS on the 6500FS?
- I want my dBox to use 6500FS for recordings and MP3 storage and CIFS of FTP are much too slow
- I want to mount more than one directory at the same time (doesn't work with the official firmware)

Is it normal, that my external hard drives are not recognized under ext2 (3???)
I've put the internal 6500FS HDD with my first tries in an external case and connected it to the USB slot.... Nothing found???? No HDD connected???? Very Strange!!!
FAT and FAT32 work, NTFS makes problem (writing is impossible, but that was documented here), and speed is in every case quite bad (1 MB/s is maximum when copying files from USB-HDD to internal HDD)

Anyway, this is a really great board and without it I'ld have sent back my 6500FS after less than a week....


Deci


Title: Re: MGB111 update
Post by: Dynia on May 25, 2008, 11:21:10 AM

Hi Kael,
I`m new here, but I`ve observed this tread for a long time already and managed to configure my box almost perfectly working. Many thanks to all here.
Probably the last thing to setup is  fail2ban.
Did you manage to make fail2ban working? I succesfully loaded additional kernel module as you and JKR described on previous page, but I`m not sure which fail2ban compilation to install. There are too many versions available.
I did not locate it on JKR`s site...
So I would also appreciate if you may provide some tips on which version to install and how to configure it.
Thanks.


Title: MGB111 Ethernet, Wifi, USB
Post by: ukez on May 25, 2008, 23:55:35 PM
Can anyone tell me why all of the connections on my device are so slow at file transfer, it takes for ever to even transfer the smallest of files.

Also can this device be connected directly to a PC's USB port for a faster transfer rate or will this not work? 

And are both of the USB ports USB2? ;)

Thanks..


Title: Re: MGB111 update
Post by: Kael on May 26, 2008, 08:37:58 AM
@ Dynia :

I finally got Fail2ban working on the device, all you have to download is the tar sources, kernel modules and kernel extra modules, and configure as described on the fail2ban website (only fail2ban.conf and jail.conf), you can run without to use compiled package as it is python utility.

You also need some to insmod ipt_recent

The last thing i would like to get is Sendmail and whois on the device to receive notification mails when fail2ban detects something. Maybe i missed a file again on JKR website ^^

Feel free to ask if you've got questions.


Title: Re: MGB111 Ethernet, Wifi, USB
Post by: Aqualung on May 26, 2008, 08:53:46 AM
Can anyone tell me why all of the connections on my device are so slow at file transfer, it takes for ever to even transfer the smallest of files.

Also can this device be connected directly to a PC's USB port for a faster transfer rate or will this not work? 

And are both of the USB ports USB2? ;)

My complaints about the lousy USB transfer speed (see the Airlive WMU-6500FS forum) have so far remained unanswered. Well, it may be that there's no answer--meaning "that's the way it is by design" ::) At any rate, here's hoping you're luckier than me.

P.S. If you get transfer rates better than 1M/s, please lemme know.


Title: Re: MGB111 update
Post by: JoKeR on May 26, 2008, 18:42:01 PM

The last thing i would like to get is Sendmail and whois on the device to receive notification mails when fail2ban detects something. Maybe i missed a file again on JKR website ^^

ssmtp, msmtp, mailx, mailutils - your choice  (;


Title: Re: MGB111 Ethernet, Wifi, USB
Post by: ukez on May 26, 2008, 20:02:52 PM
Can anyone tell me why all of the connections on my device are so slow at file transfer, it takes for ever to even transfer the smallest of files.

Also can this device be connected directly to a PC's USB port for a faster transfer rate or will this not work? 

And are both of the USB ports USB2? ;)

My complaints about the lousy USB transfer speed (see the Airlive WMU-6500FS forum) have so far remained unanswered. Well, it may be that there's no answer--meaning "that's the way it is by design" ::) At any rate, here's hoping you're luckier than me.

P.S. If you get transfer rates better than 1M/s, please lemme know.


I will do... its a pain in the ass aint it, its just so so slow


Title: Re: MGB111 update
Post by: ukez on May 26, 2008, 20:08:49 PM
I think its about time the forum administrator gives us a fixed MGB111 how to section and lets only a couple of people modify it otherwise this post will go on forever..

Its just a thought! ;)


Title: Re: MGB111 update
Post by: ukez on May 26, 2008, 20:18:09 PM
Im using my mgb111 with my xbox360 at the moment to share media files, im thinking about trying to set it up as a website server, im using a 200gig drive has anyone got any recomendations on what partions (if any) i should use for this scenerio and what server script should i use?

Has anyone here done this succesfully? ;D


Im mainly hoping to build a private forum, has anyone got any good forum scripts knocking about. Im guessing it will have to be in PHP, CGI, Perl ?


Title: Re: MGB111 update
Post by: Kael on May 26, 2008, 21:53:32 PM
@ JKR : yes i finally put xmail on the device but don't know if this will work with fail2ban, can tell me if the server works "out of the tar file "? or do i need to fully configure it? (maybe you've got some good how to about this...

I also seen gwhois and did install your latest PERL 5.8 and libs essential tar, but i got this error when trying gwhois or whois :

syntax error at /mnt/C/sys/etc/gwhois/pattern line 6, near ":"
Compilation failed in require at /usr/bin/whois line 91.

got an idea about this? am i missing a file?


Title: Re: MGB111 update
Post by: romizt on May 27, 2008, 06:33:45 AM
Is it possible to update with OPENWRT?
Thanks.


Title: Re: MGB111 update
Post by: Kael on May 27, 2008, 07:11:13 AM
romizt : as far as i know, this is not possible


Title: Re: MGB111 update
Post by: Kael on May 27, 2008, 19:50:52 PM
now i've got xmail running and confured with phpxmail ;o)
i still lack whois...

and in the end i cannot send a mail with xmail... strange but i probably need to dig the thing a lil more, anyone got tips about xmail configuration to let fail2ban send  his logs ? i probably have to configure xmail to let users send their mails without authentification...

What do you think about this?

Thx


Title: Re: MGB111 update
Post by: Deciman on May 27, 2008, 21:11:19 PM
The trouble continues with my Airlive....

mounting NFS directories shared on the Airlive works, but not as it should...

Mounting those 'drives' with my Windows-PC (SFU for Windows 3.5) works, but speed is something else.
Before i used the same software on my (slower!!!) win-PC to set up a NFS server and got better speed.
Some directories I shared have been set 'read only' by the Airlive and I had to correct that using MC.
Also i figured out, that mounting via samba server and using ftp is much faster than NFS...

First I thought, that my windows pc causes that trouble. So i tried to mount the same directories again with my dbox2 (running with linux).
Mounting those directories works. Playing mp3 out of those directories works for about 20 seconds.
After that time the player stopps, and all further files are not played (just like they don't exist).
Thying the same directories and files mounted by FTP or CIFS (dbox2 provides all those types of mounting) without rebooting or resetting any device everything works fine.

But for recording with my dbox2 FTP and CIFS are to slow. So I need a working NFS with enough speed.

Any idea how I can speed up NFS to at least 10 MB/s???
And any ideas how to add users to my Airlive? 
Using 'adduser -H -G .....' asks me twice for a password and after entering the same password twice it shows an error --> an error occured updating the password file

Deci



Title: Re: MGB111 update
Post by: Dynia on May 27, 2008, 21:26:50 PM
Kael,

Thank you Kael. But could you please clarify for me where should I untar the Python package?
I dawnloaded all files (without python first) and fail2ban said that the Pyton is not found.
How should I install Python?
Thank you. Regards.


Title: Re: MGB111 update
Post by: Kael on May 27, 2008, 21:31:40 PM
@Dynia :  dis you download python from JKR website? these are working add ons, that you just have to untar in /mnt/C/ you'll fin all needed files in your /mnt/C/sys/

for the fail2ban archive, i did extract it in /mnt/C/sys/

but read carefully fail2ban documentation as you will need to configure files to match your configuration.


Title: Re: MGB111 update
Post by: romizt on May 27, 2008, 22:13:11 PM
Is it possible to update with OPENWRT?
Thanks.
romizt : as far as i know, this is not possible
Why not?
It is possible on MGB100, as I did read here:
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/
If OpenWRT works on MGB100, it has to work on MGB111 too.
Or not?


Title: Re: MGB111 update
Post by: chimbo on May 28, 2008, 10:10:03 AM
Is it possible to update with OPENWRT?
Thanks.
romizt : as far as i know, this is not possible
Why not?
It is possible on MGB100, as I did read here:
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/
If OpenWRT works on MGB100, it has to work on MGB111 too.
Or not?
Not. Hardware is nearly but not fully compatible: different wireless controller, SATA controller. If you don't need wireless and SATA, then it should work.

chimbo


Title: Re: MGB111 update
Post by: Dynia on May 28, 2008, 12:06:37 PM
Hi Kael,

Thank you. Now I`ve got right version of Python from JKR site. will continue tuning:)
Thanks again.
Regards, Dynia.


Title: Re: MGB111 update
Post by: romizt on May 28, 2008, 14:55:57 PM
Is it possible to update with OPENWRT?
Thanks.
romizt : as far as i know, this is not possible
Why not?
It is possible on MGB100, as I did read here:
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/
If OpenWRT works on MGB100, it has to work on MGB111 too.
Or not?
Not. Hardware is nearly but not fully compatible: different wireless controller, SATA controller. If you don't need wireless and SATA, then it should work.

chimbo
MGB100 vs MGB111 ...

MGB100
AMRISC 20000 (R3210 i386 compatible CPU)
IT8211F (IDE controller)
RT2560F (WLAN 54Mbit)
AT93C46 (1 kBit EEPROM)
IP101A (Ethernet Transceiver)
MX29LV320A Flash Mem (4 MByte)
42S16160 SDRAM (32 MByte)
PCF8563 (RTC)

MGB111
AMRISC 20000 (R3210GCL)
IT8211F (IDE controller)
RT2561ST (WLAN 54Mbit)
MX29LV320CTTC-90G (Flash Mem 4 MByte)
42S16160 SDRAM (32 MByte)

WLAN is quite the same. Problem may occur with SATA controller.


Title: Re: MGB111 update
Post by: Dynia on May 29, 2008, 09:19:07 AM
Hi Kael,

i`m sorry but I need further guidance on configuring of fail2ban. I installed Python (from JKR` site) and loaded ipt_recent.o.
I configured fail2ban.conf and jail. then I launched fail2ban-client. It said that it could not communicate to server. I created fail2ban.sock file (blank) and adjusted fail2ban.conf again.  Client said again that it could not communicate with server. I tried to launch fail2ban-server directly. It said that it cannot locate PID file. I investigated this issue - wiki sais that this is a bug in 0.82 version. I replaced the server.ry file with new one from wiki. after that fail2ban-server start normally, but it exit right after the start message appears. When I tried to launch fail2ban-client it again saying that it cannot communicate to server. My questions are: should i launch server somehow or client should be able to initiate it itself? Am I missing something else?
Thank you.
Regards, Dynia.


Title: Re: MGB111 update
Post by: Kael on May 29, 2008, 12:17:04 PM
@ Dynia : for example, i did configure my fail2ban : edited jail.conf to enable the needed jails, and specify the mail address to send reports AND THE PLACE WHERE IT CAN FIND THE LOGS from VSFTPD or servers you want to secure. After this, you need to configure fail2ban.conf and give the right path to the files (i think thats the path to pid and sock files... i'll check when back at home).

to launch fail2ban : cd to the fail2ban directory and Launch "./fail2ban-client -c /the_path_to_your_fail2ban_config_files/ start" otherwise it will probably give error messages.

To check it works : "./fail2ban-client -c /the_path_to_your_fail2ban_config_files/ status"
To stop : "./fail2ban-client -c /the_path_to_your_fail2ban_config_files/ stop"
never use fail2ban-server

Just let me know, did you correctly install iptables before to try fail2ban?

This link was usefull, just watch correctly for the environment paths to needed files, and you will probably need to adapt the paths or create some:

http://www.fail2ban.org/wiki/index.php/FAQ_english#How_can_I_run_Fail2ban_without_installation.3F

i also modified to let fail2ban write logs in /var/logs/message this way i can monitor fail2ban directly from web admin interface. As it doesnt seems to work with syslogd.

Feel free to private msg too or contact me on msn


Title: Re: MGB111 update
Post by: Kael on May 29, 2008, 12:45:48 PM
@ JKR : I cannot get gwhois to work on my device... could you confirm methe iles and libs i need to get it to work correctly? i did install libs and perl... but i've got this answer :

syntax error at /mnt/C/sys/etc/gwhois/pattern line 6, near ":"
Compilation failed in require at /usr/bin/whois line 91.


Title: Re: MGB111 update
Post by: JoKeR on May 29, 2008, 16:06:30 PM
@ JKR : I cannot get gwhois to work on my device... could you confirm methe iles and libs i need to get it to work correctly? i did install libs and perl... but i've got this answer :

syntax error at /mnt/C/sys/etc/gwhois/pattern line 6, near ":"
Compilation failed in require at /usr/bin/whois line 91.

look at 91 line in gwhois.
only perl 5.8 is needed.

Code:
[root@gatefs C]# gwhois 192.168.0.0
Process query: '192.168.0.0'
Query recognized as IPv4.
Querying whois.arin.net:43 with whois.


OrgName:    Internet Assigned Numbers Authority
[...]


Title: Re: MGB111 update
Post by: Kael on May 29, 2008, 18:34:00 PM
@ JKR: strange i got this around what seems to be the line 6:

$| = 1;                                                                     
$confdir = '/mnt/C/sys/etc/gwhois';                                         
$patternfilename = 'pattern';                                                   
$patternfilere = qr/^pattern/;                                                 
$useLWP = 1;

and around the line 91

$sendmail = 1;                                                                 
if ( -f "/mnt/C/sys/etc/gwhois/pattern" )                                       
{                                                                               
  require "/mnt/C/sys/etc/gwhois/pattern";                                     


i aint got no "pattern" or /mnt/C/sys/etc/gwhois files...


Title: Re: MGB111 update
Post by: JoKeR on May 29, 2008, 19:19:43 PM
Quote from: Kael
if ( -f "/mnt/C/sys/etc/gwhois/pattern" )                                       
{                                                                               
  require "/mnt/C/sys/etc/gwhois/pattern";                                     


remove all this


Title: Re: MGB111 update
Post by: Kael on May 29, 2008, 19:31:56 PM
@ JKR : Thats workin!!!! but can you explain what was these lines? this pattern directory?


Title: Re: MGB111 update
Post by: Dynia on May 29, 2008, 21:25:54 PM
Finally I`ve got fail2ban working   ;D
What were my obstacles:
fail2ban 0.8.2 has a bug in server.o - this file should be replaced with one available in wiki. If not replaced the server comlains that it cannot access PID file. And the last - I had to be more carefull with dir addressing :)

P.S: I also managed to configure it to start-up automatically! that`s also cool. Ready to share my experience if needed :)


Title: Re: MGB111 update
Post by: Kael on May 29, 2008, 21:34:06 PM
strange about the bug you described, aint got no problem with mine... just gave the path to the directory where it can put the file...

did install iptables, fail2ban and xmail on my nas, all is now working flawessly, i did fwd my smtp to my isp one ;o)

i can receive mails from fail2ban with the xmail server but these ones are totally empty!!! here is a part of the fail2ban script that should send me infos on activity:

actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip>
From: Fail2Ban <<sender>>
To: <dest>\n
Hi,
The IP <ip> has just been banned by Fail2Ban after
<failures> attempts against <name>.\n\n
Here are more information about <ip>:\n
` /usr/bin/whois <ip>`\n
Regards,\n
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>

to receive mails, i had specify the <sender> value as the SMTP server was freezing mails without valid sender address. But why the mail text is still unavailable? it seems all is ok... but from "Hi..." to "Fail2Ban" everything is just like deleted...

hope somebody got a solution ;o)


Title: Re: MGB111 update
Post by: Dynia on May 30, 2008, 20:55:30 PM
Anybody please advise me whether it is possible to format the usb hard drive with the help of built in linux or not?
My home computer is running Vista - it does not allow to format into neither FAT32 not ext2. I`m stuck.
Thank you.


Title: Re: MGB111 update
Post by: Deciman on May 31, 2008, 00:09:01 AM
Ouch....

I've just updated to R400b4 and reinstalled all the software (mc, mldonkey,...)
Now i've got a new problem....

mc speeks in a language to me that I really don't understand.
How can I tell mc to speak something else but polish???
German would be good..... English will do also...

Deci


Title: Re: MGB111 update
Post by: JoKeR on May 31, 2008, 10:31:58 AM
/mnt/C/sys/etc/profile

remove or edit LC_ALL variable.


Title: Re: MGB111 update
Post by: cypresstwist on May 31, 2008, 16:43:54 PM
I have a strange problem. I mount a NFS share and start copying a large file. Let's say a 700MB avi. After a time, at about 30% the transfer stops. Sometimes it starts agaim, sometimes it gives me a "no space left" error, although there's plenty of space on the NAS. Does anyone experience the same issues? ???


Title: Re: MGB111 update
Post by: Dynia on June 01, 2008, 11:40:08 AM
Please advise towto configure builtin httpd server? I did not locate a config file.
I need a simple http file server with restricted password protected access. (initially i tried to deal with ftp using vsftpd, but it seems that ftp protocol is  very problematic now - many of my friends cannot acceess it due to firewall and routing issues, so i decided to setup a http file server).
apache seems too difficult to run for my skills.
thank you.


Title: Re: MGB111 update
Post by: Jajator on June 01, 2008, 13:40:20 PM
I have a strange problem. I mount a NFS share and start copying a large file. Let's say a 700MB avi. After a time, at about 30% the transfer stops. Sometimes it starts agaim, sometimes it gives me a "no space left" error, although there's plenty of space on the NAS. Does anyone experience the same issues? ???
i have the same problem with samba nad FTP :) ive got used to it :)


Title: Re: MGB111 update
Post by: JoKeR on June 01, 2008, 15:28:36 PM
check disks (e2fsck or check webui->disk utility->check)


Title: Re: MGB111 update
Post by: kind on June 01, 2008, 17:04:28 PM
Hi, JoKeR.
My native language is russian. I (and, I suppose, many others russian speaking) suffer from reading names in "strange", unreadable symbols.
I use Windows on my PC, and my WAP-0008 is mounted as net-disk in windows explorer. I copy my files using standart windows method (copy/paste).
But when I make FTP-connection to WAP - I get unreadable symbols (originally being russians). Same in mc.
Is there any hope that future firmwares will support win1251 charset?


Title: Re: MGB111 update
Post by: JoKeR on June 01, 2008, 18:52:17 PM
i try later, if kernel not enlarge too much

EDIT: http://mgb111.pradnik.net/ -> FW C009-M2 Russian Charsets
ISO-8859-5
KOI8-R
KOI8-U/RU
CP-1251
CP-866



Title: Re: MGB111 update
Post by: kind on June 01, 2008, 19:42:19 PM
JoKeR, you are really fast!!! Thank you very much! I think it will great news for russian community!




Title: Re: MGB111 update
Post by: Dynia on June 01, 2008, 20:40:44 PM
Joker, thank you very much for Russian charsets - going flash it right now.

Did anybody made Apach working?
It`s behavior looks strange to me: I configured it just for the  test to work on  my LAN: listen to 192.168.0.152:8080
and placed test index.html in www. It start normally - no errors on log. and the fist time when I launch browser it displays the index.html just fine, but after that it became mute - I cannot refresh the index.html.

the is also another observation: when I launch it sometime say: cannot bind to the socket 192.168.0.152:8080 and exit
I cannot understand why it happens - I didn`t do any changes, but it cannot start normally again.

I tryed both 2.0 and 2.2 versions - all the same.


Title: Re: MGB111 update
Post by: Dynia on June 01, 2008, 20:59:47 PM
just flashed new image with Russian charsets - flashed fine. but mc does not show russian chars still :( May by i have to check some config files?

After the I flashed  new FW Apache 2.2 is working fine - no more drop-outs. a bit strange.
Anyway thanks to JKR.


Title: Re: MGB111 update
Post by: kind on June 01, 2008, 21:03:37 PM
Same...(
Updated with new firmware ("russian edition"), but haven't seen any change ... (.
Changed vsftpd.conf lines: local_charset = CP1251 and remote_charset = CP1251, no change.

JoKeR, please, place some comments...


Title: Re: MGB111 update
Post by: JoKeR on June 01, 2008, 22:20:33 PM
kind:
test config from webui (charset conv is included to www config)

or add to config:
enable_iconv=YES
or
convert_charset_enable=YES
(from google)


dynia:
google->LC_LOCALE LC_ALL russian


Title: Re: MGB111 update
Post by: Deciman on June 02, 2008, 09:36:35 AM
/mnt/C/sys/etc/profile

remove or edit LC_ALL variable.


Tnx a lot

Deci


Title: Re: MGB111 update
Post by: Kael on June 02, 2008, 12:23:15 PM
Finally xmail + fail2ban are working ^^

Only 2 questions, i'd like to create an ssh login without root rights, is it possible? how could i do this?

And after all, i'dl like to get iptables logs in /var/log/messages...

if some of you allready done this...

PS : Fail2ban is greaaaaat!


Title: Re: MGB111 update
Post by: Deciman on June 02, 2008, 16:11:41 PM
To mount or not to mount.......

Finally i've found one of the problems.
My dbox (linux) allways lost connection/mount/whatever after a few seconds of playing mp3 from the airlive-mount.
This doesn't happen (up to now) with mounted directories from the internal hdd.
I've allways mounted from the usb device (but there mounts by ftp work on the same files!!!)
I guess its a problem with the usb drivers / timing / whatever.
That would also be a reason for the really lousy speed when transfering from usb hdd to internal hdd.
May be someone can fix that problem.....

The second problem (mounting from a windows pc) may have another reason... missing pc-nfs-deamon on the airlive

Deci


Title: Re: MGB111 update
Post by: JoKeR on June 02, 2008, 16:48:04 PM
Finally i've found one of the problems.
My dbox (linux) allways lost connection/mount/whatever after a few seconds of playing mp3 from the airlive-mount.
This doesn't happen (up to now) with mounted directories from the internal hdd.
I've allways mounted from the usb device (but there mounts by ftp work on the same files!!!)
I guess its a problem with the usb drivers / timing / whatever.

SOA#1

The second problem (mounting from a windows pc)
may have another reason... missing pc-nfs-deamon on the airlive

strain and write what firmware you are using, and i perhaps will tell you, of what you didn't read.


Title: Re: MGB111 update
Post by: Deciman on June 02, 2008, 17:04:17 PM
The second problem (mounting from a windows pc)
may have another reason... missing pc-nfs-deamon on the airlive

strain and write what firmware you are using, and i perhaps will tell you, of what you didn't read.


Nearly latest from you (R400b4 C900M with all external archives mentioned in the readme installed)
I've not yet updated to M2...
 
Deci

PS:.
I've been searching with google a lot.
And i've figured out, that there is a special deamon that manages user authentication with windows computers. pcnfsd.
I didn't manage to create a user mapping for my windows pc's. Not even further boot resistant users on the airlive.After trying to set the options in your example-files my airlife made absolutely nothing. hosts was empty after reboot (edited hosts in /mnt/C/sys/etc... or wherever it was (don't remember where exactly, but it was on the internal hdd as shown in the example files) before).
Anyway, letting my PC act as a nfs-server works. Client no way (or i really don't manage that...)


Title: Re: MGB111 update
Post by: cypresstwist on June 02, 2008, 23:17:15 PM
check disks (e2fsck or check webui->disk utility->check)

Disk Utility (webui) reports the partition to be clean but it still reports no disk space avaliable, although

Code:
$ df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/rom0                 2.6M      2.6M         0 100% /
tmpfs                    14.7M    288.0k     14.4M   2% /tmp
/dev/hda1               137.1G     89.8G     47.3G  66% /tmp/mnt/C
/dev/hda2                 9.5G    210.2M      9.3G   2% /tmp/mnt/D
/dev/hda1               137.1G     89.8G     47.3G  66% /tmp/share/Public
tmpfs                    14.7M    288.0k     14.4M   2% /tmp/share/USB

Question: why is /dev/rom0 always full?


Title: Re: MGB111 update
Post by: JoKeR on June 03, 2008, 17:21:10 PM
Question: why is /dev/rom0 always full?
because...
http://en.wikipedia.org/wiki/ROM_image


Title: Re: MGB111 update
Post by: songlp on June 04, 2008, 10:08:08 AM
Hello Guys,
I received my 6500FS a moment ago, and refreshed latest offical firmware. Everything is fine except I cannot find the FTP username/password for vsftpd. What is the default username/password?


Title: Re: MGB111 update
Post by: cocoloco on June 06, 2008, 13:46:07 PM
Hello dear people here with me, I would like for this great forum is a very classical work was here,
I have read all contribute and I am very begeister I have been waiting for weeks to own a firmware
with ctorren unfortunately I spoke my engrischer limited to the Software and scripts
I ectc-mgb111-080602.tar seen now as I ask my ctorrent I get to my mgb111 for your information
and its effort here, I would like to thank with a magnificent salute cocoloco


Title: Re: MGB111 update
Post by: chimbo on June 06, 2008, 23:06:36 PM
Hello dear people here with me, I would like for this great forum is a very classical work was here,

Hi cocoloco

maybe not everyone has understood everything you wanted to express, but don't mind. I really wish there were more posts of this kind. I'm not curious but I would like to know what is your native language. It's OK if you don't want to answer this question

chimbo


Title: Re: MGB111 update
Post by: cocoloco on June 07, 2008, 01:23:59 AM
Hello dear people here with me, I would like for this great forum is a very classical work was here,

Hi cocoloco

maybe not everyone has understood everything you wanted to express, but don't mind. I really wish there were more posts of this kind. I'm not curious but I would like to know what is your native language. It's OK if you don't want to answer this question

chimbo

Hello chimbo my mother tongue, germany I live in dortmund
how can I ctorrent to mgb-111 Thank you for your reply


Title: Re: MGB111 update
Post by: Aqualung on June 07, 2008, 19:06:57 PM
it seems to me that Deluge is implemented in C++ (not in C), it depends on the Boost library; and as such it needs to be compiled against C++ libraries (like uClibc++ http://cxx.uclibc.org - C++ counterpart of uClibc). Others, please, correct me if I am wrong...

Isn't Enhanced CTorrent implemented in C++ as well? (Btw, there's a new version out there...)

Otherwise, what's the version of Transmission included with the latest official firmware (4.00b4)? Is it the newest one that's included in Slawek's software library (1.21)?

Now, say I manage to install the Transmission graciously provided by Slawek. How do I use it?:-[ I've been scouring the Transmission forums, yet I didn't manage to find any instruction manual, or anything close... What my Linux-handicapped intuition says is that in order to start the daemon, I just type the name of the binary (transmission-daemon), is that so?  How about the remote? How do I use that, and, more importantly, how do I access it? On what ports is it listening?

Many thanks.


Title: Re: MGB111 update
Post by: Deciman on June 07, 2008, 23:02:42 PM
The second problem (mounting from a windows pc)
may have another reason... missing pc-nfs-deamon on the airlive

strain and write what firmware you are using, and i perhaps will tell you, of what you didn't read.


Finaly I've managed mounting with my dbox and semi managed mounting with my pc.
I had to tell my dboxto use a username (and pw) to mount.
And I had to do that by hand (editing a file)
Creating a nfs mount with entering user and pw directly with the remote control is not provided....

Pc only semi works.
Creating mounts works, but on reboot with (option remount on startup set) i get error messages.
Mounting by hand each time works fine.

Now I try to configure apache22 and perl to make ctorrent run with webUI.
mlDonkey sometimes refuses to start after rebooting my airbox.
I figured out, that I have to logon with telnet and delete the .PID to make it run again.

How can I check for the existance (and delete or move) of files on startup of my airlive?
delete mlnet.PID an move completed downloads to another directory?

I know, that it's possible, but I don't know how to do that in linux (in msdos I'ld know how...)

And once again, TNX for this great board and for these great firmware hacks!!!


Deci

PS: I there a way to add users and groups boot resistant?
I use 'rc-local' to create them each startup now.


Title: Re: MGB111 update
Post by: JoKeR on June 08, 2008, 15:28:10 PM

PS: I there a way to add users [...] boot resistant?
I use 'rc-local' to create them each startup now.

webUI: Storage Configuration->Access Control->user configuration


Title: Re: MGB111 update
Post by: malocher on June 08, 2008, 17:52:51 PM
Hello from Germany  :)

Please Help,my download/upload with bittorent client from MG111 ist slow - down 30kb/up 0,10kb  ??
My Firmware is WC009-M2 Advanced.
Open Ports in My Router ?
 


Title: Re: MGB111 update
Post by: filodej on June 09, 2008, 01:59:35 AM
it seems to me that Deluge is implemented in C++ (not in C), it depends on the Boost library; and as such it needs to be compiled against C++ libraries (like uClibc++ http://cxx.uclibc.org - C++ counterpart of uClibc). Others, please, correct me if I am wrong...

Isn't Enhanced CTorrent implemented in C++ as well? (Btw, there's a new version out there...)


@Aqualung: I was wrong, as far as I know now there is no need for cxx.uclibc build system. There are already c++ libraries available for the box (libstdc++ - not sure what the JoKeR's package contains it). The much bigger problem is that the 0.5 versions do not support daemon mode (without GUI). As a test I tried to build it and was successful (I had to build the boost library first). The problem is that due to the GUI it has much more runtime dependencies (like pygtk -> GTK+ -> libcairo -> X window system). In my opinion to build X window development environment and run it with remote X server (e.g. Xming for windows) is quite a challenge ;-) Another alternative is to try an in-development 0.6 branch - but it is currently not very stable.

BTW
I'd like to let you know that now I am working on a web page containing all the packages I have managed to build so far along with a short description of the build process for those who are trying the same. Packages are rather developer oriented (subversion, git, cvstrac, ...). The pages are still under construction but I hope it contain some valid info as it is now.
Just now I am not sure about the definitive place for the page(s) - currently it has just a form of blog (URI placed at the bottom of the post).
If someone knows about a good free web hosting with FTP access and no (or reasonable level of) adverts, please, let me know.


Title: Re: MGB111 update
Post by: ukez on June 09, 2008, 07:18:55 AM
Hello from Germany  :)

Please Help,my download/upload with bittorent client from MG111 ist slow - down 30kb/up 0,10kb  ??
My Firmware is WC009-M2 Advanced.
Open Ports in My Router ?
 


If you find out how to resolve this can you let me know, as i am having the same problem.


Title: httpd-2.2.8-php5-cgi-ssl.tar.gz
Post by: ukez on June 09, 2008, 09:51:32 AM
Hello guys, I've got a few questions for those who know the answers.

I've just installed this script on to my mgb111 device (httpd-2.2.8-php5-cgi-ssl.tar.gz), its one of the www.server addon's from http://mgb111.pradnik.net/ website.

The software supports apache2.2 WWW server, with PHP5, CGI, SSL, rewite, proxy, etc.

I've used apache on a pc before but never on a mgb111 device, so can anyone give me some advice on how to set this software up


If i telnet into my device and run (Pear) i get this :

(quote)


   ==========================
  [ Network Attached Storage ]
  [    Linux 2.4.28 [JKR]    ]
   ==========================

Net_Storage login: root
Password:

  [   FW 4.00b4.C009-M2[NG]    ]
  [ http://mgb111.pradnik.net/ ]

$
Commands:
build                  Build an Extension From C Source
bundle                 Unpacks a Pecl Package
channel-add            Add a Channel
channel-alias          Specify an alias to a channel name
channel-delete         Remove a Channel From the List
channel-discover       Initialize a Channel from its server
channel-info           Retrieve Information on a Channel
channel-update         Update an Existing Channel
clear-cache            Clear Web Services Cache
config-create          Create a Default configuration file
config-get             Show One Setting
config-help            Show Information About Setting
config-set             Change Setting
config-show            Show All Settings
convert                Convert a package.xml 1.0 to package.xml 2.0 format
cvsdiff                Run a "cvs diff" for all files in a package
cvstag                 Set CVS Release Tag
download               Download Package
download-all           Downloads each available package from the default c
info                   Display information about a package
install                Install Package
list                   List Installed Packages In The Default Channel
list-all               List All Packages
list-channels          List Available Channels
list-files             List Files In Installed Package
list-upgrades          List Available Upgrades
login                  Connects and authenticates to remote server
logout                 Logs out from the remote server
makerpm                Builds an RPM spec file from a PEAR package
package                Build Package
package-dependencies   Show package dependencies
package-validate       Validate Package Consistency
pickle                 Build PECL Package
remote-info            Information About Remote Packages
remote-list            List Remote Packages
run-scripts            Run Post-Install Scripts bundled with a package
run-tests              Run Regression Tests
search                 Search remote package database
shell-test             Shell Script Test
sign                   Sign a package distribution file
uninstall              Un-install Package
update-channels        Update the Channel List
upgrade                Upgrade Package
upgrade-all            Upgrade All Packages
Usage: pear [options] command [command-options] <parameters>
Type "pear help options" to list all options.
Type "pear help shortcuts" to list all command shortcuts.
Type "pear help <command>" to get the help for the specified command.
$


Is Pear the correct file to run?

Anyone got any idea how i can set this device up properly please.

Also should i still install my website files in C\sys\apache22\htdocs as i would when using it on a PC


Title: Re: httpd-2.2.8-php5-cgi-ssl.tar.gz
Post by: JoKeR on June 09, 2008, 10:26:21 AM
I've just installed this script on to my mgb111 device (httpd-2.2.8-php5-cgi-ssl.tar.gz)

Anyone got any idea how i can set this device up properly please.

install,
edit /mnt/C/sys/apache22/conf/httpd.conf,
run /mnt/C/sys/apache22/bin/httpd,
if work, edit startup scripts


Title: Re: MGB111 update
Post by: Deciman on June 10, 2008, 23:20:53 PM

PS: I there a way to add users [...] boot resistant?
I use 'rc-local' to create them each startup now.

webUI: Storage Configuration->Access Control->user configuration

May work, but not for me.....
I've setup the entire HDD as one drive and already copied 200GB of data (with a really lousy speed)
Creating new users that way means creating new partitions and copy all he data again....
I won't do that if I can avoid it anyway *g*

What I want is: Mount several directories as drives on several windows pc's (and not only one directory on a pc)
Tried before: The way you suggested.... Works only half the way it should... Only ONE directory can be mounted at the same time.

Now I think about a solution.
And I found 2 different smb.conf files
One on my HDD and one created by my airlive.
Editing the file on my HDD (/mnt/C/sys/ect/smb.conf) shows no changes (I think it isn't used)
Editing the one creatied by my airlive shows no changes, too (after reboot it's created new by my airlive I think)

So how can I tell my airlive to use the smb.conf on my HDD??? Is here a way????
And I guess, I have to do the same with he smb.passwd file...

Tnx, Deci

BTW: 'rm $MLDONKEY_DIR/mlnet.pid' added in 'rc-local' before starting mldonkey fixed my problems after rebooting my airlive. Now mldonkey starts even after power failures or 'reboot'...


Title: Re: MGB111 update
Post by: JoKeR on June 11, 2008, 08:32:32 AM
May work, but not for me.....
I've setup the entire HDD as one drive and already copied 200GB of data (with a really lousy speed)

Partition magic on desktop pc.

Quote
So how can I tell my airlive to use the smb.conf on my HDD??? Is here a way????
And I guess, I have to do the same with he smb.passwd file...

copy your smb configs from hdd to /var/config/samba/ with rc-local
(restart of smb is not nedeed)


Title: Re: MGB111 update
Post by: Deciman on June 11, 2008, 23:59:27 PM
you can use htpasswd (from apache) to generating the passwords and write result to startup scripts.
what encryption setting is used to get correct hash???

Tnx,  Deci


Title: Re: MGB111 update
Post by: Deciman on June 13, 2008, 21:16:47 PM
May work, but not for me.....
I've setup the entire HDD as one drive and already copied 200GB of data (with a really lousy speed)

Partition magic on desktop pc.

I've tried....
Now I've got 2 partitions both shown in storage control
Code:
  Partition Free(MB) Used(MB) Total(MB)
  Public Directory  105751  314355  420106
 Private Directory  49162  51  49213     

But trying to add users shows an error....
'The disk has no private directory.
If you want to add an user, create a private directory first.'

Code:
Partition Partition Size(MB) Change Size(MB)
Public 426805 
Private 49999 
 
     
*Warning!! Change the disk partition will cause disk data lose. 

So what now?
I don't wanna use fdisk and copy all my data to a different disk before and back afterwards....
And I also don't wanna loose my data... *g*

Any idea???

Deci


Title: Re: MGB111 update
Post by: Deciman on June 14, 2008, 09:58:19 AM
I's getting even stranger.....

I've tried to use fdisk utility via web ui.
Changed size of private dir and aknowledged data loss.

formating.....
an error ocured: devive is busy

I cannot format anyway. neither partition magic (pc) nor web ui

Deci


Title: Re: MGB111 update
Post by: filodej on June 14, 2008, 11:23:25 AM
formating.....
an error ocured: devive is busy
I have experienced the same. It seems some process uses the drive (holds some file handles or so). I tried to kill smbd and some other processes, but It did not help.

There is lsof command meaning "list open files" on many systems but unfortunately it is part of neither busybox nor busybox2.

Nevertheless after rebooting the box the problem was gone in my case.

Update: I have built the lsof utility, you can download it here (http://philodej.googlepages.com/lsof-4.78.tar.bz2)

You can use it as follows:
# lsof | grep mnt/C


Regards.


Title: Re: MGB111 update
Post by: Deciman on June 14, 2008, 21:51:21 PM
There is lsof command meaning "list open files" on many systems but unfortunately it is part of neither busybox nor busybox2.

Nevertheless after rebooting the box the problem was gone in my case.

Update: I have built the lsof utility, you can download it here (http://philodej.googlepages.com/lsof-4.78.tar.bz2)

You can use it as follows:
# lsof | grep mnt/C


Regards.

Tnx alot.
Your tool shws me lot of open files on the HDD.
So I guess, I've to go the long way (recovery mode, reinstall B4, update to c900m2 and pray, that my files are still there...)
Or the even longer mode (reformat entire HDD with my pc and start from the very beginning...)

Deci


Title: Re: MGB111 update
Post by: filodej on June 16, 2008, 01:30:09 AM
Hello all,
Just for fun I am trying to build the X Window System for the device. Nothing ground-breaking so far but I have some progress. If you are interested how it looks for now, you can look here (http://filodej.blogspot.com/2008/06/wmu-6500fs-xorg-71-teaser.html).

Regards.


Title: Re: MGB111 update
Post by: Dynia on June 16, 2008, 14:25:19 PM
Filodej
X-window running on the box is really funny, but nothing more probably. It would be great if we could attach some screen to the device and keybord support. Do you think it is possible and worth doing?


Title: Re: MGB111 update
Post by: Dynia on June 16, 2008, 14:31:40 PM
Filodej
Just checked your blog - it`s really nice and will be helpfull for me. thank you for your time and work on that.
Regards, Dynia.


Title: Re: MGB111 update
Post by: JoKeR on June 16, 2008, 18:49:08 PM
It would be great if we could attach some screen to the device and keybord support. Do you think it is possible and worth doing?

This is not posible, no support in kernel - and meaningless, no graphics card so what for?
For this (keyboard, graphics, better cpu and others), buy:
very low price: neoware EON2000
airlive price: HP TC5525, Neoware CA2
more power and more expensive: clientron TC3590
all of them are better than airlive (-;


Title: Re: MGB111 update
Post by: filodej on June 16, 2008, 19:38:53 PM
Filodej
X-window running on the box is really funny, but nothing more probably. It would be great if we could attach some screen to the device and keybord support. Do you think it is possible and worth doing?

Hello,
first of all, thank you for visiting my web.

I personally am just trying to learn something new and have some fun, but generally I do not think the X-apps on the box are just fun and nothing more.

As far as some communication channel can be established (e.g. via TCP/IP in this case) the fact that input/output devices are not present does not matter so much. There is a whole variety of ways how to communicate with such a device.

For example following (mostly client/server) configurations are possible:
(by building X.Org libraries I am just trying to enable the point 3 - I am interested mainly in X client part - not in server part - but do not know the exact dependencies and so I am building all)

1) Web browser as a thin client connecting to a HTTP daemon running on the box (examples: built-in webUI, didiwiki, cvstrac, ...)
2) Telnet/SSH client running on separate machine and connecting to the box (example: mc)
3) X-client application running on the box and connecting to X-server running elsewhere (e.g. on a PC). Box serves as an application server and X client, PC serves as X server and app client (examples: X applications)
4) VNC (http://www.vnc.com/vnc/index.html) viewer connecting to VNC server (along with X server) running on the box (examples: X applications) - not sure it this is possible with Airlive.
5) Some peripherals connected to the box (e.g. via USB). I tried to search the Web and have found some description how to setup USB mouse and keyboard (http://www.linux-usb.org/USB-guide/x194.html) and that there is a USB2SVGA converter (http://articles.directorym.net/Tritton_See2_USB_2_0_SVGA_Adapter_Review-a880404.html) and a guide how to set it up (http://howto.wikia.com/wiki/Howto_configure_the_Linux_kernel/drivers/usb/misc/sisusbvga). I have no idea what the real possibilities are for the Airlive device and whether it is useful and practical but I think at least in principle it is possible.

Regards,
Filodej


Title: Re: MGB111 update
Post by: cypresstwist on June 20, 2008, 09:51:25 AM
I would kill for an mpd server binary...  :)


Title: Re: MGB111 update
Post by: filodej on June 20, 2008, 17:20:28 PM
I would kill for an mpd server binary...  :)
Now you can download it (along with its dependencies) on my page (http://filodej.blogspot.com/2008/06/wmu-6500fs-mpd-0132.html). I did not configure all the deps properly, hopefully fix it later.

Please, let me know if there are issues.

Filodej


Title: Re: MGB111 update
Post by: Kael on June 25, 2008, 12:15:41 PM
@JKR : noticed the latest FW with webcam support... do you have an idea about how to use the webcam from another computer or via web interface, this way it would be possible to monitor cam with web access? maybe some java applet...


Title: Re: MGB111 update
Post by: JoKeR on June 25, 2008, 14:50:48 PM
maybe read readme in firmware archive?
screen: http://mgb111.pradnik.net/m-releases/C009-M/webcam-screen.jpg


Title: Re: MGB111 update
Post by: Kael on June 25, 2008, 16:39:06 PM
Oops sorry... next time you can slap me... ^^
In fact i was asking  but didnot allready took time to DL the FW, i was at work and only seen it on your website.

I was not thinking you allready took time to implement this... thank you


Title: Re: MGB111 update
Post by: Kael on June 26, 2008, 08:18:38 AM
ok, it did install... but in the end my Logitech cam is not recognized by this driver, after some googling i need the latest gspca to make it work.


Title: Re: MGB111 update
Post by: JoKeR on June 26, 2008, 08:37:05 AM
gspca is for 2.6 kernels.


Title: Re: MGB111 update
Post by: Kael on June 26, 2008, 13:44:43 PM
yup...

But it seems possible to add compatibility with this driver with vendor code / model code ... i'll check about it this evening.


Title: Re: MGB111 update
Post by: ikorolev on June 30, 2008, 11:05:36 AM
JoKeR hello!
thank you for building so nice firmware. I'd like to make router from my wap-0008 with pptp to my provider.
Could you please be so kind to make new firmware (kernel) with support pptp ( it require ppp, mppe, crypto/api ). Unfortunately, crypto/api must be compiled into kernel :( other modules can be loadable...

Igor



Title: Re: MGB111 update
Post by: mrmx on July 16, 2008, 05:03:24 AM
There is a issue confuse me for long time. At first, I'm not a UNIX clone user. just know few thing regard to linux. So , If my question very stupid. Please kindly igonore.
I buy a WMU-6500FS as a FTP server for share something with my colleagues. I upgrade the FW to C009-M2 already. and I also DENY the anonymous visit the FTP by change /mnt/C/sys/etc/rc-local to load config file from /mnt/C/sys/etc.

My question is,How can I add the USB harddisk to every ftp users? By default, ftp user only can visit the PUBLIC folder and his own private folder.


Title: Re: MGB111 update
Post by: macsat on July 16, 2008, 07:37:33 AM

Can't you just make a symlink to the USB disk in the PUBLIC folder?

Something like:

Code:
cd /mnt/disk1/PUBLIC
ln -s /mnd/usbdisk1

I am NOT sure about theese paths, as I havent used my own device in quite some time, but I hope you get the general idea.

macsat


Title: Re: MGB111 update
Post by: sanecyclist on July 16, 2008, 07:45:57 AM
Just for fun I am trying to build the X Window System for the device. Nothing ground-breaking so far but I have some progress. If you are interested how it looks for now, you can look here (http://filodej.blogspot.com/2008/06/wmu-6500fs-xorg-71-teaser.html).
I've got Debian Etch running on my Safecom box and a while ago I installed KDE just for a laugh. It sort of worked (with the output on my PC), but as you can imagine it was just a little bit slow.  :P


Title: Re: MGB111 update
Post by: mrmx on July 16, 2008, 08:36:12 AM

Can't you just make a symlink to the USB disk in the PUBLIC folder?

Something like:

Code:
cd /mnt/disk1/PUBLIC
ln -s /mnd/usbdisk1

I am NOT sure about theese paths, as I havent used my own device in quite some time, but I hope you get the general idea.

macsat
It dosn't work. FTP client reply "[R] CWD USB_C
[R] 550 Failed to change directory."  :'(
I notice the anonymous user can see the USB folder due to it's home folder is /tmp/share. Nomally user can't due to it's home folder is /tmp/Virtual/username.
I think everything in /tmp is creating at the BOX boot-up by some script. If anybody can point out the file to me then I can find a way to complete it.


Title: Re: MGB111 update
Post by: hjf on July 16, 2008, 19:46:39 PM
can anyone provide the kernel .config ? I'm trying to build iSCSI support: http://www.ardistech.com/iscsi/

Managed to build the module but I got this:

$ insmod iscsi_trgt_mod.o
Using iscsi_trgt_mod.o
insmod: unresolved symbol __read_lock_failed
insmod: unresolved symbol rwsem_down_write_failed
insmod: unresolved symbol rwsem_wake
insmod: unresolved symbol rwsem_down_read_failed
insmod: unresolved symbol try_grab_cache_page

thanks


Title: Re: MGB111 update
Post by: hjf on July 17, 2008, 16:25:15 PM
does anyone know what kind of speed I can expect from a WMU-6500FS? I tried to copy files to it (a 4GB file) but I get 4MB/s only. To another computer on the LAN I get 11MB/s, so the WMU almost 3 times slower. If I telnet into it, and do a "top"  I see that smbd is at 100% CPU usage.


Title: Re: MGB111 update
Post by: Jajator on July 20, 2008, 09:41:56 AM
does anyone know what kind of speed I can expect from a WMU-6500FS...

i get a little over 4MB/s...there is no way that i know to speed it up :/


Title: Re: MGB111 update
Post by: macsat on July 21, 2008, 08:50:13 AM

We are using a small, very cheap device here :-)

If you want better performance, you should go for a "real" NAS solution, like the Buffalo Linkstation Pro or something like that. From that I get around 10-11 MB/sec read/write with SAMBA over Ethernet.

I dont have Gigabit, but the devices does support that. As 11 MB/sec is very close to 100Mbit, I dont know if the limit I see is the network or the device.

macsat


Title: Re: MGB111 update
Post by: ukez on July 24, 2008, 08:03:22 AM
I've just ordered a QNAP TS209 Pro II Turbo 256mb, brand new with 2x 500 sata II  Hitachi Drives... Woohoo!!

I'm now considering using my MGB111 device for a stand alone storage for my Axis 213 IP camera or maybe selling it, not sure yet.


Title: Re: MGB111 update
Post by: Deciman on July 25, 2008, 17:31:55 PM
Hi

How can I make enhanced ctorrent work WITH webinterface?

Code:
Check the ECTC Configuration
File: "./torrent_config.php" found

Check configuration of "./torrent_config.php"
$absolute_path: "/mnt/C/sys/www/ec/tmp/Torrent" found
Try to access the $absolute_path: "/mnt/C/sys/www/ec/tmp/Torrent"
write access successful to $absolute_path: "/mnt/C/sys/www/ec/tmp/Torrent"
$ctorrent_path: "/mnt/C/sys/bin/ctorrent" found
$ctorrent_path: "/mnt/C/sys/bin/ctorrent" Not executeable FAIL FAIL FAIL ...

Check the configuration of the environment
/bin/sh: Shell exists ...
/usr/bin/perl: Perl exists ...
/bin/ps: ps command exists ...

ctorrent is executable (chmod 755)

And I guess here is the problem...
Code:
Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /tmp/mnt/C/sys/www/ec/index.php on line 125
...
Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /tmp/mnt/C/sys/www/ec/index.php on line 476

How can I disable Safe-Mode to php?
Changing that in php-config (/mnt/C/sys/bin/php-config) to '--disable-safe-mode' shows no changes...

Deci



Title: Re: MGB111 update
Post by: JoKeR on July 25, 2008, 21:09:04 PM

How can I disable Safe-Mode to php?
Changing that in php-config (/mnt/C/sys/bin/php-config) to '--disable-safe-mode' shows no changes...

http://www.google.pl/search?q=php+safe+mode
http://www.php.net/features.safe-mode


Title: Re: MGB111 update
Post by: Deciman on July 26, 2008, 16:22:05 PM
At least I found it.
Safe-Mode was enabled by a missing php.ini in /sys/etc
And I've allways tried to disable that by the unused php.conf

Deci


Title: Re: MGB111 update
Post by: JoKeR on July 28, 2008, 11:37:14 AM
phpinfo() + search php.ini path. php.ini exist in apache archive.


Title: Re: MGB111 update
Post by: Deciman on July 30, 2008, 09:50:02 AM
php.ini exist in apache archive.

Yep, that's where I found it at least.
But is was named php.ini-dist (and by that reason it was unused until I've located and fixed that 'probem'. *g*)

Deci


Title: Re: MGB111 update
Post by: mrmx on August 01, 2008, 19:28:56 PM
Hello,
I have 2 network. One is Wireless Internet ,the other is company intranet. So I don't want's my 6500 work as a net-bridge. I'd like 6500 download something use wl0 and I can use 6500 as a NAS by eth1.

I cost many time to read every posible config file within 6500 and try to find help by google. But nothing. No config to told 6500 build the bridge. So, I assume there some script within the kernel.

I just know a little about linux. So I can't contiuse find the solution from the source provide by JoKeR.

JoKeR,Could you split the config out? Or could you advice a other solution? Thanks.


Title: Re: MGB111 update
Post by: JoKeR on August 02, 2008, 07:23:20 AM
google: brctl
google: iptables firewall


Title: Re: MGB111 update
Post by: mrmx on August 05, 2008, 16:23:34 PM
google: brctl
google: iptables firewall
Thank you. I really work hard to find answer by google. Just want to know where can find the script in MGB111 include such as:
brctl addbr br0
brctl addif br0 wl0
brctl addif br0 eth0
ifconfig eth0 0.0.0.0 up
ifconfig wl0 0.0.0.0

Could you show me some light?
I almost to read every file like a script.


Title: Re: MGB111 update
Post by: filodej on August 06, 2008, 11:58:28 AM
Hello all,
after a long, hard, exhausting process (I had to rebuild GCC compiler first) I managed to build deluge (http://deluge-torrent.org) torrent daemon/client for WMU6500fs box. It has many dependencies (including whole X.Org installation). The latest deluge version (1.0.0) does separate daemon from gui, however since I have started with 0.5.9 version and have satisfied all the dependencies already, I am not sure whether it is possible to build the daemon separately without all the dependencies.

Thus I do not dare to recommend the installation for all (dependencies are huge), but have to say that for me it works pretty well - I am running deluged daemon on the box and am connecting to it from several GUI clients running on separate hosts.

From here (http://filodej.blogspot.com/2008/08/wmu-6500fs-deluge-torrent-part-iii.html) one can download the built binaries (along with all the dependencies) and for those interested in whole build process rather than the result then this (http://filodej.blogspot.com/2008/07/wmu-6500fs-deluge-torrent-part-i.html) is the start of whole series of related posts.

The version I have built is 1.0.0. RC3, currently the newest is RC5, I am going to build the 1.0.0 full version once it is out. Also I am preparing very simple packaging system for easy package download and installation - I'll let you know when it is ready.

Regards,
Filodej


Title: Re: MGB111 update
Post by: Aqualung on August 17, 2008, 05:26:32 AM
The version I have built is 1.0.0. RC3, currently the newest is RC5, I am going to build the 1.0.0 full version once it is out. Also I am preparing very simple packaging system for easy package download and installation - I'll let you know when it is ready.

Awesome! Many thanks!


Title: Re: MGB111 update
Post by: Aqualung on August 17, 2008, 05:41:28 AM
does anyone know what kind of speed I can expect from a WMU-6500FS...
i get a little over 4MB/s...there is no way that i know to speed it up :/

You get 4? Gosh, I barely get 2.7! What ticks me off reqlly badly is the USB transfer speed, which is worse than via network!


Title: Re: MGB111 update
Post by: Dynia on August 22, 2008, 14:13:58 PM
Hello all,

my question should probably be addressed to Joker, but I would appreciate any opinion.

I`m not using the build-in WIFI card and I wonder about a possibiblity to replace it with   mini-pci video card, for example the one on the attached picture. Is it possible to make it working?

Many thanks in advance.


Title: Re: MGB111 update
Post by: Kael on August 27, 2008, 09:35:20 AM
Hi all,

anyone knows if thats possible to install a teamspeak server on the device?
I've tried, but it seems some libs are missing, launching ts server with scripts tells it cant find linux_server, and after some googling, some told that it is due to missing libc files...


Title: Re: MGB111 update
Post by: fedya on August 27, 2008, 21:19:37 PM
hello, have tryed change firmware at wap-0008 to airlive 6500 under linux by tftp.
Firmware update takes about 7 seconds...
After reboot device become dead: don't work/boot, don't go to recovery/service mode.
Is any thing to try recover device at home or i need take it to service center?


Title: Re: MGB111 update
Post by: macsat on August 28, 2008, 07:17:37 AM

You can try to start here:
http://www.macsat.com/macsat/component/option,com_openwiki/Itemid,66/id,recovery_from_bad_flash/



Title: Re: MGB111 update
Post by: fedya on August 28, 2008, 10:31:12 AM
Hello, i can't do following that recipe, because I alredy do that and after flashing by that method device become dead.
Now step 5,6 cant't be done, because after "Press the two buttons at once and holding buttons" + "power on " device  dont't go to cash/recovery mode. There only power led light on + network if lan plugged after turning on. After pressing power on shotdown led lights on for a half second too. I know that I press buttons right because i get recovery mode once :), now it don't work for this device.


Title: Re: MGB111 update
Post by: fedya on August 28, 2008, 10:57:47 AM
Ps: there are 2 non-installed ports on MB:
10 pin marked as com 2 and 16 pin non marked - what is 16 pin connector?


Title: Re: MGB111 update
Post by: fedya on August 28, 2008, 11:03:20 AM
and 2 cents more:
as tftp flash process goes 7 seconds instead normal ~60 secs, may be root image/fs is corrupted?
What can i do in this situation?
Can i reach jtag with siemens x25-45 cable?


Title: Re: MGB111 update
Post by: Dynia on August 28, 2008, 15:53:14 PM
The forum seems to be less active these days... I`ve got no replies to my question regarding the possibility to install videocard in the mini-pci slot which is occupied by WiFi card. May be I was not very clear in my previous post, so I`m going to provide more details on what I wanted.

I`d like to know whether it is possible or not to incorporate the video driver for ATI Rage (or some other low-cost video-card that are avalable on the market) into the firmwire? I checked the sources of current firmware - it has only support of very few video drivers (and not of ATY Rage).
So I wonder if it is possible to update video drivers in the firmwire and would it at least theoretically work.
Any ideas?
Regards. Dynia.


Title: Re: MGB111 update
Post by: ukez on September 08, 2008, 03:33:27 AM
If you get that mini PCI graphics card working, what next usb mouse and keyboard support...??  That could be pretty cool.. keep us posted on the out come of your dream..lol ;)


Title: Re: MGB111 update
Post by: carlosgs on September 11, 2008, 19:52:26 PM
I need help :(
I have bought a "Airlink 101 Airnas 350" (ANAS 350).
First of all, I searched for "how to hack it" and access it linux to install apache... etc

I installed the "Alternative Firmware for MGB111 compatible devices" and It worked.
I could use the telnet, the web menu worked well, with new features...
Everything worked well.

I brought it to spain by plane, and, when I arrived, I installed a hard drive, but, when I turned it on, nothing appears on the LAN. I connect it to my PC (linux) and it is not able to obtain a IP address.
I have tried to use the recovery mode, and I can TFTP .BIN files, but all of them last less than 10 seconds downloading :-\

I have tried to:
-Disconnect my HD
-Tftp all the .BIN files that I have found, all the downloads last < 10 seconds

Nothing works

I have tried all to recover my Airnas, but I'm starting to think that I'm not going to be able of recovering it :'(

Also, I cant find out what does "enable jtag" means...

Thank you very much for your help.


Title: Re: MGB111 update
Post by: Dynia on September 12, 2008, 06:39:52 AM
Hi Carlosgs,

Are you still able to enter the recovery mode? If yes, then I probably know how to help you. If not then you need to go to service probably. 
Regards, Dynia.


Title: Re: MGB111 update
Post by: carlosgs on September 12, 2008, 07:56:23 AM
Yes, I can enter the recovery, I can see the "recovery mode" page in the browser.
The problem is that all the .bin uploads that I do trough tftp last less than 10 seconds :-(
Thanks


Title: Re: MGB111 update
Post by: Dynia on September 12, 2008, 08:22:11 AM
There is a guide for flashing the box  with a firmwire with differend brand.
http://forum.ixbt.com/topic.cgi?id=11:38294:79#79 (http://forum.ixbt.com/topic.cgi?id=11:38294:79#79)
Unfortunatelly it is in Russian. May be you may use online translators, or I may tranlate it for you later.
Please not that it is important to use -i argument when flashing. did you do so? And also I don`t understand how you could see the recovery mode in the browser - does that means that the box boots to linux to certain level? according to my knowledge the recovery mode could only be detected when the leds were flashing in some special pattern.
regard, Dynia.


Title: Re: MGB111 update
Post by: carlosgs on September 12, 2008, 08:42:05 AM
Thank you
I'm going to see that page
I use linux, so the method for tftp is different.
I'm going to try with windows XP.

In my box, if you open 192.168.123.254 in the browser, and the recovery loader is on, you can see a red rectangle and it says "Recovery mode"
Also, the leds are flashing at the same time, very fast.

Thanks again, Carlosgs


Title: Re: MGB111 update
Post by: carlosgs on September 12, 2008, 12:31:48 PM
Finally, the box works :D

It has not accepted any firmware, none, either from linux or windows.

I runned the firmware update .exe provided by airlink101, and it detected the IP of the airlink.

I putted that IP in the windows firefox, and voila! I could acces my box again.
I updated to the custom firmware, just in case...

The problem is that my firefox in linux, when I input "AirNAS", it search in google for it, instead of searching for a device called "AirNAS" :-\

Thank you very much for your help.

Also... I have a 2.5 IDE HD, from a mac laptop, and an adapter from 2.5 to 3.5 IDE.
I have tried to format it, but there are errors. I've tried to format it with my laptop, and there is no way.
It's formatted in the "HFS" mac filesystem.
Do you have any idea to format it?
It has 40 GB...
The other HDs that I have are < 5 GB :-/
I have tried the adapter with another 2.5 IDE, and it works with the box.

Thank you very much again ;)


Title: Re: MGB111 update
Post by: goyoex on November 03, 2008, 21:37:46 PM
I bought an airlink wmu-6500fs last week. I´m trying to flash it with FW C009-M2 Advanced firm and and i am not capable. For webui the message goes out for me Unallowable upgrade file! and for recovery mode is late approximately nine seconds and says to me that this correct but I believe that does not load it.
How I can verify if the tftp was indeed correct.
could someone tell me that I am doing badly.

thanks


Title: Re: MGB111 update
Post by: Dynia on November 04, 2008, 09:05:50 AM
I bought an airlink wmu-6500fs last week. I´m trying to flash it with FW C009-M2 Advanced firm and and i am not capable. For webui the message goes out for me Unallowable upgrade file! ...

Hi goyoex,

Make sure that you completely unzip the image of the firmwire. Some files at JKR`s web site are zipped twice. So you need to verify the extension of your image before flashing that should be .bin (should not not be .zip or .tar or .bz)
 
I had the same issue before I realized above feature.


Title: Re: MGB111 update
Post by: Dynia on November 08, 2008, 21:23:13 PM
Hi all,

Anybody can advise how to solve the next issue?
I attached an external USB hard drive (FAT32) to the box but I was not able to copy or move any file to this usb drive (I`m accessing the box via PUTTY and running MC). I`ve got an error "cannot chmod $fileneame$ ...." It looks strange to me because i was logged in as a root and though was not able to write into this FAT32 drive. At the same time SAMBA is writing to this drive without any problems!
Thank you in advance,
Regards, Dynia.


Title: Re: MGB111 update
Post by: schufti on November 09, 2008, 22:03:04 PM
Hi,

if you were familiar with U, you would guess that the copy process wants to duplicate the access rights on the new (copied) file. BUT FAT32 doesn't support any (apart from r/o) access rights, so leading to the message that "chmod" (setting access rights) failed.... MC therefor gives you the option to skip (all), just to copy the files but skip the access rights.

schufti


Title: Re: MGB111 update
Post by: Dynia on November 10, 2008, 07:53:11 AM
Hi Shufti,

Thank you, actually a i`ve got some basic knowledge of Linux after spending some time with this device (thank you and JKR and everybody here) and I guessed that this is the obvious reason. The problem was that I did not know how to override that.  I`ll try your recipe and report later today. Thanks again and sorry for off-topic (Probably should do a bit more googling.)
Dynia.


Title: Re: MGB111 update
Post by: filodej on November 26, 2008, 23:45:15 PM
Hi all,
I am not sure whether (and how often) anyone comes here, anyway, just in case...

I have finished a very simple packaging system for pre-built packages I am providing on my blog (http://filodej.blogspot.com/). Unfortunately it does not handle the inter-packaging dependencies, it just automates the download/install/remove process, but still I hope it could help with installation a bit. The usage is very simple and is described here (http://filodej.blogspot.com/2008/11/simple-packaging-sysetm.html) in a detail.

Also I would like to announce that I finally found some time to build the deluge client version 1.0.5. It works like a charm on my box and I am going to provide a package with it. I believe I'll manage it till the end of the week.

Regards,
Filodej


Title: Re: MGB111 update
Post by: Dynia on November 27, 2008, 07:49:01 AM
Hi Filodej,

Be sure that this forum is not dead and people are hanging around. It is silent I guess because of all major issues are resolved. I`m completely happy with my Linux running on the box. But i will try you package management for sure and also the torrent client.
Previously i tried to install current version of Deluge client with X-term support, but did not manage to configure it to work.
I like to dig in Linux but unfortunatelly don`t have enough time for that.
Thanks a lot for your continued work improving the box and sharing results.

K.R. Dynia.


Title: Re: MGB111 update
Post by: filodej on November 29, 2008, 00:29:56 AM
Hello again,
as I announced, the package (http://filodej.ic.cz/filopack/deluge-1.0.5.tar.bz2) is uploaded and the post (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html) is written.

I hope you'll enjoy it.

Filodej


Title: Re: MGB111 update
Post by: Kael on December 02, 2008, 14:00:27 PM
Hi all,

After a few months, i decided to put an openvpn server on the device.
DL the openVPN tar from pradnik website, but as i wanted to follow instructions from the openvpn howto, i cannot see how to generate RSA keys for the server, it seems i need to use easy-rsa.

Someone here could give me more informations?

Thank you.


Title: Re: MGB111 update
Post by: Kael on December 04, 2008, 09:10:32 AM
Well...

got open vpn installed and configured, did generate the key from another computer.
But i've got issues with the TUN interface:

openvpn logs give this:

/sbin/ip link set dev /dev/net/tun up mtu 1500
SIOCSIFMTU: No such device

i've got /dev/mtu and others 0 1 2 3
i've got /dev/net/mtu

Someone knows what is wrong?


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on December 09, 2008, 20:37:14 PM
Dear all,

please be informed that I have followed Filodej's instructions on how to install Deluged Torrent Client that he has recently posted on this site and it works just fine!

Great job Filodej - thank you very much  ;D

instructions are here http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html)!
regards,
Christos


Title: Re: MGB111 update
Post by: Jeyes on December 10, 2008, 22:39:42 PM
Hello everyone,

I wonder what I would have done with my new Airlive if it wasn't for JKR and filodej.

After configuring my box following filodej's instructions, I installed the latest version of Transmission from JKR's site.
http://mgb111.pradnik.net/addons/soft-p2p/transmission-1.40%2Bwebui-081112.tar

It has a webui but I'm not sure how to configure and reach it correctly.
When I open the index.html file, I get the error "Could not connect to the server. You may need to reload the page to reconnect."
I tried to configure transmission-daemon with option -a <myIP>
I've tried to reach the ui at <boxIP>:9091
I wondered whether I had to change RPC constants in transmission.remote.js
I wondered whether I had to install php/apache for this.
Only then did I dare to question the experts personally. ^^

Thank you in advance for your help!
Greetings from Germany

P.S.: In case this has already been solved in this post, I'm sorry. I did try to find the solution in here but...


Title: Re: MGB111 update
Post by: athanasiades on December 12, 2008, 09:41:45 AM
Hello everyone,

I wonder what I would have done with my new Airlive if it wasn't for JKR and filodej.

After configuring my box following filodej's instructions, I installed the latest version of Transmission from JKR's site.
http://mgb111.pradnik.net/addons/soft-p2p/transmission-1.40%2Bwebui-081112.tar

It has a webui but I'm not sure how to configure and reach it correctly.
When I open the index.html file, I get the error "Could not connect to the server. You may need to reload the page to reconnect."
I tried to configure transmission-daemon with option -a <myIP>
I've tried to reach the ui at <boxIP>:9091
I wondered whether I had to change RPC constants in transmission.remote.js
I wondered whether I had to install php/apache for this.
Only then did I dare to question the experts personally. ^^

Thank you in advance for your help!
Greetings from Germany

P.S.: In case this has already been solved in this post, I'm sorry. I did try to find the solution in here but...

Hi,

I have tried long and hard to make transmission webUI work and I have failed miserably.  I would suggest that you follow filodej's instructions and install Deluge. That is what I did...

Greetings,

Nicholas


Title: Re: MGB111 update
Post by: loony114 on December 12, 2008, 22:10:14 PM
Hello everyone,

after having visited this thread lots of times as a guest, I finally registerd myself here in order to seek for help:

I recently decided to connect a webcam to my MBG111. So I replaced JoKer's C009-M2 advanced firmware that I had been using for quite a while with the C009-W2 version in order to have webcam support. The W2 version includes the spca5xx module 0.57 (sources available at http://mxhaard.free.fr/ (http://mxhaard.free.fr/) ).

I have a Logitech webcam (QuickCam Communicate STX) at hand that I planned to use with the MGB111. Unfortunately, the spca5xx 0.57 does not recognize that camera (vendorID 046d, deviceID 08d7). Previous versions of my camera used a different deviceID (08ad) which is included in the list of supported cameras. After checking some technical specs, I found out that both the 08ad and 08d7 versions use the same relevant hardware components.

I tried to check out if it's possible to get that camera working with a standard PC:
So for testing purposes I just edited the spca5xx source adding a new entry for my camera. I just needed to add some extra lines in order to get my deviceID known to the driver. I compiled the stuff, loaded the spca5xx module and - as expected - the webcam works fine.

Now for the problem: For various reasons I do not succeed in compiling the the spca5xx sources for my MGB111. Has anyone ever succeeded in doing so and if yes: how did you do it?
Generally spoken: I did compile some stuff for my MGB111 using an uclibc environment but those webcam drivers drive me crazy :)

The latest sources for 2.4 kernel are available at http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.tar.gz (http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.tar.gz)
If anyone has some spare time and wants to give it a try... ;)
Slightly modified /drivers/usb/spca5xx.c source attached.

Any hints greatly appreciated


Title: Re: MGB111 update
Post by: Jeyes on December 13, 2008, 16:08:23 PM
Deluge build didn't work for me.

Now I tried to use transmission withoug webgui, by starting transmission-daemon and then controlling it via transmission-remote .
But, no matter what I do, I get
transmission-remote: (localhost:9091) Couldn't connect to server

I've spent a whole day (24 hrs!!!) trying to solve this error but I cannot connect to my daemon.


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on December 13, 2008, 18:29:51 PM
If you complain for spending 1 day for setting-up a BT client, imagine what I should say for spending 2 months !!!  :o

Anyhow...I do not know when you've tried Deluged but let me tell you that I (and a college of mine) have successfully installed it based on Filodej's assistance. You have to follow the latest instructions described in Filodej's post since the post was been recently modified (i.e this week!).

I have personally followed his instructions with a fresh installation and everything worked just fine  :).
As for Transmission I have tried a lot of days to make it work, but with no success. I would recommend you to try again Deluged - unless if you've done so this week.

But any how, as for Transmission I have tried 1.21, 1.34 & 1.4.
In 1.21 I was able to have web-interface but no in 1.34 & 1.4. Also in all versions I was not able to upload or download anything. I have even created a post for 'transmission instructions' but no-one posted anything. Below you may have a look on my steps of installation/configuration - perhaps they might give you an idea.
---------------
Apache & PHP should be installed. Also Apache’s accessible directory should be set to “/mnt/C/sys/www” (via '/mnt/C/sys/apache22/conf/httpd.conf')

Transmission 1.21 & Clutch
1. For installing Transmission à untar 'transmission-1.21.tar.gz' in /mnt/C
2. For installing Clutch follow the steps below:

cd /mnt/C/sys/apache22/htdocs
tar -xvzf Clutch-0.4.tar.gz
   (rm Clutch-0.4.tar.gz)
mv Clutch-0.4 Clutch
chmod -R 777 Clutch
chmod -R 777 /mnt/C/sys/apache22/htdocs/Clutch/remote
cd Clutch
vi remote/data/socket.txt     (file should contain the followin: /mnt/C/sys/tmp/transmission.socket)
mkdir /mnt/C/sys/tmp
chmod -R 777 tmp
transmission-daemon -s /mnt/C/sys/tmp/transmission.socket
ln -s /mnt/C/sys/tmp/transmission.socket /mnt/C/sys/root/.config/transmission/daemon/socket
mkdir /mnt/C/BTfiles
chmod -R 777 /mnt/C/BTfiles
transmission-remote -f /share/Public/BTfiles
chmod -R 777 /mnt/C/sys/tmp/transmission.socket

To start Transmission & Clutch after manually after boot type the following:

transmission-daemon -f -s /mnt/C/sys/tmp/transmission.socket &
transmission-remote -f /share/Public/BTfiles
chmod -R 777 /mnt/C/sys/tmp/transmission.socket

Transmission 1.34 (with Clutch embedded)
a. Install ‘libs-essential-20080502.tar.bz2’ for installing further libraries (tar -xvjf libs-essential-20080502.tar.bz2).

b. unrar transmission 1.34
c. edit “profile” file within “/mnt/C/sys/etc” and add the following line:
    export CLUTCH_HOME=/mnt/C/sys/www

Transmission 1.40 (with Clutch embedded)
same as 1.34

good luck.

PS: I insist to try again deluged. It is very good !



Title: Re: MGB111 update
Post by: Jeyes on December 15, 2008, 22:40:44 PM
Yay, I did it, thanks to filodej.
FINALLY I can use my box for what I bought it.
GTKUI didn't work ("No module named gtk") but I like it better to connect from my Ubuntu anyway.
Thanks for insisting, Georgousopoulos Christos!


Title: Re: MGB111 update
Post by: loony114 on December 17, 2008, 11:51:52 AM
Udpate on webcam issue:

As the frickin' spca5xx sources (at least on the systems I tried) were not compilable at all, I started stripping down the C code getting rid of everything unnecessary for me. After a while, the result was basically a driver with support for exactly one camera model. Gradually re-adding the deleted parts and altering them to some extend to get rid of the tons of compiler errors, I finally got a more or less original spca5xx driver that is now compilable.

After linking the spca5xx kernel module, I gave it a try on my MGB111.

The good part: the module loads and after plugging the camera in, the [unused] flag in an lsmod listing is gone. The camera is known as /dev/video0.

The bad part: Any application I've tried so far that is attempting to access the camera crashes and entirely freezes the system.

Does anyone have an idea how to find out about the reasons for this behaviour respectively how to debug?

In case there's some progress, I'll post again...


Title: Re: MGB111 update
Post by: filodej on December 22, 2008, 13:12:19 PM
Hello everyone,
for quite some time I was happily using the JoKeR's version of dropbear (http://mgb111.pradnik.net/addons/servers-ssh/dropbear-ssh-sshd-050.3.tgz) but lately have found out, that (at least for me) it does not support publickey authentication, just password authentication worked (maybe I am doing something wrong, maybe JoKeR could shed some light on this issue).

Since this feature was crucial for me, I have build my own version. If somebody is interested either in the build process or the resulting package, both can be found here (http://filodej.blogspot.com/2008/11/wmu-6500fs-dropbear-052.html).

Regards,
Filodej


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on December 24, 2008, 11:53:19 AM
Merry Christmas & happy New Year to all of you :-)

I have a question for Joker or anyone else that has done it ...
basically I am talking about the feature of "C009-M2" for supporting "USB2USB link". I searched within this fourm & tutorials but I couldn't find anything concrete.

I bought a USB-to-USB (male-to-male cable) and connected my PC (running Vista) with the Airlive Box. I set the 'USB2USB' to 1 in the 'env-ng.txt' file, rebooted the box but nothing...
I cannot see the box from Vista (via USB), or see PC's hard-disks from the box by traversing to the mounted usb folder.

Could you please enlight me... ??? are there any files/drivers that need to be installed in advance, in order to activate this feature ?

All the best,
Christos


Title: Re: MGB111 update
Post by: Aqualung on December 25, 2008, 21:17:57 PM
Merry Christmas everyone!

Dear Filodej, could I get you to compile/build the latest Deluge release please?  :-[
I think they released the 1.0.7 update recently.

Many thanks,

Aqualung


Title: Re: MGB111 update
Post by: filodej on December 27, 2008, 19:55:32 PM
Hello Aqualung,
sorry but my plan was to wait for at least 1.1.0 before I update the package (release candidate is already out).

Is there any particular feature in the 1.0.7 you are waiting for?
Any progress regarding to your "Operation not permitted" issue (http://filodej.blogspot.com/2008/11/simple-packaging-sysetm.html?showComment=1230309840000#c2030955418971743614)?

Please, let me know.

Regards,
Filodej


Title: Re: MGB111 update
Post by: Aqualung on December 28, 2008, 00:22:50 AM
sorry but my plan was to wait for at least 1.1.0 before I update the package (release candidate is already out).
Alright, 1.1.0 sounds fine, thanks.
Quote
Is there any particular feature in the 1.0.7 you are waiting for?
Nope, it's just that they seem to have rushed 1.0.7 to the "market" quite soon after the previous version, which led me to believe that this might have been a bugfix--that is, fixing bugs that might have seriously crippled the previous version. In short, I had no particular reason other than a desire to have the most recent version.
Quote
Any progress regarding to your "Operation not permitted" issue (http://filodej.blogspot.com/2008/11/simple-packaging-sysetm.html?showComment=1230309840000#c2030955418971743614)?
Not yet. Box is ext2 formatted. Methinks that it doesn't work because I first downloaded the filopack.sh file on my Vista computer, after which I transferred it to the box (the box is not yet connected to the Internet). Will try to download it onto my other Internet-connected 6500FS, see if it works.

Cheers!


Title: Re: MGB111 update
Post by: loony114 on December 29, 2008, 21:24:18 PM
I bought a USB-to-USB (male-to-male cable) and connected my PC (running Vista) with the Airlive Box. I set the 'USB2USB' to 1 in the 'env-ng.txt' file, rebooted the box but nothing...
I cannot see the box from Vista (via USB), or see PC's hard-disks from the box by traversing to the mounted usb folder.

Could you please enlight me... ??? are there any files/drivers that need to be installed in advance, in order to activate this feature ?

Hello,

I guess, the cable you bought is not recognized by the usbnet driver. The number of cables known to the 2.4.28 usbnet kernel module is quite limited. Following are fragments of the corresponding C source. If your cable is not listed there, it won't work out of the box.
Code:
from usbnet.c (2.4.28 sources)

USB_DEVICE (0x0547, 0x2720), // AnchorChips defaults
USB_DEVICE (0x0547, 0x2727), // Xircom PGUNET
USB_DEVICE (0x077b, 0x2226),// Linksys USB200M
USB_DEVICE (0x0846, 0x1040),// Netgear FA120
USB_DEVICE (0x2001, 0x1a00), // DLink DUB-E100
USB_DEVICE (0x0b95, 0x1720), // Intellinet, ST Lab USB Ethernet
USB_DEVICE (0x07b8, 0x420a),// Hawking UF200, TrendNet TU2-ET100
USB_DEVICE (0x0557, 0x2009), // ATEN UC210T
USB_DEVICE (0x050d, 0x0004), // Belkin
USB_DEVICE (0x056c, 0x8100), // eTEK
USB_DEVICE (0x0525, 0x9901), // Advance USBNET (eTEK)
USB_DEVICE (0x0525, 0x2888), // EPSON USB client
USB_DEVICE (0x05e3, 0x0502), // GL620USB-A
USB_DEVICE (0x0525, 0x1080), // NetChip ref design
USB_DEVICE (0x06D0, 0x0622),// Laplink Gold
USB_DEVICE (0x067b, 0x0000), // PL-2301
USB_DEVICE (0x067b, 0x0001), // PL-2302

Note that the last change to this code is dated 15-dec-2002. So much for the chances your cable is included in the list...

Hope that helps.


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on December 30, 2008, 11:49:18 AM
Thank you very much for your information loony114.


Title: Re: MGB111 update
Post by: Aqualung on January 03, 2009, 12:44:34 PM
Dear Georgousopoulos Christos, dear Jeyes,

I see you've both had some success in installing Deluge on your boxes, so I figure I'd stop harassing Filodej, and ask you for help for a change. This is, as it were, your opportunity to "give back to the community," as they say ;D I would, hence, appreciate your help with this. I am prepared to allow either of you direct access to my box(es) via telnet, if push comes to shove.

For the life of me, I can't get this to work on either of my two Airlive boxes. I've followed Filodej's algorithm (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html)) religiously many times, but it still looks to me that it allows for subtle variations, as it is not fully 100% specific. It may be that his algorithm has some tacit presuppositions (presumably stemming from one's deeply ingrained Linux knowledge), and that's where things might have gone wrong in my case, as my Linux background is almost zilch. I can't imagine what could be otherwise.

I will be describing in the following the exact steps I've followed, specified down to sub-molecular level :D

0. I run Vista Ultimate x64 SP1 on my PC; I use jEditOQMath (http://www.activemath.org/projects/jEditOQMath/ (http://www.activemath.org/projects/jEditOQMath/)) to edit files like env-ng and profile on my PC, as it is guaranteed to not mess with the encoding/formatting;
1. Public folder of the box's HDD empty; both boxes flashed to Joker's latest and greatest C009-M2 Advanced;
2. downloaded all required software, prerequisites and dependencies in the root of the Public folder, except for minimal-config.tar; used some download accelerator for this job (IE7Pro (http://www.ie7pro.com/ (http://www.ie7pro.com/))); note that I didn't follow all the steps listed in Filodej's "Configuration" section (http://filodej.blogspot.com/2008/06/wmu-6500fs-box-with-jokers-fw.html (http://filodej.blogspot.com/2008/06/wmu-6500fs-box-with-jokers-fw.html)), as I didn't understand some of them, nor did it seem to be necessary--not, at least, according to his algorithm;
3. downloaded minimal-config.tar on my PC; edited both env-ng and profile with jEditOQMath, reinserted them back in the tar archive, and transferred this to the box (ftp://aqualung.homeip.net/ (ftp://aqualung.homeip.net/)); at this point I beg you to examine both files closely, as it is important that all configuration files are in order--this (configuration) is, I guess, the main place where things could've gone wrong;
4. Untarred all files listed in Filodej's list, in the order indicated (even though, I suspect, the order doesn't really matter):

tar xvf minimal-config.tar
tar xvjf libs-essential-20080502.tar.bz2
tar xvf util-linux.tar
tar xvf nfs-utils.tar
tar xvzf busybox2-extended.tar.gz
tar xvf modules-kernel.tar
tar xvf modules-kernel-extra.tar
tar xvzf bash-3.2.33-3.tar.gz

reboot via Airlive's WebUI

tar xvjf deluge-1.0.5-gcclibs.tar.bz2
tar xvjf glib-2.17.2.tar.bz2
tar xvjf readline-5.2.tar.bz2
tar xvjf boost-1.35.0.tar.bz2
tar xvjf python-2.5.2.tar.bz2
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
tar xvjf dbus-1.2.1.tar.bz2
tar xvjf dbus-glib-0.76.tar.bz2
tar xvjf dbus-python-0.82.4.tar.bz2
tar xvjf pygobject-2.14.2.tar.bz2
tar xvjf pyxdg-0.15.tar.bz2

reboot via Airlive's WebUI

5. At this point I tried working w/o the "GUI dependencies":

tar xvjf deluge-1.0.5.tar.bz2

reboot via Airlive's WebUI

6 Ran deluged.sh;
7. attempted to connect to the Deluge WebUI from my PC: http://192.168.xxx.xxx:8112/; tried both IE7 and FireFox;
8. Nuffink.
9. I earlier tried w/GUI dependencies, even though I'll try it again, so above @ step 4 insert:

tar xvjf x11-7.1.tar.bz2
tar xvjf gtk+-2.13.3.tar.bz2
tar xvjf pycairo-1.4.12.tar.bz2
tar xvjf pygtk-2.12.1.tar.bz2
tar xvjf atk-1.22.0.tar.bz2
tar xvjf glade3-3.4.5.tar.bz2

before the last reboot.

Please tell me what I've done wrong. Some bad configuration? Some missing dependency/prerequisite?

Please help.

Many thanks.

Aqualung


Title: Re: MGB111 update
Post by: filodej on January 05, 2009, 17:16:09 PM
Hello Aqualung,
when you informed me (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html?showComment=1230594300000#c4719765012496504011) about your miserable situation, you did not mention that you are running just daemon and not the client ;-)

I am not using the Web UI but as far as I know, after running the deluge daemon, you have to run the deluge client on the box as well (daemon itself does not serve as a http server, web ui client does):

box# deluged.sh
box# deluge --ui=web
...

... then (after a while) you are able to connect to the web with your browser.

However, I do not recommend this approach. While daemon itself consumes about 50% of box physical memory, the web ui client takes about 25% more (actually this numbers can be biased since some memory can be shared among python shared libraries) and thus the overall performance is relatively low.

Regards,
Filodej


Title: Re: MGB111 update
Post by: Aqualung on January 05, 2009, 20:10:34 PM
you did not mention that you are running just daemon and not the client ;-)

I am not using the Web UI but as far as I know, after running the deluge daemon, you have to run the deluge client on the box as well (daemon itself does not serve as a http server, web ui client does):

box# deluged.sh
box# deluge --ui=web
...

... then (after a while) you are able to connect to the web with your browser.

However, I do not recommend this approach. While daemon itself consumes about 50% of box physical memory, the web ui client takes about 25% more (actually this numbers can be biased since some memory can be shared among python shared libraries) and thus the overall performance is relatively low.

Many thanks for the "detail." I've looked on the Deluge website, but it's not as if they're brimming with information... ::)

At any rate, things seem to be working now, though I'd very much like to know how to change the language of the UI from (what it looks to me to be) Polish to English, as my Polish is a li'l rusty these days  :D

Otherwise, save for accessing the Deluge client via the Web UI, what approach do you recommend?

Many thanks, again, for your work and attention, and keep up the good work. Eagerly awaiting the final Deluge 1.1.0! :)


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 06, 2009, 12:50:39 PM
Dear Aqualung,
 I would recommend you to run the thin client and not the web-UI as it slows down the box a lot!

Also imagine than transmitting a bunch of stings (in case of Thin client) in contrast to running a web-server/php/transmitting data (in case of web UI) is far more preferable in terms of performance.  ;)

regards,
Christos


Title: Re: MGB111 update
Post by: Aqualung on January 06, 2009, 15:15:43 PM
I would recommend you to run the thin client and not the web-UI as it slows down the box a lot!

Thanks for the suggestion, but let me come clear about some of the terminology, as it's getting a little confusing:

So far we have:

1. Deluge client (deluge (or deluge.sh (the script)))
2. Thin client
3. Deluge daemon (deluged (or deluged.sh (the script)))
4. Deluge WebUI

Would you mind telling me which one's which please (simplifying, of course)? Is it that 1=4 and 2=3 (at least in this context)?

Also, I need some clarifications w/regards to the whole daemon & WebUI stuff: If I run both commands (deluge & deluged) as instructed, the Deluge WebUI is accessible only for the duration of the telnet session. After closing the telnet session (which can only be done inelegantly by closing the window(!)), I take it the deluge client (the "WebUI") gets shut off. Is that how it's supposed to work? (If that is so, then it seems to me to defeat the whole purpose of an autonomous WebUI in the first place!)

Moreover after firing up (only) the deluge daemon (deluged.sh), attempting to exit the telnet session via the exit command doesn't return me to the usual Vista command-line prompt. I only get a "logout" message, and that's where it stops. I have to close the cmd window, and open it anew, so that I can get back to running telnet, and logging back in onto the box. Is that how it's supposed to be? Or is this a bug of sorts?

Say now that I run only the deluge daemon on the box. How would I access it other than via the WebUI? I take it that I could also run the deluge command with different parameters, so that, in case the GUI dependencies are installed, I get the "GTK client" kick in and produce some graphic Deluge, right? But, as I understand, this is very slow too.

How else? (Gosh, this whole double-talk about "clients" everywhere has gotten me awfully confused... After all, Deluge is a (bit-torrent) client, right?)

Many thanks.

Aqualung


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 06, 2009, 16:35:39 PM
Hi again,

All 1-4 are completely distinct. Let me try and explain to you.

Deluge daemon is activated by running the 'deluged.sh'. Without this you cannot do anything. It is the main application that manages the torrent files.

Now since the server is running you need to have an interface in order to interact with the server e.g. add/delete torrent files. There are three ways to do so, via:
1. web interface - WebUI
2. linux console  - deluge.sh
3. Thin client     - a deluge torrent client running on a separate machine (recommended)

Method 1 is quite heavy since a web-server & php has to run in the background in order to serve you with web-pages of information related to your server i.e. the interface managing the deluge server on your box. The web-server, php & deluged has obviously to run at your box and that makes it really slow.

Method 2 is pretty nice but has no graphical interface - very light.

Method 3 is what I recommend. And here is how it works. You start the deluged.sh daemon in your box. Then from a different machine (that has greater performance) e.g. a PC running vista, you start deluge torrent client (the version for windows). Now from the PC running the deluge you have the option of remotely connecting to the deluge server running on the box. In that instance what happens is that the deluge server running on the box feeds the deluge client running on PC with appropriate data. So, the server runs in the box but the client runs in the PC - which actually handles on the graphical stuff.

I would also recommend you to read a little bit carefully Filodej's blog and deluge web-site (specially the 'developers' section) - those site provide all the necessary information to your questions! - these are the sources from where I learned all about deluged...


Though, you might be interested in knowing the following - and maybe Filodej can help here...
Today that I have upgraded my deluge client running on vista PC to version 1.1.0-RC3, I can connect to the deluge server running on the box but no information are depicted i.e. I can see connection stats at the bottom of the bar but no torrent files- maybe this is an incompatibility between different versions.
Therefore I would recommend you to install the same version of deluge to your PC as the own that you have in your box.


In order to achieve deluge daemon to stay in the background run:
LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0 /usr/lib/libgcc_s.so" deluged

Also, if you add the '-help' parameter to the above line, you will get all the possible parameters deluge can accept. There you will see that if you add, for instance, the parameter '-d' , the deluge will not be daemonised and therefore every time you close your window it is automatically shutdown.

Also, when you shut-down the server, either by 'ctrl+c', closing the window, 'halting' the server from the console client, deluge needs some time to close properly and this is the reason why it seems that the window is frozen...


hope that helps.


PS: I would recommend you for a start in order to get an idea, to ...
1. start the deluge daemon, maybe add the '-d' parameter in order to observer the console messages of the server. Then after the server loads completely, wait e.g 15-30 secs open another window and load the console client
2. The console client may be load by running 'deluge.sh'.
3. Once the client is loaded, type 'connect localhost' to connect to the server
4. type 'help' for getting a list of all possible console-commands.

good luck
2. 









Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 06, 2009, 17:05:31 PM
in case you need Deluge 1.0.6 for windows
I have uploaded it here for you:
http://rapidshare.com/files/180408724/deluge-1.0.6-32.msi.html (http://rapidshare.com/files/180408724/deluge-1.0.6-32.msi.html)

PS: it can be downloaded 10 times.

regards,
Christos


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 06, 2009, 17:52:40 PM
or you can try this that has all the versions !
http://download.deluge-torrent.org/source (http://download.deluge-torrent.org/source)


Title: Re: MGB111 update
Post by: Aqualung on January 07, 2009, 21:49:01 PM
All 1-4 are completely distinct. Let me try and explain to you.

Many thanks.

Quote
Method 3 is what I recommend.

Got it, method 3 it is.

Quote
I would also recommend you to read a little bit carefully Filodej's blog and deluge web-site (specially the 'developers' section) - those site provide all the necessary information to your questions! - these are the sources from where I learned all about deluged...

I've been going over these two left and right, day in and day out, for the past month. Not to mention scouring the Internet top to bottom. I am more confused than ever.

Quote
In order to achieve deluge daemon to stay in the background run:
LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0 /usr/lib/libgcc_s.so" deluged

Did you find this line anywhere on the Deluge website?? Where?

Quote
Also, when you shut-down the server, either by 'ctrl+c', closing the window, 'halting' the server from the console client, deluge needs some time to close properly and this is the reason why it seems that the window is frozen...

After a clean installation (meaning install everything from scratch), i run deluged.sh to start the daemon, and then, at box prompt, I type exit just so I close the telnet session. After a "logout" message, things get stuck: I don't get a prompt anymore, regardless of how much time I give it (see this:

(http://img152.imageshack.us/img152/1070/telnetdq1.png)
).

I even left it overnight like that. Nothing moves there. The only way I can get out of that is to hard-close the window. Is that how it's supposed to act? To me it looks fishy.


Title: Re: MGB111 update
Post by: Aqualung on January 07, 2009, 22:07:20 PM
PS: I would recommend you for a start in order to get an idea, to ...
1. start the deluge daemon, maybe add the '-d' parameter in order to observer the console messages of the server. Then after the server loads completely, wait e.g 15-30 secs open another window and load the console client
2. The console client may be load by running 'deluge.sh'.

That starts the GTK, right? Or the console? Doesn't the console start w/"null" or something? Or do I confuse these two as well? I didn't install GTK on the box (not interested).


Title: Re: MGB111 XBOX360 MEDIA SERVER
Post by: ede on January 08, 2009, 17:21:48 PM
XBOX MEDIA SERVER
OK it seems I am one step closer to setting up  ushare on my MGB111 device to enable media sharing to work with my XBOX360.

I'm going to try and put together a step by step which will hopefully help others to customise their MGB111 to work as a UPnP (TM) A/V & DLNA Media Server with their XBOX360, if anyone notices any mistakes please correct me.

The files used were obtained from the  http://mgb111.pradnik.net website, its worth checking out.

The MGB111 device User Access Configuration was configured in [Guest] mode when i carried out the following.

Note: [Authorisation] mode wasn't enabled for this configuration setup.


1.) Type the following-->       Telnet 192.168.xxx.xxx - (The digits being your drives ip address)

2.) Hit Enter

3.) Type the following-->       cd /mnt/C/

4.) Hit Enter

5.) Type the follwing-->         wget http://mgb111.pradnik.net/addons/servers-av-upnp/ushare-1.1a2-xbox.tar

6.) The word Connected will then be displayed and also Length: 2,641,920 [application/x-tar]

7.) Type the following-->       tar xvf ushare-1.1a2-xbox.tar (to uncompress files to directory's)

8.) Hit Enter

9.) The following below will be displayed.*

Quote
*

./sys
./sys/share
./sys/share/locale
./sys/share/locale/fr
./sys/share/locale/fr/LC_MESSAGES
./sys/share/locale/fr/LC_MESSAGES/ushare.mo
./sys/share/locale/de
./sys/share/locale/de/LC_MESSAGES
./sys/share/locale/de/LC_MESSAGES/ushare.mo
./sys/etc
./sys/etc/ushare.conf
./sys/etc/init.d
./sys/etc/init.d/ushare
./sys/bin
./sys/bin/ushare
./sys/lib
./sys/lib/libupnp.a
./sys/lib/libupnp.la
./sys/lib/libupnp.so
./sys/lib/libupnp.so.2
./sys/lib/libupnp.so.2.0.3
./sys/lib/libixml.a
./sys/lib/libixml.la
./sys/lib/libixml.so
./sys/lib/libixml.so.2
./sys/lib/libixml.so.2.0.3
./sys/lib/libthreadutil.a
./sys/lib/libthreadutil.la
./sys/lib/libthreadutil.so
./sys/lib/libthreadutil.so.2
./sys/lib/libthreadutil.so.2.1.0


10.) Type the following-->       rm ushare-1.1a2-xbox.tar  (To remove Archive from drive)

11.) Telnet your device again, login the run the following:  ushare -x

12.) Switch on your xbox360 check your Videos, Pictures, Music ( Don't forget to change the source on your XBOX360 to MGB111 device.

Note, i am still trying to work this out myself, but I've had it partially working up to the point i'm showing here, although it only works while the telnet application is open, i haven't worked out how to make it automatically boot up with the drive yet.

Pro's & Cons Below:

Pros:
1) I've not yet and any problems at all video streams, I've even ad some High Definition movies running sweet from another room over wifi and its so far very impressive.

2) Videos Play pretty much instant so far.

3) Divx seems to be fully supported.


Cons:

This application works fine, but I recommend you use it to stream video and Images only.  The problem i found with using audio files is that it dumps them all in the same category i.e if you select the album tab on your console the console displays every single individual track under that tab, the same apply's to artist name and genre as well.


This helped me a lot ... but I still can´t get the connection between xbox360 and airlive WMU6500 running. I am struggeling with step 11 "login the run the following:  ushare -x" how do I run it? I´m working with WinXP and telnet ... I also read about this rc-local script - do I need this, what does it exactly do?

A different attempt of mine was to upload the config file via ftp, but that didn´t work because of some sort of write protection.


Please help ... I´ve been trying for hours now.

By the way ... is there a firmware that has the ushare thing already implemented? maybe a good allround fw with all the tweaks already made?

greetz ede


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 09, 2009, 09:09:02 AM
Quote
Quote from: Georgousopoulos Christos on January 06, 2009, 16:35:39 PM
PS: I would recommend you for a start in order to get an idea, to ...
1. start the deluge daemon, maybe add the '-d' parameter in order to observer the console messages of the server. Then after the server loads completely, wait e.g 15-30 secs open another window and load the console client
2. The console client may be load by running 'deluge.sh'.

That starts the GTK, right? Or the console? Doesn't the console start w/"null" or something? Or do I confuse these two as well? I didn't install GTK on the box (not interested).

This starts the deluge daemon and the console client - no GUI interface.


Title: Re: MGB111 update
Post by: filodej on January 09, 2009, 10:36:25 AM
This starts the deluge daemon and the console client - no GUI interface.

Hello,

in my case the deluge.sh does run the GtkUI (rather than NullUI), it seems to me that it is the default behavior.
You can definitely change it if you modify the deluge.sh (in order to contain --ui=null argument) or by modifying the ui.conf file:

box# cat ~/.config/deluge/ui.conf
(dp1
S'default_ui'
p2
S'gtk'
p3
box# sed "s/S'gtk'/S'null'/g" ~/.config/deluge/ui.conf
(dp1
S'default_ui'
p2
S'null'
p3
box# sed -i "s/S'gtk'/S'null'/g" ~/.config/deluge/ui.conf


... for an explanation see deluge faq: [Howto start various UIs] (http://dev.deluge-torrent.org/wiki/Faq#Howtostartthevarioususer-interfaces).

One more note regarding the deluge.sh/deluged.sh scripts: I have created it as a workaround for library preload, but I found them little bit inconvenient since they are not passing the command-line parameters (you cannot write e.g. deluge.sh --ui=null):

Instead of following contents:

deluge:
    LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluge
deluged:
    LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluged

... there should have been rather the following:

deluge:
    LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluge "$@"
deluged:
    LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluged "$@"

I am going to fix that in following version, for now you can fix it for yourself as follows:

box# sed -i 's/deluge$/deluge \"\$\@\"/g' `which deluge.sh`
box# sed -i 's/deluged$/deluged \"\$\@\"/g' `which deluged.sh`


Before you run the previous commands you can run them without the -i argument to make sure they do what is expected:

box# sed 's/deluge$/deluge \"\$\@\"/g' `which deluge.sh`
LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluge "$@"
box# sed 's/deluged$/deluged \"\$\@\"/g' `which deluged.sh`
LD_PRELOAD="/usr/lib/libssl.so.0.9.7 /usr/lib/libboost_filesystem-gcc41-mt-1_35.so.1.35.0" deluged "$@"


Regards,
Filodej


Title: Re: MGB111 update
Post by: Aqualung on January 09, 2009, 10:42:13 AM
Dear Christos, dear Filodej, dear all,

As this thread has gotten awfully large, and as this Deluge discussion seems to be branching off from the initial intent of the initial poster, I will be starting another thread dedicated specifically to Deluge on WMU-6500FS or similar devices. Please do me the favor of joining me on the other thread.

Cheers,

Aqualung


Title: Re: MGB111 XBOX360 MEDIA SERVER
Post by: ukez on January 09, 2009, 19:09:02 PM
I'll respond later buddy, dont worry though as it will work.. ;D


Title: Re: MGB111 update
Post by: ESTIMULO on January 10, 2009, 18:27:46 PM
Dear Georgousopoulos Christos, dear Jeyes,

I see you've both had some success in installing Deluge on your boxes, so I figure I'd stop harassing Filodej, and ask you for help for a change. This is, as it were, your opportunity to "give back to the community," as they say ;D I would, hence, appreciate your help with this. I am prepared to allow either of you direct access to my box(es) via telnet, if push comes to shove.

For the life of me, I can't get this to work on either of my two Airlive boxes. I've followed Filodej's algorithm (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html (http://filodej.blogspot.com/2008/11/wmu-6500fs-deluge-torrent-part-iv.html)) religiously many times, but it still looks to me that it allows for subtle variations, as it is not fully 100% specific. It may be that his algorithm has some tacit presuppositions (presumably stemming from one's deeply ingrained Linux knowledge), and that's where things might have gone wrong in my case, as my Linux background is almost zilch. I can't imagine what could be otherwise.

I will be describing in the following the exact steps I've followed, specified down to sub-molecular level :D

0. I run Vista Ultimate x64 SP1 on my PC; I use jEditOQMath (http://www.activemath.org/projects/jEditOQMath/ (http://www.activemath.org/projects/jEditOQMath/)) to edit files like env-ng and profile on my PC, as it is guaranteed to not mess with the encoding/formatting;
1. Public folder of the box's HDD empty; both boxes flashed to Joker's latest and greatest C009-M2 Advanced;
2. downloaded all required software, prerequisites and dependencies in the root of the Public folder, except for minimal-config.tar; used some download accelerator for this job (IE7Pro (http://www.ie7pro.com/ (http://www.ie7pro.com/))); note that I didn't follow all the steps listed in Filodej's "Configuration" section (http://filodej.blogspot.com/2008/06/wmu-6500fs-box-with-jokers-fw.html (http://filodej.blogspot.com/2008/06/wmu-6500fs-box-with-jokers-fw.html)), as I didn't understand some of them, nor did it seem to be necessary--not, at least, according to his algorithm;
3. downloaded minimal-config.tar on my PC; edited both env-ng and profile with jEditOQMath, reinserted them back in the tar archive, and transferred this to the box (ftp://aqualung.homeip.net/ (ftp://aqualung.homeip.net/)); at this point I beg you to examine both files closely, as it is important that all configuration files are in order--this (configuration) is, I guess, the main place where things could've gone wrong;
4. Untarred all files listed in Filodej's list, in the order indicated (even though, I suspect, the order doesn't really matter):

tar xvf minimal-config.tar
tar xvjf libs-essential-20080502.tar.bz2
tar xvf util-linux.tar
tar xvf nfs-utils.tar
tar xvzf busybox2-extended.tar.gz
tar xvf modules-kernel.tar
tar xvf modules-kernel-extra.tar
tar xvzf bash-3.2.33-3.tar.gz

reboot via Airlive's WebUI

tar xvjf deluge-1.0.5-gcclibs.tar.bz2
tar xvjf glib-2.17.2.tar.bz2
tar xvjf readline-5.2.tar.bz2
tar xvjf boost-1.35.0.tar.bz2
tar xvjf python-2.5.2.tar.bz2
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
tar xvjf dbus-1.2.1.tar.bz2
tar xvjf dbus-glib-0.76.tar.bz2
tar xvjf dbus-python-0.82.4.tar.bz2
tar xvjf pygobject-2.14.2.tar.bz2
tar xvjf pyxdg-0.15.tar.bz2

reboot via Airlive's WebUI

5. At this point I tried working w/o the "GUI dependencies":

tar xvjf deluge-1.0.5.tar.bz2

reboot via Airlive's WebUI

6 Ran deluged.sh;
7. attempted to connect to the Deluge WebUI from my PC: http://192.168.xxx.xxx:8112/; tried both IE7 and FireFox;
8. Nuffink.
9. I earlier tried w/GUI dependencies, even though I'll try it again, so above @ step 4 insert:

tar xvjf x11-7.1.tar.bz2
tar xvjf gtk+-2.13.3.tar.bz2
tar xvjf pycairo-1.4.12.tar.bz2
tar xvjf pygtk-2.12.1.tar.bz2
tar xvjf atk-1.22.0.tar.bz2
tar xvjf glade3-3.4.5.tar.bz2

before the last reboot.

Please tell me what I've done wrong. Some bad configuration? Some missing dependency/prerequisite?

Please help.

Many thanks.

Aqualung
Hello my friedns.
I followed those steps to try deluged.sh but I get this error:
Quote
[ESTIMULO@Airlive_Storage C]$ deluged.sh                   
/usr/bin/python: Can't resolve symbol '_Unwind_SjLj_Register'
[ESTIMULO@Airlive_Storage C]$
any idea?
Thanks and sorry my poor english.


Title: Re: MGB111 update
Post by: Res on January 10, 2009, 21:24:05 PM
Hi,

first sorry for my bad english.
I have some trouble with my MGB111, I have the Pearl Version with  the Airlive Firmware. I testet the R400a8 FW this versions runs okay but i have te 2GB limit problem Torrent).
by the Firmware R400b4 or other ones  (FW C009-M2 Advanced, 400b4.c009m2)  i got my BIGGEST problem. I can only leech 1 Torrent when I startet the second it come *invalid Port*

Can anyone help me....... i need only the BT Client by my MGB111


Gruss


Title: Re: MGB111 update
Post by: Aqualung on January 10, 2009, 21:59:08 PM
i got my BIGGEST problem. I can only leech 1 Torrent when I startet the second it come *invalid Port*

That's why we've been looking for another BT client for a good while now, because the one that comes with the official GUI blows chunks. Read the stuff about Deluge--that seems to be your best bet for now.


Title: Re: MGB111 update
Post by: ede on January 10, 2009, 23:13:21 PM
I have some trouble with my MGB111, I have the Pearl Version with  the Airlive Firmware. I testet the R400a8 FW this versions runs okay but i have te 2GB limit problem Torrent).
by the Firmware R400b4 or other ones  (FW C009-M2 Advanced, 400b4.c009m2)  i got my BIGGEST problem. I can only leech 1 Torrent when I startet the second it come *invalid Port*

That is strange ... I work with the WMU-6500FS and the R400a8 FW - torrent´s over 2gb and more torrents at the same time work fine with the clean standart fw. Although better scheduling features and something like peerguardian would be nice.


Gruss zurück...
...my german companero.


Title: Re: MGB111 update
Post by: Res on January 11, 2009, 13:40:13 PM
Hi,
many thanks for them answer.

@ ede also if you should find something, please let me (us) know it. Mail is in the profile.

...my german Amigo.:)


Title: Re: MGB111 update
Post by: Aqualung on January 11, 2009, 17:21:41 PM
I have some trouble with my MGB111, I have the Pearl Version with  the Airlive Firmware. I testet the R400a8 FW this versions runs okay but i have the 2GB limit problem Torrent).
by the Firmware R400b4 or other ones  (FW C009-M2 Advanced, 400b4.c009m2)  i got my BIGGEST problem. I can only leech 1 Torrent when I start the second it come *invalid Port*

That is strange ... I work with the WMU-6500FS and the R400a8 FW - torrent´s over 2gb and more torrents at the same time work fine with the clean standart fw.

I get the same "invalid Port" error with certain trackers. Drives me crazy. Again, switch to Deluge, and never look back. The default BT client is a piece of crap. And very slow. Whoever designed the default GUI should be drowned in cat piss and set on fire. I'd personally be delighted to skin them alive, the bastards. >:( This is no way to treat paying customers.


Title: Re: MGB111 update
Post by: ede on January 11, 2009, 18:23:06 PM
hope i manage to get delunge and the xbox media server running - samba works like charm with the old xbox, but streaming hd to the 360 combined with delunge as a good torrent client would come in handy. that is all i need but since you linux pros seem to have a hard time installing it i doubt that with my lack of linux knowledge i´ll ever get it working properly.

hope someone comes up with a good guide in the delunge thread ;)

greetz


Title: Re: MGB111 update
Post by: ede on January 12, 2009, 11:31:24 AM
back to the media server thing ... step 11 the one i was struggeling with
exec /sys/etc/init.d/ushare   - wasnt so hard after all ;)

after that step i got the message "ushare running blabla ..." but still dont find the shares on my 360 ... telnet still open. any ideas?


Title: Re: MGB111 update
Post by: loony114 on January 15, 2009, 11:02:43 AM
Hello everyone,

in order to interrupt the Deluge discussion a bit, I have a question that has been bugging me for quite a while now:

How to get rid of that damn amit_httpd? To be more precise: How can I prevent it from being started automatically (I guess I can't without building a new FW-image). Alternatively: How to prevent it from being restarted automatically after being killed? When I 'killall amit_httpd', it's being restarted instantly.

Waiting for any hints...


Title: Re: MGB111 update
Post by: loony114 on January 15, 2009, 11:59:29 AM
A little explanatory addition to my last post:

I do not feel good with the standard web-UI running with the default password (airlive). As soon as I change that password to something else though, I cannot login as root via ssh anymore for some weird reason...


Title: Re: MGB111 update
Post by: ESTIMULO on January 22, 2009, 11:16:25 AM
I have a strange problem. I mount a NFS share and start copying a large file. Let's say a 700MB avi. After a time, at about 30% the transfer stops. Sometimes it starts agaim, sometimes it gives me a "no space left" error, although there's plenty of space on the NAS. Does anyone experience the same issues? ???
i have the same problem with samba nad FTP :) ive got used to it :)
same problem here with samba  >:(
please, can someone help me with this problem? I am using the las modified advanced firmware on ovislink.
Thanks


Title: Re: MGB111 update
Post by: ESTIMULO on January 22, 2009, 12:34:43 PM
I have a strange problem. I mount a NFS share and start copying a large file. Let's say a 700MB avi. After a time, at about 30% the transfer stops. Sometimes it starts agaim, sometimes it gives me a "no space left" error, although there's plenty of space on the NAS. Does anyone experience the same issues? ???
i have the same problem with samba nad FTP :) ive got used to it :)
same problem here with samba  >:(
please, can someone help me with this problem? I am using the las modified advanced firmware on ovislink.
Thanks
reflashed with Firmware: BASIC version
Actual: C009 (11.05.2008)
and the problem persist: No space left on device (750 gb ext2 partition with more than 500 gb free)


Title: Re: MGB111 update
Post by: Georgousopoulos Christos on January 22, 2009, 14:33:24 PM
why don't you use the advanced version. For me it works just fine.


Title: Re: MGB111 update
Post by: ESTIMULO on January 22, 2009, 15:05:53 PM
I was using the advanced version until I got "no space left" error (in transmission and copying files from samba). Then I have installed the Basic version but have the same error...
I found an answer from Jocker telling that its necesary to check disk from web-ui to solve this problem and is that i am doing at this moment. I hoppe that works.
Thanks.


Title: Re: MGB111 update
Post by: ESTIMULO on January 22, 2009, 15:50:51 PM
It works!
Thanks Jocker.


Title: Re: MGB111 update
Post by: loony114 on January 30, 2009, 23:24:34 PM
Big thanks from my side as well. I was just about to write a post about that 'no space left' problem and - tadaaa - the answer is already there :) That's the way I like it.


Title: Re: MGB111 update
Post by: loony114 on January 30, 2009, 23:50:50 PM
Why can't I edit my posts... anyway:

the partition check from the WebUI simply runs e2fsck (to be precise: e2fsck -y -C NULL /dev/hdxx). So for people who get sick when they have to look at the WebUI running e2fsck from console does the job as well.


Title: Re: MGB111 update
Post by: Codemaster on February 10, 2009, 23:06:39 PM
can anyone please upload

this file!

http://rapidshare.de/files/39449435/C.tar.gz.html


Title: Re: MGB111 update
Post by: Ernst on February 10, 2009, 23:14:22 PM
@Codemaster,

And now you automagically asume that we all now what file you are talking about?
Come on; be a bit more specific and perhaps we can help you


Title: Re: MGB111 update
Post by: Codemaster on February 10, 2009, 23:55:02 PM
i search this file!!

C.tar.gz


with ssh,apache,etc etc


the file is deletet by rapidshare!


Title: Re: MGB111 update
Post by: Ernst on February 11, 2009, 21:27:43 PM
Ah, I checked and found the reference to the file you want within this thread:

« Reply #296 on: May 18, 2008, 18:36:40 PM »

From chimbo. He posted the file to rapidshare so ask him at chimbo@freenet.de (address taken from his profile). Perhaps he can repost.


Title: Re: MGB111 update
Post by: ToMikaa on February 14, 2009, 12:18:43 PM
Hi!

I have a problem with Samba on C009-M2 fw. After some minutes I cannot connect to my shared folders and I must restart smbd & nmbd to make it work again but only for some minutes. :-\

Has anybody an idea why it's happening?

This is my smb.conf:


[root@airlive_nas C]# cat /etc/samba/smb.conf
[global]                                     
        netbios name = airlive_nas           
        workgroup = HOMENETWORK               
        server string = Airlive NAS           
        load printers = no                   
        show add printer wizard = no         
        disable spoolss = yes                 
        use client driver = yes               
        log file = /var/log/%m.log           
        lock directory = /var/lock           
        max log size = 0                     
        security = User                       
        encrypt passwords = yes               
        smb passwd file = /etc/samba/smbpasswd
        socket options = IPTOS_LOWDELAY TCP_NODELAY
        security mask = 0777                       
        create mask = 0777                         
        fstype = NTFS                             
        max smbd processes = 10                   
        map to guest = Bad User                   
        csc policy = disable                       
        hide dot files = yes                       
        hide files = /./.*/aquota.*/               
        veto files = /aquota.*/                   
        block size = 4096                         
        guest ok = no                             
        getwd cache = Yes                         
        lm announce = yes                         
        lm interval = 120                         
        max xmit = 8192                           
        display charset = UTF8                     
        unix charset = UTF8                       
        status = no                               
        deadtime = 1                               
        level2 oplocks = True                     
        dns proxy = no                             
[tomikaa]                                         
        comment = ToMikaa's Home Directory         
        path = /home/tomikaa                       
        browseable = yes                           
        public = yes                               
        writable = yes                             
        valid users = tomikaa tomikaa             
        read list =                               
        create mode = 0775                         
        directory mode = 0775                     

[wrtlog]
        comment = Linksys WRT54GL log files
        path = /home/tomikaa/wrtlog       
        browseable = yes                   
        public = yes                       
        writable = yes                     
        valid users = tomikaa tomikaa     
        read list =                       
        create mode = 0775                 
        directory mode = 0775             

[Public]
        comment = Public Directory for everyone
        path = /mnt/Public                     
        browseable = yes                       
        public = yes                           
        writable = yes                         
        guest only = yes                       
        guest ok = yes                         
        create mode = 0777                     
        directory mode = 0777                 


[USB_DISK]
        comment = Total USB External Disk
        path = /mnt/USB
        browseable = yes
        public = yes
        writable = yes
        guest only = yes
        guest ok = yes
        create mode = 0777
        directory mode = 0777


[Configure]
        comment = Configure for Storage AP
        path = /var/config/Configure
        browseable = yes
        public = yes
        writable = no
        guest ok = yes
        create mode = 0775
        directory mode = 0775


Title: Re: MGB111 update
Post by: Ernst on February 14, 2009, 14:17:27 PM
In smb.conf change 'deadtime = 1' to 'deadtime = 0'.

Your current setup implies that after 1 minute non-active shares are disconnected. For some reason both the original firmware and others set this to 1 minute. Setting it to 0 means no deadtime.

Ernst


Title: Re: MGB111 update
Post by: schufti on February 14, 2009, 23:01:05 PM
Hi,
in general no deadime means (lots of) open connections. (lots of) open connections mean (lots of) used memory .... not a good thing with these limited resources ...

I have the default setting an no problems connecting to my box, whenever ....

schufti


Title: Re: MGB111 update
Post by: marc.aronson on February 24, 2009, 04:16:03 AM
First, thanks for the great firmware. I am using it on my Airlink101 ANAS350 and so far I'm using it to create custom Samba share names, run NFS and ssh. I am running into a problem and I am hoping to get some help with.

I've installed openssh and have gotten to the point were I can successfully "ssh" into my box, as long as I do so from inside my own network. As soon I try to connect from outside my network, I get a network timeout. I have set up my router to forward a port to my box's port 22 and I've confirm that port-forwarding on my router works. Another data point that I think is important:

1. When I ping 192.168.0.11, I get the message "192.168.0.11 is alive!" 192.168.0.11 is a host inside my local area network.

2. If I "ping" an IP address that is outside my local area network, I get the message "ping: sendto: Network is unreachable".

My guess is that there is some configuration change I need to make to enable access outside my network, and that once I make that change, I will be able to "ssh" to my box from the outside world. Any help on I need to do would be greatly appreciated -- thanks!

Marc


Title: Re: MGB111 update
Post by: marc.aronson on February 24, 2009, 04:52:38 AM
A quick update. After some more searching I found at that by doing "route add default gw 192.168.0.1 netmask 0.0.0.0", I am now able to successfully ping servers that are outside my local area network. (192.168.0.1 is the IP address of my router / gateway) Unfortunately, I am still unable to ssh into my airlink101 box from outside my network. Any ideas / suggestions would be greatly appreciated.

Marc


Title: Re: MGB111 update
Post by: marc.aronson on February 27, 2009, 05:02:17 AM
Problem solved -- pilot error. I've assigned the unit a static IP address and when I configured it through the GUI, I mis-typed the gateway's IP address. Once I fixed that everything worked. The "route add" in my previous post is not necessary.

This is amazing stuff -- I really want to say "thank you" to everyone that pulled this together. I am amazed at how much I can run on that little box that is only drawing 4 watts of power:

1. UPNP / DLNA server (ushare)

2. SSH with full support for encrypted tunnels, port forwarding and secure ftp-like download via winscp / scp-protocol.

3. Customized samba share names so that things make more sense for my windows clients.

4. NFS mount'able for access from my linux server.

Thanks again or the great work!

Marc


Title: Re: MGB111 update
Post by: ketty_yijun on March 19, 2009, 19:48:22 PM
First, thanks for the great firmware. I am using it on my Airlink101 ANAS350 and so far I'm using it to create custom Samba share names, run NFS and ssh. I am running into a problem and I am hoping to get some help with.

Hi, marc.aronson,

i'm using Airlink101 anas350,too.could you tell me which gui you use for it? and how did you install it? i tried to install ovislink400b4 which i downloaded from mgb111.pradnik.net but did not go through. then i tried u65gui.img. i did install it from recovery mode.  but this gui freeze once i click on the upnpsetting.  and after i install u65gui.img, i could not go back to my ANAS350_400a7 anymore nor any other fw. please point me to the right direction, thanks.


Title: Re: MGB111 update
Post by: vivshank on March 20, 2009, 02:00:41 AM
ketty_yijun: hi, im not sure if you can go back to recovery mode, but that's the way to install the original firmware. as for joker's firmware (from mgb111.pradnik.net) all you have to do is upload the .bin files from the gui. i tried the m-series and it worked flawlessly for me.


Title: Re: MGB111 update
Post by: ketty_yijun on March 24, 2009, 18:33:02 PM
question regarding WebUI torrent config hack.  after i change IP.URZADZENIA to my box IP, where i put the html file? i use the btorrent program that comes with c009-m2. thanks.


Title: Re: MGB111 update
Post by: carlosgs on March 30, 2009, 20:23:18 PM
Hello everybody again!
First of all, I don't know how to help any of the last posts :-S

I was wondering how can I change the password of the root user... There is a command in linux, but it isn't in the box (passwd)

Also, I don't know how to edit the FTP users through telnet :-S

Thank you very much for your help, I have been using the box as an HTTP server and it works very well :-D


Title: Re: MGB111 update
Post by: JoKeR on March 31, 2009, 07:28:09 AM
I was wondering how can I change the password of the root user... There is a command in linux, but it isn't in the box (passwd)

WebUI->Misc->Login setting


Title: Re: MGB111 update
Post by: ketty_yijun on March 31, 2009, 17:53:11 PM
i rebranded my anas350 and flashed with levelone latest firmware R4.00b8_0224. after that, i can not access my recovery mode page, nor flash with other gui. seem like it closed the recovery loader. anybody knows how to enable it? thanks.


Title: Re: MGB111 update
Post by: carlosgs on April 03, 2009, 20:31:30 PM
I was wondering how can I change the password of the root user... There is a command in linux, but it isn't in the box (passwd)

WebUI->Misc->Login setting

It doesn't work for me
It says: Invalid password!
And the password is the default one :-S


Title: Re: MGB111 update
Post by: JoKeR on April 04, 2009, 08:57:38 AM
if you are changing root password with webui, you must reboot the device so that they synchronize password file with console logins.
if you don't do it, login into (the) console must be on the old password


Title: Re: MGB111 update
Post by: carlosgs on April 06, 2009, 00:17:58 AM
if you are changing root password with webui, you must reboot the device so that they synchronize password file with console logins.
if you don't do it, login into (the) console must be on the old password

Sorry, I cannot understand what do you mean :-S
I've tried to reboot and trying again, but it is still not working


Title: Re: MGB111 update
Post by: JoKeR on April 06, 2009, 14:54:08 PM
I've tried to reboot and trying again, but it is still not working

You damaged something. now repair this.


Title: Re: MGB111 update
Post by: marc.aronson on April 09, 2009, 06:40:41 AM
Hi, marc.aronson,

i'm using Airlink101 anas350,too.could you tell me which gui you use for it? and how did you install it? i tried to install ovislink400b4 which i downloaded from mgb111.pradnik.net but did not go through. then i tried u65gui.img. i did install it from recovery mode.  but this gui freeze once i click on the upnpsetting.  and after i install u65gui.img, i could not go back to my ANAS350_400a7 anymore nor any other fw. please point me to the right direction, thanks.
Sorry for the long delay in responding. I am using the stock GUI that is available when you upgrade to the latest firmware from the Airlink101 website. Unfortunately, I am not familiar with the recovery techniques for this device, as my install of this custom firmware worked the first time for me. I hope you have been able to solve your problem.

Marc


Title: Re: MGB111 update
Post by: markosjal on May 15, 2009, 09:37:25 AM
Well I made the leap of faith, and I say thanks JoKeR for allowing my faith, and good work.  For the most part my ANAS350 with 400a7 firmware is still working, although my Samsung ML 1710 is now reporting an "unknown error" on the web interface and I can no longer print. 

Has anyone here attempted to integrate any Soundblaster USB drivers in this JKR version? I would be interested in knowing if the NAS has enough beef to suppoprt any kind of audio. I suspect not, but though maybe someone knows better than I from actual testing. 

My other possible use for this was the permanent connection of an HP printer so either 2 printers or streaming audio is the current motivation. Based on what I am experiencing so far, however with the Samsung the HP inkjet may not work either, but have yet to ty. Maybe I need to install something more to fix the printing? I see that I can not "dir" in the telnet session is there an alternative? How can I see the file structure? I can also no longer FTP as "nobody" to see that as I could before. Maybe a lame question but would be nmice to see what I am working with.


Title: Re: MGB111 update
Post by: markosjal on May 15, 2009, 16:24:19 PM
guess I can ls . maybe I got spoiled bu more complete distros of linux. Still no liuck on printing , went back to Aurlink firmware so I can at least print to one printer.

I disagree with what is on the Wiki however about GDI printers. The Samsung ML1710 is a GDI printer and I have always used it on the ANAS350. It has worked flawlessly until I tried this firmware patch. I think also a lot of the documentation out there is not version specific enough, nor is there a complete  "how to" anywhere. In fact some of what I found I was not even referred to the same firmware mod because I see this referred to bt at least a couple if different names

I compliment you guys on your hard work , but until there is a "how to" I guess this solution remains unrefind bugware in my book. Since I use my NAS daily I need it working. 


Title: Re: MGB111 update
Post by: vocaris on May 17, 2009, 08:18:32 AM
Hello,
i am new here in this forum and have a problem with my mgb111.

I have installed the pradnik fw C009-M2 Advanced.
I wanted to use my nas as aUPNP Server for my mp3 medias. The NAS is connected zu a DHCP FritzBox.
Additional i use a MUVID Internet Radio Tuner wich is able to connect to an UPNP. But he will not show the Fileinformation.
In the MGB111 there is a section for UPNP. When i push the Button UPDATE  DB manually i think the MGB111 will creat the hole Fileinfos for other clients. When i push the button CREAT DB progress report i think i will see the progress till 100%. But it isnt't so.
Can some help me what to do, to use the mgb111 as a UPNP Server.

Thanx


Title: rc-local and env-ng not run after reboot
Post by: spanish_biker on May 25, 2009, 19:57:13 PM
Hiya,

I've installed the latest firmware vC009-M2 (4.00b4), then I've downloaded and run the minimal-config.tar and now I've configured both 'rc-local' and 'env-ng' (with a script under /mnt/C/sys/etc/rc.d/rc.cfg) but none of them seem to run after a reboot.

Do I need to do something else to enable the auto execution?

Cheers!!


Title: Re: MGB111 update
Post by: spanish_biker on May 26, 2009, 22:53:22 PM
Answering myself for future reference.

It turned out that the firmware was not fully installed for whatever reason and there were some files missing under /etc. Just reinstalled the firmware, some new files were created (like rc.bridge) and then all the files under /mnt/C/sys/etc were automatically executed.


Title: Re: MGB111 update
Post by: markosjal on June 05, 2009, 07:35:15 AM
Well I tried the Pradnik firmware but went back to the ANAs 350 firmware. I still have the following questions that I hope someone may have the answers to

1) MY Samsung ML1710 works fine oin the ANAs350 firmware, but on the pradlink I only got an "unknown error" on the USB devices display and no printing was possible. I read somewhere that these printers  (GDI) were not compatible for LPR use with this firmware, however I can not believe that a feature should be lost when "upgrading" to this firmware.

2) I want to know about webcam support, as I have an old IR compatible webcam (old logitech) that I was considering using. I want to be able to record a frame every second or so, and possibly monitor it on the network as a "door camera"

3) Ability to use an old SoundBlaster Audigy 2 NX USB sound device to listen to internet radio and play MP3 files.


Of course I can not do all of this at the same time however if I can do 2 of them it may make it worth struggling with the pradnik firmware.

Maybe there is someplace where we can start a WiKi for more explanation of how to use this?


Title: Re: MGB111 update
Post by: Exzessiv on June 21, 2009, 14:24:31 PM
Hello Everybody,

I started to use the alternative Pradnik Firmware a few weeks ago. Everything works fine.
I started to make an "HowTo" document for me, because some informations are hard to find.

Now there are a few questions left:

1. I tried to make a shell to auto-install all my addons I need as a batch. Before I installed the Bash Shell as described at http://filodej.blogspot.com/2008/11/simple-packaging-sysetm.html. But: All self written shells don't work.
I do the chmod 755 on a file and tried to start it with ./shell.sh (i.e.) but the system don't find the file. If I edit with "nano-editor" it opens. I don't know why I cannot find it.

2. I want connect to a vpn connection when I switch on my MGB. How can I do this? Do I need a extension for the system or is it build in already?

Thank you!

When I finsihed my howto "MGB111 for Dummies" I'll post it here. Maybe it is helpful for somebody.

Have I nice day.

Ex.


Title: Re: MGB111 update
Post by: Exzessiv on June 21, 2009, 14:44:05 PM
Hello again,

third question:

3. Is it possible to install a news-client programm and download binaries via loading nzb files?

Thank you.

Ex.


Title: Re: MGB111 update
Post by: Ernst on June 21, 2009, 21:52:17 PM
@Exzessiv

Question 1:

Do you have the proper #!/bin/sh first line?
Are you sure the .sh file is a unix text file? (i.e. only 0Ah at the end of every line, not 0Dh 0Ah). If the file is a dos text file then I have experienced the same problem.

I can't answer your other questions.

Ernst


Title: Re: MGB111 update
Post by: Exzessiv on June 22, 2009, 04:45:34 AM
Hellp Ernst,

Question 1:
I have a #!/bin/bash in the first line, because I use Bash....or is that wrong?

Thanks.

Exzessiv.


Title: Re: MGB111 update
Post by: Ernst on June 22, 2009, 16:51:11 PM
Ok.

And what happens if you type:

bash <enter>

Does the system find bash?

E.


Title: Re: MGB111 update
Post by: Exzessiv on June 25, 2009, 07:46:14 AM
@Ernst: I can test that tonight...but I'm almost sure that the system find bash.

Is there someone who can answer my questions 2 and 3?

Thanks.

Ex.


Title: Re: MGB111 update
Post by: JoKeR on June 25, 2009, 08:13:32 AM
I want connect to a vpn connection when I switch on my MGB. How can I do this? Do I need a extension for the system or is it build in already?
http://mgb111.pradnik.net/#advanced
http://mgb111.pradnik.net/addons/


Title: Re: MGB111 update
Post by: Exzessiv on June 25, 2009, 09:06:34 AM
Thanks JoKeR!

Tonight I'll try to get everything together.

Ex.


Title: Re: MGB111 update
Post by: Exzessiv on June 25, 2009, 17:27:20 PM
Hello Everybody,

@Ernst
Question 1: I see "bash-3.2#" ....everything seems to be ok.

@JoKeR
Thanks for that hint. But Vtun don't use PPTP....but I need PPTP.

Any other ideas to use PPTP?

Thanks. Ex.


Title: Re: MGB111 update
Post by: JoKeR on June 25, 2009, 19:29:52 PM
I need PPTP.

You are unlucky, it is impossible.


Title: Re: MGB111 update
Post by: Exzessiv on June 26, 2009, 08:30:04 AM
No problem....last night I found a solution with OpenVPN.

I installed the OpenVPN package from Pradnik and configured it.... it ALMOST works :)

It was too late last night to solve the last problems.

My Problem is that openvpn didn't find the /sbin/ip
The folder is empty.
I tried to copy "ip" from /bin to /sbin but it didn't work.

Is there a howto to install openvpn on MBG111 somewhere?

Ex.


Title: Re: MGB111 update
Post by: JoKeR on June 26, 2009, 09:21:28 AM
/sbin/
The folder is empty.

No way.

Is there a howto to install openvpn on MBG111 somewhere?

Read openvpn doc's.

Config hint:
ip 192.168.0.0
change to
/path/to/ip 192.168.0.0


Title: Re: MGB111 update
Post by: marc.aronson on July 04, 2009, 06:38:17 AM
I am having a strange problem. I recently migrated my system to a new disk. For some reason when I boot the permissions on all files on the disk are reset to rwxrwxrx (ie, everyone gets read, write and execute). Has anyone seen this happen before or have any idea why this might be happening? I created the ext2 file system for the new disk on another linux machine-- could that have anything to do with this problem? Thanks!


Marc


Title: Re: MGB111 update
Post by: marc.aronson on July 05, 2009, 02:39:11 AM
I am having a strange problem. I recently migrated my system to a new disk. For some reason when I boot the permissions on all files on the disk are reset to rwxrwxrx (ie, everyone gets read, write and execute). Has anyone seen this happen before or have any idea why this might be happening? I created the ext2 file system for the new disk on another linux machine-- could that have anything to do with this problem?

Problem solved. I noticed that the previous drive I had used in this device and that was formatted in the unit had labeled the partition "Public". My new drive, which I had formatted in another Linux box did not have any label. I changed the label to "Public" and the problem is resolved. Not sure why this would make a difference, but at least the problem is solved...

Marc


Title: Re: MGB111 update
Post by: lukaszz on July 17, 2009, 11:54:03 AM
Hi,
I am having problems while building fuppes media server, make gives me something like this

/mnt/C/sys/lib/libgcc_s.so: undefined reference to `dl_iterate_phdr'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Register@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `__udivdi3@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Resume_or_Rethrow@GCC_3.3'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_RaiseException@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `__umoddi3@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Unregister@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Resume@GCC_3.0'

could someone please help we with those errors.
I have also tried to build minidlna but results are even worse.


Title: Re: MGB111 update
Post by: lukaszz on July 21, 2009, 17:54:54 PM
Hi,
I am having problems while building fuppes media server, make gives me something like this

/mnt/C/sys/lib/libgcc_s.so: undefined reference to `dl_iterate_phdr'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Register@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `__udivdi3@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Resume_or_Rethrow@GCC_3.3'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_RaiseException@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `__umoddi3@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Unregister@GCC_3.0'
/mnt/C/sys/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Resume@GCC_3.0'

could someone please help we with those errors.
I have also tried to build minidlna but results are even worse.
Quoting myself  8)
The problem was trivial, gcc from Filodej's website isn't complete, there are some files from outside /mnt/C/sys missing. I've build gcc myself and now everything is fine.