News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Hack my Linkstation

Started by soopahfly, March 11, 2010, 20:17:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

soopahfly

Ive only got a 4mb connection, and mines fine...even with SSL.

Mardoni

Next stupid question.
Do you have to use ACP Commander each and every time you want to telnet into the LS ?
I thought it was a do-once per flash job ? But I am having to do it every time :/

soopahfly

Seems like Ive fixed my clock issue too.


Turn off NTP in the Gui.

Install ntpclient:

ipkg install ntpclient


Create the file /opt/etc/init.d/S10ntpclient  containing the following:


#!/bin/sh    
if [ -n "`pidof ntpclient`" ]; then    
    /bin/killall ntpclient 2>/dev/null    
fi    
/opt/sbin/adjtimex -t 10000    
/opt/bin/ntpclient -s -h pool.ntp.org > /var/log/ntp.log
/usr/sbin/hwclock --systohc --utc


In /etc/crontab , delete the line containing hwclock and replace it with the following:


1 * * * * root /opt/bin/ntpclient -s -h pool.ntp.org > /var/log/ntp.log && /usr/sbin/hwclock --systohc --utc


Make /opt/etc/init.d/S10ntpclient script executable:


chmod +rx /opt/etc/init.d/S10ntpclient


Run the S10ntpclient script once by hand, and then it will run automatically every time you reboot.


soopahfly

Quote from: NimrodNext stupid question.
Do you have to use ACP Commander each and every time you want to telnet into the LS ?
I thought it was a do-once per flash job ? But I am having to do it every time :/

If youre running stevie, you shouldnt have to do it at all?

If youre running stock, follow this
http://forum.buffalo.nas-central.org/viewtopic.php?f=39&t=3601

Edit.

this bit in particular.
http://buffalo.nas-central.org/index.php/Open_Stock_Firmware#Adding_Telnet.2FSSHD_to_your_start_up_script_.28rcS.29.

Mardoni

Running stock 2.11 firmware w/ optware.

I think Ive got serious hardware problems on my LS. The fan is never spinning up (attached a 80mm 12v to test) and as a result the LS is over heating.
Arse.

soopahfly

Good job its a 12 month warranty :D

Mardoni

Is it ? I thought it was only 3 months ?!
Bugger, hope I can find the email !

edit:
Its just crashed again and this time after the reboot the bootstrap has disappeared.
I think Ive just lost interest again. Im going to put stock firmware on and see if its stable, if not then its going back or to the bin or something.

soopahfly

Yeah, factory refurb, 12 month warranty from Broadband Buyer

soopahfly

Quote from: NimrodIs it ? I thought it was only 3 months ?!
Bugger, hope I can find the email !

edit:
Its just crashed again and this time after the reboot the bootstrap has disappeared.
I think Ive just lost interest again. Im going to put stock firmware on and see if its stable, if not then its going back or to the bin or something.

Tbh, stop pissing about with the stock firmware.  Its much easier to put steviewonder on it.
Its already bootstrapped, and based on the more reliable Jap firmware.

Mardoni

Ok, been doing some digging around and I stumbled across this Yahoo group that seems to be where the builder of StevieWonder posts:

http://tech.groups.yahoo.com/group/LinkStation/message/23

There is a SHMod version 9 on there :)

soopahfly

Quote from: soopahflySeems like Ive fixed my clock issue too.


Turn off NTP in the Gui.

Install ntpclient:

ipkg install ntpclient


Create the file /opt/etc/init.d/S10ntpclient  containing the following:


#!/bin/sh    
if [ -n "`pidof ntpclient`" ]; then    
    /bin/killall ntpclient 2>/dev/null    
fi    
/opt/sbin/adjtimex -t 10000    
/opt/bin/ntpclient -s -h pool.ntp.org > /var/log/ntp.log
/usr/sbin/hwclock --systohc --utc


In /etc/crontab , delete the line containing hwclock and replace it with the following:


1 * * * * root /opt/bin/ntpclient -s -h pool.ntp.org > /var/log/ntp.log && /usr/sbin/hwclock --systohc --utc


Make /opt/etc/init.d/S10ntpclient script executable:


chmod +rx /opt/etc/init.d/S10ntpclient


Run the S10ntpclient script once by hand, and then it will run automatically every time you reboot.


Still manages to drift a couple of minutes between Cron jobs.

Mardoni

Gah had it all there except the auto loading of the SSH daemon. One slight mistype and now it wont boot again.

At least this time Ive been putting together my own guide on the steps Ive taken to a certain point, so I can hopefully get back to where I was pretty quickly.

Still annoying though but thats the cost of having to be a tweaker :D

soopahfly

Im enjoying it massively.

I dont bother with SSH, Telnet is enough for me and that works out the box with the SHMOD firmwares.

Since starting with this, my Linux knowledge has skyrocketed.

Mardoni

Oh I totally agree with the Linux knowledge increase thing. Im actually contemplating putting the x64 linux flavour of Boxee on my Revo once Ive got this Linkstation sitting pretty :)

I think the problem Im having is that I am trying to launch the SSH daemon when its already loaded. What I need to do is find the config thats being used and get it to allow me to connect !

Its quite nice now though, everytime I screw it up; I can recover in about 20mins thanks to my guide :)
It was really handy finding out that the /opt/ directory is a link to /mnt/disk1/.optware/ so all the configs are actually stored on the HDD :)

soopahfly

Ive got 3 of these things now.

Two are running SHMOD9,

1 : Mediacentre - Thats all it does.  Serve media to iTunes, Xbox, PS3 (Twonky)
2 : Docutorrent - Does all my downloading, and stores "My Documents", "Pictures" etc.
3 : Appstore - Stock firmware, just houses my commonly used installation media.

Im about to embark on a journey to get "ADRIVE" working on the Docutorrent, which should give me 50gb of online backup for free, and work from a headless linux box.
But Im a bit worried Im putting too much through one box.