0

this might seem obvious or stupid to somebody, but I can't find anything that helps me yet, besides the fact that I'm not a Linux user.

I've got 2 NAS boxes (Iomega, now Lenovo) IX4-200D and PX6-300D. They're always on. I've also got a computer already set to start up with a magic packet (works as expected). My router doesn't allow me to send a packet from the internet to the home broadcast address or doesn't like to forward such packet anyways (even though I'm using a DHCP reservation). Since the NAS boxes are always on, I was thinking I could just cut the headaches and SSH onto one of them from the WAN and get the magic packet sent from it.

These are the two versions they're running on: Linux version 3.8.6 (gcc version 4.7.2 (crosstool-NG 1.18.0) ) Linux version 2.6.31.8 (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) )

I've only got SSH access to them. Is there a way to get a WOL client installed on either one of them?

I found a forum a few days ago where a guy had a similar request, it turns out he found a solution but never really gave an answer to his own problem.

Cheers

2
  • 1
    what is exactly your problem? try to check if wakeonlan or etherwake installed any of them.
    – risyasin
    Apr 26, 2015 at 22:15
  • That is my problem. I have no idea how. I tried to install the code with the piece of commands i found online and it just didn't work, always returned an error. I was thinking, is there a way to get these packages manually downloaded from the internet and then move them and install them on these actual boxes? Ta
    – Something
    Apr 27, 2015 at 6:41

1 Answer 1

2

I write this as an answer because of your comment. First, I don't have any of your NAS boxes, neither i had a chance to use them. but according to this document.

Your Iomega ix4-200D is using a package manager named ipkg.

Backup your /etc/ipkg.conf file. then delete everything in it. paste the lines below:

vi /etc/ipkg.conf

add these lines:

src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable
src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable
option verbosity 2
option verbose-wget

NAS as an embedded device has a read only file system. so we have to use ipkg-opt to get rid of this. run the commands below.

ipkg install ipkg-opt
PATH=/opt/bin:$PATH
vi /etc/ld.so.conf

then vi will open /etc/ld.so.conf file, Add the line below. save & exit

/opt/lib/

close your ssh client or disconnect. then reconnect. this way your last settings will be applied.

then update your ipkg repository:

ipkg update

(Note: If you see any wget error. just ignore it's probably caused by verbose output) then use this command to get a wakeonlan binary:

ipkg install perl-wakeonlan

if there is any problem during these command. comment here please. we can find a solution.

7
  • Hi, thanks a lot for coming back to me. This is what I'm getting when I run ipkg update: root@IX4-200D-CE1:/# ipkg update WARNING: Ignoring unknown configuration parameter: ss ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable Successfully terminated. This is what I get when I run ipkg perl-wakeonlan: root@IX4-200D-CE1:/# ipkg perl-wakeonlan WARNING: Ignoring unknown configuration parameter: ss ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable ipkg: unknown sub-command perl-wakeonlan ipkg version 0.99.163 usage: ipkg [options...] sub-command [arguments...]
    – Something
    Apr 27, 2015 at 10:05
  • seems like your config lines are missing some letters or ipkg can not read, the first 9 letters actually like "ss" instead of "src cross", i have updated my answer. please apply it again.
    – risyasin
    Apr 27, 2015 at 20:18
  • It did move a bit forward, I'm getting this now when I'm running ipkg update: ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp -P /tmp/ipkg-RhuVId /Packages' Before that I can see it resolving the hostname ipkg.nslu2-linux.org and I can see it downloading the package in a temp folder: Updated list of available packages in /opt/ipkg/lists/cross An error ocurred, return value: 1.
    – Something
    Apr 28, 2015 at 7:19
  • You are running ipkg update as root, right? you need to have a write access to /Packages. if bash prompt ends with an #, that means you are root. $ means ordinary user.
    – risyasin
    Apr 29, 2015 at 7:28
  • Yup, I am root (#). Don't get why it fails though.
    – Something
    Apr 29, 2015 at 7:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .