NSLU2 Now More Useful 345
NSLUG writes "The WRT54G's not the only hackable kid on the block. Linksys has a new device out. The NSLU2 is a tiny network storage device running Linux and it's been hacked to add SSH, NFS, an iTunes server, etc. Tom's Hardware is running a series of articles on how to hack the NSLU2. The first article is here
and the second is here. Check out this page for details on getting into the box."
ah that wonderful kernel (Score:3, Insightful)
Re:ah that wonderful kernel (Score:4, Funny)
Anybody up to...?
I bet that would run a port of UZI though... (Score:2)
Re:ah that wonderful kernel (Score:2)
Re:ah that wonderful kernel (Score:2)
Re:ah that wonderful kernel (Score:4, Informative)
Windows NT scales neither up nor down as well as Linux does. It is really only suited to systems with between one and four processors, for example, and no current version of windows (including embedded versions, but besides WinCE which is a different operating system anyway) can handling running in less than about 32MB well. While you may end up with an older version of the linux kernel, you can still get older kernels with up to date security patches which will run on minuscule systems, say 4MB ram, no MMU, et cetera.
Windows can go many places, but not nearly as many as Linux.
Linux embedded integrators are lazy (Score:3, Insightful)
Linux is a great thing, on the desktop. But in embedded systems, the kernel is too tangled to successfully create a small distribution that is at the same time useful and feature-limited.
This is where operating systems designed from the ground up with modularity in mind fit the bill. QNX, iTron, and VxWorks all get around this hacking problem by not providing the tools for hackers to change the system.
Re:Linux embedded integrators are lazy (Score:5, Insightful)
Why would you want to prevent them? It drives sales of your products.
the kernel is too tangled to successfully create a small distribution that is at the same time useful and feature-limited.
I don't agree. It is perfectly possible to do this, and know several people who _have_ done it. The issue is, it isn't worth the effort. It would take several weeks of developer time to determine exactly what is needed and what isn't, whereas there's actually no problem with including unnecessary features. So that's what happens.
Don't get me wrong, I think QNX et al are very cool systems, and there are many situations where they are more applicable than Linux. But I don't see anything wrong with Linux here.
Re:Linux embedded integrators are lazy (Score:3, Insightful)
Re:Linux embedded integrators are lazy (Score:2)
Now, if they used a Linux BIOS, they'd be in better shape for that kind of security testing. I'm completely serious.
Re:Linux embedded integrators are lazy (Score:2)
Re:Linux embedded integrators are lazy (Score:5, Insightful)
If a hacker has physical access to your hard disk, you've got a lot more to worry about than this.
not in this particular situation... (Score:4, Informative)
all his copying, untarring, editing and modifying where made on the device network share-drive, him being short on space and all...
so you don't need to fiddle a lot with the box, except for plugging in usb, which any luser can do.(?)
he didn't even have to crack the password
"As expected, the passwd file showed the user accounts I had created with a
root:WeeOvKUvbQ6nI:0:0:root:/root:/bin/sh
bin:
lp:x:4:7:lp:/share/spool:
mail:x
ftp:x:14:50:FTP User:/:
nobody:x:99:99:Nobody:/:
ourtelnetrescu
guest:scEPG0VnVyqmE:501:501:::/dev/n
admin:sclzZZfodiRXY:502:501::/home/user/admin
test_user:scEPG0VnVyqmE:2000:501:::/dev/null
t
test3:sc5
But in order to use these accounts, I would need to have their passwords. I started down the path of cracking the passwords before I came out of my stupor and realized all I had to do was edit the passwd file and replace the encrypted password with a known encrypted password from one of my other accounts! I could also just add a valid shell to one of my accounts, but for starters, decided to just put a new password in for root and leave the rest of the accounts alone. "
See, just copying and pasting a configuration file...
even a luser ca do that (bis repetitam placient 8p )
Cheers
da5id
Re:not in this particular situation... (Score:2)
It's a mult-step process to enable telnet. [...]
First, mount a NSLU2 initialized hard drive on a box that understands ext2/3 format.
But, whichever of us is right, you still need physical access. Anyone untrusted should not have physical access to your central network storage.
No. (was: Re:Linux embedded integrators are lazy) (Score:4, Insightful)
You are totally missing the point. There is a difference in hacking and cracking.
The thing is highly likely be secure enough although it is modifiable (read: hackable). `Secure' doesn't have to mean `unhackable' you know.
Re:Linux embedded integrators are lazy (Score:5, Insightful)
Re:Linux embedded integrators are lazy (Score:2)
Not true at all. Check out uClibc [uclibc.org] and BusyBox [busybox.net]. In fact, I may get one of this NSLU2 boxes *just* to hack on it.
Re:Linux embedded integrators are lazy (Score:2)
Also, another flaw in your comment, the kernel is only "too tangled" if you compile...say, modules, and x86 support with x86 hardware and other features that dont exist on a simple little embedded board.
Avaks RoadRunner 64 (Score:5, Informative)
A-Link has released two new ADSL-modems RoadRunner 64 and RoadRunner 64AP. Both have many advanced features, but the one that cought my eye was that they are Linux based. I bought the RoadRunner64 (without WLAN) and I've gathered some data about it.
You can find out more about the product either by looking at the RR64 feature sheet [a-link.com] or by checking out the guides and firmware [a-link.com] page.
The platformBoth versions use LSI Logic's HomeBASE platform with the AR901 network processor. The only difference is that the AP version has a WLAN module manufactured by Zydas.
The platform consists of AR901 processor (ARM922), the AR8203 analog-to-digital adsl chip and the AR229 USB/Ethernet chip. Note that the value of these parts is a measly $21 while I paid 80 EUR for the complete modem ;-)
SpecsProcessor: ARM922 @ 200MHz integrated in the AR901 chip
One can simply ssh to the box. It has tftp support and you can mount nfs partitions, so setting it up to distribute kernels for a ltsp setup would be possible. Cool little gadget, I must say. Unfortunately the software isn't 100% yet, at least not the firmware I have (first release). I got the source by asking politely by e-mail, and after it suddenly borked on me, they changed it for a new one without any hassle.Flash: 4MB
RAM: 16MB SDRAM
Ports: 4 RJ45, 1 RJ11, 1 power
Other: Zydas 802.11b WLAN (In RR64AP only)
$80 street price (Score:4, Informative)
antivirus anyone? (Score:5, Interesting)
Re:antivirus anyone? (Score:2)
Re:antivirus anyone? (Score:2)
As neat as this is... (Score:3, Insightful)
Re:As neat as this is... (Score:2)
Given that there would be several variations of installed firmware, I think it would cut down on the number of worms that can hit all of them.
Even then, that is just a hypothetical exercise right now, I don't remember any big worms that targeted the Linux kernel, nor any proof-of-concept demonstrations.
And most of these hacked units woould be behind firewalls, I think you need some of them to be direct connected to the Internet t
Re:As neat as this is... (Score:3, Funny)
Shit, run!
Eh. (Score:3, Insightful)
Re:Eh. (Score:2)
Re:Eh. (Score:2)
My extra computers I could use instead are noisy as hell. This thing is probably dead silent. It'd be great for a server (mail/web etc.) that I could run 24/7 in my bedroom.
Re:Eh. (Score:2)
It also has a built-in backup client that can back up files from other shares on your network. I don't use this, but it's a nice feature.
Think about AC power (Score:5, Insightful)
I would think most people who are able to hack their NSLU2 are also the type that have an extra computer around that they would use instead.
Sure you could use an old PC for that job. But that PC has at least a 150W PSU, often 200W, 250W or more, and almost every PC has at least one noisy fan. My tests on my ex-router (really old Compaq 486 without harddisk) show that a PC needs at least 40W AC power when IDLE, and much more with newer CPUs. According to the Datasheet [linksys.com], the device is specified for 5VDC @ 2A. USB ports must be able to deliver 0.5A each, so the "real" machine needs nothing more than 5V @ 1A. This means you never put more than 10W into the device, with a low power USB storage device, 5W should be possible IMHO. With a common wallbrick PSU (50% heat, 50% output), this translates to 20W AC power under FULL LOAD. With a modern switching PSU (20% heat, 80% output), and a low power USB storage device, you need about 7W AC power. That's what a modern ATX PC draws in standby mode (so-called "off").
Did I mention that the NSLU2 has no moving parts?
Tux2000, not related to Linksys except that I own a hacked WRT54G.
STABILITY (Score:5, Interesting)
RAID? (Score:3, Insightful)
Re:RAID? (Score:2)
I suspect you would need to flash the firmware to achieve this. I'm not sure if any toolchains are available that would allow you to ensure you had a working kernel before you did this... i.e., you stand a high chance of writing off the device.
Re:RAID? (Score:2)
Re:RAID? (Score:2)
You may be right. I've never been entirely certain of which RAID level was which. I only ever use RAID 1.
If you're going to the trouble to enable software RAID, I'm sure you could enable it to mount more than 2 HD's (using a USB hub to provide the necessary ports).
That may be true. Another alternative that I just thought of is to set a cron job to do a regular backup of changed files to the second disk. That wouldn't require any kernel or core system updates, s
Re:RAID? (Score:2)
Re:RAID? (Score:2)
I'd think it'd be easier to hack it to do hourly rsyncs or snapshots between the two drives. For my applications, that'd be sufficient.
Re:RAID? (Score:2)
Re:RAID? (Score:3, Informative)
passwd files (Score:2, Funny)
Re:passwd files (Score:2, Funny)
Don't you ever let me see you type something like that again, you hear me?
Re:passwd files (Score:3, Insightful)
Err... to stop anyone on your network from connecting and wiping all your data / nicking your pr0n collection?
One thing I have just noticed...
admin:sclzZZfodiRXY:502:501::/home/user/admin:/de v
test_user:scEPG0VnVyqmE:2000:501:::/dev/nul l
test2:scEPG0VnVyqmE:2001:501:::/dev/null
test3
Its using the same salt for every password. This is horrendously insecure...
Re:passwd files (Score:2)
Re:passwd files (Score:2)
network attached accessories (Score:4, Interesting)
Re:network attached accessories (Score:2)
Re:network attached accessories (Score:2)
Speed Bottleneck (Score:2)
Sigh... If only they had included a 1Gbps port on this thing, I'd get somewhere near the speed I want. And yes, I do have a Gigabit network running at home, and only a few laptops aren't equipped with Gig cards. And yes, it does make a speed difference.
Re:Speed Bottleneck (Score:2)
Difference Between Bits and Bytes (with Chart) (Score:2)
This is just recollection from memory, so I might be wrong. Don't think so, though. See conversion chart here [unitconverterpro.com]
Re:Difference Between Bits and Bytes (with Chart) (Score:2)
Performance & # of USB ports (Score:3, Interesting)
Re:Performance & # of USB ports (Score:5, Informative)
Speed: The USB 2.0 Hi-Speed FAQ [usb.org] tells us that the maximum speed of USB 2.0 is 480 Mbit/s. The maximum speed of parallel ATA is 133 MByte/s = 1064 MBit/s, plus it does not have the "ATA over USB" protocol overhead. Serial ATA does 150 MByte/s = 1200 MBit/s, IIRC. The ethernet interface of the device supports 100 MBit/s. Modern harddisks can not deliver 133 MByte/s = 1064 MByte/s, but they become faster every day. Flash memory can be that fast, at least for reading.
Power: Each USB port must be able to deliver 5V @ 0.5A.
Now do the maths: You can see that already a single USB device can deliver more data than the ethernet port could transport. The CPU (according to http://www.batbox.org/nslu2-linux.html [batbox.org]) is an XScale CPU with 131.48 BogoMIPS, roughly comparable in Performance to a slow Pentium II. I'm sure it can't handle much more than 100 MBit/s Ethernet and two USB 2.0 ports.
Adding a second USB port is convenient to copy data directly between USB devices, e.g. for backup or upgrade purposes. But adding more USB ports costs 0.5A per port for the PSU, making it much more inefficient for each added port.
Tux2000
The whole idea is crazy (Score:5, Funny)
Re:The whole idea is crazy (Score:2)
Re:The whole idea is crazy (Score:3, Informative)
Re:The whole idea is crazy (Score:2)
I think that's ironic (Score:3, Interesting)
Re:The whole idea is crazy (Score:4, Interesting)
Ten Mil. Never thought I'd see the day.
Re:The whole idea is crazy (Score:4, Funny)
Re:The whole idea is crazy (Score:4, Funny)
Re:The whole idea is crazy (Score:2)
Re:The whole idea is crazy (Score:3, Funny)
This one is too short.
Did a big Flash "JACKPOT!!!" pop-up after hitting submit?
Re:The whole idea is crazy (Score:3, Funny)
Re:The whole idea is crazy (Score:5, Funny)
It's no use trying to hide your real intentions by posting at +5 interesting. That's the oldest trick in the book, it doesn't fool anybody.
You think you've gotten 10^7th post because of all that money invested in a highspeed connection and a 2 by 4 reload button. You just got lucky! In the end my skilzz will beat your daddies money.
See you at 2^24th post.
How long will it take (Score:3, Funny)
What a sad world we live in.
I got dibs!
Fast Times At /.? (Score:5, Funny)
THAT was the great and historic 10,000,000th post. Beautiful. I'm reminded of the "I don't know" written on the chalkboard in Fast Times At Ridgemont High.
Re:The whole idea is crazy (Score:2, Funny)
Re:The whole idea is crazy (Score:2)
Re:The whole idea is crazy (Score:5, Funny)
The shirts will be available in S, M, L, XL, XXL, and Admin.
Babylon 5 decals are optional.
Re:The whole idea is crazy (Score:3, Interesting)
Re:The whole idea is crazy (Score:2)
Re:The whole idea is crazy (Score:4, Insightful)
Re:The whole idea is crazy (Score:2, Funny)
Congratulations, ObviousGuy for your 10Mth post!!
CowboyNeal should honor him by including you in a poll!!
Best quote ever?
Re:The whole idea is crazy (Score:2)
MOD PARENT UP !!!!
Re:The whole idea is crazy (Score:5, Informative)
Take a look at his journal [slashdot.org].
Re:The whole idea is crazy (Score:2)
RM
Old entry (Score:2)
Re:Old entry (Score:2)
Re:The whole idea is crazy (Score:3, Funny)
And congratulations on a perfect 10 millionth post. Well done.
It will happen a lot sooner than that (Score:5, Interesting)
Post #1,000,000 on Jun 15, ???? http://slashdot.org/comments.pl?sid=6038&cid=1000
Post #2,000,000 on Mar 1, ???? http://slashdot.org/comments.pl?sid=16359&cid=200
Post #3,000,000 on Feb 13, ???? http://slashdot.org/comments.pl?sid=27908&cid=300
Post #4,000,000 on Aug 2, 2001 http://ask.slashdot.org/comments.pl?sid=37241&cid
Post #5,000,000 on Jan 2, 2002 http://slashdot.org/comments.pl?sid=49501&cid=500
Post #6,000,000 on May 20, 2003 http://slashdot.org/comments.pl?sid=64871&cid=600
Post #7,000,000 on Sep 18, 2003 http://slashdot.org/comments.pl?sid=79101&cid=700
Post #8,000,000 on Jan 16, 2004 http://developers.slashdot.org/comments.pl?sid=93
Post #9,000,000 on Apr 28, 2004 http://science.slashdot.org/comments.pl?sid=10569
Post #10,000,000 on Aug 18, 2004 http://developers.slashdot.org/comments.pl?sid=11
Unfortunately, I couldn't tell what year the first three were posted, but from 4 million to 10 million, you can see the number of days it takes to post 1,000,000 comments:
4 million to 5 million: 153 days
5 million to 6 million: 138 days
6 million to 7 million: 121 days
7 million to 8 million: 120 days
8 million to 9 million: 102 days
9 million to 10 million: 112 days
First observation: Comment posting is slowing down on Slashdot!!! Slashdot is dying!!! Netcraft confirms it!!! OMGWTFBBQ!!!
(end troll mode)
Second observation: At the current rate of posting, it will take us 3 years to post 10 million more comments, or about 27 years to get to 100 million. So you can reschedule the celebration from 2525 to 2031, if not sooner.
Re: It will happen a lot sooner than that (Score:3, Interesting)
Post #1,000,000 on June 15th, 2000 [slashdot.org]
Post #2,000,000 on Mar 1, March 1st, 1999 [slashdot.org]
Post #3,000,000 on February 13th, 2002 [slashdot.org]
Yeah. 2000, 1999, 2002. It's been noted elsewhere. [slashdot.org] Along with the others noted above, that's 2000, 1999, 2002, 2001, 2002...
I object (Score:2, Funny)
Cool (Score:2)
And shame on those who would poo-pah on others for having fun with cheap hardware. If you can't understand why this is fun, then don't do it.
Power consumption and price comparison (Score:5, Informative)
Based on UK prices turned up in 30 seconds by Google, so probably not the cheapest to be had, but never mind.
NSLU2: £60, 5V/2A power into device
Cheap USB hard disk box:£35, 50-80VA power into the PSU brick (based on the one on my desk). I'll use 70VA, to be on the safe side.
So, outfitting one of these for two hard disks would cost around £130. Assume a 60% efficiency plugpack for the NSLU2 (which seems conservative) and total power consumption would then be around 160VA.
In comparison, my server has an Athlon 900Mhz, a couple of fans, the same two hard disks, and a 300W PSU. Let's assume it's highly loaded and actually draws around 250VA; I'll ignore power correction factor for these calculations.
At 10p/kWh, the NSLU2 costs 39p per day to run, and the server 60p. If I upgraded to the NSLU2, it would take over 3 years to get a ROI from a purely financial point of view. Unless I've gotten something wrong, in which case I'm sure some clever slashdotter will correct me in a few seconds
So, on purely financial grounds, perhaps hard to justify. Still, it's nifty, it's a hell of a lot smaller than my existing server, and it would reduce the noise in this room nicely by eliminated a few fans too.
Update: hmmm, PC guide [pcguide.com] reckons it's more like 10W for a hard disk under use, suggesting the rather high sounding 50-80VA max draw are probably for 10,000rpm disks spinning up or something. Even assuming 15W to be on the safe side changes things around a lot; assume 75% efficient PSU plugpacks just to look on the bright side, and we get 20W per hard disk and 13W for the device = 13p per day. Break even is now about 9 months; not too shabby, given the other benefits.
Re:Power consumption and price comparison (Score:4, Informative)
Here in the northeast US, 10W of power draw costs $0.60/mo. Figure a 25W low-power CPU like a VIA C3, another 10W for the motherboard, plus 2x7.5W for a pair of 250GB 5400rpm drives in RAID1. That *should* clock in at around 50W on average, and maybe 40W if the disks spin down. The NSLU2 draws 10W (max) plus another 15W for the (2) USB hard drives for a total of 25W (being conservative). So the cost savings is around $1/mo.
Unit price for the NSLU2 is $80, plus another $50 for a pair of USB enclosures. Definitely cheaper then building a mini-ITX system (est $300-$400, not including drives).
All that being said, I prefer my toaster-sized mini-ITX linux server.
Re:AAAAAARGH!! (Score:2)
Re:AAAAAARGH!! (Score:2)
Re:AAAAAARGH!! (Score:3, Interesting)
Of course, no-one got fired for buying Cisco but I'm sure we will see a hell of a lot more of these sorta devices at remote sites and for 'glue'.
Re:AAAAAARGH!! (Score:2, Informative)
so you can have both the WRT54G and the NSLU2, unless you were looking for two items to hack.
Re:Why ? (Score:2)
The reason(s) I would prefer this over another linux box are that this is quieter (no fans/internal drives) and cooler. That's a big plus for me.
Re:Why ? (Score:2)
In fact I just started looking into a minipc just for this sort of thing. I couldn't build anything similar for less than $300.
Re:Why ? (Score:5, Insightful)
It is a real linux box. It was when it was packaged too.
The thing about this and WRT54G is that it can do things with more efficient hardware than setting up an inefficient ATX based system. These things consume watts, not hundreds of watts and are also fanless, lighter and more compact.
Re:Why ? (Score:2)
Re:Why ? Power! (Score:2)
Re:Why ? (Score:4, Interesting)
Your point is valid, but, this solution would be great for me.
Re:Why ? (Score:2)
Seriously, yeah people like my father would just want to plug it in and use the storage. Like in the article why wouldn't I want to use NFS if I could?
I wonder how much web traffic it could handle?
Re:So.... ssh, tftp, etc... ICQ? (Score:2)
Re:Yes, but does it run... (Score:2)