Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

nslu2-linux · NSLU2-Linux (http://www.nslu2-linux.org)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 9476
  • Category: Hardware
  • Founded: Jul 31, 2004
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 19103 - 19132 of 25151   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#19103 From: "Mike \(mwester\)" <mwester@...>
Date: Mon Jun 25, 2007 5:53 am
Subject: Re: Ext3 external drive
mjwest61
Send Email Send Email
 
Marcel writes:
> On Sun, 2007-06-24 at 11:58 -0500, Mike (mwester) wrote:
>
> > - We lack the source, so we cannot "fix" the Linksys automounting code.
>
> First of all do we know which code is responsible?
> Just knowing the mechanism makes it a lot easier to fix.

Roughly, yes.  The main processes are the two USB_Detect processes.

>
> > We will need a daemon that polls for the results of a failed attempt by
the
> > Linksys code to automount a disk (in order to ensure that our code does
not
> > interfere with the Linksys mechanism, we need to run after Linksys has
done
> > its job, and rejected the partition/disk).  Tailing the dmesg output
> > periodically might be a way to get this info.
>
> This setup has a lot problems.
>  - There are lots of race conditions
>  - Checking the logfile is unreliable
>  - Doing extra polling is a waste of cpu

Agreed.  There will be pros and cons to any solution, given that the
*correct* solution (modifying the Linksys source) is not viable.

> We could do better if we can find a hook in the linksys code and replace
> that with our own code. Our own code would the call the linksys mount
> code and check the result. If that fails we try an ext2/3 mount.
>
> To do this we need to know the linksys mechanism.

It's all one monolithic program, as far as I was able to determine when I
looked at this stuff in detail (over a year ago, now -- my memory is a bit
fuzzy).  It calls out to mount/umount, and executes a couple of the startup
scripts if the mount was successful.  Beyond that, someone will have to do
the necessary detective work to reverse engineer it.  I think that truss
will run and might be helpful (I think I did that at one point, and
determined that the Linksys code is polling the presence of /proc/usb_hdd or
some such similar file).

There certainly are multiple ways to do this, it would be great if we
actually had enough information gathered and enough of this reverse
engineered to the point where we could choose the best approach out the
possible ones!

> --
> marceln


Mike (mwester)

#19104 From: "Robin Laurén" <llauren@...>
Date: Mon Jun 25, 2007 7:54 pm
Subject: Re: Messed-up mounts
thellauren
Send Email Send Email
 
Hello, Mike & all,

I've sat around and tried to make sense of it all.  I can accept the weird behaviour from the Linksys firmware, but is there anything i can do to have my Slug run with two disks again?

I'm not sure what to say about my original setup -- nothing particularly strange there.  One disk with the usual Unslung system and my home directory, another disk with public files.  I plugged the second disk behind a hub for possible future expansion.

Anyway, i'd need a little help to get my two disk Slug configuration back to life.  Is the only way to copy the contents of my second disk (on the DISK 1 usb port), erase it, and re-format it through the web interface?  Would it be enough to remove some files on the second disk to return my system to normality?

I apologize if these are obvious questions that have been answered until they bleed.  I did try to find something on the Wiki but couldn't.  If they're there, they refused to pop up to my search terms...
 
 ~rL



On 6/21/07, Mike (mwester) <mwester@...> wrote:

This is completely normal and expected behavior from the Linksys R63
firmware, and hence from Unslung 6.8. USB port 2 maps to /dev/sda, not to
/dev/sdb any more, and when you have two native devices, the one from USB
port 1 (/dev/sdb) "trumps" the conf partition (/dev/sdb2) --- the firmware
umount the original one from USB port 2, and mounts the conf partition from
the device in USB port 1 on BOTH mount points. This is documented in the
wiki as well, although unless you've seen this behavior, the description is
hard to understand and I fear that most people just skip on by, thinking
that it'll never apply to them.

To make matters worse, there is some evidence that suggests that when the
device is first placed into such a mode (two native devices appear), that it
copies the contents of one of the conf partitions to the other -- which can
result in things like passwd files being overwritten, etc.

I don't know how you had things originally, so I can't help you put it back
that way -- but I can confirm at least that the current behavior you are
observing is (as unbelievable as it seems) the way it was designed by
Linksys.

Mike (mwester)



----- Original Message -----
From: "Robin Laurén" <llauren@...>
To: <nslu2-linux@yahoogroups.com>
Sent: Wednesday, June 20, 2007 2:49 PM
Subject: [nslu2-linux] Messed-up mounts

> Folks,
>
> I have managed to mess up my mounts, and with that, i cannot boot up my
Slug
> the way it should. I'm running Unslung 6.8 with two disks, boot disk on
the
> Slug's DISK2 USB port, data disk behind a USB hub on DISK1.
>
> If my memory serves me, one thing one definitely shouldn't do is boot up
the
> Slug with the disks plugged in to the wrong ports. I suppose that's
what's
> happened. Except that .unslung exists *only* in /share/flash/data/.unslung
> (after booting with my system disk in port DISK2 -- read on). In any
case,
> i repent.
>
> Here's the situation:
> I am able to boot the Slug with no disks, enable telnet over the web
> interface and telnet into the slug. Nothing terribly interesting here.
>
> I am able to boot the Slug with my boot disk in USB2. Running `mount'
> yields the following output:
>
> /dev/sda1 on /initrd type jffs2 (rw)
> /dev/sda1 on / type ext3 (rw)
> /proc on /proc type proc (rw)
> usbdevfs on /proc/bus/usb type usbdevfs (rw)
> /dev/sda1 on /share/flash/data type ext3 (rw)
> /dev/sda2 on /share/flash/conf type ext3 (rw,sync)
>
> Wasn't the DISK2 disk supposed to be recognized as /dev/sdb? Or maybe
it's
> all like it should since there's only one external disk unit connected.
But
> fear not, because from here it gets worse.
>
> Hot-plugging my other disk into the DISK1 port (now without a HUB, just
for
> debugging -- didn't do much difference) produces the following mount
output:
>
> /dev/sda1 on /initrd type jffs2 (rw)
> /dev/sda1 on / type ext3 (rw)
> /proc on /proc type proc (rw)
> usbdevfs on /proc/bus/usb type usbdevfs (rw)
> /dev/sda1 on /share/flash/data type ext3 (rw)
> /dev/sdb1 on /share/hdd/data type ext3 (rw)
> /dev/sdb2 on /share/hdd/conf type ext3 (rw,sync)
> /dev/sdb2 on /share/flash/conf type ext3 (rw,sync)
>
> Pardon my Finnish, but WTF? /dev/sda2 is gone. /dev/sdb2 is there twice,
> the second one mounted to where /dev/sda2 should have. I am confused.
>
> For sanity check, i took a look at /etc/fstab which looks alright to me:
>
> #/dev/ram0 / ext2 defaults 1
1
> #none /proc proc defaults 0
0
> #none /dev/pts devpts gid=5,mode=620 0
0
> /dev/sdb1 /share/hdd/data ext3 defaults,usrquota 1 1
> /dev/sdb2 /share/hdd/conf ext3 defaults 1 1
> /dev/sdb3 swap swap defaults 0 0
> /dev/sda1 /share/flash/data ext3 defaults,usrquota
> 1 1
> /dev/sda2 /share/flash/conf ext3 defaults 1 1
> /dev/sda3 swap swap defaults 0 0
>
> ...but oddly enough, cat /etc/mtab gives the exact same output, in
> verbatim. Is this to be expected?
>
> Booting with both disks connected (hub or no hub) just produces an
unusable
> system. The paths are messed up so i can't run any unslung stuff.
>
>
> So good folks, any advice? Stay off the configs, maybe? ;)
>
> br,
> ~llauren
>




--
Roses, covering your face
And with my mind I'm calling out for you
But you cannot hear me (RPWL)

#19105 From: "bloedmann999" <Brian_Dorling@...>
Date: Tue Jun 26, 2007 7:18 am
Subject: Disabling IPv6 on DebianSlug
bloedmann999
Send Email Send Email
 
Hi,
just put Debian on my new 266 MHz slug, my second one, I already have
one with unslung V5.5. I guess the old one will get Debian on it soon
too, very nice, thanks to all the developers who made this possible.
Only glitches I had were that the first mirrors I tried did not have
the ARM versions, and the install went through without asking me to
specify a password for root, or create a normal user.

A couple of questions:

1. I tried disabling IPv6, the only way that worked was to blacklist
it. Can anyone explain what was causing it to be loaded?

I tried:
modprobe.conf
alias net-pf-10 off
alias ipv6 off

then update-modules

and
# /etc/modprobe.d/00local
   alias net-pf-10 off
   alias ipv6 off

also tried the same in # /etc/modprobe.d/local

2. The various device-mapper modules, are they only needed for LVM and
Raid on the slug? Can I also get rid of them?

Cheers Brian

#19106 From: Jeroen Massar <jeroen@...>
Date: Tue Jun 26, 2007 9:50 am
Subject: Re: Disabling IPv6 on DebianSlug
jeroen_unfix...
Send Email Send Email
 
bloedmann999 wrote:
> Hi,
> just put Debian on my new 266 MHz slug, my second one, I already have
> one with unslung V5.5. I guess the old one will get Debian on it soon
> too, very nice, thanks to all the developers who made this possible.
> Only glitches I had were that the first mirrors I tried did not have
> the ARM versions, and the install went through without asking me to
> specify a password for root, or create a normal user.
>
> A couple of questions:
>
> 1. I tried disabling IPv6, the only way that worked was to blacklist
> it. Can anyone explain what was causing it to be loaded?

The big question of course is WHY do you want to disable it?

Greets,
  Jeroen

#19107 From: "bloedmann999" <Brian_Dorling@...>
Date: Tue Jun 26, 2007 10:25 am
Subject: Re: Disabling IPv6 on DebianSlug
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, Jeroen Massar <jeroen@...> wrote:
>
> bloedmann999 wrote:
> > Hi,
> > just put Debian on my new 266 MHz slug, my second one, I already have
> > one with unslung V5.5. I guess the old one will get Debian on it soon
> > too, very nice, thanks to all the developers who made this possible.
> > Only glitches I had were that the first mirrors I tried did not have
> > the ARM versions, and the install went through without asking me to
> > specify a password for root, or create a normal user.
> >
> > A couple of questions:
> >
> > 1. I tried disabling IPv6, the only way that worked was to blacklist
> > it. Can anyone explain what was causing it to be loaded?
>
> The big question of course is WHY do you want to disable it?
>
> Greets,
>  Jeroen
>
Jeroen,
firstly to free up RAM, secondly apparently it can cause performance
degradation in some cases, and thirdly I have no need for it yet.

I have just started playing with Debian on the slug and am trying to
see what is running, what is really needed etc.

Cheers Brian

#19108 From: "tlhackque" <tlhackque@...>
Date: Tue Jun 26, 2007 10:41 am
Subject: 802.1q on Unslung?
tlhackque
Send Email Send Email
 
Rod gently pointed out that another unslung post of mine was on the
wrong list (I know better, but groups list got confused.)  So I'm
reposting this question here.  Sorry for the duplication.

HowTo/UseVLANsOnTheSlug indicates that vlan support has been ported to
OpenSlug. It would be useful on unslung. (In my case, to partition DHCP
servers.) Any reason that the packages can't be ported to unslung? Any
volunteers? (I still< don't have a kernel ... build environment - long,
sad story :-()

#19109 From: Jeroen Massar <jeroen@...>
Date: Tue Jun 26, 2007 10:43 am
Subject: Re: Re: Disabling IPv6 on DebianSlug
jeroen_unfix...
Send Email Send Email
 
bloedmann999 wrote:
> --- In nslu2-linux@yahoogroups.com, Jeroen Massar <jeroen@...> wrote:
>> bloedmann999 wrote:
[..]

>>> 1. I tried disabling IPv6, the only way that worked was to blacklist
>>> it. Can anyone explain what was causing it to be loaded?
>> The big question of course is WHY do you want to disable it?
>>
> firstly to free up RAM

It will save you a whooping 191488 bytes / 187Kb ;)

>, secondly apparently it can cause performance
> degradation in some cases,

The claim for 'performance degradation' comes from the fact that some
"NAT Boxes" (and some other) DNS server implementation are broken.
When a program asks for an AAAA record the DNS server simply doesn't
respond at all. The DNS client resolver then has to time out and can
then try again asking for an A. This is the perceived degradation that
some people (especially the ones who really don't know what they are
talking about) are claiming to see and they point at IPv6 as the
problem, while the problem is really the DNS server.

Actually, disabling IPv6 won't help there at all as programs still are
asking for AAAA records from other hosts. Mozilla will always ask for
AAAA's for instance and so will others.

The real solution, if you have that problem in the first place, is to
change the nameserver being used.

> and thirdly I have no need for it yet.

The not-yet part is important, as it is coming, sooner as some people
would like to think even.


If you want to really fine-tune all these things out of the system per
the kilobyte, then you should be using uclibc, not glibc. The former was
made for small systems, glibc is not.

Greets,
  Jeroen

PS:
jeroen@paradise:~$ uname -a
Linux paradise 2.6.12.2 #1 Tue Sep 27 20:21:18 CDT 2005 armv5teb GNU/Linux

jeroen@paradise:~$ traceroute6 unfix.org
traceroute to unfix.org (2001:828:102:9:0:1:6:80) from
2001:7b8:20d:0:20f:66ff:fe7f:3a69, 30 hops max, 16 byte packets
  1  purgatory.unfix.org (2001:7b8:20d:0:290:27ff:fe24:c19f)  0.508 ms
0.456 ms  0.456 ms
  2  2001:7b8:5:10:74::1 (2001:7b8:5:10:74::1)  10.369 ms  10.263 ms
9.934 ms
  3  i49.ge-0-1-0.jun1.kelvin.ipv6.network.bit.nl
(2001:7b8:3:31:290:6900:31c6:d81f)  64.029 ms  10.177 ms  10.724 ms
  4  jun1.telecity.ipv6.network.bit.nl (2001:7b8::290:6900:1c6:7c1f)
13.686 ms  12.062 ms  11.781 ms
  5  te-1-4.cr1.eun.amsix-tc2.proserve.nl (2001:7f8:1::a502:1155:2)
11.708 ms  12.114 ms  12.728 ms
  6  pc-2.cr2.eun.proserve.nl (2001:828:101:15::1)  12.681 ms  12.079 ms
  12.665 ms
  7  http.md6.ipv6.mediadesign.nl (2001:828:102:9:0:1:6:80)  11.684 ms
12.112 ms  11.73 ms

Works marvelously fine :)

#19110 From: "tlhackque" <tlhackque@...>
Date: Tue Jun 26, 2007 10:55 am
Subject: Wiki preview broken?
tlhackque
Send Email Send Email
 
I made some wiki edits a few minutes ago, and found that the PREVIEW
button produced a blank page.  Scrolling down through where the preview
usually is, the blank area didn't seem big enough to hold the resulting
page.

I took a chance and hit SAVE without preview, and the edits were made.

I also clicked edit, then preview on several existing pages with the
same result.

IE 7.  Also checked Firefox (2.0.0.4) with the same results.

It's unsettling to edit without preview.  Perhaps someone can
investigate.

#19111 From: "bloedmann999" <Brian_Dorling@...>
Date: Tue Jun 26, 2007 3:14 pm
Subject: Re: Disabling IPv6 on DebianSlug
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, Jeroen Massar <jeroen@...> wrote:
>
> bloedmann999 wrote:
> > --- In nslu2-linux@yahoogroups.com, Jeroen Massar <jeroen@> wrote:
> >> bloedmann999 wrote:
> [..]
>
> >>> 1. I tried disabling IPv6, the only way that worked was to blacklist
> >>> it. Can anyone explain what was causing it to be loaded?
> >> The big question of course is WHY do you want to disable it?
> >>
> > firstly to free up RAM
>
> It will save you a whooping 191488 bytes / 187Kb ;)
>
> >, secondly apparently it can cause performance
> > degradation in some cases,
>
> The claim for 'performance degradation' comes from the fact that some
> "NAT Boxes" (and some other) DNS server implementation are broken.
> When a program asks for an AAAA record the DNS server simply doesn't
> respond at all. The DNS client resolver then has to time out and can
> then try again asking for an A. This is the perceived degradation that
> some people (especially the ones who really don't know what they are
> talking about) are claiming to see and they point at IPv6 as the
> problem, while the problem is really the DNS server.
>
> Actually, disabling IPv6 won't help there at all as programs still are
> asking for AAAA records from other hosts. Mozilla will always ask for
> AAAA's for instance and so will others.
>
> The real solution, if you have that problem in the first place, is to
> change the nameserver being used.
>
> > and thirdly I have no need for it yet.
>
> The not-yet part is important, as it is coming, sooner as some people
> would like to think even.
>
>
> If you want to really fine-tune all these things out of the system per
> the kilobyte, then you should be using uclibc, not glibc. The former was
> made for small systems, glibc is not.
>
> Greets,
>  Jeroen
>
> PS:
> jeroen@paradise:~$ uname -a
> Linux paradise 2.6.12.2 #1 Tue Sep 27 20:21:18 CDT 2005 armv5teb
GNU/Linux
>
> jeroen@paradise:~$ traceroute6 unfix.org
> traceroute to unfix.org (2001:828:102:9:0:1:6:80) from
> 2001:7b8:20d:0:20f:66ff:fe7f:3a69, 30 hops max, 16 byte packets
>  1  purgatory.unfix.org (2001:7b8:20d:0:290:27ff:fe24:c19f)  0.508 ms
> 0.456 ms  0.456 ms
>  2  2001:7b8:5:10:74::1 (2001:7b8:5:10:74::1)  10.369 ms  10.263 ms
> 9.934 ms
>  3  i49.ge-0-1-0.jun1.kelvin.ipv6.network.bit.nl
> (2001:7b8:3:31:290:6900:31c6:d81f)  64.029 ms  10.177 ms  10.724 ms
>  4  jun1.telecity.ipv6.network.bit.nl (2001:7b8::290:6900:1c6:7c1f)
> 13.686 ms  12.062 ms  11.781 ms
>  5  te-1-4.cr1.eun.amsix-tc2.proserve.nl (2001:7f8:1::a502:1155:2)
> 11.708 ms  12.114 ms  12.728 ms
>  6  pc-2.cr2.eun.proserve.nl (2001:828:101:15::1)  12.681 ms  12.079 ms
>  12.665 ms
>  7  http.md6.ipv6.mediadesign.nl (2001:828:102:9:0:1:6:80)  11.684 ms
> 12.112 ms  11.73 ms
>
> Works marvelously fine :)
>
Jeroen,

hey 187KB is 187KB........, no that doesn't really make a difference.
But what does is the fact that I can't understand what is starting it
and why I cannot control it. So once I started looking at it, I was
pissed that I couldn't stop it.

You think there will soon be services that only will work for me if I
use ipv6? I understand the address space implications of it, but at
least don't yet see my provider requiring me to use it.

My slugs operate only (apart from apt) within my local network. My
router provides an OpenVPN server for me to access the network
remotely. I am not (yet) at the point where I need ipv6 in my network.

Cheers Brian

#19112 From: Robert Hammond <rob.hammond@...>
Date: Thu Jun 28, 2007 10:36 pm
Subject: Optware php-pear 5.2.3-1
quasi_quixotic
Send Email Send Email
 
Package pgp-pear version 5.2.3-1 seems to be broken during installation.

The installation text output is :-

Installing php-pear (5.2.3-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/unslung/cross/php-pear_5.2.3-1_armeb.ip
k
Configuring php-pear
Could not open input file: /tmp/pear/install-pear.php
Could not open input file: /tmp/pear/install-pear.php

The installation folder /opt/share/pear is not created or populated and
the /opt/bin scripts not created.



Until today I had a much earlier version installed,  the pear command
line script was working OK with the earlier version but the pecl script
seemed to be faulty in some way so I decided to re-install by using the
ipkg remove command followed by the ipkg install command.
--
Robert Hammond
PGP:0x154144DA

#19113 From: "key50001" <key50001@...>
Date: Fri Jun 29, 2007 1:01 am
Subject: Need help on Spin-Down the HD on NSLU2
key50001
Send Email Send Email
 
I'm new to NSLU2 and I just finish upgrade the firmware to UNLSUG.  All
I want for now is to Spin-down the hard drive when it not in use.  I
follow all the step from different method but still can not get it
spind down.  I always receive the error durring the Spin-down
configuration.

Could anyone please help me to set up and configure the NSLU2 with Spin
down option.

Please provide for me the step-by-step to config it because I'm so dump
with Unix.

Thanks in advance.
KEY

#19114 From: "juanmanuel1103" <juanmanuel1103@...>
Date: Thu Jun 28, 2007 6:15 pm
Subject: newbie: first unslung install (ready/status LED)
juanmanuel1103
Send Email Send Email
 
hello
im really new in unslung and i decided to try it =)
i read the steps and the documentation in http://www.nslu2-linux.org/ and
started to install
the unslung firmware.

i originally had the    V2.3R63 linksys firmware, and i upgraded from the web
UI, it worked ok
and put a message "installation complete, pres ok to reboot" and pressed the
button and the
NSLU2 reboot, i can enter the web UI now with the unslung logo and version, and
i can
enable/disable the telnet but the LED of ready/status is still blinking

according to the installation instructions i was supossed to shut the NSLU2 and
connect the
drives, but doesnt shut down using the button not the "shutdown"  option in the
web UI

my slug its  completely upgraded? i can unplug it from power?

thank you
JM

#19115 From: "lvm404" <lvm404@...>
Date: Wed Jun 27, 2007 1:54 pm
Subject: best torrent client for unslung?
lvm404
Send Email Send Email
 
One of the reasons I've bought the nslu2 was to run a torrent client.
There are four clients available in the stable feed - ctorrrent,
enhanced-ctorrent, rtorrent and py-torrent. My first choice was
rtorrent because ctorrent looks a bit too austere for my liking and I
suspected py-torrent to be a cpu hog. I've installed rtorrent 0.7.4
from the stable feed and immediately ran into problems. Setting
throttles (upload_rate/download_rate) to anything other than 0 causes
rtorrent ro terminate with 'illegal instruction' message. Ok, there
another way to do it - 'schedule=set_throttle,0,0,upload_rate=xxx' -
and it works. But as soon as throttles are set download rate drops
down to about 2KB/sec (yes, *two*) - event when only upload limit is
set and download rate is not limited at all (BTW I am so keen on
setting upload limit not because I am mean or something but because my
crappy ISP runs a really low contention ratio, so a sustained upload
at anything greater than half of the bandwidth I am supposed to get
causes a massive ATM congestion and everything crawls to a halt). I've
tried toying with throttle rates from the UI with asdzxc keys and it
is got even weirder - when throttle rates are being changed transfer
rates start to grow but as soon as I stop tapping the keys everything
slows down again. Here I ran out of tricks and decided to run rtorrent
with no throttles and restrict bandwidth at the router - fortunately I
can do it (WRT54GL with tomato firmware - great stuff). rtorrent
master UI screen is not firing on all cylinders either - file size,
uploaded and downloaded amounts in torrent information lines are
always zero even though it somehow manages to calculate a (I hope)
correct download percentage. Upload/download ratio  also is alway
zero, I wonder whether it will be able to stop torrents on ratio... On
the positive side it works and cpu and memory usages are quite low.

Is rtorrent really that buggy or someone just did a mighty careless
porting job? Googling convinced me of the latter - some of the
problems I mentioned above are discussed only in nslu2 forums - and
sadly no solutions provided. And by the way, rtorrent comes with a
startup/shutdown script which depends on dtach - but only root can use
dtach on unslung, all other users get init_pty error. Oh, there's
always screen.

So I am not happy with the rtorrent and looking for something else -
finally, the question: what torrent client is the best for unslung
6.8? I am looking for something with a reasonably friendly interface -
text or web - where I can see all the torrents and performance
indicators at a glance and maybe start/stop torrents and do some
ajustments and yet which will not overload the little slug (we are
talking about 2mbits and, say, 10-20 active torrents). Have anyone
tried BTG or btpd?

#19116 From: "David Ondzes" <dao@...>
Date: Fri Jun 29, 2007 2:00 am
Subject: DebianSlug question
dondzes
Send Email Send Email
 
Hello All. I installed my DebianSlug while behind a web proxy and now
I want to run it with a direct connection. What config file do I need
to change to remove the proxy info I entered during install.

Thanks
David

#19117 From: Rod Whitby <rod@...>
Date: Fri Jun 29, 2007 2:11 am
Subject: Re: DebianSlug question
rwhitby
Send Email Send Email
 
David Ondzes wrote:
> Hello All. I installed my DebianSlug while behind a web proxy and now
> I want to run it with a direct connection. What config file do I need
> to change to remove the proxy info I entered during install.

David,

This is a generic Debian question, not specific to the NSLU2.  You'll be
much more likely to get an answer on an Debian mailing list, or in the
Debian documentation.

Generic Debian questions are off-topic on the nslu2-linux list.
Debian/NSLU2 support should happen on the debian-arm mailing list.

-- Rod (no, I don't know the answer to this one, but a google search on
"debian web proxy settings" had some interesting links ...)

#19118 From: "Brian Zhou" <b88zhou@...>
Date: Fri Jun 29, 2007 4:08 am
Subject: Re: best torrent client for unslung?
brian_zhou
Send Email Send Email
 
FYI, rtorrent.ipk from optware/slugosbe feed works perfectly on
slugosbe. This is from the same rtorrent/libtorrent build recipe. The
problem is mainly from the particular glibc version used by Linksys.
Rtorrent also works very well on debian slug.

I can run dtach as normal user just fine on unslung (5.5). Can you try?
     http://www.nslu2-linux.org/wiki/DS101/MorePTYS


-Brian Zhou

--- In nslu2-linux@yahoogroups.com, "lvm404" <lvm404@...> wrote:
>
> One of the reasons I've bought the nslu2 was to run a torrent client.
> There are four clients available in the stable feed - ctorrrent,
> enhanced-ctorrent, rtorrent and py-torrent. My first choice was
> rtorrent because ctorrent looks a bit too austere for my liking and I
> suspected py-torrent to be a cpu hog. I've installed rtorrent 0.7.4
> from the stable feed and immediately ran into problems. Setting
> throttles (upload_rate/download_rate) to anything other than 0 causes
> rtorrent ro terminate with 'illegal instruction' message. Ok, there
> another way to do it - 'schedule=set_throttle,0,0,upload_rate=xxx' -
> and it works. But as soon as throttles are set download rate drops
> down to about 2KB/sec (yes, *two*) - event when only upload limit is
> set and download rate is not limited at all (BTW I am so keen on
> setting upload limit not because I am mean or something but because my
> crappy ISP runs a really low contention ratio, so a sustained upload
> at anything greater than half of the bandwidth I am supposed to get
> causes a massive ATM congestion and everything crawls to a halt). I've
> tried toying with throttle rates from the UI with asdzxc keys and it
> is got even weirder - when throttle rates are being changed transfer
> rates start to grow but as soon as I stop tapping the keys everything
> slows down again. Here I ran out of tricks and decided to run rtorrent
> with no throttles and restrict bandwidth at the router - fortunately I
> can do it (WRT54GL with tomato firmware - great stuff). rtorrent
> master UI screen is not firing on all cylinders either - file size,
> uploaded and downloaded amounts in torrent information lines are
> always zero even though it somehow manages to calculate a (I hope)
> correct download percentage. Upload/download ratio  also is alway
> zero, I wonder whether it will be able to stop torrents on ratio... On
> the positive side it works and cpu and memory usages are quite low.
>
> Is rtorrent really that buggy or someone just did a mighty careless
> porting job? Googling convinced me of the latter - some of the
> problems I mentioned above are discussed only in nslu2 forums - and
> sadly no solutions provided. And by the way, rtorrent comes with a
> startup/shutdown script which depends on dtach - but only root can use
> dtach on unslung, all other users get init_pty error. Oh, there's
> always screen.
>
> So I am not happy with the rtorrent and looking for something else -
> finally, the question: what torrent client is the best for unslung
> 6.8? I am looking for something with a reasonably friendly interface -
> text or web - where I can see all the torrents and performance
> indicators at a glance and maybe start/stop torrents and do some
> ajustments and yet which will not overload the little slug (we are
> talking about 2mbits and, say, 10-20 active torrents). Have anyone
> tried BTG or btpd?
>

#19119 From: "juanmanuel1103" <juanmanuel1103@...>
Date: Fri Jun 29, 2007 6:02 am
Subject: Re: newbie: first unslung install (ready/status LED)
juanmanuel1103
Send Email Send Email
 
well, i figured it out, i just unplug the power plug and continue the
installation steps without problems, thanks anyway ;P

--- In nslu2-linux@yahoogroups.com, "juanmanuel1103"
<juanmanuel1103@...> wrote:
>
> hello
> im really new in unslung and i decided to try it =)
> i read the steps and the documentation in
http://www.nslu2-linux.org/ and started to install
> the unslung firmware.
>
> i originally had the    V2.3R63 linksys firmware, and i upgraded
from the web UI, it worked ok
> and put a message "installation complete, pres ok to reboot" and
pressed the button and the
> NSLU2 reboot, i can enter the web UI now with the unslung logo and
version, and i can
> enable/disable the telnet but the LED of ready/status is still blinking
>
> according to the installation instructions i was supossed to shut
the NSLU2 and connect the
> drives, but doesnt shut down using the button not the "shutdown"
option in the web UI
>
> my slug its  completely upgraded? i can unplug it from power?
>
> thank you
> JM
>

#19120 From: Martin Michlmayr <tbm@...>
Date: Fri Jun 29, 2007 7:29 am
Subject: Re: DebianSlug question
mmic1979
Send Email Send Email
 
* Rod Whitby <rod@...> [2007-06-29 11:41]:
> This is a generic Debian question, not specific to the NSLU2.  You'll be
> much more likely to get an answer on an Debian mailing list, or in the
> Debian documentation.
>
> Generic Debian questions are off-topic on the nslu2-linux list.
> Debian/NSLU2 support should happen on the debian-arm mailing list.

Actually, only Debian/NSLU2 specific questions should be on
debian-arm.  General questions about Debian (as this one was) should
be on debian-users.
--
Martin Michlmayr
http://www.cyrius.com/

#19121 From: "Ruud Senden" <list@...>
Date: Fri Jun 29, 2007 12:44 pm
Subject: py-duplicity/python24 error related to time/float handling
rsenden
Send Email Send Email
 
Hello,

I'm trying to run duplicity from the py-duplicity package for creating
backups (currently only testing locally, but in the future I want to
store backups on a remote FTP server).

However when trying to run duplicity I almost immediately get a
ValueError when duplicity tries to call time.localtime(...), see below
for output and detailed cause. Has anybody been able to run duplicity
correctly on the NSLU2 (I'm running OpenSlug 3.10)? Is there anything
specific related to time and/or float handling in OpenSlug 3.10 or the
python24 package? Thanks in advance for your help.

Output and cause:

user@LKGD3A5FD:~# TMPDIR=/hdd/tmp /opt/bin/duplicity
/hdd/public/inputdir file:///hdd/backups/
Traceback (most recent call last):
   File "/opt/bin/duplicity", line 373, in ?
     if __name__ == "__main__": main()
   File "/opt/bin/duplicity", line 346, in main
     dup_time.setcurtime()
   File "/opt/lib/python2.4/site-packages/duplicity/dup_time.py", line
44, in setcurtime
     curtime, curtimestr = t, timetostring(t)
   File "/opt/lib/python2.4/site-packages/duplicity/dup_time.py", line
56, in timetostring
     time.localtime(timeinseconds)) + gettzd()
ValueError: timestamp out of range for platform time_t

I found out that this is happening because the timeinseconds is passed
as a long value, because of long(time.time()) in the setcurtime
method. When I remove the long() cast (and corresponding assert) this
part of the program works successfully. However other parts of
duplicity have the same problem.

With kind regards,
Ruud Senden.

#19122 From: "key50001" <key50001@...>
Date: Fri Jun 29, 2007 3:24 pm
Subject: Need help on Spin-Down the HD on NSLU2
key50001
Send Email Send Email
 
I'm new to NSLU2 and I just finish upgrade the firmware to UNLSUG. All
I want for now is to Spin-down the hard drive when it not in use. I
follow all the step from different method but still can not get it
spind down. I always receive the error durring the Spin-down
configuration.

Could anyone please help me to set up and configure the NSLU2 with Spin
down option.

Please provide for me the step-by-step to config it because I'm so dump
with Unix.

Thanks in advance.
KEY

#19123 From: "bloedmann999" <Brian_Dorling@...>
Date: Fri Jun 29, 2007 5:15 pm
Subject: MC over Putty does not show correct line characters
bloedmann999
Send Email Send Email
 
Hi,
I needed to reinstall Debian on my test slug. Now, when I login over
Putty (set to UTF8) and start mc, the line characters in MC are all
shown as letters. Searching on this I see many cases where putty
itself was not set to UTF8. Mine is set, so I assume something is
different under the present debian install.
Here is the output of the locale command:

Slug2:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or
directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

Anything else where I need to check? Like I said, first attempt worked
perfectly, this one does not.

Cheers Brian

#19124 From: "bloedmann999" <Brian_Dorling@...>
Date: Fri Jun 29, 2007 5:23 pm
Subject: Re: MC over Putty does not show correct line characters
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, "bloedmann999" <Brian_Dorling@...>
wrote:
>
> Hi,
> I needed to reinstall Debian on my test slug. Now, when I login over
> Putty (set to UTF8) and start mc, the line characters in MC are all
> shown as letters. Searching on this I see many cases where putty
> itself was not set to UTF8. Mine is set, so I assume something is
> different under the present debian install.
> Here is the output of the locale command:
>
> Slug2:~# locale
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or
> directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> LANG=de_DE.UTF-8
> LC_CTYPE="de_DE.UTF-8"
> LC_NUMERIC="de_DE.UTF-8"
> LC_TIME="de_DE.UTF-8"
> LC_COLLATE="de_DE.UTF-8"
> LC_MONETARY="de_DE.UTF-8"
> LC_MESSAGES="de_DE.UTF-8"
> LC_PAPER="de_DE.UTF-8"
> LC_NAME="de_DE.UTF-8"
> LC_ADDRESS="de_DE.UTF-8"
> LC_TELEPHONE="de_DE.UTF-8"
> LC_MEASUREMENT="de_DE.UTF-8"
> LC_IDENTIFICATION="de_DE.UTF-8"
> LC_ALL=
>
> Anything else where I need to check? Like I said, first attempt worked
> perfectly, this one does not.
>
> Cheers Brian
>
I just tried setting "terminal type" to linux instead of xterm in
putty, that has now something a bit nearer, but still not the correct
characters.

Cheers Brian

#19125 From: "bloedmann999" <Brian_Dorling@...>
Date: Fri Jun 29, 2007 5:39 pm
Subject: Re: MC over Putty does not show correct line characters
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, "bloedmann999" <Brian_Dorling@...>
wrote:
>
> --- In nslu2-linux@yahoogroups.com, "bloedmann999" <Brian_Dorling@>
> wrote:
> >
> > Hi,
> > I needed to reinstall Debian on my test slug. Now, when I login over
> > Putty (set to UTF8) and start mc, the line characters in MC are all
> > shown as letters. Searching on this I see many cases where putty
> > itself was not set to UTF8. Mine is set, so I assume something is
> > different under the present debian install.
> > Here is the output of the locale command:
> >
> > Slug2:~# locale
> > locale: Cannot set LC_CTYPE to default locale: No such file or
directory
> > locale: Cannot set LC_MESSAGES to default locale: No such file or
> > directory
> > locale: Cannot set LC_ALL to default locale: No such file or directory
> > LANG=de_DE.UTF-8
> > LC_CTYPE="de_DE.UTF-8"
> > LC_NUMERIC="de_DE.UTF-8"
> > LC_TIME="de_DE.UTF-8"
> > LC_COLLATE="de_DE.UTF-8"
> > LC_MONETARY="de_DE.UTF-8"
> > LC_MESSAGES="de_DE.UTF-8"
> > LC_PAPER="de_DE.UTF-8"
> > LC_NAME="de_DE.UTF-8"
> > LC_ADDRESS="de_DE.UTF-8"
> > LC_TELEPHONE="de_DE.UTF-8"
> > LC_MEASUREMENT="de_DE.UTF-8"
> > LC_IDENTIFICATION="de_DE.UTF-8"
> > LC_ALL=
> >
> > Anything else where I need to check? Like I said, first attempt worked
> > perfectly, this one does not.
> >
> > Cheers Brian
> >
> I just tried setting "terminal type" to linux instead of xterm in
> putty, that has now something a bit nearer, but still not the correct
> characters.
>
> Cheers Brian
>
And trying an export LANG=C and then starting with "mc -a" gets me a
set of the simple line drawing characters. Putty can be set to either
  "use unicode" or "use font in both ANSI and OEM modes", I still get
the simple lines drawn.
At least now all columns line up correctly, in all other settings some
characters were unprintable and that meant that the columns did not
all line up.

I know this can be made to work, and I am sure it is a debian setting,
not putty that is incorrect. After the first install I just changed
putty to use UTF-8 and it all worked.

Cheers Brian

#19126 From: "bloedmann999" <Brian_Dorling@...>
Date: Fri Jun 29, 2007 5:55 pm
Subject: Re: Need help on Spin-Down the HD on NSLU2
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, "key50001" <key50001@...> wrote:
>
> I'm new to NSLU2 and I just finish upgrade the firmware to UNLSUG. All
> I want for now is to Spin-down the hard drive when it not in use. I
> follow all the step from different method but still can not get it
> spind down. I always receive the error durring the Spin-down
> configuration.
>
> Could anyone please help me to set up and configure the NSLU2 with Spin
> down option.
>
> Please provide for me the step-by-step to config it because I'm so dump
> with Unix.
>
> Thanks in advance.
> KEY
>
Well,

have you moved /dev and /var to ramfs?

Tried stopping all unneccessary processes. Dont have syslog-ng
running, dont have cron continually doing things.
Remounted your drives, ../conf and ../data, with noatime?

It worked for me, but I have a drive that spins itself down. That
means it does not need a command from linux to make it spin down.

Does your external drive have a spin-down feature? If so, test it
under windows to see if it really works. Do you need to take the IDE
drive out and install it in a PC to use ATA commands to set the drive
spin down? If so, will it keep those settings through a power off?
pretty easy to test that.

What error messages do you get? Before I had everything right I didn't
get any error messages, it just didn't spin down.

Cheers Brian

#19127 From: "Brandon" <bgotsch@...>
Date: Fri Jun 29, 2007 6:17 pm
Subject: Re: best torrent client for unslung?
bgotsch
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, "lvm404" <lvm404@...> wrote:
>
> One of the reasons I've bought the nslu2 was to run a torrent client.
> There are four clients available in the stable feed - ctorrrent,
> enhanced-ctorrent, rtorrent and py-torrent. My first choice was
> rtorrent because ctorrent looks a bit too austere for my liking and I
> suspected py-torrent to be a cpu hog. I've installed rtorrent 0.7.4
> from the stable feed and immediately ran into problems. Setting
> throttles (upload_rate/download_rate) to anything other than 0 causes
> rtorrent ro terminate with 'illegal instruction' message. Ok, there
> another way to do it - 'schedule=set_throttle,0,0,upload_rate=xxx' -
> and it works. But as soon as throttles are set download rate drops
> down to about 2KB/sec (yes, *two*) - event when only upload limit is
> set and download rate is not limited at all (BTW I am so keen on
> setting upload limit not because I am mean or something but because my
> crappy ISP runs a really low contention ratio, so a sustained upload
> at anything greater than half of the bandwidth I am supposed to get
> causes a massive ATM congestion and everything crawls to a halt). I've
> tried toying with throttle rates from the UI with asdzxc keys and it
> is got even weirder - when throttle rates are being changed transfer
> rates start to grow but as soon as I stop tapping the keys everything
> slows down again. Here I ran out of tricks and decided to run rtorrent
> with no throttles and restrict bandwidth at the router - fortunately I
> can do it (WRT54GL with tomato firmware - great stuff). rtorrent
> master UI screen is not firing on all cylinders either - file size,
> uploaded and downloaded amounts in torrent information lines are
> always zero even though it somehow manages to calculate a (I hope)
> correct download percentage. Upload/download ratio  also is alway
> zero, I wonder whether it will be able to stop torrents on ratio... On
> the positive side it works and cpu and memory usages are quite low.
>
> Is rtorrent really that buggy or someone just did a mighty careless
> porting job? Googling convinced me of the latter - some of the
> problems I mentioned above are discussed only in nslu2 forums - and
> sadly no solutions provided. And by the way, rtorrent comes with a
> startup/shutdown script which depends on dtach - but only root can use
> dtach on unslung, all other users get init_pty error. Oh, there's
> always screen.
>
> So I am not happy with the rtorrent and looking for something else -
> finally, the question: what torrent client is the best for unslung
> 6.8? I am looking for something with a reasonably friendly interface -
> text or web - where I can see all the torrents and performance
> indicators at a glance and maybe start/stop torrents and do some
> ajustments and yet which will not overload the little slug (we are
> talking about 2mbits and, say, 10-20 active torrents). Have anyone
> tried BTG or btpd?
>
I have been running the enhanced-cTorrent with CTCS for 2-3 months now
without a problem.  It works great with a script I found on this
group. I have the script set to run a cron job.  Search this group for
torrent script and you should be able to find it.

Brandon

#19128 From: Kevin Price <KevinP@...>
Date: Fri Jun 29, 2007 8:20 pm
Subject: Re: DebianSlug question
kevinp_01
Send Email Send Email
 
Hi!

Martin Michlmayr schrieb:
> Actually, only Debian/NSLU2 specific questions should be on
> debian-arm.

Then where would I post a debian/N2100 Question? ;-)

SCNR

Kevin

#19129 From: Martin Michlmayr <tbm@...>
Date: Fri Jun 29, 2007 9:56 pm
Subject: Re: DebianSlug question
mmic1979
Send Email Send Email
 
* Kevin Price <KevinP@...> [2007-06-29 22:20]:
> > Actually, only Debian/NSLU2 specific questions should be on
> > debian-arm.
> Then where would I post a debian/N2100 Question? ;-)

The same applies.  N2100/ARM specific stuff to debian-arm; general
questions about Debian to debian-user.
--
Martin Michlmayr
http://www.cyrius.com/

#19130 From: key vu <key50001@...>
Date: Fri Jun 29, 2007 10:40 pm
Subject: Re: Re: Need help on Spin-Down the HD on NSLU2
key50001
Send Email Send Email
 
Hello Brian,
 
Thanks for your answer.
 
I'm using NetDisk enclosure from http://www.ximeta.com/products/ndenclosure1_en.php with 40GB Seagate HD (for now). 
 
In the Spin-Down instruction from Nslu2-linux website, it does not ask to move the file or folder at all.  After spend more than a week to configure the spind down but I have no luck.
 
Brian, would you please post for me the detail step-by-step to configure the Spin-down option.
 
 
Best regard,
KEY
 
 


 
----- Original Message ----
From: bloedmann999 <Brian_Dorling@...>
To: nslu2-linux@yahoogroups.com
Sent: Friday, June 29, 2007 10:55:04 AM
Subject: [nslu2-linux] Re: Need help on Spin-Down the HD on NSLU2

--- In nslu2-linux@ yahoogroups. com, "key50001" <key50001@.. .> wrote:
>
> I'm new to NSLU2 and I just finish upgrade the firmware to UNLSUG. All
> I want for now is to Spin-down the hard drive when it not in use. I
> follow all the step from different method but still can not get it
> spind down. I always receive the error durring the Spin-down
> configuration.
>
> Could anyone please help me to set up and configure the NSLU2 with Spin
> down option.
>
> Please provide for me the step-by-step to config it because I'm so dump
> with Unix.
>
> Thanks in advance.
> KEY
>
Well,

have you moved /dev and /var to ramfs?

Tried stopping all unneccessary processes. Dont have syslog-ng
running, dont have cron continually doing things.
Remounted your drives, ../conf and ../data, with noatime?

It worked for me, but I have a drive that spins itself down. That
means it does not need a command from linux to make it spin down.

Does your external drive have a spin-down feature? If so, test it
under windows to see if it really works. Do you need to take the IDE
drive out and install it in a PC to use ATA commands to set the drive
spin down? If so, will it keep those settings through a power off?
pretty easy to test that.

What error messages do you get? Before I had everything right I didn't
get any error messages, it just didn't spin down.

Cheers Brian




Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.

#19131 From: "bloedmann999" <Brian_Dorling@...>
Date: Sat Jun 30, 2007 8:04 am
Subject: Re: Need help on Spin-Down the HD on NSLU2
bloedmann999
Send Email Send Email
 
--- In nslu2-linux@yahoogroups.com, key vu <key50001@...> wrote:
>
> Hello Brian,
>
> Thanks for your answer.
>
> I'm using NetDisk enclosure from
http://www.ximeta.com/products/ndenclosure1_en.php with 40GB Seagate
HD (for now).
>
> In the Spin-Down instruction from Nslu2-linux website, it does not
ask to move the file or folder at all.  After spend more than a week
to configure the spind down but I have no luck.
>
> Brian, would you please post for me the detail step-by-step to
configure the Spin-down option.
>
>
> Best regard,
> KEY
>
>
>
>
>
> ----- Original Message ----
> From: bloedmann999 <Brian_Dorling@...>
> To: nslu2-linux@yahoogroups.com
> Sent: Friday, June 29, 2007 10:55:04 AM
> Subject: [nslu2-linux] Re: Need help on Spin-Down the HD on NSLU2
>
> --- In nslu2-linux@ yahoogroups. com, "key50001" <key50001@ .> wrote:
> >
> > I'm new to NSLU2 and I just finish upgrade the firmware to UNLSUG.
All
> > I want for now is to Spin-down the hard drive when it not in use. I
> > follow all the step from different method but still can not get it
> > spind down. I always receive the error durring the Spin-down
> > configuration.
> >
> > Could anyone please help me to set up and configure the NSLU2 with
Spin
> > down option.
> >
> > Please provide for me the step-by-step to config it because I'm so
dump
> > with Unix.
> >
> > Thanks in advance.
> > KEY
> >
> Well,
>
> have you moved /dev and /var to ramfs?
>
> Tried stopping all unneccessary processes. Dont have syslog-ng
> running, dont have cron continually doing things.
> Remounted your drives, ../conf and ../data, with noatime?
>
> It worked for me, but I have a drive that spins itself down. That
> means it does not need a command from linux to make it spin down.
>
> Does your external drive have a spin-down feature? If so, test it
> under windows to see if it really works. Do you need to take the IDE
> drive out and install it in a PC to use ATA commands to set the drive
> spin down? If so, will it keep those settings through a power off?
> pretty easy to test that.
>
> What error messages do you get? Before I had everything right I didn't
> get any error messages, it just didn't spin down.
>
> Cheers Brian
>
>
>
>
>
>
>
________________________________________________________________________________\
____
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's
updated for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
>
Hey,

here's how I did it:

key vu wrote:
> Hello Brian,
>
> Thanks for your answer.
>
> I'm using NetDisk enclosure
> from http://www.ximeta.com/products/ndenclosure1_en.php with 40GB
> Seagate HD (for now).
>
> In the Spin-Down instruction from Nslu2-linux website, it does not ask
> to move the file or folder at all.  After spend more than a week to
> configure the spind down but I have no luck.
>
> Brian, would you please post for me the detail step-by-step to
configure
> the Spin-down option.
>
>
> Best regard,
> KEY
>
>
> ----- Original Message ----
> From: bloedmann999 <Brian_Dorling@...>
> To: nslu2-linux@yahoogroups.com
> Sent: Friday, June 29, 2007 10:55:04 AM
> Subject: [nslu2-linux] Re: Need help on Spin-Down the HD on NSLU2
>
> --- In nslu2-linux@ yahoogroups. com
> <mailto:nslu2-linux%40yahoogroups.com>, "key50001" <key50001@.. .>
wrote:
>  >
>  > I'm new to NSLU2 and I just finish upgrade the firmware to
UNLSUG. All
>  > I want for now is to Spin-down the hard drive when it not in use. I
>  > follow all the step from different method but still can not get it
>  > spind down. I always receive the error durring the Spin-down
>  > configuration.
>  >
>  > Could anyone please help me to set up and configure the NSLU2
with Spin
>  > down option.
>  >
>  > Please provide for me the step-by-step to config it because I'm
so dump
>  > with Unix.
>  >
>  > Thanks in advance.
>  > KEY
>  >
> Well,
>
> have you moved /dev and /var to ramfs?
>
> Tried stopping all unneccessary processes. Dont have syslog-ng
> running, dont have cron continually doing things.
> Remounted your drives, ../conf and ../data, with noatime?
>
> It worked for me, but I have a drive that spins itself down. That
> means it does not need a command from linux to make it spin down.
>
> Does your external drive have a spin-down feature? If so, test it
> under windows to see if it really works. Do you need to take the IDE
> drive out and install it in a PC to use ATA commands to set the drive
> spin down? If so, will it keep those settings through a power off?
> pretty easy to test that.
>
> What error messages do you get? Before I had everything right I didn't
> get any error messages, it just didn't spin down.
>
> Cheers Brian
>
>
>
>
> ------------------------------------------------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now
>
<http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=m\
onopolyherenow>

> (it's updated for today's economy) at Yahoo! Games.
Key,

I'll try (you can find all the details on the NSLU site):

1. Can you get the disk to spin down under windows? Is there a utility
to set the spin-down time?

2. If not take the disk out of the enclosure, connect it directly to
one of your IDE channels and follow one of the many instructions for
setting spin-down via ATA commands. Set a very short interval, it
makes testing easier.
If you now can get it to spin down, then check that the spin down
settings are kept when the drive has been powered off completely.

If none of the above works then that decides what you do next:

If it doesn't work, then you will need to try sending spin-down
commands  from Unslung to the disk. That may or may not work depending
on your USB-IDE adapter in the USB enclosure.


If it does spin-down under linux, either via its own settings, or via
a command then do the following to stop it continually being spun-up
again:

1. in /unslung/rc.bootbin:

/sbin/logger "/unslung/rc.bootbin Creating ramfs for /dev:"
/bin/mount -t ramfs ramfs /mnt/tmpmnt -o maxsize=128

/sbin/logger "/unslung/rc.bootbin Copying /dev"
/bin/cp -rp /dev/* /mnt/tmpmnt/

/sbin/logger "/unslung/rc.bootbin Mkdir /dev.state"
/bin/mkdir -p /dev.state

/sbin/logger "/unslung/rc.bootbin Mount /dev.state"
/bin/mount -o bind /dev /dev.state

/sbin/logger "/unslung/rc.bootbin Mount /dev"
/bin/mount -o bind /mnt/tmpmnt /dev

/sbin/logger "/unslung/rc.bootbin Creating ramfs for /var:"
/bin/mount -t ramfs ramfs /mnt/tmpmnt -o maxsize=256

/sbin/logger "/unslung/rc.bootbin Copying /var"
/bin/cp -rp /var/* /mnt/tmpmnt/

/sbin/logger "/unslung/rc.bootbin Mkdir /var.state"
/bin/mkdir -p /var.state

/sbin/logger "/unslung/rc.bootbin Mount /var.state"
/bin/mount -o bind /var /var.state

/sbin/logger "/unslung/rc.bootbin Mount /var"
/bin/mount -o bind /mnt/tmpmnt /var

/sbin/logger "/unslung/rc.bootbin Cleanup /var.state/log/"
rm /var.state/log/*


/bin/killall -9 syslogd
/bin/killall -HUP syslog-ng
/bin/sleep 3


/bin/killall -HUP klogd
/bin/sleep 3


P.S. Ignore all the logger commands if you dont want syslog entries to
see what is going on. As the /var/log has moved, syslog or syslog-ng
and klogd need to be recycled to get them logging in the new
/var/log/messages location.

Now your syslog is on a ram disk and will be lost at reboot, therefore
part of my shutdown/reboot script copies them from there to disk
before shutting down.
Something like this:

/sbin/logger  "/unslung/rc.reboot saving logs then rebooting"

# Move logs sent from DD-WRT to syslog server from RAMFS to disk

cat /var/log/syslogs/DD-WRT/cron     >> /public/syslogs/DD-WRT/cron.log
cat /var/log/syslogs/DD-WRT/daemon   >> /public/syslogs/DD-WRT/daemon.log
cat /var/log/syslogs/DD-WRT/syslog   >> /public/syslogs/DD-WRT/syslog.log
cat /var/log/syslogs/DD-WRT/user     >> /public/syslogs/DD-WRT/user.log
cat /var/log/syslogs/DD-WRT/authpriv >>
/public/syslogs/DD-WRT/authpriv.log


# Move slug logs from RAMFS to disk

cat /var/log/samba/log.nmbd   >> /public/syslogs/slug1/samba/log.nmbd
cat /var/log/samba/log.smbd   >> /public/syslogs/slug1/samba/log.smbd

cat /var/log/auth.log    >> /public/syslogs/slug1/auth.log
cat /var/log/cron.log    >> /public/syslogs/slug1/cron.log
cat /var/log/daemon.log  >> /public/syslogs/slug1/daemon.log
cat /var/log/debug       >> /public/syslogs/slug1/debug
cat /var/log/kern.log    >> /public/syslogs/slug1/kern.log
cat /var/log/messages    >> /public/syslogs/slug1/messages
cat /var/log/server.log  >> /public/syslogs/slug1/server.log
cat /var/log/syslog      >> /public/syslogs/slug1/syslog
cat /var/log/user.log    >> /public/syslogs/slug1/user.log
cat /var/log/uucp.log    >> /public/syslogs/slug1/uucp.log


Now you need to remount the drives with noatime, the wiki explains why.
In /opt/etc/init.d:

#!/bin/sh
# /opt/etc/init.d/S00remount

#set -x

# A diversion script to remount the disks without access times being
recorded
/sbin/logger "/opt/etc/init.d/S00remount Starting"
/sbin/logger "/opt/etc/init.d/S00remount Remounting /dev/sda1 with
noatime:"
/bin/mount -o remount,rw,noatime /dev/sda1
/sbin/logger "/opt/etc/init.d/S00remount Remounting /dev/sda2 with
noatime:"
/bin/mount -o remount,rw,noatime /dev/sda2
/sbin/logger "/opt/etc/init.d/S00remount Done"

After a mount command you see this:

/dev/sda1 on /share/hdd/data type ext3 (rw,noatime)
/dev/sda2 on /share/hdd/conf type ext3 (rw,noatime)




WIth that done spin-down works for me,  and the drive stays down. You
need to do it on a minimal system though. And since I have installed
syslog-ng it does not spin-down anymore. I'm playing with a second
slug now to find out why, maybe the conf file of syslog-ng also needs
to go on the ramfs.
I also set my cron to do all clean ups etc once a day, to get the time
with NTP at the same time etc., so I had one spin up every 24 hours if
nothing else was in use.

#19132 From: "Al_ferdy" <al_ferdy@...>
Date: Sat Jun 30, 2007 2:42 pm
Subject: Add Printer function
Al_ferdy
Send Email Send Email
 
I've successfully swiryced to Unslung and I'm now attempting to set up
a printer server function for my HP deskjet 5150, which I thinks
should be OK.  However after using the IPPKG function and installing
cups and Cups.doc as described in the NSLU1-Linux "Addprinter" guide.

1. ipkg update
2. ipkg install cups
3. ipkg install cups-doc


  I'm stuck!
A). I cannot edit the  printers as described in the post installation
section
B). I cannot start cups
C). I cannot acces cups from my browser (NSLU2 Ip address:631)

It reports permission denied when i try anything and when I try to
copy the Cups start up file it say there is no such file.
Any suggestions??

Messages 19103 - 19132 of 25151   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help