Difference between revisions of "FreeLinkomatix"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
 
(Undo revision 30045 by Baracks (Talk))
 
(115 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Template:Articles|Projects|FreeLink|LS1|HG}}
+
{{Warning|Freelinkomatix is currently deprecated due to Debian moving to ETCH. You may be able to use this script by doing a Dist-upgrade first ([[w:Advanced_Packaging_Tool|apt-get dist-uprade]]) and then rebooting and running the script, however please use this information at your risk}}
{{Pronunciation}}
+
{{Brick|Use this scripting at your risk}}
[[Image:Linkstation-debdux.gif|right]]
+
  
=Huh? FreeLinkomatix=
+
{{Template:Articles|Projects|FreeLink|LS1|LS2|HG|Development}}
This project will be create a shell script like [[w:automatix|automatix]] that will use [[w:apt-get|apt-get]] to install the commonly needed applications in FreelinkThis will be similar to Andre's Web Installer (come to think of it we'll use that too!)
+
{|align=right cellspacing=0 cellpadding=0
 +
|-
 +
|[[Image:Linkstation-debdux.gif|120px]]
 +
|http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Francesco_Torniello_da_Novara_Letter_F_1517.png/107px-Francesco_Torniello_da_Novara_Letter_F_1517.png
 +
|http://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Francesco_Torniello_da_Novara_Letter_X_1517.png/120px-Francesco_Torniello_da_Novara_Letter_X_1517.png
 +
|}
 +
=FreeLinkomatix=
 +
'''FreeLinkomatix''' is a tool for the [[w:Debian|Debian]] version of [[w:Linux|Linux]] used on the [[w:Melco|Buffalo]] [[w:LinkStation|LinkStation]] called [[FreeLink]]. It is designed to automate the addition of applications, libraries, and the upgrade to a v2.6 kernel (PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]) which is not provided directly in the FreeLink distribution. A [[w:bash|bash]] shell script modeled after [[w:Automatix (tool)|Automatix]] will use [[w:apt-get|apt-get]] to install applications from the [[w:Advanced Packaging Tool|APT]] debian repositorySome software will come from http://downloads.nas-central.org, the remainder will be compiled from source. This supports both the [[w:PowerPC|PowerPC]] and [[w:MIPS architecture|MIPSel]] versions of FreeLink.
 +
This script is similar to [[Upgrade to the 2.6-kernel (ppc only)|Andre's Web Installer]]. The script also looks for the most recent version of itself.
 +
{{Warning| This is meant to be run on a '''FRESH''' [[FreeLink]] install. It's probably not a good idea to run it on an already heavily customized FreeLink box. Regardless it performs actions mostly through [[w:Advanced Packaging Tool|apt-get]] and should not cause irreversible damage.}}
  
 +
==Current actions of script==
 +
===Primary Script===
 +
# [[Convert your PPC LinkStation into a full-blown Debian system | Update apt-repositories....]] 
 +
# [http://www.howtoforge.com/dhcp_server_linux_debian_sarge Install DHCP-3 client if not present]                                             
 +
# [[Freeing up space on hda1 | Move /home /usr /var  from hda1 to hda3 and create symlinks]]               
 +
# [[Samba - a Windows-readable file share | Install Samba]]                                                   
 +
# [[Troubleshooting Windows shares (samba) | Troubleshooting Windows shares (samba) - guest access]]                     
 +
# [[Webmin to remotely administer your LinkStation|Install Webmin]] 1.3 and [http://www.stress-free.co.nz/webmin-theme  StressFree Solutions Tiger Webmin Theme]
 +
# [[Webmin to remotely administer your LinkStation | Allow all IPs for Webmin]]
 +
# [[Convert from telnet to SSH (both OpenSSH and Dropbear) | Install SSH SSHd and the associated Webmin module]]                         
 +
# [[ProFTPD - Customized FTP server instance | Install ProFTPd and Webmin module]]                                         
 +
# [[Correct the system time and setup Network Time Protocol (NTP) | Configure the time zone and use NTPdate]]                                     
 +
# [[Precompiled C development environment, running on the LS | Install the Precompiled C development environment]]                           
 +
# [[Upgrade to the 2.6-kernel (ppc only) | Upgrade to Kernel 2.6 using Andre's web installer (PowerPC only)]]
  
=Goals=
+
===Post Kernel 2.6 Script===
To come up with a script that will install the following on [[FreeLink]] for the [[:Category:LS1|LS1]] and [[:Category:HG|HG]]
+
'''''PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]'''''
#Install Samba
+
# [[Get the Network File System (NFS) running | Add Kernel Network File System (NFS) and the Webmin Exports module]]
#Install Webmin
+
# [[Rsync - synchronizes files and directories from one location to another | Install Rsync and download Webmin module rsyncmin]]  
##Upgrade Webmin
+
# [[USB devices including CUPS printing, scanners, and webcams | Add USB Automounting and CUPS Printer Support]]
##Install and use the [http://www.stress-free.co.nz/webmin-theme Webmin 'Tiger' theme]
+
# [[Macintosh related configuration, netatalk, mt-daapd | Macintosh Specific Netatalk and Howl Zeroconf DNS discovery service]]
#Free up space on hda1
+
# [[Macintosh related configuration, netatalk, mt-daapd | Add Firefly (mt-daapd) Media Server]]  
#Access unstable branch
+
# [[Ccxstream - Xbox Media Stream Protocol]]
#Fix Time (NTP)
+
# [[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP | KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]]
#Cups and USB mounting
+
# [[LAMP]] and [[Photo album using gallery | Gallery2 Photo gallery]]
#Upgrade to Kernel 2.6 using Andre's web installer
+
#Development tools
+
#Install ipkg
+
==[[Freelink - Convert the LinkStation into a Full-fledged Debian Linux Server]]==
+
Get Samba and webmin and update with apt-get
+
apt-get update
+
apt-get upgrade
+
apt-get install samba smbfs
+
apt-get install webmin webmin-core webmin-cpan webmin-inetd webmin-logrotate webmin-firewall
+
apt-get install webmin-samba
+
  
==[[Troubleshooting Windows shares (samba)]] - guest access ==
+
==Remaining Goals==
1. Pick a directory you wish to share ie: <tt>/mnt/share</tt> and change the access permissions to make it readable and writable to everybody.
+
# [[Jinzora - web based multimedia application]]
mkdir /mnt/share
+
# [[SlimServer server software that powers audio players from SlimDevices]]
chmod 777 /mnt/share
+
# [[GMediaServer - GNU UPnP media server (MIPSel)|GMediaServer - GNU UPnP media server]]
2. Add the <tt>[share]</tt> section to <tt>'''/etc/samba/smb.conf'''</tt>
+
# [[Wizd - A Media Server for Syabas based players]]
<pre>
+
# [[Ushare - UPnP Media Server for Linux ]]
[global]
+
# [[Virtual Private Networking - PPTP]]
security = share
+
workgroup = MSHOME
+
create mode = 777
+
directory mode = 777
+
  
[share]
+
==BASH Script Location==
comment = LinkStation Share
+
The in progress script is located in the talk/discussion page, anyone is free to change it:
path = /mnt/share
+
* <big>'''[[Talk:FreeLinkomatix | FreeLinkomatix - bash script]]'''</big>
read only = no
+
The '''''Downloadable for use version''''' is located at
public = yes
+
*<big>'''http://downloads.nas-central.org/Installers/Freelinkomatix/'''</big>
</pre>            
+
3. Restart Samba on the Linkstation with this command:
+
/etc/rc.d/init.d/smb restart
+
  
Install [[w:SSH|SSH]] and remove the [[w:telnetd|Telnet Daemon]] from startup
+
==Forum Discussion==
apt-get install ssh
+
Linkstation Community Forum / General Development /
chmod 0644 /etc/init.d/S05utelnetd
+
*<big>'''[http://forum.nas-central.org/index.php?action=vthread&forum=7&topic=1472 The  FreeLinkomatix - a system setup script for the Debian version of Linux]'''</big>
rm /etc/rc.d/rc2.d/S05utelnetd
+
  
==[[Freeing up space on hda1]]==
+
==Installation==
cp -Rdp /home /mnt
+
*'''<big>Install FreeLink First: Get the archive</big>'''
rm -R  /home
+
{|
ln -s /mnt/home /home
+
|-
cp -Rdp /usr /mnt
+
|rowspan=3|[[image:Linkstation-debdux.gif|70px]]
rm -/usr
+
|<big>'''LS1'''</big>
ln -s /mnt/usr /usr
+
|<big>'''[http://downloads.nas-central.org/LS1_PPC/Distributions/Freelink/freelink_powerpc-hdhlan-1.11.zip freelink_powerpc-hdhlan-1.11.zip]'''</big>
cp -Rdp /var /mnt
+
|-
rm -/var
+
|<big>'''LS2'''</big>
ln -s /mnt/var /var
+
|<big>'''[http://downloads.nas-central.org/LS2_MIPSel/Distributions/Freelink/freelink_mipsel-hdhlan-060810.zip freelink_mipsel-hdhlan-060810.zip]'''</big>
 +
|-
 +
|<big>'''HG'''</big>
 +
|<big>'''[http://downloads.nas-central.org/LSHG_PPC/Distributions/Freelink/freelink_powerpc-hdhglan-1.11.zip freelink_powerpc-hdhglan-1.11.zip]'''</big>
 +
|}
  
==[[Get access to packages from the Debian unstable branch]]==
 
1. Edit or create the file <tt>'''/etc/apt/apt.conf'''</tt> and add:
 
APT::Default-Release
 
"stable";
 
2. Edit <tt>'''/etc/apt/sources.list'''</tt> and add the following lines:
 
deb http://http.us.debian.org/debian unstable main contrib non-free
 
deb-src http://http.us.debian.org/debian unstable main contrib non-free
 
3. Then update:
 
apt-get update
 
  
==[[Correct the system time and setup Network Time Protocol (NTP)]]==
+
*'''<big>Flash The [[The LinkStation firmware flasher]]</big>'''
tzconfig
+
**Open the archive and carefully read the included <tt>README</tt> file for any specific instructions.
apt-get install ntp ntp-simple ntp-server ntpdate
+
**Disable any firewall(s), '''including any built-in Windows firewall'''
 +
**Make sure the LinkStation and your PC are on the same sub-network. This likely requires that you change the IP address (and probably the subnet-mask) of your PC and router to a different IP address (out of the box the LS should start out on 192.168.1.XXX but in [[EM Mode]] it will have a static IP address of 192.168.11.150)
 +
**Run the firmware updater executable <tt>HD-???LAN FWUpdate-english.exe</tt>
 +
:[[Image:GeneralFreeLink1.jpg|300px]]
 +
**After finding your LinkStation, press the "Renew Firmware" button, and wait. Have patience, and keep your calm. If you think the Firmware updater is acting strange, do not try to disconnect the LinkStation or abort the update in another way.
 +
**After flashing connect your LinkStation up to the network with subnet 192.168.1.XXX
 +
**Find your LinkStation on the network and [[w:Telnet|Telnet]] to it with [[w:PuTTY|PuTTYtel]] You will be at the root shell.
 +
{{Warning| '''The MIPSel version of FreeLink does not have telnet enabled as a default''' but rather [[w:SSH|SSH]]. Use [[w:PuTTY|PuTTY]] to open a SSH session to: <tt>192.168.11.150</tt> (it has a static IP).<br>login as: <tt>'''root'''</tt> ,  password: <tt>'''freelink'''</tt>}}
 +
:{| width=90% cellspacing="1" cellpadding="2" style="font-size:100%;background-color:#00F0F0; border-width: 1px; border-style: solid"
 +
|-
 +
|cellpadding="2" colspan="2" style="font-size:100%; background-color:#000000; border-width:1px ; border-style: solid" |<span style="font-size:100%; font-variant: monospace; color: white"><tt>Debian GNU/Linux 3.1 %h<br>
 +
root@LinkStation:/#</tt></span>
 +
|}
 +
**Change the root password
 +
passwd root
  
==[[USB devices including CUPS printing, scanners, and webcams]]==  
+
===Primary Script===
apt-get install hotplug usbview usbutils
+
On a newly FreeLinked Linkstation you can get and install FreeLinkomatix with the following:
 +
wget http://downloads.nas-central.org/Installers/Freelinkomatix/freelinkomatix.sh
 +
chmod a+x freelinkomatix.sh
 +
./freelinkomatix.sh
  
==[[Upgrade to the 2.6-kernel (ppc only)]]==
+
===Post Kernel 2.6 Script===
wget http://hvkls.dyndns.org/downloads/latest-webinstaller.tar.gz
+
{{Warning| The Post Kernel 2.6 Script is for PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]}}
tar -C / -xvzf latest-webinstaller.tar.gz
+
After Kernel 2.6 is done installing and the system reboots, Find your LinkStation on the network and open an [[w:SSH|SSH]] session to it with [[w:PuTTY|PuTTYtel]], at this point you should be able to run the secondary script:
/usr/local/sbin/webinstaller-kernelinst.sh
+
  wget http://downloads.nas-central.org/Installers/Freelinkomatix/postinstall.sh
*'''''<font color=red>REBOOT</font>'''''
+
  chmod a+x postinstall.sh
 
+
  ./postinstall.sh
==[[Precompiled C development environment, running on the LS ]]==
+
mkdir tmp
+
cd tmp
+
wget http://downloads.linkstationwiki.net/development_tools/ppc-tools-2_1.tgz
+
mkdir devtools
+
cd devtools
+
tar xzvf ../ppc-tools-2_1.tgz
+
./install.sh
+
wget http://downloads.linkstationwiki.net/kernel_headers/kernel-headers-2.4.20_hglan_htgl-2.0.tar.bz2
+
tar -C / -xvjf kernel-headers-2.4.20_hglan_htgl-2.0.tar.bz2
+
 
+
==Install [[Ipkg on the Linkstation (for end-users)]]==
+
wget http://downloads.linkstationwiki.net/powerpc-hdhlan/powerpc-hdhlan-ipkg-0.99.153-1.tgz
+
tar -C / -xvzf powerpc-hdhlan-ipkg-0.99.153-1.tgz
+
*Add the following lines to the file /etc/ipkg.conf:
+
src nslu2-cross-stable http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/stable/
+
src nslu2-cross-unstable http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/
+
src nslu2-native-stable http://ipkg.nslu2-linux.org/feeds/optware/ds101g/native/stable/
+
src nslu2-native-unstable http://ipkg.nslu2-linux.org/feeds/optware/ds101g/native/unstable/
+
*then
+
ipkg update
+
 
+
=Optional Goals=
+
#Install Netatalk, MtDaapd, rsync
+
#Install ccxstream for XBMC
+
#Install KAID
+
#??? Install other Mediaservers???
+
#Install bwm-ng bandwidth monitor, top, iftop, and nmap
+
#Install SMART hard drive monitoring tools (For temperature)
+
+
==[[Macintosh related configuration, netatalk, mt-daapd]]==
+
wget http://hvkls.dyndns.org/downloads/libid3tag_0.15.1b-binaries-ppc.tar.gz
+
wget http://hvkls.dyndns.org/downloads/mtdaapd_0.2.4-binaries-ppc.tar.gz
+
tar -C / -xvzf libid3tag_0.15.1b-binaries-ppc.tar.gz
+
tar -C / -xvzf mtdaapd_0.2.4-binaries-ppc.tar.gz
+
mv /etc/mt-daapd.SAMPLE /etc/mt-daapd
+
*Then edit /etc/mt-daapd/*. When done,
+
/etc/init.d/mt-daapd start
+
 
+
==[[XBMC - Using Xbox Media Center with the LinkStation]]==
+
ipkg install ccxstream
+
* Edit the ccxstream start file and change the username and shared directory for your system
+
'''''/opt/etc/init.d/S75ccxstream'''''
+
#!/bin/sh
+
+
if [ -n "`pidof ccxstream`" ] ; then
+
    killall ccxstream 2>/dev/null
+
+
fi
+
 
+
# see /opt/doc/ccxstream/README for the full summary on
+
# command-line options, but the terse summary is that
+
# -r is the directory to "share" using ccxstream, and is
+
# probably the option you most want to adjust.
+
#
+
+
sleep 2
+
<font color=red>/opt/sbin/ccxstream -r '''/mnt/share''' -u '''username''' -f -F /var/run/ccxstream.pid</font>
+
* Start the ccXStream daemon
+
/opt/etc/init.d/S75ccxstream
+
 
+
==[[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]]==
+
wget http://www.teamxlink.co.uk/binary/kaid-ppc-static-libc-2.3.zip
+
unzip kaid-*
+
mv kaid-static* kaid
+
mv kaid /usr/local/sbin
+
chmod 755 /usr/local/sbin/kaid
+
*create '''''/etc/init.d/kaid'''''
+
#! /bin/sh
+
export USER="root"
+
NAME=kaid
+
start()
+
{
+
mkdir /var/misc
+
touch /var/misc/kaiSystemConfig.txt
+
touch /var/misc/kaiEnginePersist.txt
+
chmod ugo+w /var/misc/kaiSystemConfig.txt
+
chmod ugo+w /var/misc/kaiEnginePersist.txt
+
su - $USER -c"kaid"
+
}
+
stop()
+
{
+
su - $USER -c"killall kaid"
+
}
+
case "$1" in
+
start)
+
echo -n "Starting Kaid: "
+
start
+
;;
+
stop)
+
echo -n "Stopping Kaid "
+
stop
+
;;
+
restart)
+
echo -n "Restarting Kaid "
+
stop
+
start
+
;;
+
*)
+
echo "Usage: /etc/init.d/$NAME {start|stop|restart}"
+
exit 1
+
;;
+
esac
+
exit 0
+
*Create a symbolic link to start kaid at every reboot and kill it at every shutdown automaticly:
+
chmod 755 /etc/init.d/kaid 
+
ln -s /etc/init.d/kaid /etc/rc.d/rc0.d/K99kaid
+
ln -s /etc/init.d/kaid /etc/rc.d/rc2.d/S99kaid
+
ln -s /etc/init.d/kaid /etc/rc.d/rc6.d/K99kaid
+
*Create '''''/etc/kaid.conf''''' and put in your username/password
+
################################################################################
+
# Kai Engine Configuration File (7.0.0.6-a)
+
#
+
# This file contains the configuration options for Kai Engine.
+
# There are some fields which can be modified, the descriptions of these fields
+
# and their default values are listed below
+
#
+
#
+
# Verbosity : Debug output verbosity. Options are as follows:
+
# 0 - Silent apart from starting / stopping messages, and init failures.
+
# 1 - As 1, but shows import events such as UI attach/detach, console detection,
+
# orb connection / loss.
+
# 2 - As 2, but more detailed, showing thread start/stop events, DHCP
+
# events, and other important information.
+
# 3 - Debug - same as 2, but with lots of extra information - useful
+
# for diagnosing segfaults etc.
+
Verbosity = 1
+
#
+
# User : Specifies which system user to switch to after having
+
# allocated necessary privileged resources. (FreeBSD Only!)
+
User = daemon
+
#
+
# UIBind : Specifies which ip/port kaid will use to listen for controller
+
# UIs. You don't want to change this.
+
UIBind = :34522
+
#
+
# OrbPort : Specifies which port kaid will use to probe(UDP) and talk to
+
# Orbitals (TCP) . You don't want to change this.
+
OrbPort = 34525
+
#
+
# OrbDeepPort : Specified which port kaid will use to probe and talk to
+
# deep resolution servers. You don't want to change this.
+
OrbDeepPort = 34523
+
#
+
# EngineBind : Specifies the IP:port to listen for the engine (UDP socket);
+
# (port should be forwarded in your router if using NAT)
+
# Ex.: 69.69.69.69, 69.69.69.69:37500, :37500
+
EngineBind = :0
+
#
+
# EngineDeepBind : Specifies the IP:port to listen for the engine (deep resolution)
+
# Do not enable this unless directed to.
+
# EngineDeepBind must be a different port than EngineBind if
+
# they use the same IP address
+
# Ex.: 69.69.69.69, 69.69.69.69:37501, :37501
+
  EngineDeepBind = :0
+
#
+
# Engine PAT : Tells the orbital server to use your perceived UDP port, as opposed to the
+
# one specified in EngineBind. Ignored if EngineBind is 0. Please don't turn this
+
# setting to 1, unless directed to do so in a troubleshooting session.
+
EnginePAT = 0
+
#
+
# SniffDevice : NIC to sniff for console traffic (eth0, ethX, ...). Will be used
+
# for packet injection too.
+
# Ex.: eth0 (default), en0 (Mac OSX), br0 (WRT54G)
+
SniffDevice = eth0
+
#
+
# LocalDevices : How many consoles to detect before the engine locks the pcap filter. Setting this to 0,
+
# means the engine will never lock - which means you can use any number of consoles, but
+
# you will notice a performance hit, if your network is busy with other traffic. The best
+
# thing to do here is to set the number to the number of consoles you own - that's why it
+
# defaults to 1 - because most people have just 1 console.
+
LocalDevices = 1
+
#
+
# ConfigURL : URL where orb list is published (and extra stuff) - best not to mess with this.
+
ConfigURL = www.teamxlink.co.uk/connector/clientgetconfig.php
+
#
+
# ConfigCache : Location of cached orb list - this file is used if the ConfigURL is inaccessible
+
# Make sure this file is writable. WRT54G users might want to change it to a non-volatile
+
# location if that feature is available in their firmware
+
# (i.e. /jffs/tmp/ for DD-WRT, /usr/local/ for Sveasoft)
+
ConfigCache = /var/misc/kaiSystemConfig.txt
+
  #
+
# CacheFile : Location of Kai engine cache information
+
# Make sure this file is writable. WRT54G users might want to change it to a non-volatile
+
# location if that feature is available in their firmware
+
# (i.e. /jffs/tmp/ for DD-WRT, /usr/local/ for Sveasoft)
+
  CacheFile = /var/misc/kaiEnginePersist.txt
+
#
+
#Authentication : Set username and password and AutoLogin=1 for an easy life...
+
Username =<font color = red>XXXXXXXXX</font>
+
Password =<font color = red>XXXXXXXXX</font>
+
AutoLogin = 1
+
#
+
# Xbox DHCP setting : Please leave alone, unless playing with emulators or DoomX etc. You DO NOT need this set to 1
+
# to use XBMC as a dashboard - setting it to 1 will *break* your dashboards internet connectivity.
+
XBoxHomebrew = 0
+
 
+
 
+
==Small and simple console-based bandwidth monitor, top, iftop, nmap ==
+
apt-get install bwm-ng
+
apt-get install top
+
apt-get install iftop
+
apt-get install nmap
+
 
+
==[[S.M.A.R.T. hard drive monitoring]]==
+
apt-get install smartmontools
+
*Edit <tt>'''/etc/default/smartmontools'''</tt>
+
start_smartd=yes
+
*Edit the smartd config file <tt>'''/etc/smartd.conf'''</tt>
+
**comment out: DEVICESCAN
+
**add: <tt>/dev/hda -a -H -m root</tt>
+
This little script generates a small bit of html showing a number of system stats
+
<pre>
+
<nowiki>
+
tc=$(smartctl -a /dev/hda | grep 194 | colrm 1 87)
+
tf=$(echo "scale=2;((9/5) * $tc) + 32" |bc)
+
echo " Used  %  Share"
+
echo "------ --- -----"
+
df -h | grep /dev/hda | colrm 1 27 | colrm 6 11
+
df -h| colrm  45 55 | grep /dev/s | grep -v tmpfs | colrm 1 27 | colrm 6 11
+
echo "<table>"
+
echo "<tr><td>Users:</td><td>"
+
users
+
echo "</td></tr>"
+
echo "<tr><td>Uptime:</td><td> "
+
uptime \
+
  | awk '{
+
  # chops off "up" and everything before it:
+
  sub(/.*up[ ]+/,"",$0)
+
  # chops off ", # users" and everything after it:
+
  sub(/,[ ]+[0-9]+ user.*/,"",$0)
+
  # cleans up extra spaces, i think:
+
  sub(/,/,"",$0)
+
  # obvious enough, prints the results
+
  print($0)
+
}'
+
echo "</td></tr>"
+
echo "<tr><td>Load:</td><td>"
+
uptime | sed 's/^.*average: / /'
+
echo "</td></tr><tr><td>Temp:</td><td>"
+
echo $tf " F"
+
echo "</td></tr> </table>"
+
echo "<hr>"
+
date | colrm 20 30"
+
echo "<hr>"
+
 
+
</nowiki>
+
</pre>
+

Latest revision as of 09:25, 7 February 2011

Nuvola apps important.png 
WARNING!

Freelinkomatix is currently deprecated due to Debian moving to ETCH. You may be able to use this script by doing a Dist-upgrade first (apt-get dist-uprade) and then rebooting and running the script, however please use this information at your risk


Kurobrick.png
WARNING!

There is a possibility that you could brick your NAS with these instructions. Please make sure that you read the entire page carefully. Use this scripting at your risk

Linkstation-debdux.gif 107px-Francesco_Torniello_da_Novara_Letter_F_1517.png 120px-Francesco_Torniello_da_Novara_Letter_X_1517.png

FreeLinkomatix

FreeLinkomatix is a tool for the Debian version of Linux used on the Buffalo LinkStation called FreeLink. It is designed to automate the addition of applications, libraries, and the upgrade to a v2.6 kernel (PPC linkstations only: LS1 and HG) which is not provided directly in the FreeLink distribution. A bash shell script modeled after Automatix will use apt-get to install applications from the APT debian repository. Some software will come from http://downloads.nas-central.org, the remainder will be compiled from source. This supports both the PowerPC and MIPSel versions of FreeLink. This script is similar to Andre's Web Installer. The script also looks for the most recent version of itself.

Nuvola apps important.png 
WARNING!

This is meant to be run on a FRESH FreeLink install. It's probably not a good idea to run it on an already heavily customized FreeLink box. Regardless it performs actions mostly through apt-get and should not cause irreversible damage.


Current actions of script

Primary Script

  1. Update apt-repositories....
  2. Install DHCP-3 client if not present
  3. Move /home /usr /var from hda1 to hda3 and create symlinks
  4. Install Samba
  5. Troubleshooting Windows shares (samba) - guest access
  6. Install Webmin 1.3 and StressFree Solutions Tiger Webmin Theme
  7. Allow all IPs for Webmin
  8. Install SSH SSHd and the associated Webmin module
  9. Install ProFTPd and Webmin module
  10. Configure the time zone and use NTPdate
  11. Install the Precompiled C development environment
  12. Upgrade to Kernel 2.6 using Andre's web installer (PowerPC only)

Post Kernel 2.6 Script

PPC linkstations only: LS1 and HG

  1. Add Kernel Network File System (NFS) and the Webmin Exports module
  2. Install Rsync and download Webmin module rsyncmin
  3. Add USB Automounting and CUPS Printer Support
  4. Macintosh Specific Netatalk and Howl Zeroconf DNS discovery service
  5. Add Firefly (mt-daapd) Media Server
  6. Ccxstream - Xbox Media Stream Protocol
  7. KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP
  8. LAMP and Gallery2 Photo gallery

Remaining Goals

  1. Jinzora - web based multimedia application
  2. SlimServer server software that powers audio players from SlimDevices
  3. GMediaServer - GNU UPnP media server
  4. Wizd - A Media Server for Syabas based players
  5. Ushare - UPnP Media Server for Linux
  6. Virtual Private Networking - PPTP

BASH Script Location

The in progress script is located in the talk/discussion page, anyone is free to change it:

The Downloadable for use version is located at

Forum Discussion

Linkstation Community Forum / General Development /

Installation

  • Install FreeLink First: Get the archive
Linkstation-debdux.gif LS1 freelink_powerpc-hdhlan-1.11.zip
LS2 freelink_mipsel-hdhlan-060810.zip
HG freelink_powerpc-hdhglan-1.11.zip


  • Flash The The LinkStation firmware flasher
    • Open the archive and carefully read the included README file for any specific instructions.
    • Disable any firewall(s), including any built-in Windows firewall
    • Make sure the LinkStation and your PC are on the same sub-network. This likely requires that you change the IP address (and probably the subnet-mask) of your PC and router to a different IP address (out of the box the LS should start out on 192.168.1.XXX but in EM Mode it will have a static IP address of 192.168.11.150)
    • Run the firmware updater executable HD-???LAN FWUpdate-english.exe
GeneralFreeLink1.jpg
    • After finding your LinkStation, press the "Renew Firmware" button, and wait. Have patience, and keep your calm. If you think the Firmware updater is acting strange, do not try to disconnect the LinkStation or abort the update in another way.
    • After flashing connect your LinkStation up to the network with subnet 192.168.1.XXX
    • Find your LinkStation on the network and Telnet to it with PuTTYtel You will be at the root shell.
Nuvola apps important.png 
WARNING!

The MIPSel version of FreeLink does not have telnet enabled as a default but rather SSH. Use PuTTY to open a SSH session to: 192.168.11.150 (it has a static IP).
login as: root , password: freelink


Debian GNU/Linux 3.1 %h

root@LinkStation:/#

    • Change the root password
passwd root

Primary Script

On a newly FreeLinked Linkstation you can get and install FreeLinkomatix with the following:

wget http://downloads.nas-central.org/Installers/Freelinkomatix/freelinkomatix.sh
chmod a+x freelinkomatix.sh
./freelinkomatix.sh

Post Kernel 2.6 Script

Nuvola apps important.png 
WARNING!

The Post Kernel 2.6 Script is for PPC linkstations only: LS1 and HG


After Kernel 2.6 is done installing and the system reboots, Find your LinkStation on the network and open an SSH session to it with PuTTYtel, at this point you should be able to run the secondary script:

wget http://downloads.nas-central.org/Installers/Freelinkomatix/postinstall.sh
chmod a+x postinstall.sh
./postinstall.sh