Difference between revisions of "FreeLinkomatix"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Forum Discussion)
(Undo revision 30045 by Baracks (Talk))
 
(40 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Template:Articles|Projects|FreeLink|LS1|LS2|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}}
 +
{{Brick|Use this scripting at your risk}}
 +
 
 +
{{Template:Articles|Projects|FreeLink|LS1|LS2|HG|Development}}
 
{|align=right cellspacing=0 cellpadding=0
 
{|align=right cellspacing=0 cellpadding=0
 
|-
 
|-
Line 7: Line 10:
 
|}
 
|}
 
=FreeLinkomatix=
 
=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]]. This tool is designed to automate the addition of applications, libraries, and the upgrade to a v2.6 kernel which is not provided directly in the FreeLink distribution. This project aims to create a bash shell script like [[w:Automatix (tool)|Automatix]] that will use [[w:apt-get|apt-get]] to install applications from the [[w:Advanced Packaging Tool|APT]] debian repository.  Some software will come from http://downloads.linkstationwiki.net, the remainder will be compiled from source. This supports both the [[w:PowerPC|PowerPC]] and [[w:MIPS architecture|MIPSel]] versions of FreeLink.
+
'''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 repository.  Some 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 goal will be to create a foolproof script. The script should look for an upgraded version of itself too (we'll have to use [[w:diff|diff]] for that).  
+
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 a work in progress, It performs actions mostly through apt-get and should not cause irreversible damage, however as yet it has not been extensively tested}}
+
{{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==
 
==Current actions of script==
 
===Primary Script===
 
===Primary Script===
# Update apt-repositories....                                                
+
# [[Convert your PPC LinkStation into a full-blown Debian system | Update apt-repositories....]] 
# Move /home /usr /var  from hda1 to hda3 and create symlinks                 
+
# [http://www.howtoforge.com/dhcp_server_linux_debian_sarge Install DHCP-3 client if not present]                                             
# Enable the Debian unstable Branch                                         
+
# [[Freeing up space on hda1 | Move /home /usr /var  from hda1 to hda3 and create symlinks]]                  
# Install Samba and Webmin                                                    
+
# [[Samba - a Windows-readable file share | Install Samba]]                                                    
# Troubleshooting Windows shares (samba) - guest access                       
+
# [[Troubleshooting Windows shares (samba) | Troubleshooting Windows shares (samba) - guest access]]                        
# Allow all IPs for Webmin                                                  
+
# [[Webmin to remotely administer your LinkStation|Install Webmin]] 1.3 and [http://www.stress-free.co.nz/webmin-theme  StressFree Solutions Tiger Webmin Theme]
# Install SSH SSHd and the associated Webmin module                           
+
# [[Webmin to remotely administer your LinkStation | Allow all IPs for Webmin]]
# Install ProFTPd and Webmin module                                           
+
# [[Convert from telnet to SSH (both OpenSSH and Dropbear) | Install SSH SSHd and the associated Webmin module]]                            
# Download StressFree Solutions Tiger Webmin Theme                           
+
# [[ProFTPD - Customized FTP server instance | Install ProFTPd and Webmin module]]                                            
# Configure the time zone and use NTPdate                                       
+
# [[Correct the system time and setup Network Time Protocol (NTP) | Configure the time zone and use NTPdate]]                                      
# Install the Precompiled C development environment                             
+
# [[Precompiled C development environment, running on the LS | Install the Precompiled C development environment]]                            
# Upgrade to Kernel 2.6 using Andre's web installer (PowerPC only)                  
+
# [[Upgrade to the 2.6-kernel (ppc only) | Upgrade to Kernel 2.6 using Andre's web installer (PowerPC only)]]
 +
 
 
===Post Kernel 2.6 Script===
 
===Post Kernel 2.6 Script===
# Add Kernel Network File System (NFS) and the Webmin Exports module  
+
'''''PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]'''''
# Install Rsync and download Webmin module rsyncmin  
+
# [[Get the Network File System (NFS) running | Add Kernel Network File System (NFS) and the Webmin Exports module]]
# Add USB Automounting and CUPS Printer Support  
+
# [[Rsync - synchronizes files and directories from one location to another | Install Rsync and download Webmin module rsyncmin]]
# Macintosh Specific Netatalk and Howl Zeroconf DNS discovery service
+
# [[USB devices including CUPS printing, scanners, and webcams | Add USB Automounting and CUPS Printer Support]]
# Add Firefly (mt-daapd) Media Server  
+
# [[Macintosh related configuration, netatalk, mt-daapd | Macintosh Specific Netatalk and Howl Zeroconf DNS discovery service]]
# Install ccxstream XBMSP protocol for XBox Media Center
+
# [[Macintosh related configuration, netatalk, mt-daapd | Add Firefly (mt-daapd) Media Server]]
# KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP
+
# [[Ccxstream - Xbox Media Stream Protocol]]
 +
# [[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP | KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]]
 +
# [[LAMP]] and [[Photo album using gallery | Gallery2 Photo gallery]]
 +
 
 +
==Remaining Goals==
 +
# [[Jinzora - web based multimedia application]]
 +
# [[SlimServer server software that powers audio players from SlimDevices]]
 +
# [[GMediaServer - GNU UPnP media server (MIPSel)|GMediaServer - GNU UPnP media server]]
 +
# [[Wizd - A Media Server for Syabas based players]]
 +
# [[Ushare - UPnP Media Server for Linux ]]
 +
# [[Virtual Private Networking - PPTP]]
 +
 
 
==BASH Script Location==
 
==BASH Script Location==
 
The in progress script is located in the talk/discussion page, anyone is free to change it:
 
The in progress script is located in the talk/discussion page, anyone is free to change it:
 
* <big>'''[[Talk:FreeLinkomatix | FreeLinkomatix - bash script]]'''</big>
 
* <big>'''[[Talk:FreeLinkomatix | FreeLinkomatix - bash script]]'''</big>
 
The '''''Downloadable for use version''''' is located at  
 
The '''''Downloadable for use version''''' is located at  
*<big>'''http://downloads.linkstationwiki.net/freelinkomatix'''</big>
+
*<big>'''http://downloads.nas-central.org/Installers/Freelinkomatix/'''</big>
 +
 
 
==Forum Discussion==
 
==Forum Discussion==
 
Linkstation Community Forum / General Development /
 
Linkstation Community Forum / General Development /
*<big>'''[http://forum.linkstationwiki.net/index.php?action=vthread&forum=7&topic=1472 The  FreeLinkomatix - a system setup script for the Debian version of Linux]'''</big>
+
*<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>
  
=Installation=
+
==Installation==
==Install FreeLink First==
+
*'''<big>Install FreeLink First: Get the archive</big>'''
*'''Get the archive'''
+
 
{|
 
{|
 
|-
 
|-
 
|rowspan=3|[[image:Linkstation-debdux.gif|70px]]
 
|rowspan=3|[[image:Linkstation-debdux.gif|70px]]
 
|<big>'''LS1'''</big>
 
|<big>'''LS1'''</big>
|<big>'''[http://downloads.linkstationwiki.net/freelink/freelink_powerpc-hdhlan-1.11.zip freelink_powerpc-hdhlan-1.11.zip]'''</big>
+
|<big>'''[http://downloads.nas-central.org/LS1_PPC/Distributions/Freelink/freelink_powerpc-hdhlan-1.11.zip freelink_powerpc-hdhlan-1.11.zip]'''</big>
 
|-
 
|-
 
|<big>'''LS2'''</big>
 
|<big>'''LS2'''</big>
|<big>'''[http://downloads.linkstationwiki.net/freelink/development/freelink_mipsel-hdhlan-060810.zip freelink_mipsel-hdhlan-060810.zip]'''</big>
+
|<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>'''HG'''</big>
|<big>'''[http://downloads.linkstationwiki.net/freelink/freelink_powerpc-hdhglan-1.11.zip freelink_powerpc-hdhglan-1.11.zip]'''</big>
+
|<big>'''[http://downloads.nas-central.org/LSHG_PPC/Distributions/Freelink/freelink_powerpc-hdhglan-1.11.zip freelink_powerpc-hdhglan-1.11.zip]'''</big>
 
|}
 
|}
  
  
*'''Flash The [[The LinkStation firmware flasher]]'''
+
*'''<big>Flash The [[The LinkStation firmware flasher]]</big>'''
 
**Open the archive and carefully read the included <tt>README</tt> file for any specific instructions.
 
**Open the archive and carefully read the included <tt>README</tt> file for any specific instructions.
 
**Disable any firewall(s), '''including any built-in Windows firewall'''  
 
**Disable any firewall(s), '''including any built-in Windows firewall'''  
Line 68: Line 83:
 
**After flashing connect your LinkStation up to the network with subnet 192.168.1.XXX
 
**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.  
 
**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"  
 
:{| width=90% cellspacing="1" cellpadding="2" style="font-size:100%;background-color:#00F0F0; border-width: 1px; border-style: solid"  
 
|-
 
|-
Line 76: Line 92:
 
  passwd root
 
  passwd root
  
==Primary Script==
+
===Primary Script===
 
On a newly FreeLinked Linkstation you can get and install FreeLinkomatix with the following:
 
On a newly FreeLinked Linkstation you can get and install FreeLinkomatix with the following:
  wget http://downloads.linkstationwiki.net/freelinkomatix/freelinkomatix.sh
+
  wget http://downloads.nas-central.org/Installers/Freelinkomatix/freelinkomatix.sh
 
  chmod a+x freelinkomatix.sh
 
  chmod a+x freelinkomatix.sh
 
  ./freelinkomatix.sh
 
  ./freelinkomatix.sh
  
==Post Kernel 2.6 Script==
+
===Post Kernel 2.6 Script===
 
{{Warning| The Post Kernel 2.6 Script is for PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]}}
 
{{Warning| The Post Kernel 2.6 Script is for PPC linkstations only: [[:Category:LS1|LS1]] and [[:Category:HG|HG]]}}
 
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:
 
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:
  wget http://downloads.linkstationwiki.net/freelinkomatix/postinstall.sh
+
  wget http://downloads.nas-central.org/Installers/Freelinkomatix/postinstall.sh
 
  chmod a+x postinstall.sh
 
  chmod a+x postinstall.sh
 
  ./postinstall.sh
 
  ./postinstall.sh
 
=Goals=
 
To come up with a script that will install the following on [[FreeLink]] for the [[:Category:LS1|LS1]] and [[:Category:HG|HG]].  Also on the [[:Category:LS2|LS2]] when appropriate.
 
#[[Get access to packages from the Debian unstable branch]] <font color = red> DONE </font>
 
#[[Convert from telnet to SSH (both OpenSSH and Dropbear)]] <font color = red> DONE </font>
 
#[[Samba - a Windows-readable file share]] <font color = red> DONE </font>
 
##[[Troubleshooting Windows shares (samba)]]<font color = red> DONE </font>
 
#[[Webmin to remotely administer your LinkStation]] <font color = red> DONE </font>
 
##Upgrade Webmin <font color = red> may not be necessary unstable has v1.3 already</font>
 
##Install and use the [http://www.stress-free.co.nz/webmin-theme Webmin 'Tiger' theme] <font color = red> DONE can download theme but user has to install themselves</font>
 
#[[Freeing up space on hda1]] <font color = red> DONE </font>
 
#[[Correct the system time and setup Network Time Protocol (NTP)]] <font color = red> DONE </font>
 
#[[Precompiled C development environment, running on the LS ]] <font color = red> DONE </font>
 
#[[Upgrade to the 2.6-kernel (ppc only)]] <font color = red> DONE </font>
 
#[[USB devices including CUPS printing, scanners, and webcams]] <font color = red> DONE </font>
 
##Automounting USB devices into shared samba fileshare <font color = red> user through Webmin </font>
 
 
=Optional Goals=
 
#[[Rsync - synchronizes files and directories from one location to another]] <font color = red> DONE user has to install rsyncmin (webmin module)</font>
 
#[[Get the Network File System (NFS) running]]  <font color=red> DONE</font>
 
#[[Macintosh related configuration, netatalk, mt-daapd]] <font color=red> DONE</font>
 
#ccxstream - [[XBMC - Using Xbox Media Center with the LinkStation]] <font color=red> DONE</font>
 
#[[KAID - XLink Kai online gaming for Xbox, 360, PS2 and PSP]] <font color=red> DONE</font>
 
#[[:Category:Mediaserver|Install other Mediaservers]]
 
#[[LAMP]] or [[LLMP]]
 
#[[Photo album using gallery]]
 
#[[S.M.A.R.T. hard drive monitoring]]
 

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

Contents

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