Author Topic: Hack my Linkstation  (Read 72185 times)

Re:Hack my Linkstation
Reply #90 on: July 19, 2010, 15:56:46 PM
Ive only got a 4mb connection, and mines fine...even with SSL.

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #91 on: July 19, 2010, 16:42:12 PM
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 :/

Re:Hack my Linkstation
Reply #92 on: July 19, 2010, 16:47:31 PM
Seems like Ive fixed my clock issue too.


Turn off NTP in the Gui.

Install ntpclient:
Code: [Select]

ipkg install ntpclient


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

Code: [Select]

#!/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:

Code: [Select]

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:

Code: [Select]

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


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


Hack my Linkstation
Reply #93 on: July 19, 2010, 16:48:28 PM
Quote from: Nimrod
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 :/


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.

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #94 on: July 19, 2010, 16:50:59 PM
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.

Re:Hack my Linkstation
Reply #95 on: July 19, 2010, 16:51:53 PM
Good job its a 12 month warranty :D

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #96 on: July 19, 2010, 17:49:14 PM
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.

Re:Hack my Linkstation
Reply #97 on: July 19, 2010, 17:52:16 PM
Yeah, factory refurb, 12 month warranty from Broadband Buyer

Hack my Linkstation
Reply #98 on: July 19, 2010, 19:11:25 PM
Quote from: Nimrod
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.


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.

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #99 on: July 19, 2010, 20:21:00 PM
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 :)

Re:Hack my Linkstation
Reply #100 on: July 19, 2010, 21:26:52 PM
Quote from: soopahfly
Seems like Ive fixed my clock issue too.


Turn off NTP in the Gui.

Install ntpclient:
Code: [Select]

ipkg install ntpclient


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

Code: [Select]

#!/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:

Code: [Select]

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:

Code: [Select]

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.

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #101 on: July 21, 2010, 16:37:17 PM
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

Re:Hack my Linkstation
Reply #102 on: July 21, 2010, 17:13:11 PM
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.

  • Offline Mardoni

  • Posts: 2,636
  • Global Moderator
  • Hero Member
  • On the Sofa, probably ;)
Hack my Linkstation
Reply #103 on: July 21, 2010, 17:37:45 PM
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 :)

Re:Hack my Linkstation
Reply #104 on: July 21, 2010, 18:14:46 PM
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.

0 Members and 7 Guests are viewing this topic.