So I wanted to make a small how-to for linux noobies on updating some of the my-book software in order to stay with the newest
optware releases and close security holes that older software presents.
I'll be covering the bluering and whitelight in this guide as I have configured both. I have NOT tested nor world with dual disk versions but
assume there would be no conflicts but its at your own risk
I'd also like to take this time to say that I could never had made it this far without all the great
info across this site, if anything I am just taking info I've found and learned and posting it all in one place.
BLUERING: So our how to will cover installing SAMBA, SSH, ( and hopefully NTP (buffer overflow security hole in installed version),
and lightpd in the future.)
This guide assumes you have the following: SSH hack and Optware
So SSH is a great tool but running such an old version that comes on the mybook can be dangerous so let's
grab the newest copy.
ipkg update ipkg install openssh
now to make this work we need to make sure the old ssh doesnt start up anymore.
I used Martin Hinner's hack (found here: http://martin.hinner.info/mybook/sshaccess.php ) to get access the first time.
He liked starting ssh from inetd using its config found at: /etc/inetd.conf
Here is the entry he had us put in:
ssh stream tcp nowait root /usr/sbin/sshd sshd -i
So lets change it to our new ssh:
ssh stream tcp nowait root /opt/sbin/sshd sshd -i
Wow that was really easy huh? Reboot your mybook and when you ssh back in you'll be prompted that the
keys have changed this is normal and the new key should be accepted
Samba: Okay there is already a GREAT samba guide here : http://mybookworld.wikidot.com/samba-update
but it really only applys to the whitelight and I personally could never get samba to start as a daemon
on the blue ring so I just used inetd to handle it
ipkg update ipkg install samba
alright so as last time we're just gonna edit how samba starts up
In /etc/init.d/ in a script that starts samba /etc/init.d/samba.sh lets back this up
cp /etc/init.d/samba.sh /etc/init.d/backup-samba.sh
now we need to edit the script that actually called samba.sh to start which is /etc/init.d/network_servers.sh
find the entry
and comment it out
# $SCRIPTS_PATH/samba.sh start
Now lets make our new samba server start-up with our my-book. edit /etc/inetd.conf and change the line
netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd -s/var/oxsemi/smb.conf -l/var/log -d0
netbios-ssn stream tcp nowait root /opt/sbin/smbd smbd -s/opt/etc/samba/smb.conf -l/var/log -d0
and add the line
netbios-ns dgram udp wait root /opt/sbin/nmbd nmbd
Note: this will make samba start-up the first time its accessed not on startup so this causes a 2-3 second lag
when you first try to access the drive the first time after startup but your transfer speed should have
shot up. (my own experience was 3.5MB/s to mybook 4MB/s from mybook out of the box
to 5MB/s to mybook and 7MB/s from mybook with new server)
Now lets get the new server configured like the old one
cp /etc/smb.conf /opt/etc/samba/smb.conf
reboot and you should have your new samba server :D
WHITE LIGHT VERSION IN PROGRESS ETA :48 hours Will cover vsftp and ssh (maybe more to come?) I know its late I am being held by a band of pirates, will plot escape soon.
I eat syntax like you for breakfast on my way to fight real errors.
Have old computer junk from 1983-1993? I'll buy your out-dated Tech! PM with info and offer!