View Full Version : Asus WL-520gU 802.11b/g DD-WRT Compatible Wireless Router w/ USB Print Server $32 after $20 MIR
Mephiloco
10-01-2008, 06:20 PM
*Update Oct 5*
The ZipZoomFly (http://slickdeals.net/?sduid=47603&sdtid=938049&sdfid=9&u2=http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=10007417&prodlist=celebros) price has dropped.
It is now $22.99 after $20 Rebate (http://slickdeals.net/?sduid=47603&sdtid=938049&sdfid=9&u2=http://www.zipzoomfly.com/rebate/10007417_100108_jw.pdf) + $7 shipping = $30 AR shipped
Ok, this is my first deal post, didn't see it posted here, but anyways.
$20 MIR on the Asus WL-520GU, Wireless G router with USB 2.0, fully supported by dd-wrt (usb 2.0 is now fully supported). Also supported by openwrt, oleg, and tomato (i believe). With regular firmware the usb can be used as a print server, with dd-wrt you can use it for network storage etc.
MIR is through Asus, who I assume to be good.
http://www.buy.com/prod/asus-wl-520gu-125m-broad-range-ez-wireless-router/q/loc/101/206865166.html (http://slickdeals.net/?sduid=47603&sdtid=938049&sdfid=9&u2=http://www.buy.com/prod/asus-wl-520gu-125m-broad-range-ez-wireless-router/q/loc/101/206865166.html)
Zip Zoom Fly has it for about the same price, except no free shipping, works out to about the same $44.99 - $20 MIR = $24.99 + shipping ($8 for me), so around $33 shipped.
http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=10007417&prodlist=celebros (http://slickdeals.net/?sduid=47603&sdtid=938049&sdfid=9&u2=http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=10007417&prodlist=celebros)
Newegg has it for $59.99 - $20 + shipping and the same rebate.
PC Universe has it for something like $47 - $20 + shipping, and same rebate
sooo... yeah, ordering one to replace my crap wrt54gx2
EDIT: looks like there's also a 5% coupon: http://www.buy.com/retail/coupon.asp?prid=84773074 (http://slickdeals.net/?sduid=47603&sdtid=938049&sdfid=9&u2=http://www.buy.com/retail/coupon.asp?prid=84773074) .. so it comes to $29.63 <--- just realized this doesn't allow Google Checkout
EDIT 2: Looks like its OOS from buy.com. ZZF (linked above) has it for about the same price, within a dollar or two
brisar
10-01-2008, 06:20 PM
<s>ZipZoomFly (http://slickdeals.net/?pno=14224&lno=1&afsrc=1) has Asus WL-520gU 802.11b/g Wireless Router for $22.99</s> after $20 Rebate (http://slickdeals.net/?pno=14224&lno=2&afsrc=1) + $7 shipping = $30. Thanks Mephiloco.
Alternatively, Mwave.com (http://slickdeals.net/?pno=14224&lno=3&afsrc=1) has it for $2 more at $25 after $20 Rebate (http://slickdeals.net/?pno=14224&lno=4&afsrc=1) with $7 shipping = $32. Thanks Selma. [Discuss (http://slickdeals.net/?pno=14224&lno=5&afsrc=1)].
This router has 1 USB port for wireless printer sharing and supports third-party firmwares such as DD-WRT and Tomato for enhanced features
wikipost
10-01-2008, 06:20 PM
Current Prices (10/17/08):
ZipZoomFly (http://www.zipzoomfly.com/jsp/ProductDetail.jsp?ProductCode=10007417): $47.00 - $20 MIR = $27.00 with Free Shipping
Newegg (http://www.newegg.com/Product/Product.aspx?Item=N82E16833320023&Tpk=520gu): $46.99 - $20 MIR = $26.99 with Free Shipping
Mwave (http://www.mwave.com/mwave/viewspec_v2.asp?scriteria=BA24252): $45.00 + ~$9 Shipping - $20 MIR = $34.00 Shipped
Tomato w/ USB printer support for the WL520GU:
This version has USB printer support that is plug and play. Just enable USB support in the GUI and your set. No need to install packaged and lunix commands like DD-WRT!
http://www.linksysinfo.org/forums/showthread.php?t=60185
USB instructions for wl500g (alternative to dd-wrt) can be found here (http://wl500g.info/showthread.php?t=6222)
Installing DD-WRT v24 with Printer Sharing:
Download DD-WRT v24 Eko SVN 10431 mini+USB from this link. (http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24_TNG/svn10431/dd-wrt.v24-10431_NEWD_mini_usb.bin)
This build handles USB print serving with a few Linux commands and a little bit of Linux knowledge. All of the USB kernel modules necessary are already included :nod: but the p910nd print daemon isn't. :shake: Here's a link to the DD-WRT wiki page describing the specifics:
http://www.dd-wrt.com/wiki/index.php/Printer_Sharing#Notes_For_v24_Stable
Specifically:
use version 10431 or later - it resolves a USB 2.0 driver bug in the Broadcom chip
use the _mini_usb version - it leaves JFFS room free for the print daemon
enable JFFS
disable USB 1.0
disable USB 1.1
enable USB 2.0
enable USB printing
After you've configured everything, login to your router via telnet or ssh (whichever you chose when you set it up.) Create a new directory for the ipkg package installer, update the ipkg repository, then install the p910nd print daemon. These commands create the directory, update the repository, fetches it from the web, and installs it on the router.
mkdir -p /jffs/tmp/ipkg
ipkg update
ipkg install p910nd
Edit the print daemon startup script to correct the location of the defaults file. There's a note about this on the DD-WRT USB Printing wiki page. The script is missing the '/jffs' path defining the defaults file:
cd /jffs/etc/init.d/
vi p910nd
and change this line (Putty VI Commands (http://forums.wireplay.co.uk/archive/index.php/t-301096.html)):
DEFAULT=/etc/default/p910nd
to this:
DEFAULT=/jffs/etc/default/p910nd
then save the file
Finally, you need to add the print daemon startup to your router startup. Go to the Administration / Commands web page, and add the following command. Note this has an extra argument 'start' the wiki page was formerly missing:
/jffs/etc/init.d/p910nd start
Finally, click on 'Save Startup' so this command will execute every time your router restarts.
Installing Optware, Swap space, and Samba file sharing:
Refer to this tutorial in post # 205 (http://forums.slickdeals.net/showpost.php?p=14205147&postcount=205) for instructions on formatting your external USB hard disk drive, installing Optware, activating Linux swap space and installing Samba file sharing. Please post comments to the thread, and I'll revise the post as necessary.
(11/12/2008 - Added ipkg-opt install commands for busybox)
(11/17/2008 - Added second mkswap command from Optware)
11/15/2008 [fatal1ty44]
Note: there are a couple of things in the filesharing guide above that aren't so clear to newbs like me and could confuse you, so below is a short list of helpful hints to keep in mind as you read VorlonFog's amazing guide. These are problems that I ran into when I was following it, and resulted in the process taking me around 20 hours rather than 2 or 3, so hopefully this list helps someone!
1. First off, real basic tip, but for people not familiar with using the terminal, when the guide says to "start a terminal session to your router", just use the command "telnet 192.168.1.1" (without the quotes). Note that when it asks for the login id and password, for some reason it has to be the router's default "root" and "admin". So that means if you've changed the login or pw on your router, no combinations will let you in. If that's the case, go to your router and change it back to "root" and "admin" and then you should be able to connect via terminal. Don't ask me why that is...
2. For the paranoid, it's ok if when you use the command ipkg update your files start downloading from a different URL than the one the guide posted. My URLs contained things like "whiterussian" and "non-free", and it actually downloaded stuff from 3 locations rather than just the one. ITS OK! Everything will still work, it shouldn't really matter too much where it downloads from since those URLs are setup by default in the configuration file.
2. The next issue I hit literally had me ready to kill someone, and wasted probably about 5 hours to figure out (I'm a complete terminal newb). In the guide, when you get to the section about Acitivating Swap, the first step is to test your swap partition with busybox swapon command. Well, if you get an error that says "Invalid Argument", it means you need to use the busybox mkswap command first, AND THEN use the busybox swapon command. From my super duper limited understanding of linux and swaps, the mkswap command formats your little swap partition and prepares it for the swapon command. Why can some people get it working without using the mkswap command? I don't know, but apparently some people can since it was left out of the guide. So basically, instead of just pasting /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2 into your terminal session, paste /opt/bin/busybox mkswap /dev/scsi/host0/bus0/target0/lun0/part2 first, hit enter, then paste /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2. Note: this is only if your having the error "Invalid Argument"
3. This one is a real gem. Took me about 5 hours online to finally find the answer to this obscure bug. IF YOU ARE TRYING TO ACCESS YOUR SAMBA SHARE USING MAC OSX, READ THIS!. Apparently not many people try to do this, so finding any info on this is like digging for mushrooms on the moon. Mac OSX has a bug whereby Samba shares are not accessible through the finder. So unlike in WinXP where you would just connect straight to the drive with no username or pw required, OSX will ask you for a user/pw (even when you haven't set one) and no combination that you enter will work. This essentially denies you access to the drive: you'll get some errors like "Alias broken" or "Incorrect username and password". The solution to this can be found here http://ge.ubuntuforums.com/showthread.php?t=917156. Its essentially three posts by one guy essentially talking to himself since no one decided to help the poor fella out, but he managed to solve the problem (since I did what he says in his last post and it works for me now). Basically, you need to make a couple modifications to your smb.conf file, the most important one being setting encrypt passwords = yes. After following his instructions, when you connect to your drive on OSX through the Finder >> Go >> Network, it still shows the screen that has your Name prefilled and a blank password, but this time around when you just click ok without touching anything it will actually connect and work rather than giving you an "Fix Alias" error msg. Awesome? I think so.
4. One last final hint for the newbs out there like me. When editing the smb.conf file using the vi smb.conf command, to start making changes use the arrow keys to get to where you want to go (the entire file isn't loaded at once, so you have to scroll down using the arrow keys to see the rest) and press a letter on your keyboard to get started editing. If nothing happens, press your key a couple times (the first key press basically lets the editor know that your not trying to type a command, and that your are trying to edit the file). To stop editing, hit esc and that will bring you out of "edit mode" and allow you to issue commands such as :wq which will save your changes and exit the smb.conf edit screen and bring you back to the command line. This may seem totally obvious to most people, but when I was following the guide, I first off tried to paste the entire block of code (including the vi smb.conf and the beginning and the :wq at the end) in one go, and that obviously didn't work. Then it took me a while to figure out that in order to navigate the damn file in terminal, you have to use arrow keys rather than using the scrollbar, since the entire file isn't actually slapped into the terminal at once. Then, I swear it took me an hour to figure out how to leave the damn thing and have it save my changes. I kept trying to type in :wq and pressing enter, without realizing that I first had to hit escape to get out of file editing mode and be able to issue editor commands.
Hopefully these tips helped you, again full credit goes to VorlonFog's amazing guide, this list of tips is only meant as a supplement to his guide if you get stuck. Except the part about using OSX with Samba. That part was pure genius :)
Loading DD-WRT to the router:
1. Download firmware (I used dd-wrt.v24_std_generic.bin)
2. Set the IP on your computer to 192.168.1.2 (255.255.255.0 for mask) (gateway is 192.168.1.1)
to do this go to Network Connections, right click on your LAN icon and go to properties
find 'Internet Protocol (TCP/IP)' go to properties and instead of 'Obtain an IP address automatically' change that to the addresses above
3. Open command prompt and type:
tftp -i 192.168.1.1 put "<path to your firmware file>"
but do not hit Enter yet
example: tftp -i 192.168.1.1 put "C:\Downloads\dd-wrt.v24-10431_NEWD_mini_usb.bin"
4. Power off the WL520GU
5. Press & hold the restore button, then power on
6. When the power LED flashes, release the reset button
7. Hit Enter in your command prompt window (step 3) within a few seconds of releasing the restore button
8. The transfer takes only a few seconds but give the router a minute or so to reboot (just to be sure)
9. Unplug the router, wait at least 10-15 seconds, then plug it back in
more info can be found here (http://www.dd-wrt.com/wiki/index.php/Installation#Asus_WL520GU)
DD-WRTv24 SP1 Special Version
Only download and use this if you fully understand what the Special version is.
If you do not, go browse the DD-WRT Store.
http://rapidshare.com/files/132808781/dd-wrt-sp1.rar
This post can be edited by Slickdeals users to provide up-to-date information about developments of this thread based on user responses, and user findings. Feel free to add, change or remove information shown here as it becomes available.
Legendbyname
10-01-2008, 07:46 PM
Thanks! in for one to replace my dying DI-624. Great deal for a DD-WRT capable router, plus not nearly as hideous as the WRTGL. Repped
cyriene
10-02-2008, 05:23 AM
This is a good router, I'm using it now. At this price, this thread should really get more love.
Dalton
10-02-2008, 06:54 AM
Here's a fillable rebate form....
hi2veronica
10-02-2008, 11:56 AM
You can get this deal in mWave as well. I have one and it's working very well. ASUS WL-520gU is not my pervious big brand router need resent all the time and I have never reset 520gU for 6 months. I connect my USB HP laser printer to it and working very well. I just order another one to be my AP for my home office. ASUS did good job for this. Thanks.
Mephiloco
10-02-2008, 12:53 PM
yeah i'm glad I found this. I was just about to order either this or the wrt150n at full price before I saw the rebate. My wrt54gx2 just started crapping out (bought it after katrina in '05), keeps resetting if i download or play xbox etc. Perfect timing :D
akpro
10-02-2008, 07:48 PM
How well would this router work for live on my xbox 360 50ft away through a floor and a couple walls? My internet is around a 300kb/s down speed and 200kb/s up speed.
CannedGas
10-04-2008, 05:35 AM
MWave $25 AR: http://www.mwave.com/mwave/viewspec_v2.asp?scriteria=BA24252
Mephiloco
10-04-2008, 10:52 AM
regular shipping from mwave is ~ $8.xx, so about $33 from anywhere. buy.com is the cheapest with the coupon, but they take forever to ship (i ordered wednesday and it didn't ship until late friday).. maybe i'm just too impatient
eibgrad
10-04-2008, 10:57 AM
$52.24 - 20 (rebate) - 5.22 (10% cashback) = $27.02 :D
kidsol
10-04-2008, 05:54 PM
Im disappointed in this router so far, It wont detect my internet connection at all, and theres no good solutions at ASUS's site, have to contact my ISP to get a DNS server information, most people are flashing this router to use other software. the default software sucks.
samurai82
10-04-2008, 06:30 PM
$52.24 - 20 (rebate) - 5.22 (10% cashback) = $27.02
-----------------------------------
more details please
RefCache
10-04-2008, 06:44 PM
most people are flashing this router to use other software. the default software sucks.
Then why continue to use it?
DD-WRT runs quite well on this unit.
dnnydao
10-04-2008, 07:57 PM
I have this router for over a year and never loose connection or have to be reset..
Im disappointed in this router so far, It wont detect my internet connection at all, and theres no good solutions at ASUS's site, have to contact my ISP to get a DNS server information, most people are flashing this router to use other software. the default software sucks.
cgigate
10-04-2008, 08:09 PM
do I miss something ?
I click buy.com link, the price is $67.78
eibgrad
10-04-2008, 08:41 PM
do I miss something ?
I click buy.com link, the price is $67.78
Yep, it's official, you missed it. The OP's link is to someone in their marketplace (RCS Experience) because it's currently OOS from Buy.com. If you look to the right, however, you'll see it's available from Buy.com ON ORDER for $52.24 ($32.24 AR).
cgigate
10-04-2008, 08:48 PM
anybody still has buy.com 10% coupon link ?
JPNguyen
10-04-2008, 09:06 PM
Comes out to about $30 for me at mwave.com
http://www.mwave.com/mwave/skusearch.hmx?SCriteria=BA24252&CartID=done&nextloc=
cgigate
10-05-2008, 08:29 AM
$52.24 - 20 (rebate) - 5.22 (10% cashback) = $27.02 :D
where to get 10% cashback ?
Live.con only 1% cash back .
sinik
10-05-2008, 08:47 AM
Watch out for the gigabit police.
Loan_Crusader
10-05-2008, 08:47 AM
this thing vista compatible?
whocares123
10-05-2008, 08:50 AM
"USB print server function does not work even with either the EKO or Brainslayer builds (yet). Hopefully it will be supported someday. (I am a Windows user, LINUX users may have it working). I would like to thank the DD-WRT authors for their hard work, thanks a ton! "
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=26194
Can anyone confirm if they have print server thingy working with flashed (DDWRT) version of this router?
Watch out for the gigabit police.
What? Why would this need gigabit? It's a b/g router.
CyberGuy
10-05-2008, 08:57 AM
"USB print server function does not work even with either the EKO or Brainslayer builds (yet). Hopefully it will be supported someday. (I am a Windows user, LINUX users may have it working). I would like to thank the DD-WRT authors for their hard work, thanks a ton! "
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=26194
Can anyone confirm if they have print server thingy working with flashed (DDWRT) version of this router?
I would like to know the answer to this question as well. Haven't been able to find a solution on the web. Thanks
yazyazoo
10-05-2008, 09:01 AM
DD-WRT runs on this but I haven't been able to get the USB ports to work. I think you need some linux skills to install the pkgs to get it to work.
samurai82
10-05-2008, 09:17 AM
may be this will come down even further, i am looking for deals with no mir
i have two buffalo routers with ddwrt (bridged) using with cheapo netgear wgr614 (primary)
surprisingly netgear been working flawlessly for ~ 4 years
sky03
10-05-2008, 09:24 AM
this thing vista compatible?
lol is this a joke?
Technosquid
10-05-2008, 09:27 AM
I don't think they could have made this look more like a netgear router without a patent infraction.
Carlosos
10-05-2008, 10:21 AM
this thing vista compatible?
Short answer: Yes
Long Answer: As long as you run IPv4 or IPv6 on your vista computer you should be fine (by default both are turned on).
IGemini
10-05-2008, 10:25 AM
this thing vista compatible?
Since it is a wireless Router, it's functionalities are transparent to PCs regradless your PC's OS as long as they ( your PC and Router ) communicate wirelessly.
To answer your question, your Vista will work with this wireless Router.
lol is this a joke?
Do you think it is a joke?
P6h6i6l9
10-05-2008, 10:27 AM
DD-WRT runs on this but I haven't been able to get the USB ports to work. I think you need some linux skills to install the pkgs to get it to work.
Read 5 replies down :)
Loan_Crusader
10-05-2008, 10:45 AM
Since it is a wireless Router, it's functionalities are transparent to PCs regradless your PC's OS as long as they ( your PC and Router ) communicate wirelessly.
my airlink 101 router is not vista compatible and vista will not recognize it through my ethernet port
Mephiloco
10-05-2008, 11:03 AM
the fillable rebate works for any retailer selling this router, zipzoomfly and mwave both come to around $33 shipped AR, both of which ship faster than buy.com in my experience.
and, from what I read usb 2.0 works fine with this in dd-wrt, I'll try to find the direct link to the version you need, but iirc cascade's build works fine, although there's a newer build that works
IGemini
10-05-2008, 11:09 AM
my airlink 101 router is not vista compatible and vista will not recognize it through my ethernet port
wirelessly?
locon
10-05-2008, 11:13 AM
out of stock at ZZF :(
dingnecros
10-05-2008, 11:19 AM
for anyone who wants to run dd-wrt and use the usb port for a samba NAS here is a link to dd-wrt forum thread that tells you how to do it
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=38777&highlight=wl520gu
Mephiloco
10-05-2008, 11:25 AM
Also, oleg's firmware works on it, which from what I gather is what most people use. It lets you use usb etc. http://wl500g.info is the forum, 520gu is supported under the wl-500g, you can read about people's successes/problems there before using oleg.
also, for dd-wrt: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99564#99564 <-- link to cascade's post with usb support, also that thread for any dd-wrt usb questions/support.
And, reading up I've seen that what some people do is hook up a usb hub to the router and use a pendrive/jumpdrive/whatever and use that as the fs root to allow more space.
My router doesn't get here til tuesday, so i can't vouch for any of these personally, I'm just reading up on everything in anticipation of my new router.
oleg is downloadable from http://oleg.wl500g.info/
P6h6i6l9
10-05-2008, 11:30 AM
for anyone who wants to run dd-wrt and use the usb port for a samba NAS here is a link to dd-wrt forum thread that tells you how to do it
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=38777&highlight=wl520gu
THANKS!! This must have been fixed since I did this 6 months ago...sweeeet
crice
10-05-2008, 11:33 AM
OOS at ZZF too :(
Mephiloco
10-05-2008, 11:50 AM
For some reason my post didn't come up.. anyways. Oleg supports usb fully, the forum for it is at wl500g.info the firmware at oleg.wl500g.info.
Cascade's thread should cover any questions about usb in dd-wrt http://www.dd-wrt.com/phpBB2/viewtopic.php?t=5298 although afaik you can just use http://www.dd-wrt.com/phpBB2/download.php?id=5964 which is newer than the one in cascade's post.
I've not tried any of these, as my router doesn't get here until tuesday, so i can't vouch for anything personally
cgigate
10-05-2008, 11:58 AM
my airlink 101 router is not vista compatible and vista will not recognize it through my ethernet port
LOL!
airlink101 router 1000% vista compatible!
I am on airlink 101 router network with Vista and typing word to here!
Since it is a wireless Router, it's functionalities are transparent to PCs regradless your PC's OS as long as they ( your PC and Router ) communicate wirelessly.
To answer your question, your Vista will work with this wireless Router.
Do you think it is a joke?
I think it is a joke! network is network, it works with any OS!
it is very hard to make a network not compatible with Vista
port23user
10-05-2008, 12:07 PM
Yea, the stock firmware stinks. I played around with it just so I could compare it with DD-WRT and nothing worked. The English wasn't very good. But installing DD-WRT went really smoothly. It was pretty easy. And now that I have it running, it runs flawlessly. I go months without restarting it. The router has a lot (compared to other routers I've used) of ram and never freezes up.
|ShooZ|
10-05-2008, 12:22 PM
LOL!
airlink101 router 1000% vista compatible!
I am on airlink 101 router network with Vista and typing word to here!
I think it is a joke! network is network, it works with any OS!
it is very hard to make a network not compatible with Vistaand I think your snobbish response is a joke as well. Not everyone is as network savvy as you are, try and keep that in mind. That being said...
Can someone explain the benefit of running the open source DD-WRT firmware instead of the COTS version?
funmike
10-05-2008, 12:28 PM
Regarding Vista compatibility...
The USB Print Server port on this ASUS router likely requires custom drivers to be installed under your Operating System. So asking if the networked USB Print Server works fine with Vista seems like a reasonable question in that regard.
Blunar
10-05-2008, 12:33 PM
LOL!
airlink101 router 1000% vista compatible!
I am on airlink 101 router network with Vista and typing word to here!
I think it is a joke! network is network, it works with any OS!
it is very hard to make a network not compatible with Vista
Actually, as I know, if people still have such questions, they cannot understand and configure the settings in DD-WRT, or even don't know how to flash it. So before they can do something, it's nonsense to buy the router.
dcs693
10-05-2008, 12:47 PM
Regarding Vista compatibility...
The USB Print Server port on this ASUS router likely requires custom drivers to be installed under your Operating System. So asking if the networked USB Print Server works fine with Vista seems like a reasonable question in that regard.This might be true in some cases, but I've got a parallel port print server that's on an old SMC 802.11b router. When I upgraded to my Buffalo whrg125, it just hooked up the old router to the new one and continued to use the print server feature of the old router. On XP, I set it up as an LPR printer. On Ubuntu and OSX I set it up as an lpd printer. I just had to direct output to the IP address of the SMC router and install the driver for the target PRINTER - NOT for the print server. Maybe my print server adheres to more "standards" or something.
Thinkster
10-05-2008, 03:08 PM
Im disappointed in this router so far, It wont detect my internet connection at all, and theres no good solutions at ASUS's site, have to contact my ISP to get a DNS server information, most people are flashing this router to use other software. the default software sucks.
Mostly these kinds of problems are from peoples lack of knowledge. It's usually not the router's fault but rather the user that doesn't know how to configure things or know what basic network terminology means like DHCP, PPOE, DNS, WAN, LAN.
I usually set up routers for most of my customers because they either can't read or can't follow instructions.
So my suggestion for anyone not knowledgeable in these things is to either do some reading or hire someone to set it up for you.
phraser
10-05-2008, 03:31 PM
lol I agree with thinkster.
"I usually set up routers for most of my customers because they either can't read or can't follow instructions.
So my suggestion for anyone not knowledgeable in these things is to either do some reading or hire someone to set it up for you. "
LOLZ!
mustanggt50conv
10-05-2008, 08:15 PM
I bought this router almost a year ago and have little to no problems (had to unplug/replug the power cable once or twice. Had a small issue at first getting it to recognize the printer I had attached via USB, but found the fix in short time using Google. Company that processes rebate is VERY SLOW, but it does eventually arrive. Can't beat this price for a router with USB port!
z0ned
10-05-2008, 08:19 PM
dd-wrt is easy with these... I have 3. Love em.
even use one as a hotspot service with wirelessorbit.com
kidsol
10-05-2008, 09:41 PM
Mostly these kinds of problems are from peoples lack of knowledge. It's usually not the router's fault but rather the user that doesn't know how to configure things or know what basic network terminology means like DHCP, PPOE, DNS, WAN, LAN.
I usually set up routers for most of my customers because they either can't read or can't follow instructions.
So my suggestion for anyone not knowledgeable in these things is to either do some reading or hire someone to set it up for you.
Honestly I have had a linksys router that has worked for me and I have reset it from start to finish a billion times, but it craps out all the time now (its 6 years old.) the netset client detects my internet connection with no problems.
I set up this router using the manual it has, if you have this router you would know the instructions are VERY limited (2 pages of setup per language, 3 pages on how o connect the cords, and mount it to the wall) because they cater to an extensive amount of languages. This is why I went to the support site for the information. There was people with the same issues. I guess it depends on your ISP. I spent about 6 hours (messed with it 2 different days) trying to get it to recognize my internet connection, it will share files between my comps and the network part is fine but no internet. :/ I also tried all the types of internet connection options it has.
Yeah DD-WRT I'm sure works great but I really want the USB printer option. It was the high selling point for buying this.
I've used this router for over 6 months. Yes, the official firmware sucks. I tried dd-wrt firmware but couldn't get USB print server working. At last, I tried Oleg firmware Version 1.9.2.7-10 and it works great. It has the similar GUI as the official but with much more features. You can get it from:
http://oleg.wl500g.info/
"USB print server function does not work even with either the EKO or Brainslayer builds (yet). Hopefully it will be supported someday. (I am a Windows user, LINUX users may have it working). I would like to thank the DD-WRT authors for their hard work, thanks a ton! "
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=26194
Can anyone confirm if they have print server thingy working with flashed (DDWRT) version of this router?
reycards
10-05-2008, 11:28 PM
This is a good router, I'm using it now. At this price, this thread should really get more love.
Does this router work with all in one printers?
cgigate
10-05-2008, 11:30 PM
Does this router work with all in one printers?
Simple answer is No
VorlonFrog
10-06-2008, 02:14 PM
Any of the most recent DD-WRT v24 TNG ('sp2') builds handle USB print serving with a few Linux commands and a bit of Linux knowledge. All of the kernel drivers necessary are already included :) but the p910nd print daemon isn't. :( Here's a link to the DD-WRT wiki page where it describes the specifics:
http://www.dd-wrt.com/wiki/index.php/Printer_Sharing#Notes_For_v24_Stable
Specifically:
use version 10431 or later - resolves a USB driver bug in the Broadcom chip
use the _mini_usb version - it leaves JFFS room free for the print daemon
enable JFFS
enable USB 2.0
enable USB printing
After you've configured everything, login to your router via telnet or ssh (whichever you chose when you set it up.) Update the ipkg repository, then install the p910nd print daemon. This fetches it from the web and installs it on the router.
ipkg update
ipkg install p910nd
Edit the print daemon startup script to correct the location of the defaults file. There's a note about this on the DD-WRT USB Printing wiki page. The script is missing the '/jffs' path defining the defaults file:
cd /jffs/etc/init.d/
vi p910nd
and change this line:
DEFAULT=/etc/default/p910nd
to this:
DEFAULT=/jffs/etc/default/p910nd
then save the file
Finally, you need to add the print daemon startup to your router startup. Go to the Administration / Commands web page, and add the following command. Note this has an extra argument 'start' the wiki page is missing:
/jffs/etc/init.d/p910nd start
Finally, click on 'Save Startup' so this command will execute everytime your router restarts.
Xsabre
10-06-2008, 08:54 PM
Any of the most recent DD-WRT v24 TNG ('sp2') builds handle USB print serving with a few Linux commands and a bit of Linux knowledge. All of the kernel drivers necessary are already included :) but the p910nd print daemon isn't. :( Here's a link to the DD-WRT wiki page where it describes the specifics:
http://www.dd-wrt.com/wiki/index.php/Printer_Sharing#Notes_For_v24_Stable
Specifically:
use version 10431 or later - resolves a USB driver bug in the Broadcom chip
use the _mini_usb version - it leaves JFFS room free for the print daemon
enable JFFS
enable USB 2.0
enable USB printing
....
I didn't buy one, but I appreciate your help on posting clear and detailed instructions on how to get the USB working.
Xylite
10-07-2008, 12:56 AM
I have no use for the USB port, but router seems like a great deal. Would I be wrong to buy this router and leave the USB port open?
I have no use for the USB port, but router seems like a great deal. Would I be wrong to buy this router and leave the USB port open?
Definitly fine. Much better value that those $49 wrt54gl "deals" that people jump on.
wraith4000
10-07-2008, 07:01 AM
Newegg (http://www.newegg.com/Product/Product.aspx?Item=N82E16833320023&Tpk=Asus%20WL-520GU) has this for $49.99 with $20 rebate and free shipping bringing the total to $30 shipped.
Gamer X
10-07-2008, 09:09 AM
Newegg (http://www.newegg.com/Product/Product.aspx?Item=N82E16833320023&Tpk=Asus%20WL-520GU) has this for $49.99 with $20 rebate and free shipping bringing the total to $30 shipped.
Thank you! Sold out at Buy, mwave, and ZipZoomFly, I was hoping it was available somewhere! You rock!
VorlonFrog
10-07-2008, 09:50 AM
Definitly fine. Much better value that those $49 wrt54gl "deals" that people jump on.
Agreed, it's a fine router and replaced my aging WRT54G v2 several months ago on the previous mwave.com slick deal. Using DD-WRT v24sp1, it drives my Brother HL-2140 laser printer over USB perfectly, networking it to every computer in the house.
I'm currently working to get USB storage going on this router. There's a hub between the router and printer, and the drive is recognized but the mount command is failing. I think it's because I formatted the drive as ext2 instead of ext3, but I haven't had time to work with it since Sunday evening. :(
funmike
10-07-2008, 10:44 AM
I'm currently working to get USB storage going on this router.
A NewEgg reviewer stated "Only supports USB 1.1 (see "USB storage" on the DD-WRT wiki), so this won't work well as a NAS."
A NewEgg reviewer stated "Only supports USB 1.1 (see "USB storage" on the DD-WRT wiki), so this won't work well as a NAS."
Ouch. Only usb 1.1?
hi2veronica
10-07-2008, 11:22 AM
Ouch. Only usb 1.1?
As i Know WL-520gU only has one USB and only support for printer server. If you looking for NAS, you can take look at Wl-500gPremium V2 or WL-500W from ASUS that can support printer and external HD
Petey07
10-07-2008, 11:32 AM
As i Know WL-520gU only has one USB and only support for printer server. If you looking for NAS, you can take look at Wl-500gPremium V2 or WL-500W from ASUS that can support printer and external HD
thanks, the WL-500W is on sale for 79.99 at New Egg, I was gonna get it but then reading the review, I am not quite sure if I want to jump in or not. anybody had this product?
Chinkypuff
10-07-2008, 12:02 PM
sweet i got one from newegg. good enough price for me.
stylingal
10-07-2008, 02:15 PM
BIG THANX!
I've been having issues with my trusty old Netgear 614 (has worked like a champ for last 4 yrs), so have to replace it. Been combing the tech forum and just bit the bullet on the highly touted/more expensive Linksys WRT54GL, but it would seem this Asus 520gu is superior. This will be my first DD-WRT router. Fingers crossed I flash it with no issues.
BTW, I was reading an earlier posts that suggested "anyone not knowledgeable in these things is to either do some reading or hire someone to set it up for you". I just wanted to say that not all of us have that option and many (like myself) are just trying to "learn", and stay abreast of all the cool things tech offers. Gosh! Between Slickdeals, FW and TivoCommunity I've become the resident "Tech Geek Gal" (and I prolly only possess about 2% the knowledge you guys have lol!!). So I just want to take a moment to say a BIG THANK YOU :hug: to everyone who has been patient, shared their knowledge and didn't make us/me feel like a complete idiot lol. Thanks to you, I've learned so much in the last 5 yrs and am eager to learn even more! DD-WRT here I come!! :woot:
djkym
10-07-2008, 03:01 PM
As i Know WL-520gU only has one USB and only support for printer server. If you looking for NAS, you can take look at Wl-500gPremium V2 or WL-500W from ASUS that can support printer and external HD
seconded...would like to connect to usb hub and get both printer/nas functionality, but transfers over 1.1 would prolly mean i can't stream over HD movies saved on the drive.
Wireball
10-07-2008, 06:25 PM
Hooray! I needed one of these to ship to my remote location and experiment with VPN tunneling. I went for the newegg deal.
vietsb
10-07-2008, 08:37 PM
Back in stock at ZipZoomFly. Not pulling the trigger since I figured I don't need another router, but I'll probably kick myself later for not getting it.
Xsabre
10-07-2008, 09:06 PM
A NewEgg reviewer stated "Only supports USB 1.1 (see "USB storage" on the DD-WRT wiki), so this won't work well as a NAS."
Can anybody confirm this. It appears it will support USB 2.0 but with the DD-WRT Mega (http://www.dd-wrt.com/wiki/index.php/USB_storage#To__access_a_network_drive_partition) which doesn't fit.
stylingal
10-08-2008, 01:08 AM
Just reading up on how to install Oleg before router arrives. Total n00b, and am wondering if following the instructions: http://wl500g.info/showthread.php?t=1329 will do the trick? thks
thanks, the WL-500W is on sale for 79.99 at New Egg, I was gonna get it but then reading the review, I am not quite sure if I want to jump in or not. anybody had this product?
The W version is solid. DD-WRT will run on it, but the compatibility isn't 100%. There have been random brickings, and I never bothered to test the USB (I went back to stock firmware).
stylingal
10-08-2008, 01:41 PM
WOW!! Newegg has unbelievable shipping!! Ordered yesterday and rec'd it today - gonna go try Oleg. Fingers crossed/wish me luck!
Asus mention it's a USB 2.0
sheltem
10-08-2008, 02:36 PM
Agreed, it's a fine router and replaced my aging WRT54G v2 several months ago on the previous mwave.com slick deal. Using DD-WRT v24sp1, it drives my Brother HL-2140 laser printer over USB perfectly, networking it to every computer in the house.
I'm currently working to get USB storage going on this router. There's a hub between the router and printer, and the drive is recognized but the mount command is failing. I think it's because I formatted the drive as ext2 instead of ext3, but I haven't had time to work with it since Sunday evening. :(
Are you running Vista on any of your networked machines? I have a the same printer and a QNAP Nas Box whose print server seems to be incompatible with Vista.
jaesung
10-08-2008, 08:55 PM
so.. dd-wrt doesnt fully support usb function?
but the oleg does?
stylingal
10-08-2008, 09:43 PM
Can someone pls confirm that this is the correct Oleg fw? http://oleg.wl500g.info/1.9.2.7-10/
Keep getting an error when I try to do the update.
Edit: Yes above fw was correct.
Successfully upgraded with the step by step instructions from here step#4 http://wl500g.info/showthread.php?t=6222
then did a hard reset after it completed.
jaesung
10-08-2008, 10:09 PM
i don't understand how u install this =/ can someone clarify?
i can't seem to find documents about installation..
do i just upgrade from asus configuration? or does it have to go through like dd-wrt?
i'd rather flash to dd-wrt but it doesn't seem to support usb fuction fully..
thanks in advance.
Xsabre
10-09-2008, 06:51 AM
i don't understand how u install this =/ can someone clarify?
i can't seem to find documents about installation..
do i just upgrade from asus configuration? or does it have to go through like dd-wrt?
i'd rather flash to dd-wrt but it doesn't seem to support usb fuction fully..
thanks in advance.
Below are the instructions. This is taken from the DD-WRT Wiki, but can be applied to any firmware upgrade.
Firmware Installation (http://www.dd-wrt.com/wiki/index.php/Installation#Asus_WL520GU)
Good luck...
Xsabre
10-09-2008, 06:56 AM
Will the Oleg fw support a printer and External HD setup?
If it does can anybody provide a link to setup instructions.
FYI: I tried looking @ http://www.wl500g.info, but couldn't find any details.
hi2veronica
10-09-2008, 07:07 PM
I found ASUS WL-520gU has WDS (Wireless Distribution System) function. WoW
jaesung
10-09-2008, 08:39 PM
well i managed to install dd-wrt but couldnt get the printer working..
so i flashed back to original latest firmware.. =/
I was able to print stuff.. but it stops mid-way.
I'm not sure if I got a defective unit or printer isnt compatible with this router.
xsabre, i dont think there is any FW works with external HD.. from what I read.
jrizzy
10-09-2008, 09:19 PM
**BACK IN STOCK @ NEWEGG W/ FS**
http://www.newegg.com/Product/Product.aspx?Item=N82E16833320023&nm_mc=TEMC-TEMC-Function-AutoNotify&cm_mmc=TEMC-TEMC-Function-AutoNotify-_-Content-_-text-_-N82E16833320023
in case anyone wanted to know :omg: :omg:
stylingal
10-09-2008, 09:24 PM
i don't understand how u install this =/ can someone clarify?
i can't seem to find documents about installation..
do i just upgrade from asus configuration? or does it have to go through like dd-wrt?
i'd rather flash to dd-wrt but it doesn't seem to support usb fuction fully..
thanks in advance.
I installed the cd software that came with the unit, made sure I was able to connect wirelessly. Then I used this method (which didnt work for me): http://wl500g.info/showthread.php?t=1329
But found this method which worked for me: http://wl500g.info/showthread.php?t=6222 - it also has ext hd instructions which I will try next...
stylingal
10-09-2008, 09:27 PM
Will the Oleg fw support a printer and External HD setup?
If it does can anybody provide a link to setup instructions.
FYI: I tried looking @ http://www.wl500g.info, but couldn't find any details.
This thread http://wl500g.info/showthread.php?t=6222 has directions. I'd like to try but find it a little confusing.
Xsabre
10-10-2008, 07:11 AM
well i managed to install dd-wrt but couldnt get the printer working..
so i flashed back to original latest firmware.. =/
I was able to print stuff.. but it stops mid-way.
I'm not sure if I got a defective unit or printer isnt compatible with this router.
xsabre, i dont think there is any FW works with external HD.. from what I read.
I believe there is away but it may not be straight forward. (Which I don't mind)
See VorlonFog post (http://forumst.slickdeals.net/showthread.php?sduid=0&p=13281282#post13281282)...
He has almost got it working. VorlonFog can you please post your progress. Thanks...
Nattefrost
10-10-2008, 12:08 PM
how does this compare to NETGEAR WGR614L
Mephiloco
10-10-2008, 02:59 PM
Ok here's a little bit of an update.
Got my router tuesday, put oleg on it. After a lot of playing around I finally got it printing right (problem was with setting it up in OS X, had it printing in windows in no time). Anyways, got everything working, but my wireless bridge is dd-wrt and I figured I'd try dd-wrt on my router to see how it is. Just flashed dd-wrt onto it and it took maybe 10 minutes from start to finish from oleg -> dd-wrt with working printer support.
I flashed it with the dd-wrt mini usb bin, enabled jffs, enabled usb support and printer support, then installed the print daemon and rebooted and it was working.
if anyone needs specifics on how to do any of this let me know, a lot of it has been covered in previous posts already ;)
dapoopta
10-10-2008, 06:41 PM
Hot deal! :-). DD-WRT here I come. Thank you OP
dapoopta
10-10-2008, 07:19 PM
No one has listed out a step by step guide... please do so!!!
I have installed WL520gu-1.9.2.7-10.zip using the restore utility found on the asus CD.
When I login to the WL520gu the screen looks exactly the same... is this correct?
Then what do I do to get it to connect to my wireless network? No one has listed out any good step by step procedure to get it working. :-)
dcs693
10-10-2008, 07:22 PM
Ok here's a little bit of an update.
Got my router tuesday, put oleg on it. After a lot of playing around I finally got it printing right (problem was with setting it up in OS X, had it printing in windows in no time). Anyways, got everything working, but my wireless bridge is dd-wrt and I figured I'd try dd-wrt on my router to see how it is. Just flashed dd-wrt onto it and it took maybe 10 minutes from start to finish from oleg -> dd-wrt with working printer support.
I flashed it with the dd-wrt mini usb bin, enabled jffs, enabled usb support and printer support, then installed the print daemon and rebooted and it was working.
if anyone needs specifics on how to do any of this let me know, a lot of it has been covered in previous posts already ;)I might need your help in a few days. :) I've got dd-wrt already running on a router, but I'm hoping to use this as my print server too. I'm printing from Windows and OSX also.
ldbobby
10-10-2008, 07:27 PM
OMG, I'm in linux heaven! Thanks OP, REPPED!
cccplus
10-10-2008, 07:34 PM
good luck getting your rebate....
96PGT
10-11-2008, 05:47 AM
Can someone please answer me this? The problem with the USP printer that everybody is talking about is with the DD-WRT, correct? If I just use the ASUS firmware, everything should work out of the box, right?
I am planning to use this router with an external HDD for network storage. Which one should I use between DD-WRT and Oleg? I've been reading up both and get confused on both of them. It looks like the details are quite unorganized on the DD-WRT site.
....
if anyone needs specifics on how to do any of this let me know, a lot of it has been covered in previous posts already ;)
Can you help me out with this? I have absolutely ZERO knowledge whatsoever about the UNIX command. But, if it's not too complicated, I can follow step-by-step instruction.
Anyone using this router with Dlink DPR-1260 wireless printserver? I can't seem to get it to work together wirelessly.
dnnydao
10-11-2008, 06:00 AM
Anybody know step by step setting up this router with printer in Window Vista?
I flashed this with DD-WRT..the PC detects the printer but require "authorization code" to my Epson CX6000..There is no such a code!
Niteshade
10-11-2008, 12:26 PM
Mephiloco,
I'm in need of help with the DD-WRT stuff on the Asus 520gU router. I've long been a watcher but I'm newly registered on SD, so I don't believe I can PM you.
Anyway, I pulled the trigger on this deal and now I'm trying to get both OpenVPN and printer sharing working. Went and looked at docs and looked over the eko builds but I'm not sure which one will best suit my needs.
RefCache
10-11-2008, 06:42 PM
but I'm not sure which one will best suit my needs.
As far as the different file versions of various DD-WRT builds, the File Versions (http://www.dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#File_Versions) section of the official wiki may help.
Calcugod
10-11-2008, 07:45 PM
Are any printers supported or are only certain types supported?
i4ybrid
10-11-2008, 07:45 PM
This router is currently $49.99 at newegg with free shipping and the same $20 MIR.
Don't forget live cashback!
http://www.newegg.com/Product/Product.aspx?Item=N82E16833320023&Tpk=520gu
jaesung
10-12-2008, 01:34 AM
i dont think every printer is supported calcugod, i just setup twice.. using dd-wrt and original firmware, they both stopped mine in mid-way using eko's latest svn.
gonna do more test.. but x.x damn.. takes too long
emailtvo
10-12-2008, 01:55 AM
Are any printers supported or are only certain types supported?
Only USB printers will work. As for other functions like with all-in-one printers...if you change the firmware I think you can get scanning and stuff working but it's not as simple.
JPNguyen
10-12-2008, 02:13 AM
finally pulled the trigger on this one. Ordered from ZoomZipFly, free shipping so the price comes out to about 32.50 with ca tax. figured this would be the best router as there is a usb port for a shared printer. since im tight for space in my little studio, it'll be good to relocate the printer and make room for the desktop i have been "building" since january.....(needa finish the damn thing)
VorlonFrog
10-12-2008, 10:00 AM
Ouch. Only usb 1.1?
No, it's USB 2.0 capable, only there was no Linux kernel patch for the buggy Broadcom all-in-one chip when the router first came out. The kernel wizards at OpenWRT resolved this issue a few months ago, and the Oleg and DD-WRT teams included the OpenWRT kernel fix. In post #57 above, I specifically mentioned this item:
use version 10431 or later - resolves a USB driver bug in the Broadcom chip
VorlonFrog
10-12-2008, 10:05 AM
Can anybody confirm this. It appears it will support USB 2.0 but with the DD-WRT Mega (http://www.dd-wrt.com/wiki/index.php/USB_storage#To__access_a_network_drive_partition) which doesn't fit.
Reference my post # 57, where I suggested a "_mini_usb" build for this router. It works. :cool:
VorlonFrog
10-12-2008, 10:09 AM
I believe there is away but it may not be straight forward. (Which I don't mind)
See VorlonFog post (http://forumst.slickdeals.net/showthread.php?sduid=0&p=13281282#post13281282)...
He has almost got it working. VorlonFog can you please post your progress. Thanks...
No time to reformat and re-try this week - maybe this (Sunday) afternoon....
Edit:OKAY!! :woot2: After 'ipkg install kmod-ext2' I can successfully mount the drive and read/write. It seems the mini_usb version includes the ext3 file system module, but not the ext2. But my Knoppix 5.1.1 disk doesn't have a 'mke3fs' command, only 'mke2fs'.
Long story made short: after installing V24_TNG SVN 10431 mini_usb, you need to enable JFFS, reboot the router, then use the 'ipkg install p910nd' and 'ipkg install kmod-ext2' commands. After that, follow the DD-WRT wiki to install the optware packages on your drive, including Samba to share it out to your network.
Niteshade
10-12-2008, 07:37 PM
Hey VorlonFog,
Any idea on how to get OpenVPN working along with USB on this router? You seem to be quite knowledgeable. =D
Could I run the eko JFFS/VPN small build and install USB support onto JFFS?
VorlonFrog
10-13-2008, 06:05 AM
Hey VorlonFog,
Any idea on how to get OpenVPN working along with USB on this router? You seem to be quite knowledgeable. =D
Could I run the eko JFFS/VPN small build and install USB support onto JFFS?
I believe the 'standard' build will run in 4 MB, but that doesn't leave enough room for a JFFS partition. I believe I saw a question regarding OpenVPN and USB on this router at the DD-WRT forum yesterday, but I don't think anyone answered, yet. If you install the mini_usb distribution, it definitely leaves about 512 mb of free JFFS space, which is more than enough to configure the printer daemon and the hard drive. After that, you can use the ipkg installer to download just about any other software available to the hard drive.
The biggest concern is free RAM memory in the router. This unit doesn't have a wealth of free RAM, so I strongly advise you to add a 512 MB swap partition on whatever hard drive you use, and then issue the 'swapon' command in your startup commands. Good luck!!
VorlonFrog
10-13-2008, 05:04 PM
OKAY!! :woot2: After 'ipkg install kmod-ext2' I can successfully mount the drive and read/write. It seems the mini_usb version includes the ext3 file system module, but not the ext2. But my Knoppix 5.1.1 disk doesn't have a 'mke3fs' command, only 'mke2fs'.
Duh :crazy: There generally isn't any 'mke3fs' command. The correct syntax to format an ext3 volume is mke2fs -j /dev/hdax Shows you how little I really know. :hide:
Xsabre
10-13-2008, 08:22 PM
I get the router on Wednesday, but wouldn't be able to mess around with it till next week becasue I am going to Vegas.
I will post my experience with the firmware upgrade.
VorlonFrog
10-14-2008, 03:45 AM
I get the router on Wednesday, but wouldn't be able to mess around with it till next week becasue I am going to Vegas.
I will post my experience with the firmware upgrade.
Heck, while you're in Vegas, have fun visiting the HUGE Fry's store there.
(It *IS* still there, right?)
Tshirt
10-14-2008, 03:57 AM
If there are any who are hesitant because of the brand, Asus hardware rocks. I have wl-500w, it is really well made and the firmware on that one is still quite good (though I had to change it to dd-wrt for my uncommon requirements). I would definitely buy another asus.
lamsao
10-14-2008, 08:38 AM
It took me a while to find the location of the DD-WRT v24 TNG, SVN 10431 builds mentioned by VorlonFog. Just in case someone is also looking for it, here is how to get to it:
1. Go to :http://www.dd-wrt.com/dd-wrtv3/dd-wrt/downloads.html
2. Browse to Others/eko/V24_TNG/svn10431
3. There are two files can be used: dd-wrt.v24-10431_NEWD_mini_usb.bin and dd-wrt.v24-10431_VINT_mini_usb.bin. The former uses a new Broadcom driver, and the latter uses an older driver.
I just got my router yesterday. I will to install DD-WRT with USB support and post the result soon.
Update 10/16/08: I installed the dd-wrt.v24-10431_NEWD_mini_usb.bin image and followed VorlonFog's instructions below to add printing support to the router and setup my Window PC as instructed in http://www.dd-wrt.com/wiki/index.php/Printer_Sharing, section Workstation setup. I have Epson Photo Stylus 825 printer and now I can print to it via network. Very cool !!!
Any of the most recent DD-WRT v24 TNG ('sp2') builds handle USB print serving with a few Linux commands and a bit of Linux knowledge. All of the kernel drivers necessary are already included :) but the p910nd print daemon isn't. :( Here's a link to the DD-WRT wiki page where it describes the specifics:
http://www.dd-wrt.com/wiki/index.php/Printer_Sharing#Notes_For_v24_Stable
Specifically:
use version 10431 or later - resolves a USB driver bug in the Broadcom chip
use the _mini_usb version - it leaves JFFS room free for the print daemon
enable JFFS
enable USB 2.0
enable USB printing
After you've configured everything, login to your router via telnet or ssh (whichever you chose when you set it up.) Update the ipkg repository, then install the p910nd print daemon. This fetches it from the web and installs it on the router.
ipkg update
ipkg install p910nd
Edit the print daemon startup script to correct the location of the defaults file. There's a note about this on the DD-WRT USB Printing wiki page. The script is missing the '/jffs' path defining the defaults file:
cd /jffs/etc/init.d/
vi p910nd
and change this line:
DEFAULT=/etc/default/p910nd
to this:
DEFAULT=/jffs/etc/default/p910nd
then save the file
Finally, you need to add the print daemon startup to your router startup. Go to the Administration / Commands web page, and add the following command. Note this has an extra argument 'start' the wiki page is missing:
/jffs/etc/init.d/p910nd start
Finally, click on 'Save Startup' so this command will execute everytime your router restarts.
VorlonFrog
10-14-2008, 10:37 AM
There are two files can be used: dd-wrt.v24-10431_NEWD_mini_usb.bin and dd-wrt.v24-10431_VINT_mini_usb.bin. The former uses a new Broadcom driver, and the latter uses an older driver.
I strongly advise you against installing any VINT (vintage drivers) firmware onto this router. The NEWD (new drivers) code works for the Broadcom 5354 processor in this router. The VINT code is for older BCM47xx processors. Read more about it at the DD-WRT Broadcom forums if you're interested.
(I also created a Wiki post on the first page of this thread including a link to the SVN 10431 release of DD-WRT.)
mr2cool
10-14-2008, 07:26 PM
OK, I was doing the rebate and it turns out to be a skosh bit ludicrous
1) Going to asus.rebateaccess.com there are actually two rebates active at the same time for the 520GU. One is from Oct 1 to Oct 31 but does not mention any reseller, the other is from Oct 1 to Oct 15 and specifically mentions Newegg. Ironically, Newegg doesn't list the one that mentions them and uses the other 30 day one...
And it seems that registering online is not even required but they forget to tell you it's optional? "Failing to register online may cause a delay in processing"
2) Step 2: "Cut out of the ORIGINAL UPC code, serial number bar code label(s) and check number"
WTF is a "check number" o_O I've never had to send in a "check number" for any other rebates, and you'd better have it too since they mention it again in step 3 and yet again in the T&C...
Step 3: "Mail in the ORIGINAL UPC code, Serial Number bar code label(s), check number, .."
3) How convenient, there is no e-mail or phone number listed to ask about this #*$+
JPNguyen
10-14-2008, 09:02 PM
just got my router today. setup was a breeze, no problems as of yet. don't plan on putting dd-wrt on it for awhile, why fix it if it aint broke? =) just gotta run a test and see if it works with my samsung printer
update: took a bit of time to figure it out but got it to work with my samsung ml-2510 =)
i'm jealous of whoever decides to be my roommate next year after i graduate, free printing privileges
VorlonFrog
10-15-2008, 05:47 AM
OK, I was doing the rebate and it turns out to be a skosh bit ludicrous
1) Going to asus.rebateaccess.com there are actually two rebates active at the same time for the 520GU. One is from Oct 1 to Oct 31 but does not mention any reseller, the other is from Oct 1 to Oct 15 and specifically mentions Newegg. Ironically, Newegg doesn't list the one that mentions them and uses the other 30 day one...
And it seems that registering online is not even required but they forget to tell you it's optional? "Failing to register online may cause a delay in processing"
2) Step 2: "Cut out of the ORIGINAL UPC code, serial number bar code label(s) and check number"
WTF is a "check number" o_O I've never had to send in a "check number" for any other rebates, and you'd better have it too since they mention it again in step 3 and yet again in the T&C...
Step 3: "Mail in the ORIGINAL UPC code, Serial Number bar code label(s), check number, .."
3) How convenient, there is no e-mail or phone number listed to ask about this #*$+
When they ran a similar rebate earlier this year, Asus also asked for a 'check number' and I didn't send it in. I still got my rebate about six weeks later. I think there's some numeric label somewhere on the carton that's NOT a UPC code or serial number code. That might be what they mean, but who knows? :rolleyes:
quadpump
10-16-2008, 03:02 AM
can this router allow an all in one scanning to take place ? if so, how'd it know whic PC station to send it to?
TYin advance for any info on this (all in one is desket6310 series by HP)
I'm thinking about doing this, adding a usb hub to the router usb port and then adding a 2 gb flash drive as extra space for the router, do you think this will work for increasing storage space for the router?
VorlonFrog
10-16-2008, 09:32 AM
can this router allow an all in one scanning to take place ? if so, how'd it know whic PC station to send it to?
TYin advance for any info on this (all in one is desket6310 series by HP)
Generally, no. All-in-one devices are not supported. Only the print function of the all-in-one device would work from the network.
I'm thinking about doing this, adding a usb hub to the router usb port and then adding a 2 gb flash drive as extra space for the router, do you think this will work for increasing storage space for the router?
Definitely works with a hub. I have a hub connected to my router, then my printer and external hard disk attach to the hub. :cool:
hoogax
10-16-2008, 10:44 AM
is there any way to get this and hook up an external USB hard drive and network so i can access it wirelessly?
quadpump
10-16-2008, 01:17 PM
Generally, no. All-in-one devices are not supported. Only the print function of the all-in-one device would work from the network.
Definitely works with a hub. I have a hub connected to my router, then my printer and external hard disk attach to the hub. :cool:
thnx vorlon.. I assume to get around it, one would use software suco as paperport ?
VorlonFrog
10-16-2008, 04:00 PM
I haven't used PaperPort in a few years, but I never remembered it using a networked scanner, only directly-connected parallel or USB scanners. I wouldn't expect it these days, either. Most people will tell you there's not much chance of using anything but the print function on an all-in-one connected to a router this way.
Pensuke
10-17-2008, 02:59 AM
Could someone tell me what I'm doing wrong? I looked up everything on the DD-WRT wiki and tried searching on their forums and I can't seem to find a concrete answer.
I input ipkg install p910nd and I get this:
root@DD-WRT:~# ipkg install p910nd
Downloading http://downloads.openwrt.org/backports/rc5/p910nd_0.7-2_mipsel.ipk ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
p910nd_0.7-2_mipsel. 100% |*******************************| 5295 00:00:00 ETA
Done.
tar: illegal option -- z
BusyBox v1.12.1 (2008-10-14 15:41:48 CEST) multi-call binary
Usage: tar -[cxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...
tar: illegal option -- z
BusyBox v1.12.1 (2008-10-14 15:41:48 CEST) multi-call binary
Usage: tar -[cxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...
ipkg_install_file: ERROR unpacking control.tar.gz from /jffs/tmp/ipkg/p910nd_0.7-2_mipsel.ipk
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/p910nd_0.7-2_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
lamsao
10-17-2008, 06:20 AM
Pensuke,
I was successfully to install DD-WRT with printing support. Check my previous post #116 for instructions. Hope this help.
Could someone tell me what I'm doing wrong? I looked up everything on the DD-WRT wiki and tried searching on their forums and I can't seem to find a concrete answer.
I input ipkg install p910nd and I get this:
root@DD-WRT:~# ipkg install p910nd
Downloading http://downloads.openwrt.org/backports/rc5/p910nd_0.7-2_mipsel.ipk ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
p910nd_0.7-2_mipsel. 100% |*******************************| 5295 00:00:00 ETA
Done.
tar: illegal option -- z
BusyBox v1.12.1 (2008-10-14 15:41:48 CEST) multi-call binary
Usage: tar -[cxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...
tar: illegal option -- z
BusyBox v1.12.1 (2008-10-14 15:41:48 CEST) multi-call binary
Usage: tar -[cxtvO] [-f TARFILE] [-C DIR] [FILE(s)]...
ipkg_install_file: ERROR unpacking control.tar.gz from /jffs/tmp/ipkg/p910nd_0.7-2_mipsel.ipk
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/p910nd_0.7-2_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
Libertarian
10-17-2008, 06:38 AM
....nm
findkeys
10-17-2008, 06:59 AM
does this one support all printers?
It took me a while to find the location of the DD-WRT v24 TNG, SVN 10431 builds mentioned by VorlonFog. Just in case someone is also looking for it, here is how to get to it:
1. Go to :http://www.dd-wrt.com/dd-wrtv3/dd-wrt/downloads.html
2. Browse to Others/eko/V24_TNG/svn10431
3. There are two files can be used: dd-wrt.v24-10431_NEWD_mini_usb.bin and dd-wrt.v24-10431_VINT_mini_usb.bin. The former uses a new Broadcom driver, and the latter uses an older driver.
I just got my router yesterday. I will to install DD-WRT with USB support and post the result soon.
Update 10/16/08: I installed the dd-wrt.v24-10431_NEWD_mini_usb.bin image and followed VorlonFog's instructions below to add printing support to the router and setup my Window PC as instructed in http://www.dd-wrt.com/wiki/index.php/Printer_Sharing, section Workstation setup. I have Epson Photo Stylus 825 printer and now I can print to it via network. Very cool !!!
yazyazoo
10-17-2008, 07:12 AM
Anyone get this to run NZB or torrents with a external HD? Maybe install hellanzb on external HD and have the router do swaps for the memory.
lamsao
10-17-2008, 07:21 AM
I don't know. But I would expect that any printer that is currently being supported by other Linux distributions such as Fedora, Debian, RedHat, etc. would also be supported by this DD WRT.
does this one support all printers?
zanetheinsane
10-17-2008, 12:09 PM
Before I was able to run "ipkg update" I had to use "mkdir -p /jffs/tmp/ipkg" to created the directory it required. Might want to add that in the little miniFAQ.
Pensuke
10-17-2008, 12:43 PM
I did read all the tutorials and guides but I couldn't install the driver or printer server. I did install 10509 instead of 10488 like you did, but it theoretically shouldn't matter since it's just an updated build, right?
dcs693
10-17-2008, 12:56 PM
Definitely works with a hub. I have a hub connected to my router, then my printer and external hard disk attach to the hub. :cool:Great info. I assume the hub doesn't need to be powered since the devices have their own A/C? TIA.
lamsao
10-17-2008, 01:03 PM
The version 10431 worked for me. There may be a problem with 10509. Why don't you try 10431 first to make sure your router works before trying the newer version.
I did read all the tutorials and guides but I couldn't install the driver or printer server. I did install 10509 instead of 10488 like you did, but it theoretically shouldn't matter since it's just an updated build, right?
VorlonFrog
10-17-2008, 01:03 PM
Great info. I assume the hub doesn't need to be powered since the devices have their own A/C? TIA.
My USB 2.0 hub is powered by an AC adapter, because the 2.5" hard disk draws all of its power from the USB connection.
dcs693
10-17-2008, 01:10 PM
My USB 2.0 hub is powered by an AC adapter, because the 2.5" hard disk draws all of its power from the USB connection.Thanks. And you set up the HD as an ext3? What's the speed like?
VorlonFrog
10-17-2008, 01:19 PM
Thanks. And you set up the HD as an ext3? What's the speed like?
I haven't gotten as far as installing Optware and Samba yet. :( I want to reformat the drive with a swap partition because the WL520gu has only 16 MB of memory. It's a Western Digital external 160 GB notebook drive and currently has a single Ext2 partition of about 158 MB. I've performed large file transfers back and forth with my Linksys NSLU2 NAS system to confirm the Broadcom USB 2.0 bugs are completely resolved. Before the USB bug fixes arrived in July/August, it would always corrupt large data transfers and hang the router completely. To give you an idea of how bad it was, the bugs would cause problems reading/writing with a 2GB USB Verbatim flash key. :vomit:
dcs693
10-17-2008, 01:33 PM
I haven't gotten as far as installing Optware and Samba yet. :( I want to reformat the drive with a swap partition because the WL520gu has only 16 MB of memory. It's a Western Digital external 160 GB notebook drive and currently has a single Ext2 partition of about 158 MB. I've performed large file transfers back and forth with my Linksys NSLU2 NAS system to confirm the Broadcom USB 2.0 bugs are completely resolved. Before the USB bug fixes arrived in July/August, it would always corrupt large data transfers and hang the router completely. To give you an idea of how bad it was, the bugs would cause problems reading/writing with a 2GB USB Verbatim flash key. :vomit:Hmmm...interesting. Plz let us know how it goes, and thanks for the info.
saidiadude
10-17-2008, 01:46 PM
Has anyone tried the latest OpenWrt with LUCI on this router?
Anyone get the print server to work with a Canon MF4150 on either DD-Wrt or OpenWrt?
VorlonFrog
10-18-2008, 04:45 AM
Has anyone tried the latest OpenWrt with LUCI on this router?
Anyone get the print server to work with a Canon MF4150 on either DD-Wrt or OpenWrt?
Unless it's totally strange :doh: the print function of that multi-function USB device should work. But the scanner and fax functions won't. The p910nd print serving daemon is only for the printing function. And p910nd doesn't care if it's running under DD-WRT or OpenWRT, the server program is the same.
yazyazoo
10-18-2008, 07:25 AM
Vorlon,
How do you install a swap file on your external harddrive for added uses on the router?
Is Samba needed for use of an external HD?
VorlonFrog
10-18-2008, 03:31 PM
Vorlon,
How do you install a swap file on your external harddrive for added uses on the router?
Is Samba needed for use of an external HD?
Connect the external hard drive to another Linux system, or boot your computer from a Linux / Knoppix boot disk. Then use the 'fdisk' or 'gparted' utilities to define partitions. Finally, use the 'mkswap' command to write the necessary swap signature to the partition. Move the drive back to your router, and edit the startup commands to include 'swapon /dev/scsi/....' where /dev/scsi..... points to your swap partition.
Samba is needed to share the HD over your network, and there's no room on the router itself for this very large program. Additionally, the 16 MB of RAM memory in the router is already well-loaded and will be heavily taxed if you run Samba. So having at least 16 MB or 32 MB of swap space on your USB hard drive is a good idea. Google for Optware and Samba and you'll likely find plenty of discussion about doing this using routers.
VorlonFrog
10-21-2008, 07:51 AM
Connect the external hard drive to another Linux system, or boot your computer from a Linux / Knoppix boot disk. Then use the 'fdisk' or 'gparted' utilities to define partitions. Finally, use the 'mkswap' command to write the necessary swap signature to the partition. Move the drive back to your router, and edit the startup commands to include 'swapon /dev/scsi/....' where /dev/scsi..... points to your swap partition.
Samba is needed to share the HD over your network, and there's no room on the router itself for this very large program. Additionally, the 16 MB of RAM memory in the router is already well-loaded and will be heavily taxed if you run Samba. So having at least 16 MB or 32 MB of swap space on your USB hard drive is a good idea. Google for Optware and Samba and you'll likely find plenty of discussion about doing this using routers.
I reformatted my drive Sunday evening, including a 32 MB swap space in the first partition, and making the remainder ext3 file space. Then I found out you can't :shake: issue the 'swapon' command until AFTER you install the Optware packages. But after installing Optware the 'swapon' command is available and works perfectly. Issuing the 'free' command to check memory showed the swap space available. I still need to install Samba and get it running...
dhc014
10-21-2008, 11:00 AM
Wow, this router has a terrible web interface. Thank goodness for Open Source firmwares!
Shin31
10-21-2008, 04:21 PM
Hey the rebate form said it can be purchase from "All Resellers"
Does it apply to those from ebay?
Anyone tried that?
It'll be a really slick deal if we can combine the live search cashback with this one.:P
Calcugod
10-21-2008, 07:55 PM
I made it to this part:
and change this line:
DEFAULT=/etc/default/p910nd
to this:
DEFAULT=/jffs/etc/default/p910nd
then save the file
I do not know how to save these changes. Could someone tell me how to save these settings. Everything else worked fine.
lamsao
10-22-2008, 06:29 AM
I made it to this part:
and change this line:
DEFAULT=/etc/default/p910nd
to this:
DEFAULT=/jffs/etc/default/p910nd
then save the file
I do not know how to save these changes. Could someone tell me how to save these settings. Everything else worked fine.
If I remember correctly the file you need to modify is /jffs/etc/init.d/p910nd, then add the prompt type:
>vi /jffs/etc/init.d/p910nd <ENTER KEY>
The file is open for editing. Hit the 'i' key to enter edit mode. Use the arrow keys to move the cursor to the position right after the equal sign of 'DEFAULT=' then insert /jffs. If you make a mistake, use <Del> to delete. When you are ready to save, hit <ESC> then three characters ':qw' without quotes.
Hope this helps.
Calcugod
10-22-2008, 08:00 AM
Thanks for the help lamsao...Just to clarify if someone else has the same issue I did. After hitting <ESC> you type':wq' instead of ':qw'.
dapoopta
10-22-2008, 08:12 AM
this DD-WRT stuff is not easy. I am still confused on how to get mine running. I wish someone had a step by step procedure that didn't get super confusing and not go in order of the steps. If anyone has theirs working and would like to lend a hand please pm me.
lamsao
10-22-2008, 08:27 AM
Thanks for the help lamsao...Just to clarify if someone else has the same issue I did. After hitting <ESC> you type':wq' instead of ':qw'.
Oops, my mistake. You are correct. It should be ':wq':nod:
dhc014
10-22-2008, 10:29 AM
this DD-WRT stuff is not easy. I am still confused on how to get mine running. I wish someone had a step by step procedure that didn't get super confusing and not go in order of the steps. If anyone has theirs working and would like to lend a hand please pm me.
It is easy to switch from the Asus firmware to DD-WRT firmware, but getting USB working will require more work. I have only flashed my new 520GU with the latest DD-WRT firmware.
I read through some of the instructions here (http://www.dd-wrt.com/wiki/index.php/Installation#Asus_WL520GU) and found some of the files mentioned listed under an older Asus router's instructions here (http://www.dd-wrt.com/wiki/index.php/Installation#Asus_WL500G_Deluxe).
Download and install the Asus Router Utilities (http://dlsvr03.asus.com/pub/ASUS/wireless/WL-500g-03/Eng_1380.zip).
Download dd-wrt.v24_std_generic.bin (http://www.dd-wrt.com/dd-wrtv2/downloads/v24-sp1/Consumer/Asus/WL520GU/dd-wrt.v24_std_generic.bin) or the EKO build from the wiki post if you're following that.
Put the router into Recovery Mode using the following steps:
Remove the power connector of the WL520GU.
While holding the reset button (not the ez setup button), plug the power connector back in.
When the power LED flashes, release the reset button. The router now is in recovery mode.
Wait for your PC to get an IP address (if dhcp is configured)
Use the Asus recovery utility to upload the DD-WRT file (dd-wrt.v24_std_generic.bin).
If you're using Windows Vista, browse out to where the Asus utilities were installed and explicitly run the program as Administrator.
Wait for the flash procedure to complete. Be patient.
After the upgrade finishes, the router reboots and you should be able to access the web interface.
Once you've switched to an open source firmware, you should be able to easily switch to a different version using the Firmware Update option in the router configuration.
signal
10-23-2008, 03:00 AM
Say I had a WIRED network printer and a router already...
Could I use THIS ASUS router to wirelessly connect my WIRED network printer to my OTHER router? I tried doing this with some other router/print server and didn't work too well. Am I better off buying just a wireless print server?
VorlonFrog
10-23-2008, 07:11 AM
Say I had a WIRED network printer and a router already...
Could I use THIS ASUS router to wirelessly connect my WIRED network printer to my OTHER router? I tried doing this with some other router/print server and didn't work too well. Am I better off buying just a wireless print server?
Yes, you can. Using the WDS (wireless distribution system) configuration will allow your routers to talk to each other wirelessly, including any devices hardwired to them.
Xsabre
10-23-2008, 08:02 PM
I get the router on Wednesday, but wouldn't be able to mess around with it till next week becasue I am going to Vegas.
I will post my experience with the firmware upgrade.
I wanted to post how my experience with the upgraded firmware went. I won't go through the basics as I believe there is enough information on this thread to get it working.
I will mention some of the issues I had and hope that it can help someone else.
1) Upgrading the firmware - Even though, I had set my nic card to a static ip. Every time I connected the cable or (re)started the router the nic tried to get an ip address. So the router would timeout and I was unable to flash the router. I had to connect to my old router than connect my old router to the new router than flash it. That worked but it wasn't easy till I figured it out.
BTW: You have to use firmware DD-WRT v24 TNG, SVN 10431 as the newer builds don't seem to work correctly.
2) Issue with AT&T DSL PPPoE - Apparently there is an issue with PPPoE in DD-WRT v24 so I wasn't able to connect to AT&T. I didn't figure this out till I googled around for the problem. I had to set my modem to provide ip pass through to get it to work. Again this process took much more time than I care to discuss.
3) Print Server Setup - This was the easiest part. Followed the instructions and print server was up in less than 5 minutes.
Now, trying to get wireless working on my LinuxMint laptop...Wireless on linux is sometimes a pain in the a$$.
lamsao
10-24-2008, 07:06 AM
I wanted to post how my experience with the upgraded firmware went. I won't go through the basics as I believe there is enough information on this thread to get it working.
I will mention some of the issues I had and hope that it can help someone else.
1) Upgrading the firmware - Even though, I had set my nic card to a static ip. Every time I connected the cable or (re)started the router the nic tried to get an ip address. So the router would timeout and I was unable to flash the router. I had to connect to my old router than connect my old router to the new router than flash it. That worked but it wasn't easy till I figured it out.
BTW: You have to use firmware DD-WRT v24 TNG, SVN 10431 as the newer builds don't seem to work correctly.
2) Issue with AT&T DSL PPPoE - Apparently there is an issue with PPPoE in DD-WRT v24 so I wasn't able to connect to AT&T. I didn't figure this out till I googled around for the problem. I had to set my modem to provide ip pass through to get it to work. Again this process took much more time than I care to discuss.
3) Print Server Setup - This was the easiest part. Followed the instructions and print server was up in less than 5 minutes.
Now, trying to get wireless working on my LinuxMint laptop...Wireless on linux is sometimes a pain in the a$$.
Did you try to clone the MAC address of your modem to the router? I also had a problem with my VerizonFiOS PPPoE. Cloning MAC address solved the problem for me.
Just thought you may have the same problem as mine.
sldeals
10-25-2008, 12:34 AM
Does anyone know if you can buy 3 of these units and get 3 rebates? Or can you only get 1 rebate even if you buy more than 1 unit?
babear
10-25-2008, 08:22 AM
at zzf unit is now showing at 46$ - 20MIR= 26$
Xsabre
10-26-2008, 09:11 AM
Did you try to clone the MAC address of your modem to the router? I also had a problem with my VerizonFiOS PPPoE. Cloning MAC address solved the problem for me.
Just thought you may have the same problem as mine.
Good point...
But I think I like this config better as it provides easier access to my modem configs. The only thing that I am not sure of is it decreases my bandwidth. Testing doesn't appear to show much difference.
VorlonFog, could you please provide instructions on how you got printer and NAS setup working together...Thanks in advance.
VorlonFrog
10-27-2008, 11:31 AM
Printer sharing instructions have been in the Wiki post on the first page of this thread for a few weeks now.
USB storage is a no-brainer (seriously) if you have any Linux experience:
obtain USB external hard disk drive
attach disk to laptop running Knoppix boot disk
disk should be recognized as device named /dev/sdb, /dev/sdc etc
partition the disk with Linux fdisk or gparted commands
format one partition of 32 megabytes for swap, the remainder as EXT3
use the Linux commands 'mkswap' and mke2fs -j to format the partitions
Absolutely DO NOT format the disk as FAT32 or NTFS
REPEAT: *NO* FAT32 or NTFS - NONE. ZIP. NADA. ZILCH. NONCA. JAMAIS. *NO*
follow the DD-WRT notes on installing Optware and Samba
VorlonFrog
10-27-2008, 11:39 AM
Does anyone know if you can buy 3 of these units and get 3 rebates? Or can you only get 1 rebate even if you buy more than 1 unit?
If it's the Asus rebate, there's a limit of one per customer and address. If you want to get around this, use different names, different credit card numbers, and different mailing addresses for each of the rebates. If you already bought three of these in a single purchase, you're only eligible for one rebate.
galemartin
10-27-2008, 01:04 PM
First off, I would like to thank VorlonFog for all the great posts. I was able to mount a
20GB USB drive with a 512MB swap on the router following your instructions and
those on the dd-wrt forum. I am a Linux and DD-WRT newbie, so conceptually, I don't understand how all of optware and samba can be installed on the router.
After disabling JFFS2 on the router, I only have 2MB left. Where are the Optware and
Samba files stored? Is on on the mounted USB hdd?
Also is Optware required for Samba?
I would like to have OpenVPN on the router in addition to Samba, but I am afraid that
2MB may not be enough for the router to function properly.
I'm also not sure how to install Optware and Samba on the router. I found a Optware sh script online but am hesitant to install until I conceptually understand where all these files are stored.
Thank You
Printer sharing instructions have been in the Wiki post on the first page of this thread for a few weeks now.
USB storage is a no-brainer (seriously) if you have any Linux experience:
obtain USB external hard disk drive
attach disk to laptop running Knoppix boot disk
disk should be recognized as device named /dev/sdb, /dev/sdc etc
partition the disk with Linux fdisk or gparted commands
format one partition of 32 megabytes for swap, the remainder as EXT3
use the Linux commands 'mkswap' and mke2fs -j to format the partitions
Absolutely DO NOT format the disk as FAT32 or NTFS
REPEAT: *NO* FAT32 or NTFS - NONE. ZIP. NADA. ZILCH. NONCA. JAMAIS. *NO*
follow the DD-WRT notes on installing Optware and Samba
hmm..didn't tell me I had to format it..oh well..here we go again..
VorlonFrog
10-27-2008, 01:33 PM
hmm..didn't tell me I had to format it..oh well..here we go again..
mega-sorry, dude. :( :(
Because this router needs 32 MB swap space before you can run anything serious, at the very least you've gotta re-partition it. If you've got enough free space on the drive, defrag it in Windoze a couple of times first. Then back it up (duh.) Boot Knoppix and use 'gparted' to shrink the size of the NTFS partition, making enough room for a 32 MB swap partition and at least 10 or 20 GB of EXT3. Without swap, you can't start Samba. Without Ext3, you can't install Samba to share the drive. Finally, I don't know enough about Linux drivers supporting NTFS in read/write. I believe there's something called 'NTFS-3G' or similar. If it's available as an OptWare package, you can download it to the Ext3 partition and install it, then mount your NTFS partition using that. But it's a bit of work any way you look at it.
The good thing about going all Linux/EXT3 is it means less Linux work, and Windoze will never know the difference when Samba is sharing the drive to you. ;)
VorlonFrog
10-27-2008, 01:52 PM
First off, I would like to thank VorlonFog for all the great posts. I was able to mount a 20GB USB drive with a 512MB swap on the router following your instructions and those on the dd-wrt forum. You're very welcome. If you got that far, you're a good reader and to be congratulated :thumbup: for making the effort. Seriously. 512 MB swap is rather large for this router, but it's only half-a-gigabyte, and on a 20 GB drive makes very little difference. Linux will only use what it needs and you'll never have to enlarge your swap partition in the future.
I am a Linux and DD-WRT newbie, so conceptually, I don't understand how all of optware and samba can be installed on the router. After disabling JFFS2 on the router, I only have 2MB left. Where are the Optware and Samba files stored? Is it on on the mounted USB hdd? If you've got the drive mounted in Linux, your next step is to use the Optware script to install the Optware Linux commands and tools to your hard disk. When that's done, you can use the ipkg-opt command to download and install Samba to the hard drive.
Also is Optware required for Samba? Yes.
I would like to have OpenVPN on the router in addition to Samba, but I am afraid that 2MB may not be enough for the router to function properly. You're right, 2 MB of JFFS space wouldn't be nearly enough space to load OpenVPN. But your USB hard drive has all the room in the world. And with Linux Swap space available, both Samba and OpenVPN should play together nicely.
I'm also not sure how to install Optware and Samba on the router. I found a Optware sh script online but am hesitant to install until I conceptually understand where all these files are stored.Before you run the Optware install script, you need to be certain you've got the /opt directory mounted from the hard disk drive. If you don't, /opt is logically located in the router's read-only flash RAM, where you'll never be able to add files to the /opt directory. I don't think I could possibly explain it all here, but the DD-WRT and NSLU2 community wikis both have tutorials and examples. Once you've got the drive mounted, and the /opt directory is logically mounted from the drive, the Optware script does all the heavy work. It takes a while to run too, so don't worry too much. I did this last week, but I haven't configured and activated Samba yet. :shake:
Thank YouYou're :welcome:
VorlonFrog
10-27-2008, 02:23 PM
mega-sorry, dude. :( :(
I don't know enough about Linux drivers supporting NTFS in read/write. I believe there's something called 'NTFS-3G' or similar. If it's available as an OptWare package, you can download it to the Ext3 partition and install it, then mount your NTFS partition using that. But it's a bit of work any way you look at it. The good thing about going all Linux/EXT3 is it means less Linux work, and Windoze will never know the difference when Samba is sharing the drive to you. ;)
Reviewing this thread at the OpenWRT forum, NTFS-3G (http://forum.openwrt.org/viewtopic.php?pid=75156) might be workable at this point, but I wouldn't guarantee it. Now you know why I strongly recommended against using NTFS. FAT32 might work, but Vista uses something called 'exFAT' that's not entirely compatible :shake: either. Trust me, it's easier to just use Ext3 and Samba from the start. It's a LOT less trouble.
Reviewing this thread at the OpenWRT forum, NTFS-3G (http://forum.openwrt.org/viewtopic.php?pid=75156) might be workable at this point, but I wouldn't guarantee it. Now you know why I strongly recommended against using NTFS. FAT32 might work, but Vista uses something called 'exFAT' that's not entirely compatible :shake: either. Trust me, it's easier to just use Ext3 and Samba from the start. It's a LOT less trouble.
any limitations to ext3? Will Vista/OSX/Linux see it/be able to write to it..and all that jazz? :D
VorlonFrog
10-27-2008, 02:41 PM
any limitations to ext3? Will Vista/OSX/Linux see it/be able to write to it..and all that jazz? :DIt's more flexible and more reliable than anything Windoze offers. And when Samba shares it to the Win2K / XP / Vista clients, they'll never know the difference. That's the beauty of Samba.
Calcugod
10-27-2008, 09:15 PM
I was thinking of using the Wireless Distribution System on this router to work as a wireless adapter form my xbox 360. Would I need another router with dd-wrt or would any other router work?
I was thinking of using the Wireless Distribution System on this router to work as a wireless adapter form my xbox 360. Would I need another router with dd-wrt or would any other router work?
if the other router (primary) supports WDS..then yes it will work. My Primary doesn't so I just use the Client Bridge feature to connect to my xbox360 and HD-DVD player in the living room..works the same IMO...
stp6435
10-28-2008, 02:06 PM
1. Is this router better or the Linksys ones better?
2. If I load dd-wrt on this, can i bridge it with a belkin ( which will be primary) router?
pls let me know. thanks
Calcugod
10-29-2008, 07:47 AM
Thought I would share the experience I had with getting my printer to work. After setting everything up, my printer would only print part of the page and would then freeze up, not even letting go of the page. The solution I found was to go into the printer properties and set the printer to print directly instead of using the print spooler. Hope this helps someone else.
yazyazoo
11-03-2008, 08:51 PM
VorlonFog,
For ext HD how many partitions do you need? What sizes and how large should be the swap file? Is the swap file where the Optware packages go? Do you think you can add all the steps to adding a HD to the Wiki including the commands to made a swap drive? You have been a great help to this thread. I bought this router in about 6months ago but never thought anyone would get the NAS to work which you have.
VorlonFrog
11-04-2008, 12:42 PM
VorlonFog,
For ext HD how many partitions do you need? What sizes and how large should be the swap file? Is the swap file where the Optware packages go? Do you think you can add all the steps to adding a HD to the Wiki including the commands to made a swap drive? You have been a great help to this thread. I bought this router in about 6months ago but never thought anyone would get the NAS to work which you have.
It's difficult to give specific command examples in this post, because everyone's laptop and/or desktop has a different configuration. Typically, Knoppix names external/portable USB hard disk drives as /dev/sdb. The only way to be certain what YOUR disk is named is to check the system diagnostic messages log AFTER you've connected your external disk drive. So, boot a Knoppix disk, open a console / terminal window, and become the root (superuser). The Linux command to become superuser is sudo su -. Then connect your USB external hard disk drive to the system. Wait a few seconds for Knoppix to detect the drive. You should see the disk activity LED flashing a few times. Then review the Linux diagnostic log with this command: dmesg You're looking for an area that shows the disk drive being connected and identified. It should include a model number or description of the disk. Somewhere very close to this, it should say sda or sdb or something similar. This is the Linux device name for your drive. Without being certain of this device name, you should not continue.
I used a 160GB Western Digital 2.5-inch (notebook) external USB 2.0 hard drive. It was recognized as sdb
I used Knoppix on my laptop to format the drive with two partitions. The Linux command to partition the drive is fdisk /dev/sdb
The first partition is the swap partition. It is 32 megabytes in size. This size is twice as large as the 16 megabytes of RAM in the router. This will allow larger programs (like Samba!) to run. The Linux command to format this partition is mkswap /dev/sdb1
The second partition is an ext3 filesystem. It was created with all the space remaining on the drive. The Linux command to format this partition is mke2fs -j /dev/sdb2
If your device is recognized with a different name (or if you use a different version of Linux) then you should modify the commands above to match your individual configuration. After you've partitioned the drive, there are more commands necessary to mount it from the router.
I'm working away from home this week, so everything in this post is from memory. Please forgive me if it doesn't work exactly right for you. I'll check back later. Good luck!
yazyazoo
11-04-2008, 08:38 PM
Vorlon,
I wanted three partitions which I used gparted on the knoppix disk. I did one of 512kb for swap, 2mb for Optware Pkgs, and the rest (18gb) for ext3 for data.
I went to dmesg and it showed a disc, part1 and a part 2.
If I am to do it in terminal from linux how do I tell the size of the partition from you commands above?
VorlonFrog
11-05-2008, 06:06 PM
Vorlon,
I wanted three partitions which I used gparted on the knoppix disk. I did one of 512kb for swap, 2mb for Optware Pkgs, and the rest (18gb) for ext3 for data.
I went to dmesg and it showed a disc, part1 and a part 2.
If I am to do it in terminal from linux how do I tell the size of the partition from you commands above?
512 KB for swap will probably be too small, almost like no swap space at all. But at least it's better than none. On the router, your two data partitions are probably those showing in dmesg. You won't be able to use the swap partition until after you install Optware, which includes the swapon command. The way to determine how your partitions appear in Linux on the router is to go to the directory /dev/discs/ and find the lowest level directory where you'll see two (maybe three) entries named part1, part2, part3. These are the Linux device names for your disk partitions. To test mount them, try the following commands:
mount -t ext2 /dev/discs/????/????/part1
mount -t ext3 /dev/discs/????/????/part2
You'll need to create mount points for your data directory. The OPT partition will get mounted at the existing /opt directory. I defined my mount point in the JFFS flash area as /jffs/mnt/part1. I hope this helps you. I'm typing all this from memory, and that's not always the best reference material. :shake:
yazyazoo
11-05-2008, 06:24 PM
Vorlon,
What size for swap is a good? I need another partition for Optware and Data. For a 20gb drive what size is good for the Swap and the Optware. I mainly want this router to do torrents and NZB files and a Samba Server for all the multimedia I get.
Also I tried messing around with USB storage from the DD-WRT wiki and just wanted to know if you are using the Non MEGA instructions for mounting the drive? I am using the version of dd-wrt you suggested.
Should I use this USB kernel module stated in the wiki?
If your kernel is newer than 2.4.30:
ipkg -force-depends install kmod-usb-core kmod-usb2 kmod-usb-storage
I tried this and I get an error at the end after in downloads and tried to install to jffs.
I am a little confused between the jffs and the swap and the optware. When the router downloads these ipkg modules is it installing it on the router or the swap drive or the optware folder? How do you tell where to download and install these Optware packages.
Thanks again!
VorlonFrog
11-05-2008, 08:37 PM
What size for swap is a good? I need another partition for Optware and Data. For a 20gb drive what size is good for the Swap and the Optware? I mainly want this router to do torrents and NZB files and a Samba Server for all the multimedia I get.
Okay, swap (in general, Windoze included) should be at least twice the size of the physical memory. In this case, the WL-520gu router has 16 MB RAM, so it should be at least 32 MB swap space. For the /opt partition, I'd suggest 512 MB, since your disk is only 20 GB.
Also I tried messing around with USB storage from the DD-WRT wiki and just wanted to know if you are using the Non MEGA instructions for mounting the drive? I am using the version of dd-wrt you suggested.
Should I use this USB kernel module stated in the wiki?
If your kernel is newer than 2.4.30:
ipkg -force-depends install kmod-usb-core kmod-usb2 kmod-usb-storage
You don't need :shake: to install USB2 or any other USB printer or storage modules. They're already built-in with Eko's 10431 mini_usb distribution. But you definitely need to enable USB 2.0 on the DD-WRT GUI web interface.
I tried this and I get an error at the end after in downloads and tried to install to jffs.
Okay, so you've definitely got JFFS enabled, right? Remember there's only a few hundred KB of JFFS space available on this router. You don't want to download anything very large (like Optware) here. It's a convenient area for small things like the p910nd print daemon, and creating new mount points.
I am a little confused between the jffs and the swap and the optware. When the router downloads these ipkg modules is it installing it on the router or the swap drive or the optware folder? How do you tell where to download and install these Optware packages.
I suggest you repartition your drive, and get the two EXT3 partitions mounted first. Then you can download the Optware script onto the smaller partition of the hard drive where /opt resides. If you try running the Optware script using only JFFS space, I guarantee you it will fail. There's not enough room there for everything.
If you haven't seen it yet, there's an excellent tutorial to USB storage (
http://www.dd-wrt.com/wiki/index.php/USB_storage#To__access_a_network_drive_partition) on the DD-WRT wiki. Step 1 suggests the partition formats and sizes. Step 3 has examples of the partition naming. Step 4 shows examples of mounting the partitions. Don't go forward :shake: with Step 5, because the mini_usb version doesn't need a usb startup script. Instead, jump forward to Step 5.1 where it explains how to save the mount commands using the web GUI. Then continue with Step 6 for the Optware setup.
When you've got Optware successfully installed and your partitions automagically mounted on reboot, then you're ready to install and activate Samba. If you try to start Samba without enabling the swap space using the Optware swapon command, you'll run out of memory.
Thanks again!
You're welcome! :cool:
jp5392
11-05-2008, 09:24 PM
I am thinking about mounting a 2.5" hard drive internally and placing a mounting a usb hub as well internally and making cut outs on the case to house the ports. Has anyone done something like this before? And has anyone tried putting a utorrent client on the router?
VorlonFrog
11-06-2008, 12:33 AM
I am thinking about mounting a 2.5" hard drive internally and placing a mounting a usb hub as well internally and making cut outs on the case to house the ports. Has anyone done something like this before? And has anyone tried putting a utorrent client on the router?
Those hardware mods sound like my kind of fun!! :lol:
I don't know :rolleyes: about a torrent client with only 16 MB physical memory, though. If anyone is already doing that, there are probably already message threads at the DD-WRT and/or OpenWRT forums about it.
scarface983
11-06-2008, 05:09 AM
Excellent deal. Thanks!!!
yazyazoo
11-06-2008, 01:21 PM
Vorlon,
so if I did actually install usb modules to the jffs area, will cleaning the jffs area give me a fresh start or should I reinstall the version of dd-wrt over again?
VorlonFrog
11-06-2008, 04:58 PM
I don't think you need to do that. You can delete files manually from the /jffs partition if you really need to.
bguile
11-06-2008, 05:48 PM
Im disappointed in this router so far, It wont detect my internet connection at all, and theres no good solutions at ASUS's site, have to contact my ISP to get a DNS server information, most people are flashing this router to use other software. the default software sucks.
For those that are having this same problem, so did I. Long story short, I was able to resolve it by unplugging my cable modem (power and coax) for half a minute plugged the router into the cable modem and turned it on first. I then reconnected the cable modem and it automagically reconnected.
I spent 6 hours the night before just recycling power on devices with no joy.
yazyazoo
11-06-2008, 07:40 PM
Vorlon,
Ok I re did the ext HD so that the first partition is a Optware, 2nd is swap, 3rd is data. I got to the step Step 6.1 - Extra software the Optware way. I used the second wget command to get the optware. It downloaded from the internet and didn't install. I had to look on the Optware page and read to type 'sh/Temp/optware-install.sh' to get it running. It seemed to have installed.
Do I have to do Step 6.1 - Extra software the Optware way NOTE 2 (look below)? How do I create tehe /opt/etc/profile file? Why does it want me to modify the 'begin-here.startupfile' why didn't it have me do it the first time when I created it. Do I need to do Step 7?
I am getting so close to getting this to work I think. SO NEXT would be to install Samba 2 from Optware?
ote2: Having installed Optware packages, you should also make the following changes to your system. Create /opt/etc/profile file with the following content
export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
export PS1='\u@\h:\w\$ '
[ -x /opt/bin/less ] || alias less=more
[ -x /opt/bin/vim ] || alias vim=vi
arp() { cat /proc/net/arp; }
ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
reboot() { killall nmbd
killall smbd
killall xinetd
killall thttpd
sleep 1
umount /opt
umount /mnt
/sbin/reboot
}
You should also modify the begin-here.startup file (mentioned in Step 5) to look like this:
#!/bin/sh
unset LD_LIBRARY_PATH
unset LD_PRELOAD
# Mount /opt to one of the options - then wait for the drive to mount
mount /mnt/test1 /opt
#mount /mnt/org-opt /opt
#mount /mnt/main-opt /opt
sleep 3
#Update stock profile to Optware optimized profile
[ -e /opt/etc/profile ] && mount -o bind /opt/etc/profile /etc/profile
Aquariuzzz
11-06-2008, 09:01 PM
i purchased this router and i figured it out on my own. i used the access site. have the router connected to the pc/laptop. go to the site 192.168.1.1 set your internet up so you dont need a password to get on and simply set it up a Wireless Access point instead of the other two options that sound reasonable. and WA LA!
okay maybe its not that easy.. you have to find the right heading that sends you to a screen to choose wireless access point but it all can be done on the site 192.168.1.1. i forgot my password for the router and the default one doesnt work.
VorlonFrog
11-07-2008, 05:31 PM
Ok I re did the ext HD so that the first partition is a Optware, 2nd is swap, 3rd is data. I got to Step 6.1 - Extra software the Optware way. I used the second wget command to get the optware. It downloaded from the internet and didn't install. I had to look on the Optware page and read to type 'sh /tmp/optware-install.sh' to get it running. It seemed to have installed.
Do I have to do Step 6.1 - Extra software the Optware way NOTE 2 (look below)? How do I create the /opt/etc/profile file? Why does it want me to modify the 'begin-here.startupfile' why didn't it have me do it the first time when I created it. Do I need to do Step 7?
I am getting so close to getting this to work I think. SO NEXT would be to install Samba 2 from Optware?
At this point, you should have your opt and data hard disk partitions automagically mounting via the DD-WRT web GUI Administration/Commands screen. Now that Optware is loaded, the swapon command should be available. Verify this works by typing the command free at the router prompt. If you've already enabled your swap space, it will display in the free memory report. If it doesn't display, use the command swapon /dev/scsi/host0/bus0/target0/lun0/part2 where the long pathname points to your swap partition. Then re-execute the free command. Be certain to add the swapon command to the web GUI Administration screen so it will execute every time the router reboots.
Don't try to download and install Samba until you've definitely got swap space enabled, and it's still enabled after a reboot. You're more than halfway there - good job!! :bounce:
Note2: Having installed Optware packages, you should also make the following changes to your system. Create /opt/etc/profile file with the following content
export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
export PS1='\u@\h:\w\$ '
[ -x /opt/bin/less ] || alias less=more
[ -x /opt/bin/vim ] || alias vim=vi
arp() { cat /proc/net/arp; }
ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
reboot() { killall nmbd
killall smbd
killall xinetd
killall thttpd
sleep 1
umount /opt
umount /mnt
/sbin/reboot
}
You should also modify the begin-here.startup file (mentioned in Step 5) to look like this:
#!/bin/sh
unset LD_LIBRARY_PATH
unset LD_PRELOAD
# Mount /opt to one of the options - then wait for the drive to mount
mount /mnt/test1 /opt
#mount /mnt/org-opt /opt
#mount /mnt/main-opt /opt
sleep 3
#Update stock profile to Optware optimized profile
[ -e /opt/etc/profile ] && mount -o bind /opt/etc/profile /etc/profile
yazyazoo
11-07-2008, 09:19 PM
Vorlon,
I typed in free and the swap is showing all zeros across. So I typed that command you have above and it gave me -sh swapon not found. What am I doing wrong?
Also what do I do at the Note 2. That is where I stopped because I didn't know what to do.
VorlonFrog
11-08-2008, 06:03 AM
Vorlon,
I typed in free and the swap is showing all zeros across. So I typed that command you have above and it gave me -sh swapon not found. What am I doing wrong? Also what do I do at the Note 2. That is where I stopped because I didn't know what to do.
When I returned home and started looking at my router last night, I realized two things:
1) I created only two partitions on my drive, not three. :scratchh:
2) I never updated my GUI Administration/Commands router startup commands :(
So, I updated my Commands tab and verified everything was being properly re-mounted during a router reboot. (After that, I finally unpacked from my trip. ;))
All you're missing at this point are the mount commands so that all your Optware code is mounted during a router reboot. In the old days of DD-WRT (pre-mini_usb, pre-V24 sp2) they created a separate start-up script. You don't need EVERYTHING from that startup script, just a few commands. Attached below is a snapshot from my router this morning, showing these commands. (Remember my partitions aren't :rolleyes: exactly the same as yours.)
#
# VorlonFog commands
#
/jffs/etc/init.d/p910nd start
sleep 1
mount /dev/scsi/host0/bus0/target0/lun0/part2 /jffs/mnt/disk1
sleep 1
mount -o bind /jffs/mnt/disk1/opt /opt
sleep 1
/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part1
The difference for your three partition disk means yours would appear more consistent and use a logical partition name for the /opt mount command:
#
# yazyazoo commands
#
/jffs/etc/init.d/p910nd start
sleep 1
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
sleep 1
/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
sleep 1
mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
VorlonFrog
11-08-2008, 06:07 AM
Here's the output of the free command on my router showing the 64MB swap partition:
total used free shared buffers
Mem: 13048 12248 800 0 2064
Swap: 72252 0 72252
Total: 85300 12248 73052
yazyazoo
11-08-2008, 07:37 AM
Vorlon,
Thanks for spending the time to look at this after your trip!!! I will tried to change the commands on startup. I still show 0 on swap when I type in free. I can't figure out whats wrong. Those are my file names. part 1 is optware, part 2 is swap, part 3 is data.
Do I do 6.1 Step 2. I tried going to the folder opt/etc/profile folder to change it but I don't have a profile folder. Do I have to make one and add this script? What do I name the script.
VorlonFrog
11-08-2008, 10:27 AM
Vorlon,
Thanks for spending the time to look at this after your trip!!! I will tried to change the commands on startup. I still show 0 on swap when I type in free. I can't figure out whats wrong. Those are my file names. part 1 is optware, part 2 is swap, part 3 is data.
Do I do 6.1 Step 2. I tried going to the folder opt/etc/profile folder to change it but I don't have a profile folder. Do I have to make one and add this script? What do I name the script.
I don't have any special scripts configured (yet.) If you mount the drive, and use the direct path to the Optware busybox swapon command as shown in my previous message, it should get your swap partition mounted. You might want to check exactly what partitions are shown in your /dev/scsi/.... directory. I don't know if the swap partition receives a partition number and gets displayed or not. That may be the reason.
The best :nod: way to insure your Linux commands will succeed on router restart or inside a script is to type and execute them manually through a Putty session window. Use a putty session, cd to the /dev/scsi/..... directory where your disk partitions are displayed, and issue the command ls -la.
I've got a ton of fall yard work to do this afternoon, so I won't be able to check back in until later this evening. Good luck, be patient, and you'll get there :nod: I promise. I probably will re-partition my drive, after which it will look pretty much the same as yours, except my data partition will be a different size. :wave:
VorlonFrog
11-08-2008, 08:05 PM
I only picked up twelve :omg2: extra large bags of leaves and grass clippings this afternoon. And it's not even :shake: the peak of leaf-dropping season yet.
So anyway, I didn't re-partition the drive, I worked on getting the Samba package downloaded, installed, and up and running. Finally, I added the necessary commands to the DD-WRT Administration/Commands GUI screen. It seems Samba uses a default user name of 'nobody' but DD-WRT doesn't provide this user name by default. So I added a command to append it to the file /tmp/etc/passwd Now the Samba directory is automagically mounted and shared every time the router reboots. JOY! I removed the SLEEP 1 statements from the startup commands. For your reading enjoyment, here are my final router startup commands:
/jffs/etc/init.d/p910nd start
mount /dev/scsi/host0/bus0/target0/lun0/part2 /jffs/mnt/disk1
mount -o bind /jffs/mnt/disk1/opt /opt
/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part1
echo "nobody:*:0:0:Nobody,,,:/tmp/root:/bin/sh" >>/tmp/etc/passwd
/opt/etc/init.d/S80samba
The echo command adds the 'nobody' user and the S80samba line starts the Samba processes. Don't forget to edit the Samba configuration file. Here's what I added to the bottom of the default Samba configuration file:/opt/etc/samba/smb.conf
[disk1]
comment = WD 160GB 2.5-inch drive
path = /jffs/mnt/disk1/data
public = yes
writable = yes
printable = no
create mask = 0666
Here's the output of the free command with the two Samba processes running:
total used free shared buffers
Mem: 13048 12552 496 0 1356
Swap: 72252 44 72208
Total: 85300 12596 72704
sigh..I still haven't figured out how to unbrick this..I installed dd-wrt many months ago but it got screwed up somewhere along the way..I remember I unbricked it more than once but I forgot the ip of it..damn..there has to be a way :scratch:
VorlonFrog
11-08-2008, 08:21 PM
Forgot to include pictures of the Samba share showing up on my laptop. You know, just to prove it REALLY (really!) works. :woot2:
The first picture shows the shares (probably should remove those two Samba defaults) in Vista's Explorer. The second picture shows a text file I created inside a shared folder I created, both from my wireless laptop.
VorlonFrog
11-08-2008, 08:22 PM
sigh..I still haven't figured out how to unbrick this..I installed dd-wrt many months ago but it got screwed up somewhere along the way..I remember I unbricked it more than once but I forgot the ip of it..damn..there has to be a way :scratch:
Download the Angry IP Scanner from angryziber and have it scan your network. That'll find it.
Also, press the reset button and hold it in for thirty seconds while applying power to the router. If the CFE bootloader is loaded and running, it should read the reset switch and re-apply default values (including IP address) to the router.
Forgot to include pictures of the Samba share showing up on my laptop. You know, just to prove it REALLY (really!) works. :woot2:
The first picture shows the shares (probably should remove those two Samba defaults) in Vista's Explorer. The second picture shows a text file I created inside a shared folder I created, both from my wireless laptop.
OMG you're killing me..that looks so HOTTTT :lol: :drool2: That turns me on :drool: I've been wanting to do that for sooo long now :lol:
Download the Angry IP Scanner from angryziber and have it scan your network. That'll find it.
will that work even though it doesn't assign one? I don't know..it's like there's a f/w on it but it's corrupted so I have to manually assign the right ip addy..
mmzymxf
11-08-2008, 08:26 PM
When does the rebate come back?
VorlonFrog
11-08-2008, 08:36 PM
OMG you're killing me..that looks so HOTTTT :lol: :drool2: That turns me on :drool: I've been wanting to do that for sooo long now :lol:
Yeah, I shoulda done this weeks ago, but I've been too busy helping other folks get their printers working. :lmao: Well, that and a week-long business trip to Los Angeles. Something about that Oracle database application I maintain with four million :omg2: accounts in it.
Will that work even though it doesn't assign one? I don't know..it's like there's a f/w on it but it's corrupted so I have to manually assign the right IP addy..
If it's defaulting to a 192.168.1.xxx address, it should find it. If it doesn't, try two more things:
a) the reset switch as I mentioned above
b) download the Redboot.VBS script from the NSLU2 project. It's good for catching your router in situations like this, too. Instead of having it open a telnet window, change the command to perform the TFTP -i PUT command.
VorlonFrog
11-08-2008, 08:43 PM
When does the rebate come back?
Asus usually gets your rebate back to you in 4 to 6 weeks.
VorlonFrog
11-09-2008, 10:09 AM
Here are mine:
yazyazoo
11-09-2008, 11:26 AM
Vorlon,
I am still stuck at not getting the swap to show up. I tried to follow the step of the DDWRT wiki but am still stuck. I even tried to reformat the drive and reflash the router. I think I messed it up more. It seems as if the router or the harddrive has some configurations memorized. When I type dmesg I get a weird response. The three partions show but when I go to mount it gives me an error saying the /opt partition is busy. Also in the dd-wrt wiki they only mount the opt and mmc(data) partition. They don't mount the swap partition. Do you think that is why I couldn't get the swapon to work?
It would be great if you could make a custom wiki like the printer one specifically for this router with the three partitions in the dd-wrt wiki. I know you are busy but for some of us newbies this would help alot. I got my NSLU2 Unslung to work but this router has been giving me a headace.
How do you quote the dd=wrt wiki and post it onto your posts here. They always look so nice.
VorlonFrog
11-09-2008, 01:36 PM
I am still stuck at not getting the swap to show up. I tried to follow the step of the DDWRT wiki but am still stuck. I even tried to reformat the drive and reflash the router. I think I messed it up more. It seems as if the router or the harddrive has some configurations memorized. When I type dmesg I get a weird response. The three partions show but when I go to mount it gives me an error saying the /opt partition is busy. Also in the dd-wrt wiki they only mount the opt and mmc(data) partition. They don't mount the swap partition. Do you think that is why I couldn't get the swapon to work?
You never really actually mount a swap partition. When you use the swapon command, it tells Linux that partition is available for swap space.
It would be great if you could make a custom wiki like the printer one specifically for this router with the three partitions in the dd-wrt wiki. I know you are busy but for some of us newbies this would help alot. I got my NSLU2 Unslung to work but this router has been giving me a headache.
The hardest part about doing that is that everyone has different configurations, and it's impossible to write something that will allow everyone to do it exactly the same. In my case, I have a USB hub attached to the router (there's no special work required to use a hub) so I can connect both my printer and the hard drive. Other people might want to add more than one hard drive for sharing. I'll see if I can put something together that might make it more straightforward. It will all be command-line examples, though.
How do you quote the dd=wrt wiki and post it onto your posts here. They always look so nice.
I apply the FONT tag with the Courier New font to Linux commands and examples here. It just makes things easier to read (for me, anyway) so I include it in my posts.
VorlonFrog
11-09-2008, 06:18 PM
Try this out, and let me know how it works for you...
================================================== ==========
I. FORMATTING YOUR DISK DRIVE
================================================== ==========
You must partition and format your hard disk drive somewhere other than your router. DD-WRT does not include the commands necessary to perform these functions. Use a Linux boot CD like Knoppix or Ubuntu on your computer. Restart your computer so it boots from the Linux CD.
1. After Linux boots, connect your USB hard disk drive.
2. Open a terminal window so you can issue Linux commands.
3. Use the command "sudo su -" to become root.
4. Find out what Linux named your USB disk with the command dmesg | more You're looking for a set of messages that include the name and a description of your hard disk drive. One line will say SCSI device sd? For the remainder of this text, replace sd? with the name of your disk. Here's an example of what you're looking for:
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: WD Model: 1600BEV External Rev: 1.05
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sdb at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
5. Partition the disk using the command fdisk /dev/sd? You will be creating three partitions:
5.1) sd?1 - the /opt partition, where Optware will reside.
5.2) sd?2 - the swap partition, where Linux will swap jobs.
5.3) sd?3 - the data partition, which you will share via Samba.
It's important to understand everyone's disk drive configuration will be different. If your drive is 40 GB or smaller, use the smaller set of partition sizes below. If your drive is over 40 GB, you can use the larger set of partition sizes.
Disk 40 GB or less
---------------------
/opt 256 megabytes
swap 32 megabytes
data remainder of the disk
Disk greater than 40 GB
------------------------
/opt 512 megabytes
swap 64 megabytes
data remainder of the disk
# fdisk /dev/sd?
Command (m for help): p
Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-621, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-621, default 621): +256M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (197-621, default 197):
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +32M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (197-621, default 197):
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): <ENTER>
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)
Command (m for help): p
Disk /dev/sd?: 64 heads, 63 sectors, 621 cylinders
Units = cylinders of 4032 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sd?1 * 1 196 395104+ 83 Linux
/dev/sd?2 197 262 133056 82 Linux swap
/dev/sd?3 263 458 395136 83 Linux
Command (m for help): w
5.4) format the opt and data partitions, and prepare the swap partition:
# mke2fs -j -m 1 -L Optware /dev/sd?1
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=Optware
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
122112 inodes, 243964 blocks
12198 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
15264 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
# mke2fs -j -m 1 -L Shared /dev/sd?3
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=Shared
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
122112 inodes, 243964 blocks
12198 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
15264 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
# mkswap /dev/sd?2
5.5) Now your disk drive is partitioned and formatted for Linux.
================================================== ==========
II. CONNECTING THE DRIVE TO YOUR ROUTER
================================================== ==========
1. You should have the JFFS file system enabled on your router. On the DD-WRT web GUI screen, the Administration/Management tab contains this option in an area labeled JFFS2 Support. Enable both options and reboot your router. After it reboots, the first option (JFFS2) will remain enabled and the second option (Clean JFFS2) will be disabled.
2. On the DD-WRT web GUI screen, on the Services tab enable the options for:
Core USB support
USB 2.0 support
USB storage support
ext2/ext3 File System support
2.1 From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router.
3. After a minute, start a terminal session to your router.
4. Disconnect the disk from your computer and connect it to your router.
5. In the terminal session, use the command dmesg | more to insure your disk drive is recognized. Here's what it should look like:
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
hub.c: new USB device 00:03.1-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
hub.c: new USB device 00:03.1-1.3, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: WD Model: 1600BEV External Rev: 1.05
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
6. Change to the directory /dev/scsi/host0/bus0/target0/lun0 and list the files there. There should be one entry for the hard disk drive, and one for each of the three disk partitions.
# cd /dev/scsi/host0/bus0/target0/lun0
# ls -la
drwxr-xr-x 1 root root 0 Jan 1 00:00 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..
brw------- 1 root root 8, 0 Jan 1 00:00 disc
brw------- 1 root root 8, 1 Jan 1 00:00 part1
brw------- 1 root root 8, 2 Jan 1 00:00 part2
brw------- 1 root root 8, 2 Jan 1 00:00 part3
7. Change to the JFFS2 directory, and create directories for mounting the disk partition:
# cd /jffs
# mkdir mnt
# mkdir mnt/disk1
8. Test mount your new opt and data partitions. In the terminal window, issue these commands:
# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
# mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
9. On the DD-WRT web GUI screen, on the Administration/Commands tab, click the Edit button, then enter your disk mount commands:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
Click on Save Startup to store the commands. Your terminal session will be disconnected.
10. From the DD-WRT web GUI screen, on the Administration/Management tab, scroll to the bottom and click on Reboot Router.
11. After a minute, restart your terminal session and issue the mount command again. You should see both of your disk partitions mounted, even after the router has rebooted.
# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
================================================== ==========
III. INSTALLING OPTWARE ON YOUR DISK
================================================== ==========
After JFFS is enabled and disk partitions are mounting, you can download and install the Optware packages that provide more Linux functionality to the router. These will be installed onto the hard disk drive, not on the router itself. Remember the /opt directory on your router actually resides on the disk drive.
1. Use the command ipkg update to update your ipkg repositories:
# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
Packages 100% |**********************************************| 259 KB 00:00:00 ETA
Done.
Updated list of available packages in //jffs/usr/lib/ipkg/lists/optware
2. Now download the Optware installation script from the web to the /tmp directory:
# wget http://www.3iii.dk/linux/optware/optware-install-ddwrt.sh -O - | tr -d '\r' > /tmp/optware-install.sh
3. Execute the Optware installation script you just downloaded. It will take some time to download and configure everything, so verify it starts running, then take a break and come back in ten or fifteen minutes.
# sh /tmp/optware-install.sh
Checking system config ...
Using 192.168.1.1 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.30
Warning: local nameserver is different than gateway!
Check config or enter:
sed -i s/192.168.*/192.168.1.1/ /tmp/resolv.conf
to correct this.
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
uclibc-opt_0.9.28-12 100% |***********************************************| 832 KB 00:00:00 ETA
Updating /opt/etc/ld.so.cache
/opt/sbin/ldconfig: can't create /opt/etc/ld.so.cache~ (No such file or directory)
Installing package ipkg-opt_0.99.163-9_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org[140.211.166.82]:80
ipkg-opt_0.99.163-9_ 100% |***********************************************| 75896 00:00:00 ETA
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
Installing uclibc-opt (0.9.28-12) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
package uclibc-opt suggests installing ipkg-opt
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Successfully terminated.
Installing ipkg-opt (0.99.163-9) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
Configuring ipkg-opt
Successfully terminated.
4. Now install the busybox packages including links for busybox commands:
# /opt/bin/ipkg-opt install busybox-base
# /opt/bin/ipkg-opt install busybox
# /opt/bin/ipkg-opt install busybox-links
5. In your terminal session, update your default executable PATH to look for the new Optware software before the DD-WRT software:
# export PATH=/opt/bin:/opt/sbin:${PATH}
================================================== ==========
IV. ACTIVATING SWAP
================================================== ==========
0. Insure the swap partition is formatted correctly by using the Optware busybox mkswap command:
# /opt/bin/busybox mkswap /dev/scsi/host0/bus0/target0/lun0/part2
1. Test your swap partition by using the Optware busybox swapon command:
# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
2. Use the free command to verify your swap space is active:
# free
total used free shared buffers
Mem: 13048 12564 484 0 908
Swap: 72252 0 72252
Total: 85300 12564 72736
3. Using the DD-WRT web GUI screen, go to the Administration/Commands screen, and click 'Edit'. Add the busybox swapon command below everything else so swap will be enabled whenever the router reboots. Click on Save Startup to save your startup commands. Your terminal session will be disconnected.
/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router
5. After a minute, restart your terminal session, and use the free command again. This verifies your swap space is activated whenever the router reboots.
================================================== ==========
V. INSTALLING SAMBA
================================================== ==========
1. Using the terminal session, use the Optware ipkg-opt command to update your repository, remove any Samba packages installed with Optware, then download and install the Samba software:
# /opt/bin/ipkg-opt update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
# /opt/bin/ipkg-opt remove samba
# /opt/bin/ipkg-opt install samba2
2. Samba uses a default Linux user name of nobody but DD-WRT doesn't provide this user name by default. The workaround is to add this user to the DD-WRT user/password file every time the router reboots.
3. Using the DD-WRT web GUI screen, go to the Administration/Commands screen. Add the following command to the bottom of your startup commands:
echo "nobody:*:65534:65534:nobody:/var:/bin/false" >>/tmp/etc/passwd
4. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router'
5. After a minute, restart your terminal session, and check the user/password file to insure the nobody user has been added following a reboot:
# grep nobody /tmp/etc/passwd
nobody:*:65534:65534:nobody:/var:/bin/false
6. Create a shared data directory on your hard disk drive:
# cd /jffs/mnt/disk1
# mkdir share
# chmod 777 share
7. Edit the Samba configuration file to add this share at the bottom of the file:
# cd /opt/etc/samba
# cat >>smb.conf <<EOF
[disk1]
comment = DD-WRT shared disk
path = /jffs/mnt/disk1/share
public = yes
writable = yes
printable = no
create mask = 0666
EOF
8. Edit the Samba configuration file to:
8.1) change the default workgroup name. Yours should match whatever is on all your other computers.
8.2) Define the range of IP addresses allowed
8.3) Announce itself on your network
# vi smb.conf
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MyWorkgroupName
# server string is the equivalent of the NT Description field
server string = DD-WRT Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network.
hosts allow = 192.168.1. 127.
# Cause this host to announce itself to local subnets here
remote announce = 192.168.1.255
:wq
#
9. Test the Samba configuration by manually starting the two Samba daemons:
# /opt/sbin/nmbd -D
# /opt/sbin/smbd -D
10. From your computer, browse your network. Go to the address bar, enter two back-slashes followed by the IP address of your router and press ENTER. You should see your shared disk drive
\\192.168.1.1
11. If you can see the drive, create a test directory and a test file within that directory from your computer.
12. Using the DD-WRT web GUI screen, go to the Administration/Commands screen. Add the following command to the bottom of your startup commands:
/opt/etc/init.d/S80samba start
13. Using the DD-WRT web GUI screen, go to the Administration/Management tab, scroll to the bottom, and click on Reboot Router
14. After a minute, browse your network again to insure the drive is shared after the router reboots.
================================================== ==========
VI. ALL THE STARTUP COMMANDS
================================================== ==========
When you're finished, your router startup commands should look something like this:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
/opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
echo "nobody:*:65534:65534:nobody:/var:/bin/false" >>/tmp/etc/passwd
/opt/etc/init.d/S80samba start
Enjoy.... :woot2:
yazyazoo
11-09-2008, 09:47 PM
Vorlon,
I retried to start from scratch. I get to dmesg to check my partions on the Harddrive. I get this. What is wrong. I tried reflashing the router and reformatting the harddrive. For some reason it's remembering something from my old installation try.
root@DD-WRT:~# dmesg
CPU revision is: 00029029
Linux version 2.4.36 (bin@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #1807 Fri Sep 26 11:49:13 CEST 2008
Setting the PFC to its default value
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
CPU: BCM5354 rev 2 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
PCI: Setting latency timer of device 00:01.0 to 64
PCI: Setting latency timer of device 00:05.0 to 64
sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x400000 at 0x1c000000
bootloader size: 131072
Physically mapped flash: Filesystem type: squashfs, size=0x2089f5
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x003f0000 : "linux"
0x00101c00-0x00310000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x003f0000-0x00400000 : "nvram"
0x00310000-0x003f0000 : "ddwrt"
sflash not supported on this router
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
USB20H syn01 register : 0xfe00fe
USB20H syn03 register : 0x1
PCI: Setting latency timer of device 00:03.1 to 64
ehci_hcd 00:03.1: PCI device 14e4:471a
ehci_hcd 00:03.1: irq 6, pci mem b8003800
usb.c: new USB bus registered, assigned bus number 1
ehci_hcd 00:03.1: illegal capability!
ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
hub.c: new USB device 00:03.1-1, assigned address 2
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: WDC WD20 Model: 0EB-00CPF0 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 39102336 512-byte hdwr sectors (20020 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
device eth1 entered promiscuous mode
device vlan1 entered promiscuous mode
vlan1: Setting MAC address to 00 1e 8c ce fb 05.
vlan1: dev_set_promiscuity(master, 1)
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, -1)
device vlan1 left promiscuous mode
vlan1: dev_set_allmulti(master, -1)
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
root@DD-WRT:~# ls -la
drwx------ 1 root root 0 Jan 1 1970 .
drwxrwxrwx 1 root root 0 Jan 1 2000 ..
-rw-r--r-- 1 root root 61 Nov 10 05:47 .profile
drwx------ 1 root root 0 Jan 1 1970 .ssh
yazyazoo
11-09-2008, 10:18 PM
Vorlon,
I tried to do it again and just went ahead to try it. Everything seemed to work up to Activating Swap.
I get an error.
root@DD-WRT:/# export PATH=/opt/bin:/opt/sbin:${PATH}
root@DD-WRT:/# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
-sh: /opt/bin/busybox: not found
I looked at the busybox and there isn't even a swapon command in it. Did the busybox core install?
I'm doing this as we speak..diverting some steps..dzap-noob-proof method coming up..since I just stared at all of Volron's code and almost fainted....so far..my way is working :D
tonylu
11-09-2008, 10:38 PM
sigh..I still haven't figured out how to unbrick this..I installed dd-wrt many months ago but it got screwed up somewhere along the way..I remember I unbricked it more than once but I forgot the ip of it..damn..there has to be a way :scratch:
You can try this method: http://wl500g.info/showpost.php?p=10155&postcount=11
It worked great for my bricked wl-520GU, although the method is for wl500g. You need to download wl-520gu firmware from ASUS.
sh*t..so close...the share is there but Vista keeps asking me for a username and password..and I've tried everything..arghh..
woooott..haha..I had a feeling that would work..stupid mistake..I got it to work finally :whee:
God..I think this thing hates me..I can do everything but write to the damn thing..sigh..back to the drawing board..
tonylu
11-09-2008, 11:16 PM
There is another 3rd party firmware for this router and other ASUS routers, it's Oleg: http://oleg.wl500g.info/ It works great for printers and USB storage drives. Samba, FTP, NTFS and webcamera servers are preinstalled. WDS, client bridge also working.
VorlonFrog
11-10-2008, 05:13 AM
There is another 3rd party firmware for this router and other ASUS routers, it's Oleg: http://oleg.wl500g.info/ It works great for printers and USB storage drives. Samba, FTP, NTFS and webcamera servers are preinstalled. WDS, client bridge also working.
I'll agree with you, Oleg's software is widely-known and effective.:nod:
But why does your message contain a screenshot of the Asus GUI?
VorlonFrog
11-10-2008, 05:24 AM
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
hub.c: new USB device 00:03.1-1, assigned address 2
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: WDC WD20 Model: 0EB-00CPF0 Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 39102336 512-byte hdwr sectors (20020 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
root@DD-WRT:~# ls -la
drwx------ 1 root root 0 Jan 1 1970 .
drwxrwxrwx 1 root root 0 Jan 1 2000 ..
-rw-r--r-- 1 root root 61 Nov 10 05:47 .profile
drwx------ 1 root root 0 Jan 1 1970 .ssh
Your dmesg output looks good. :nod: It shows the USB 2.0 drivers loading, the USB storage drivers loading, and the hard disk drive is recognized with three partitions. I think you're having two other problems:
a) the /opt partition isn't mounted correctly - that's my mistake in the commands above
b) you're not running /opt/bin/busybox - you're running the DD-WRT version of busybox, which doesn't contain everything the Optware version does.
I'm going to correct the mount command above. It shouldn't include the '-o bind' syntax when mounting a disk partition. I only needed that for mine, where I don't have a separate partition for /opt.
Finally, it looks like dzap's preparing a smaller set of instructions based on my ridiculously long post last night.
Vorlon,
I tried to do it again and just went ahead to try it. Everything seemed to work up to Activating Swap.
I get an error.
root@DD-WRT:/# export PATH=/opt/bin:/opt/sbin:${PATH}
root@DD-WRT:/# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
-sh: /opt/bin/busybox: not found
I looked at the busybox and there isn't even a swapon command in it. Did the busybox core install?
Yup, I gave you a bad mount command for the /opt partition. Remove the '-o bind' from the command.
VorlonFrog
11-10-2008, 05:29 AM
I'm doing this as we speak..diverting some steps..dzap-noob-proof method coming up..since I just stared at all of Volron's code and almost fainted....so far..my way is working :D
dzap-noob-proof?
That's gotta be an improvement over my lengthy campaign speech above.:laugh1:
The reason I split it up into sections with several router reboots is so you could test and verify every step of the process. If you just try to slam everything in at once without testing, you'll never know if I made a mistake in the instructions (which I did - it's corrected now) or if you made a mistake entering the commands.
yazyazoo
11-10-2008, 08:00 AM
Vorlon,
I removed the mount -o bind from the commands section of the startup. I followed everything until testing the swapon partition. It seems to be never found. Here is what I have.
How do i install optware version of busybox rather than dd-wrt?
I get an error that /opt partition is not empty. Do i need to clean it and try to reinstall optware-install.sh? How do I clean that folder?
root@DD-WRT:~# sh /tmp/optware-install.sh
Checking system config ...
Using 151.164.184.78 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Warning: /opt partition not empty!
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
uclibc-opt_0.9.28-13 100% |*******************************| 832k 00:00:00 ETA
Updating /opt/etc/ld.so.cache
Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
ipkg-opt_0.99.163-10 100% |*******************************| 75810 --:--:-- ETA
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
Reinstalling uclibc-opt (0.9.28-13) on /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Successfully terminated.
Reinstalling ipkg-opt (0.99.163-10) on /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
conffile_has_been_modified: conffile /opt/etc/ipkg.conf has no md5sum
Configuring ipkg-opt
Successfully terminated.
root@DD-WRT:~# export PATH=/opt/bin:/opt/sbin:${PATH}
root@DD-WRT:~# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
-sh: /opt/bin/busybox: not found
root@DD-WRT:~#
VorlonFrog
11-10-2008, 08:15 AM
Vorlon,
I removed the mount -o from the commands section of the startup. I followed everything until testing the swapon partition. It seems to be never found. Here is what I have.
root@DD-WRT:~# sh /tmp/optware-install.sh
Checking system config ...
Using 151.164.184.78 as default gateway.
Using the following nameserver(s):
nameserver 192.168.1.1
Warning: /opt partition not empty!
Installing package uclibc-opt_0.9.28-13_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
uclibc-opt_0.9.28-13 100% |*******************************| 832k 00:00:00 ETA
Updating /opt/etc/ld.so.cache
Installing package ipkg-opt_0.99.163-10_mipsel.ipk ...
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
ipkg-opt_0.99.163-10 100% |*******************************| 75810 --:--:-- ETA
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
Reinstalling uclibc-opt (0.9.28-13) on /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
Configuring uclibc-opt
Updating /opt/etc/ld.so.cache
Successfully terminated.
Reinstalling ipkg-opt (0.99.163-10) on /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
conffile_has_been_modified: conffile /opt/etc/ipkg.conf has no md5sum
Configuring ipkg-opt
Successfully terminated.
root@DD-WRT:~# export PATH=/opt/bin:/opt/sbin:${PATH}
root@DD-WRT:~# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/part2
-sh: /opt/bin/busybox: not found
root@DD-WRT:~#
Please post the results of the following commands:
# mount
# cd /opt
# ls -la
It looks like your /opt partition isn't correctly being read from the disk drive, for some reason.
xjhuan
11-10-2008, 08:19 AM
There is another 3rd party firmware for this router and other ASUS routers, it's Oleg: http://oleg.wl500g.info/ It works great for printers and USB storage drives. Samba, FTP, NTFS and webcamera servers are preinstalled. WDS, client bridge also working.
How about instruction on "Client Bridge"? Thanks!
well might as well bump what I did since Volron is here since I don't know WTF I did wrong.I finally gave up around 10:30 last night. I finally got to seeing the damn share and being able to add files and seeing it on another network device on my network :whee:
..UNFORTUNATELY...it seems it wouldn't let me add more than 1mb to the folder..yes 1 MEGABYTE. I was only able to transfer one 426kb photo. So I went back and edit the startup script with the disk1 part..great, even worse now..it won't let me access it at all..sigh..I can get it back probably by just removing the crapola code and rebooting, but I'm just wondering WTF I can't access the rest of my drive..
any ideas Volron?
EDIT: annndd..you went offline.. :(
EDIT2: oh yes, I should probably note my partitions..I set 128MB as swap, 1gb for optware, and the rest as space for everything else..all under Ext3 format.
VorlonFrog
11-10-2008, 11:33 AM
well might as well bump what I did since Volron is here since I don't know WTF I did wrong.I finally gave up around 10:30 last night. I finally got to seeing the damn share and being able to add files and seeing it on another network device on my network :whee:
..UNFORTUNATELY...it seems it wouldn't let me add more than 1mb to the folder..yes 1 MEGABYTE. I was only able to transfer one 426kb photo. So I went back and edit the startup script with the disk1 part..great, even worse now..it won't let me access it at all..sigh..I can get it back probably by just removing the crapola code and rebooting, but I'm just wondering WTF I can't access the rest of my drive..
any ideas Volron?
EDIT: annndd..you went offline.. :(
EDIT2: oh yes, I should probably note my partitions..I set 128MB as swap, 1gb for optware, and the rest as space for everything else..all under Ext3 format.
Awwwww nutz.... :nono: :yuk: :crying2:
If all else is failing, change the echo command that adds the 'nobody' user. Change both numeric values from 65534 to zero. See if that fixes it.
Also, are you certain you set the protections on your 'share' directory to '777'?
Finally, it might be something in the Samba configuration file smb.conf .
yazyazoo
11-10-2008, 11:33 AM
Vorlon
drwxr-xr-x 11 root root 4096 Nov 10 15:56 .
drwxr-xr-x 16 root root 153 Sep 26 09:49 ..
drwxr-xr-x 2 root root 4096 Nov 10 15:56 bin
drwxr-xr-x 2 root root 4096 Nov 10 15:56 etc
drwxr-xr-x 2 root root 4096 Nov 10 06:36 include
drwxr-xr-x 3 root root 4096 Nov 10 15:56 lib
drwx------ 2 root root 16384 Nov 10 08:04 lost+found
drwxr-xr-x 2 root root 4096 Nov 10 15:56 sbin
drwxr-xr-x 8 root root 4096 Jun 1 23:36 share
drwxr-xr-x 3 root root 4096 Aug 28 11:22 usr
drwxr-xr-x 4 root root 4096 Nov 10 06:36 var
VorlonFrog
11-10-2008, 11:42 AM
drwxr-xr-x 11 root root 4096 Nov 10 15:56 .
drwxr-xr-x 16 root root 153 Sep 26 09:49 ..
drwxr-xr-x 2 root root 4096 Nov 10 15:56 bin
drwxr-xr-x 2 root root 4096 Nov 10 15:56 etc
drwxr-xr-x 2 root root 4096 Nov 10 06:36 include
drwxr-xr-x 3 root root 4096 Nov 10 15:56 lib
drwx------ 2 root root 16384 Nov 10 08:04 lost+found
drwxr-xr-x 2 root root 4096 Nov 10 15:56 sbin
drwxr-xr-x 8 root root 4096 Jun 1 23:36 share
drwxr-xr-x 3 root root 4096 Aug 28 11:22 usr
drwxr-xr-x 4 root root 4096 Nov 10 06:36 var
Okay, it appears your disk is mounted because if it was not, those directories wouldn't be there. (The default /opt directory is always empty in DD-WRT.) Try these commands and post the results here:
find /opt -name swapon -print
find /opt -name busybox -print
cd /opt/bin
ls -la
yazyazoo
11-10-2008, 12:06 PM
vorlon
i am doing this thru the cellphone so i might not get this all copied
oot@DD-WRT:/opt/bin# ls -la
drwxr-xr-x 2 root root 4096 Nov 10 15:56 .
drwxr-xr-x 11 root root 4096 Nov 10 15:56 ..
-rwxr-xr-x 1 root root 79904 Sep 9 18:12 curl
-rwxr-xr-x 1 root root 5811 Sep 9 18:12 curl-config
-rwxr-xr-x 1 root root 3852 Jun 1 23:36 ipkg
lrwxrwxrwx 1 root root 4 Nov 10 15:56 ipkg-opt -> ipkg
-rwxr-xr-x 1 root root 399712 Sep 27 20:44 openssl
-rwxr-xr-x 1 root root 587860 Sep 17 09:08 transmission-daemon
-rwxr-xr-x 1 root root 604916 Sep 17 09:08 transmission-remote
-rwxr-xr-x 1 root root 596676 Sep 17 09:08 transmissioncli
-rwxr-xr-x 1 root root 4248 Jun 1 23:36 update-alternatives
root@DD-WRT:/opt/bin#
vorlon
i am doing this thru the cellphone so i might not get this all copied
oot@DD-WRT:/opt/bin# ls -la
drwxr-xr-x 2 root root 4096 Nov 10 15:56 .
drwxr-xr-x 11 root root 4096 Nov 10 15:56 ..
-rwxr-xr-x 1 root root 79904 Sep 9 18:12 curl
-rwxr-xr-x 1 root root 5811 Sep 9 18:12 curl-config
-rwxr-xr-x 1 root root 3852 Jun 1 23:36 ipkg
lrwxrwxrwx 1 root root 4 Nov 10 15:56 ipkg-opt -> ipkg
-rwxr-xr-x 1 root root 399712 Sep 27 20:44 openssl
-rwxr-xr-x 1 root root 587860 Sep 17 09:08 transmission-daemon
-rwxr-xr-x 1 root root 604916 Sep 17 09:08 transmission-remote
-rwxr-xr-x 1 root root 596676 Sep 17 09:08 transmissioncli
-rwxr-xr-x 1 root root 4248 Jun 1 23:36 update-alternatives
root@DD-WRT:/opt/bin#
LOL that's hardcore!! programming your dd-wrt through terminal on your phone..damn!! :lmao: :lmao: :lmao:
Awwwww nutz.... :nono: :yuk: :crying2:
If all else is failing, change the echo command that adds the 'nobody' user. Change both numeric values from 65534 to zero. See if that fixes it.
Also, are you certain you set the protections on your 'share' directory to '777'?
Finally, it might be something in the Samba configuration file smb.conf .
okay this might be an EXTREMELY stupid question...but here..
# vi smb.conf
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MyWorkgroupName
# server string is the equivalent of the NT Description field
server string = DD-WRT Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network.
hosts allow = 192.168.1. 127.
# Cause this host to announce itself to local subnets here
remote announce = 192.168.1.255
:wq
#
..did you mean I have to change what is italicized? I assumed so, but it worked anyway, so wasn't sure..
kwadguy
11-10-2008, 12:22 PM
New deal, and new rebate on this router: $26 shipped after $20 rebate (if you already bought one the new rebate means you can get another):
http://forums.slickdeals.net/showthread.php?sduid=121828&t=1006361
okay..I think I just figured it out..for some reason..my disk1 is mounted as my JFFS2 storage. I tried dragging a 168kb file, and it said I needed an additional 73kb which in turn gives me 95kb of usable space..the amount usable on my JFFS2..crap..
okay I think I screwed up big time..here's some code for you to ponder.
root@DD-WRT:/jffs# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /mnt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
root@DD-WRT:/jffs# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/par
t2
-sh: /opt/bin/busybox: not found
root@DD-WRT:/jffs# /opt/bin/busybox swapon /dev/scsi/host0/bus0/target0/lun0/par
t2
-sh: /opt/bin/busybox: not found
root@DD-WRT:/jffs# free
total used free shared buffers
Mem: 13048 12384 664 0 1004
Swap: 0 0 0
Total: 13048 12384 664
seems my swap isn't there..damn..
VolronFrog..help!! :(
VorlonFrog
11-10-2008, 12:50 PM
LOL that's hardcore!! programming your dd-wrt through terminal on your phone..damn!! :lmao: :lmao: :lmao:
Yup, and earned yazyazoo some well-deserved rep points from me. :cool:
VorlonFrog
11-10-2008, 12:56 PM
okay I think I screwed up big time..here's some code for you to ponder.
root@DD-WRT:/jffs# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /mnt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
seems my swap isn't there..damn..
VorlonFog..help!! :(
It looks like you've mounted your swap partition (part2) as ext3 on /opt, even though you've also got your opt partition (part1) mounted there. That would certainly cause the problem you're seeing. And it seems you've got your shared partition (part3) mounted in two different locations, too. List your DD-WRT startup commands from the Administration/Commands GUI screen here....
VorlonFrog
11-10-2008, 12:59 PM
okay this might be an EXTREMELY stupid question...but here..
# vi smb.conf
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = MyWorkgroupName
# server string is the equivalent of the NT Description field
server string = DD-WRT Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network.
hosts allow = 192.168.1. 127.
# Cause this host to announce itself to local subnets here
remote announce = 192.168.1.255
:wq
#
..did you mean I have to change what is italicized? I assumed so, but it worked anyway, so wasn't sure..
If your workgroup name in the smb.conf file doesn't match what's on your computers, Windows will have a tough time negotiating login credentials, if it works at all.
virana76
11-10-2008, 04:53 PM
If your workgroup name in the smb.conf file doesn't match what's on your computers, Windows will have a tough time negotiating login credentials, if it works at all.
can i plug-in webcam and share it among computers. thinking of using it as a baby monitor!
VorlonFrog
11-10-2008, 06:15 PM
can i plug-in webcam and share it among computers. thinking of using it as a baby monitor!
You can't really share the camera, but there are Linux packages that allow it to take pictures and save them to the shared disk drive for others to view, or to be displayed on the web. Search Google for keywords 'camsrv pwc uvc' and you'll likely find examples.
Hrmmm... after looking around, it doesn't appear that a lot of the Debian or NSLU2 modules for USB cameras and video have been ported to DD-WRT. There's one older post on the DD-WRT forums by user Cascade, but it's also for a much older version of DD-WRT (2006, I believe.) There's other posts on the OpenWRT forum, but those require a lot more effort and don't work with DD-WRT. Maybe Oleg's firmware has something, I don't really know.
If you capture webcam photos and video on your computer, you can share that out via a webserver running behind the router. Any way you look at it, it will require a good bit of effort and trial-and-error.
yazyazoo
11-10-2008, 09:40 PM
Vorlon,
Here is my startup commands on my router.
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
mount /dev/scsi/host0/bus0/target0/lun0/part3 /jffs/mnt/disk1
Here is what is seen on mount
root@DD-WRT:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /jffs/mnt/disk1 type ext3 (rw)
Do you think that my Path is wrong?
export PATH=/opt/bin:/opt/sbin:${PATH}
I don't really define anything, am I supposed to change the word PATH to something else?
By the way thanks for the reps for the cellphone. I was at work and have no access to a computer. I was using logmein.com on my Treo 700wx. It's hard to copy and paste on that little screen!
screenname
11-10-2008, 09:48 PM
Will this router work with a USB hub so I can have a printer and a USB hard drive active at the same time?
yazyazoo
11-10-2008, 11:07 PM
screename,
That is how Vorlon is using this I think. Just gotta figure out how to add the HD. The printer is easy.
yazyazoo
11-11-2008, 06:08 AM
Vorlon,
If I was to restart everything from scratch such as the HD and the router How do I get rid of all the stuff that was installed. When I reformatted the HD it seems as if the router remembers my partitions and what was installed on the /opt folder.
VorlonFrog
11-11-2008, 07:54 AM
Vorlon,
If I was to restart everything from scratch such as the HD and the router How do I get rid of all the stuff that was installed. When I reformatted the HD it seems as if the router remembers my partitions and what was installed on the /opt folder.
The results of your mount command look good. The way you updated your PATH setting was correct,too. :) For some reason, it looks like all the Optware binaries and links didn't get fully installed into the /opt/bin directory. Re-partitioning the disk doesn't appear necessary because both partition 1 (/opt) and partition 3 (shared) are ext3 and mounted correctly. I'd guess you DID execute the mkswap /dev/sd?2 command when formatting your partitions? You'd have to scroll down on the example window to see it, since it's the last command line in that section. I updated all the examples last night, bolding the user inputs and adding some additional formatting for readability.
If I suggest only one thing to do, it might be to delete everything from the /opt directory and re-execute the Optware installation script. You might have to download it again, but that's a fairly quick process. To clear everything off /opt use these two commands:
# cd /opt
# rm -rf *
The second command is brutal :reaper: in deleting everything, so be certain you've successfully executed the first command. :nod:
VorlonFrog
11-11-2008, 07:56 AM
Will this router work with a USB hub so I can have a printer and a USB hard drive active at the same time?
Yes. No additional work is necessary for a USB hub.
That is how Vorlon is using this I think. Just gotta figure out how to add the HD. The printer is easy.
Yazyazoo is correct. I have a USB 2.0 hub connected to my router. The disk drive and printer are connected to the USB hub. :cool:
hillbru1
11-11-2008, 08:04 AM
Yes. No additional work is necessary for a USB hub.
Yazyazoo is correct. I have a USB 2.0 hub connected to my router. The disk drive and printer are connected to the USB hub. :cool:
Thanks for the info about my Easyshare 5500. When I plug my printer into the router, the printer is not showing up. Thank you for any help.
I haven't seen this posted, but to those of you that already has dd-wrt running. Can you login to telnet and run "nvram get wl0_corerev"? I need the number. It should be >5.
VorlonFrog
11-11-2008, 09:02 AM
Thanks for the info about my Easyshare 5500. When I plug my printer into the router, the printer is not showing up. Thank you for any help.
1. Be certain you've enabled the USB Printer support option on the DD-WRT GUI page 'Services'. If not, enable this option, apply the settings, and reboot the router.
2. Log into a terminal session and use the command lsmod | grep print to insure the printer module is loaded.
3. In the terminal session, use the command dmesg | more to review your router's system messages log. After the USB modules load, you should see something for the printer.
4. Do you know if the printer is USB 2.0, or only USB 1.1? If you haven't enabled the USB 1.1 options and the printer is USB 1.1, that might be the source of the issue.
5. Have you enabled JFFS and downloaded and configured the p910nd printer daemon?
The results of your mount command look good. The way you updated your PATH setting was correct,too. :) For some reason, it looks like all the Optware binaries and links didn't get fully installed into the /opt/bin directory. Re-partitioning the disk doesn't appear necessary because both partition 1 (/opt) and partition 3 (shared) are ext3 and mounted correctly. I'd guess you DID execute the mkswap /dev/sd?2 command when formatting your partitions? You'd have to scroll down on the example window to see it, since it's the last command line in that section. I updated all the examples last night, bolding the user inputs and adding some additional formatting for readability.
If I suggest only one thing to do, it might be to delete everything from the /opt directory and re-execute the Optware installation script. You might have to download it again, but that's a fairly quick process. To clear everything off /opt use these two commands:
# cd /opt
# rm -rf *
The second command is brutal :reaper: in deleting everything, so be certain you've successfully executed the first command. :nod:
okay so I should do the same since I screwed up mine too right? :D
VorlonFrog
11-11-2008, 01:11 PM
okay so I should do the same since I screwed up mine too right? :D
Actually, yours was a bit different. You've got your swap partition (part2) mounted as an ext3 filesystem as well as having two partitions both mounted at /opt. First, post your startup commands from the DD-WRT GUI Administration/Commands screen here. Then post the output of a mount command as well. Let's get your partition mounting and swapfile fixed first, then we'll see if your Optware needs to be refreshed or not. ;)
p.s.: You had me worried there - not responding for so long, I was afraid you might have given up after all this time :eek:
Actually, yours was a bit different. You've got your swap partition (part2) mounted as an ext3 filesystem as well as having two partitions both mounted at /opt. First, post your startup commands from the DD-WRT GUI Administration/Commands screen here. Then post the output of a mount command as well. Let's get your partition mounting and swapfile fixed first, then we'll see if your Optware needs to be refreshed or not. ;)
p.s.: You had me worried there - not responding for so long, I was afraid you might have given up after all this time :eek:
busy yesterday had guests over..needed to use laptop..router was hooked to cable modem in my room=rest of family no internet because main router has no internet connection...
..I might be able to continue it later as well..but I'll be honest...the only way I have access to the disk1 is with the "nobody" startup code..that's all I have in startup commands...entering the rest leads me nowhere pretty much, as I said last night=no access. I just plugged it back in real quick since I don't have too much time to mess with it right now..(probably after 3 I'll be able to again...)but here's what I got
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /mnt type ext3 (rw)
VorlonFrog
11-11-2008, 01:47 PM
I just plugged it back in real quick since I don't have too much time to mess with it right now..(probably after 3 I'll be able to again...)but here's what I got
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part2 on /opt type ext3 (rw)
/dev/scsi/host0/bus0/target0/lun0/part3 on /mnt type ext3 (rw)
Yup, see - your part2 swap partition is mounted on the /opt directory as an ext3 filesystem. That won't ever work. Try these commands later and then post the results back here:
# umount /dev/scsi/host0/bus0/target0/lun0/part2
# umount /dev/scsi/host0/bus0/target0/lun0/part3
# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
# mount
The first two commands un-mount part2 (swap) and part3 (shared). The third command mounts part1 (opt) to the /opt directory. The final command just shows the status of all mounted file systems.
After those commands, you should have part1 mounted on the /opt directory as an ext3 file system. Then you can execute the commands I posted for yazyazoo earlier to clear and re-load the Optware on the /opt partition. Only after you've got /opt setup, loaded, and mounting correctly after router reboots can you start working on using the swap partition and sharing partition 3 via samba.
Yup, see - your part2 swap partition is mounted on the /opt directory as an ext3 filesystem. That won't ever work. Try these commands later and then post the results back here:
# umount /dev/scsi/host0/bus0/target0/lun0/part2
# umount /dev/scsi/host0/bus0/target0/lun0/part3
# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
# mount
The first two commands un-mount part2 (swap) and part3 (shared). The third command mounts part1 (opt) to the /opt directory. The final command just shows the status of all mounted file systems.
After those commands, you should have part1 mounted on the /opt directory as an ext3 file system. Then you can execute the commands I posted for yazyazoo earlier to clear and re-load the Optware on the /opt partition. Only after you've got /opt setup, loaded, and mounting correctly after router reboots can you start working on using the swap partition and sharing partition 3 via samba.
okau..change of plans..just got a call that they won't make it back until later..so I have the next 3 hours to work on this..:woot:
Yup, see - your part2 swap partition is mounted on the /opt directory as an ext3 filesystem. That won't ever work. Try these commands later and then post the results back here:
# umount /dev/scsi/host0/bus0/target0/lun0/part2
# umount /dev/scsi/host0/bus0/target0/lun0/part3
# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
# mount
The first two commands un-mount part2 (swap) and part3 (shared). The third command mounts part1 (opt) to the /opt directory. The final command just shows the status of all mounted file systems.
After those commands, you should have part1 mounted on the /opt directory as an ext3 file system. Then you can execute the commands I posted for yazyazoo earlier to clear and re-load the Optware on the /opt partition. Only after you've got /opt setup, loaded, and mounting correctly after router reboots can you start working on using the swap partition and sharing partition 3 via samba.
okay maybe I should have mentioned this earlier..I just got this with that command..
root@DD-WRT:~# umount /dev/scsi/host0/bus0/target0/lun0/part2
umount: cannot umount /opt: Device or resource busy
..but when I was doing the whole busybox swap thing..I got the same error that it was "busy" what to do now :(
yazyazoo
11-11-2008, 02:07 PM
Vorlon, Heree is what i get.
root@DD-WRT:/opt# cd /opt
root@DD-WRT:/opt# rm -rf*
rm: illegal option -- *
BusyBox v1.11.1 (2008-09-26 11:47:28 CEST) multi-call binary
Usage: rm [OPTION]... FILE...
root@DD-WRT:/opt# rm -rf*
rm: illegal option -- *
BusyBox v1.11.1 (2008-09-26 11:47:28 CEST) multi-call binary
Usage: rm [OPTION]... FILE...
root@DD-WRT:/opt#
Vorlon, Also I did not format the partitions using your method. I used QTparted in Knoppix and used that utility. Do you think that is making the difference?