http://os-builder.com/UETOYS/ultimate-e ... .1_all.deb
Thur Oct 24, 2013: Been a minute since I revised this tool:
# Change-log:
# 1.7.1-5 initial public release
# 1.7.1-6 Added net-mask detection, not all routers etc assign 192.168.1.*
# 1.7.1-7 Began implementation of NFS (Network File System)
# Added reusable code in Version function
# Added injection / auto-mounting of NFS to fstab
# Added error handling routines to inform end user
# 1.7.1-8 Added auto-mount of NFS file-systems.
# Code cleanup using a tool I wrote.
# Wrote bash auto completion handler.
# Added active interface detection, should have been priority #1
# 1.7.2-1 Fixed help systems
# Added report switch
# Fixed bash auto-completion
# Tossed wifi interfaces to the curb.
# Bumped version # to comply with other tools being released.
# Adjusted dependencies determined from bash-depends application
# 1.9.8 Added support for Western Digital My Cloud NAS Drives.
#
# ==============================================================================
Lintian error free and shellcheck error free.
Also supports for sure the following drive under Ultimate Edition 5.0 & 5.2 with the above deb.
Fri Aug 24, 2012 1:27 pm:
I have BEGAN writing a program to make what my NAS is currently to be those of you that possess one your NAS. For those of you that do not understand what a NAS is don't feel bad I too did not know and bought it solely for the space provided and backup. Solid Gigabit in house so no bottleneck. The device in question. I want to bring you up to date as learned, it is basically a computer w/o a video card. My end users purchased it for me to back up operating systems I write. The drive is faulty when sitting on the docking bay due to power-savings and shutting down and starting up - runs super hot. I ripped the drive out hard mounted it to my system, dropped in a Solid State Disk (SSD) and went to work.
A SSD is not plagued by things as a mechanical hard disk is. It was in my best interest to do so until I can get into what is causing the heating issues. I could also get into the 2TB barrier, but is beyond the scope of what I am here to educate people of.
Many flaws in design I have had in simple tasks such as knowing what it's IP is. Support for windows is shaky at best compared to what I have done for this device in our world of Linux in which the device lives in. Grant you at current time of posting a rpm based red-hat Linux. Once again fret not I will work any system to cater to our users. I present to you at current time junk, however a step in the right direction.
We once again BEGIN
Lets's not screw around and break out "Some" source code this is the programming section right?
Thursday DEC 06, 2012 - The Junk statement above, begins to phase out:
- Code: Select all
#!/bin/bash
NASUPVERSION="1.7.1-7"
BUILDDATE="12/06/12"
# title :nasup
# description :Detect and auto mount Seagate Go Flex line of NAS.
# author :Glenn Cady <[email protected]>
# date :12/06/2012
# version :1.7.1-7
# usage :nasup --help
# notes :See change-log below for further information.
# bash_version :4.2.8(1)-release
# ==============================================================================
# Change-log:
# 1.7.1-5 initial public release
# 1.7.1-6 Added net-mask detection, not all routers etc assign 192.168.1.*
# 1.7.1-7 Began implementation of NFS (Network File System)
# Added reusable code in Version function
# Added injection / auto-mounting of NFS to fstab
# Added error handling routines to inform end user
# ==============================================================================
# Nasup(c) 2012 Glenn Cady under GNU GPL v2.0+ by
# Glenn Cady <[email protected]> written explicitly for the
# Seagate Go-flex line of NAS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
PASSWORD='' # Your Password to mount the NAS
MOUNTPOINT='/media/NAS' # Example: /media/NAS_3TB
NASIP='' # Example: 192.168.0.105 not specifying an IP will search for the NAS
SLASH="/"
# You should not have to change any of the below. Actually none of the above as of 1.7.1-6.
# set colors so errors etc. stand out.
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White
bakblk='\e[40m' # Black - Background
bakred='\e[41m' # Red
badgrn='\e[42m' # Green
bakylw='\e[43m' # Yellow
bakblu='\e[44m' # Blue
bakpur='\e[45m' # Purple
bakcyn='\e[46m' # Cyan
bakwht='\e[47m' # White
txtrst='\e[0m' # Text Reset
# obtain IP Net-mask
IPBLOCK=$(ifconfig -a | grep 'inet addr' | awk -F: '{ print $2 }' | awk '{ print $1 }' | sed 's/127.0.0.1//g' | sed '/^$/d' | sed "s/-[^-]*$//" | sed '/^$/d' | cut -f 1-3 -d.)
#Dump version info and exit.
function VERSION() {
echo -e "${undwht}nasup $NASUPVERSION, Build date: "$BUILDDATE${txtrst}"
GNU nasup home page: <http://www.ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word nasup somewhere in the Subject: field."
echo -e "${txtrst}"
}
function Scan {
# Initiate header
VERSION
# Command switch check for NFS
if [[ $2 == "-nfs" ]];then
if [[ $3 == "" ]];then
#Invalid switche(s) provided dump error, example usage and exit.
echo -e "${bldred}Missing switch --nfs requires add or remove:"
echo -e "Example:${bldwht}$0 --scan --nfs add${txtrst}"
exit 0;
fi
fi
# Begin Scan for NAS drive(s)
echo -e "${undcyn}Scanning $IPBLOCK.* for Go-flex IP..${txtrst}"
NASIP=`nmap --system-dns -sP $IPBLOCK.0/24 | awk /report/ | grep 'GoFlex' | cut -f2 -d'(' | sed 's/)//g'`
# -->Additional scanning code will go here for freenas, netgear etc.<--
# Whoopee no NAS found
if [[ $NASIP == "" ]];then
echo -e "${bldred}Unable to determine NAS IP address. Please manually provide IP. man $0 for more info.${txtrst}"
exit 0
fi
# Define & report how many NAS drive(s) were detected.
NDRIVES=$(echo "$NASIP" | wc -l)
echo -e "${undwht}$NDRIVES NAS Drive(s) detected.${txtrst}"
# NAS(S) detected create mount-point for each if multiple and mount.
for CURRENT in $NASIP
do
# if NFS switch is implemented set default mount-points as such.
if [[ $2 == "-nfs" ]]; then
MOUNTPOINT='/media/NFS'
fi
# report discovered NAS
echo -e "${bldgrn}NAS Host exists at $CURRENT.${txtrst}"
# create mount-point & set permissions if it does not exist.
if [[ $3 != "remove" && $2 != "-report" ]];then
if [ ! -d $MOUNTPOINT$count$SLASH ]; then
echo -e "${bldwht}Mount point does not exist, creating $MOUNTPOINT$count$SLASH.${txtrst}"
sudo mkdir -p $MOUNTPOINT$count$SLASH > /dev/null 2>&1 || echo -e "${bldred}Error: Can not create $MOUNTPOINT$count$SLASH.${txtrst}";
sudo chown $USER:$USER $MOUNTPOINT$count$SLASH > /dev/null 2>&1 || echo -e "${bldred}Error: Can not chown $MOUNTPOINT$count$SLASH to $USER.${txtrst}";
sudo chmod 777 -R $MOUNTPOINT$count$SLASH > /dev/null 2>&1 || echo -e "${bldred}Error: Can not chmod $MOUNTPOINT$count$SLASH.${txtrst}";
else
echo $MOUNTPOINT$count$SLASH" exists."
fi
fi
# cifs mode, no nfs switch provided.
if [[ $2 != "-nfs" && $2 != "-report" ]]; then
echo -e "${bldgrn}Entering cifs mode:${txtrst}"
echo -n "Username: "
read -e USERNAME
read -s -p "Password: " PASSWORD
echo -e "${bldgrn}Mounting NAS from $CURRENT to $MOUNTPOINT$count$SLASH${txtrst}"
sudo mount -t cifs '//'$CURRENT'/GoFlex Home Personal' $MOUNTPOINT$count$SLASH -o username=$USERNAME,password=$PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 > /dev/null 2>&1 || echo -e "${bldred}Error: Can not mount $CURRENT, is Username & Password correct?";
else
# Assign varible to what will be output to /etc/fstab
SS=$CURRENT":/home/0common "$MOUNTPOINT$count$SLASH" nfs rsize=8192,wsize=8192,timeo=14,intr"
# Check for prior existence in fstab.
TESTIT=$(cat /etc/fstab | grep $CURRENT)
if [[ $TESTIT != "" ]]; then
# existance
if [[ $3 == "add" ]]; then
echo -e "${bldred}Error: $CURRENT is already in the /etc/fstab; Nothing to do.${txtrst}"
fi
if [[ $3 == "remove" ]]; then
echo "Removing $CURRENT from /etc/fstab"
sudo sed -i "/$CURRENT/d" /etc/fstab
sudo sed -i "/#Entry added via Nasup/d" /etc/fstab
echo -e "${bldgrn}Unmounting $CURRENT:/home/0common${txtrst}"
sudo umount $CURRENT:/home/0common > /dev/null 2>&1 || echo -e "${bldred}Error: Can not unmount $CURRENT.${txtrst}";
fi
else
# non existance
if [[ $3 == "add" ]]; then
echo -e "${bldgrn}Adding the following to your /etc/fstab:${txtrst}"
sudo echo "#Entry added via Nasup" | sudo tee -a /etc/fstab
sudo echo $SS | sudo tee -a /etc/fstab
fi
if [[ $3 == "remove" ]]; then
echo -e "${bldred}Error: $CURRENT is not in /etc/fstab. Nothing to remove.${txtrst}"
fi
fi
fi
# count number of NAS(s) detected.
count=`expr $count + 1`
# Close loop
done
# Mount / unmount based on add / remove / cifs all detected NAS Drive(s), report errors if any.
if [[ $2 != "-nfs" && $2 != "-report" ]]; then
echo -e "${bldgrn}Mounting / un-mounting NAS Drive(s)${txtrst}"
sudo mount -a > /dev/null 2>&1 || echo -e "${bldred}Error: Can not mount $CURRENT, is Username & Password correct?${txtrst}";
fi
}
# Currently unimplemented code.
function MountNAS() {
echo "mount -t cifs '//'$1'/GoFlex Home Personal' $4 -o username=$2,password=$3,iocharset=utf8,file_mode=0777,dir_mode=0777"
sudo mount -t cifs '//'$1'/GoFlex Home Personal' $4 -o username=$2,password=$3,iocharset=utf8,file_mode=0777,dir_mode=0777
}
# Grab Header and dump usage to end user. / need cleanup here much has changed
# since beginning
function Help {
VERSION
echo -e "${bldwht}
Usage: nasup -<COMMAND> [option]
possible commands...
-v --version Dump version info
-s --scan Scans for NAS drive on network.
-h --help This help message
Usage Version;
nasup -v
Displays nasup's version number and exits.
Usage Scan;
nasup -s [-nfs <add/remove>] [-report]
Scans LAN for NAS drive on network. The mount-point will be
created at /media/NAS/, NAS1 etc. if multiple NAS's are detected. Not
using -nfs will be mounted as cifs.
If [report] switch is used will only display detected NAS'(s) IP'(s) and
exit.
If the optional --nfs switch is used after completion and successfully
finding the NAS''(s) will add the drive to the fstab for mounting as
/media/NFS/, /media/NFS1/ etc. on boot-up.
Usage Help;
nasup -h
Displays this message. For further information please refer to the man-pages.
man nasup
Examples (case sensitive):
nasup --scan -report
nasup --scan
nasup --scan -nfs add
"
echo -e "${txtrst}"
exit 0
}
# Command switch interpreter
case "$1" in
-h|--help|-\?) Help; exit 0;;
-v|--version) VERSION; exit 0;;
-V|--verbose) Build $1 $2; exit 0;;
-s|--scan) Scan $1 $2 $3; exit 0;;
-m|--mount-nas) MountNAS $2 $3 $4 $5; exit 0;;
*) Help; exit 0;;
esac
When I wrote this initially I wanted only to find the IP of my NAS drive on my network. Expanded; the software does not care how many NAS drives you have will find them all and set them up for you. I have not touched on what it will do once it obtains that information, once again expansion is coming. I am sure you guys have seen on facebook the end results of what it brings. I refuse to release shoddy software until I see it trough beginning until the end. Even though the script allows for entry for IP password etc. totally unnecessary. It will obtain info w/o intervention. The password must be intervened, we are not a hacker right

You deserve a sneak peak (I should explain why the screen is so wide I have dual 28" monitors higher then HD. I wrote software for that too):
1 monitor to write software on the other to watch it execute. I am all about productivity when it comes to programming.
NFS will hit the mix once I have the ability for your comp and NAS to communicate openly. I do not want Joe Schmucatelli to be able to do so, so a delema enters the mix. I want to have the answer. Many issues that you will find here are due to newbies no pun intended. I want to remove all barriers, but have to think things through. Please give me time to resolve all issues.
Do not think it will not find 2 or 255 NAS drives even with current code. I am enhancing it to allow you to know which drive you are looking at. Goliath also has a 3TB NAS also on the same network. He leaves his off because of heat. When turned on picks it right up and allows me to mount it.
- Code: Select all
theemahn@JackHammer:~$ nasup -s
nasup 1.7.1-7, Build date: 12/06/12
GNU nasup home page: <http://www.ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word nasup somewhere in the Subject: field.
Scanning 192.168.0.* for Go-flex IP..
2 NAS Drive(s) detected.
NAS Host exists at 192.168.0.100.
Mount point does not exist, creating /media/NAS/.
Entering cifs mode:
Username: John
Password: Mounting NAS from 192.168.0.100 to /media/NAS/
NAS Host exists at 192.168.0.102.
Mount point does not exist, creating /media/NAS1/.
Entering cifs mode:
Username: theemahn
Password: Mounting NAS from 192.168.0.102 to /media/NAS1/
Mounting / un-mounting NAS Drive(s)
theemahn@JackHammer:~$
Working into the future of nasup:
Change-log:
- 1.7.1-5 initial public release
- 1.7.1-6 Added net-mask detection, not all routers etc assign 192.168.1.*
- 1.7.1-7 Began implementation of NFS (Network File System)
Added reusable code in Version function
Added injection / auto-mounting of NFS to fstab
Added error handling routines to inform end user
I take 0 responsibility if you hose your NAS drive. This "how-to" is not intended for the common user.
NFS is HERE!!! a primer:
What is NFS? In the world of Network Attached Storage (NAS) a mass bonus over CIFS or any other Network based file system that I have tried. It is approximately 20% faster and auto-mounts the drives on boot up, so in essence run this tool one time with the -nfs add switch and technically you no longer need the tool.
Let's man up:
- Code: Select all
man nasup
nasup(1) nasup(1)
NAME
nasup - Please edit this file.
SYNOPSIS
nasup
DESCRIPTION
nasup - This manpage was auto-generated using repomaster <http://ultimateedition.info/>. Please edit this file.
OPTIONS
-v Display version number.
-h Show help.
BUGS
nasup Homepage: http://ultimateedition.info/. E-mail bug reports to: Ultimate Edition Team <[email protected]> including this bug.
AUTHOR
Ultimate Edition Team <[email protected]>
Debian/GNU Linux December 2012 nasup(1)
Damn

- Code: Select all
nasup -h
nasup 1.7.1-7, Build date: 12/06/12
GNU nasup home page: <http://www.ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word nasup somewhere in the Subject: field.
Usage: nasup -<COMMAND> [option]
possible commands...
-v --version Dump version info
-s --scan Scans for NAS drive on network.
-h --help This help message
Usage Version;
nasup -v
Displays nasup's version number and exits.
Usage Scan;
nasup -s [-nfs <add/remove>] [-report]
Scans LAN for NAS drive on network. The mount-point will be
created at /media/NAS/, NAS1 etc. if multiple NAS's are detected. Not
using -nfs will be mounted as cifs.
If [report] switch is used will only display detected NAS'(s) IP'(s) and
exit.
If the optional --nfs switch is used after completion and successfully
finding the NAS''(s) will add the drive to the fstab for mounting as
/media/NFS/, /media/NFS1/ etc. on boot-up.
Usage Help;
nasup -h
Displays this message. For further information please refer to the man-pages.
man nasup
Examples (case sensitive):
nasup --scan -report
nasup --scan
nasup --scan -nfs add
In order to be able to utilize the "-nfs add" switch you must run aionas located in the deb on the "server". In this case the NAS drive, but I don't know the NAS's IP no problem:
- Code: Select all
theemahn@JackHammer:~$ nasup -s -report
nasup 1.7.1-7, Build date: 12/06/12
GNU nasup home page: <http://www.ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word nasup somewhere in the Subject: field.
Scanning 192.168.0.* for Go-flex IP..
2 NAS Drive(s) detected.
NAS Host exists at 192.168.0.100.
NAS Host exists at 192.168.0.102.
theemahn@JackHammer:~$
Well now, that sucks which drive is which? Yes indeed it does. I intend to enhance it further to display more information in the future. Let's move on. We will say 192.168.0.100 is my target. Open your browser and goto http://192.168.0.100/:
Click the little "About Go-flex Home" in the bottom left corner. and take note of your product key you will need it later:
Let the fun begin:
Crack open a terminal:
in format:
- Code: Select all
ssh USERN[email protected]
Example (note lowercase on user name):
- Code: Select all
ssh [email protected]
If all went well you should be greeted with:
- Code: Select all
The authenticity of host '192.168.0.100 (192.168.0.100)' can't be established.
RSA key fingerprint is 7c:a8:25:21:13:a2:eb:00:a6:c1:76:ca:6b:48:6e:bf.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.101' (RSA) to the list of known hosts.
GoFlex Home version 10.0.x
[email protected]'s password:
-bash-3.2$
Time to root up(using the password for your NAS):
- Code: Select all
-bash-3.2$ sudo passwd
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
audit_log_user_command(): Connection refused #You can ignore this.
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
-bash-3.2$ su
Password:
bash-3.2#
This post is already long, I am now going to copy and paste from the terminal both the commands and output of said commands. First we need a package manager otherwise we can't install squat. Hard to install a package manager without a package manager. We are not going to let that deter us; Let's roll:
- Code: Select all
bash-3.2# wget http://downloadue.info/NAS/Firmware/ipkg-opt_0.99.163-10_arm.ipk
--06:50:52-- http://downloadue.info/NAS/Firmware/ipkg-opt_0.99.163-10_arm.ipk
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74474 (73K) [application/vnd.shana.informed.package]
Saving to: `ipkg-opt_0.99.163-10_arm.ipk'
100%[===================================================================================================================================================>] 74,474 257K/s in 0.3s
06:50:53 (257 KB/s) - `ipkg-opt_0.99.163-10_arm.ipk' saved [74474/74474]
bash-3.2# tar xfv ipkg-opt_0.99.163-10_arm.ipk
./debian-binary
./data.tar.gz
./control.tar.gz
bash-3.2# tar xfv data.tar.gz
./
./opt/
./opt/bin/
./opt/bin/ipkg
./opt/bin/ipkg-opt
./opt/bin/update-alternatives
./opt/etc/
./opt/etc/ipkg.conf
./opt/lib/
./opt/lib/libipkg.so
./opt/lib/libipkg.so.0
./opt/lib/libipkg.so.0.0.0
./opt/share/
./opt/share/ipkg/
./opt/share/ipkg/intercept/
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/update-modules
bash-3.2# cp -R opt/ /
bash-3.2# #clean up we are somewhat limited on space
bash-3.2# rm control.tar.gz
bash-3.2# rm data.tar.gz
bash-3.2# rm debian-binary
bash-3.2# rm ipkg-opt_0.99.163-10_arm.ipk
bash-3.2#
bash-3.2# #strip #signs from repositories, so we get all the software...
bash-3.2# sed -i 's/# src/src/g' /opt/etc/ipkg.conf
bash-3.2# ./opt/bin/ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/nslu2
Downloading http://ipkg.nslu2-linux.org/feeds/optware/fsg3/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/fsg3
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/ddwrt
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/xwrt
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/whiterussian
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/oleg
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ts72xx/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/ts72xx
Downloading http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/openwrt-brcm24
Downloading http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable//Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable//Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/openwrt-ixp4xx
Successfully terminated.
bash-3.2#
Let's get the magic flowing, you can either use the aionas from the deb (probably newer) in /usr/share/ultimate_edition/ or yank one directly from the web which is faster / easier:
- Code: Select all
bash-3.2# cd /bin/
bash-3.2# wget http://downloadue.info/NAS/aionas
--07:03:13-- http://downloadue.info/NAS/aionas
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20846 (20K) [text/plain]
Saving to: `aionas'
100%[===================================================================================================================================================>] 20,846 116K/s in 0.2s
07:03:13 (116 KB/s) - `aionas' saved [20846/20846]
bash-3.2# chmod +x aionas
bash-3.2# ./aionas
I suggest the same options as I have selected at least at this time:
- Code: Select all
#################################################################
Welcome to the TheeMahn's Goflex NAS all-in-one setup script...
#################################################################
What would you like to do?
1. Swap the ssh daemon? (y/n): n
2. Install Kernel NFS? (y/n): y
3. Install the IPKG package manager? (y/n): y
4. Move /opt to the harddrive (recommended if non NTFS drive)? (y/n): n
5. Remove Access Patrol (highly recommended)? (y/n): y
6. Setup the PATH variable (a must)? (y/n): y
7. Install NZBget? (y/n): n
8. Install NZBget-server? (y/n): n
9. Install Mediatomb server? (y/n): y
10. Kill unecessary service cupsd printer daemon? (y/n): y
11. Install transmission torrent daemon and client? (y/n): y
12. Enable Secure FTP? (y/n): n
13. Install common tools (nano, bash etc) & codecs? (y/n): y
14. Install pyload?Note: Requires above option move to /opt/ to be selected
and the NAS drive to be formated in a linux based format
EXT3, EXT4, XFS etc. (y/n):
n
Path has be set to:
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/sbin:/opt/sbin:/usr/sbin:/sbin
Installing IPKG...
--07:05:59-- http://downloadue.info/NAS/Firmware/ipkg-opt_0.99.163-10_arm.ipk
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74474 (73K) [application/vnd.shana.informed.package]
Saving to: `/tmp/ipkg.ipk'
100%[=====================================================================================================================================================>] 74,474 262K/s in 0.3s
07:06:00 (262 KB/s) - `/tmp/ipkg.ipk' saved [74474/74474]
Downloading http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/nslu2
Downloading http://ipkg.nslu2-linux.org/feeds/optware/fsg3/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/fsg3
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/ddwrt
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/xwrt
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/whiterussian
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/oleg
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ts72xx/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/ts72xx
Downloading http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/openwrt-brcm24
Downloading http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable//Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable//Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/openwrt-ixp4xx
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/seagateplug-stable
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/seagateplug-unstable
Successfully terminated.
Error: Your NAS drive is formatted in NTFS which does not support permissions for /opt useage.
Setting up Kernel NFS...
--07:06:20-- http://downloadue.info/NAS/Firmware/nfs-utils_GFH_tar.gz
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 265251 (259K) [text/plain]
Saving to: `/tmp/nfs.tar.gz'
100%[=====================================================================================================================================================>] 265,251 480K/s in 0.5s
07:06:21 (480 KB/s) - `/tmp/nfs.tar.gz' saved [265251/265251]
nfsd 104116 1
exportfs 4512 1 nfsd
nfs_acl 3136 1 nfsd
--07:06:22-- http://downloadue.info/NAS/Firmware/nfslock
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2656 (2.6K) [text/plain]
Saving to: `nfslock'
100%[=====================================================================================================================================================>] 2,656 --.-K/s in 0s
07:06:22 (70.3 MB/s) - `nfslock' saved [2656/2656]
Starting portmap: [ OK ]
Starting NFS services: exportfs: failed to lock /var/lib/nfs/etab
[ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS statd: [ OK ]
Starting NFS statd: [ OK ]
/home/0common 192.168.0.100/255.255.255.0(rw,wdelay,no_root_squash,no_subtree_check)
To mount the NFS share on the client ie Ultimate Edition, Ubuntu etc:
sudo mkdir -p /media/NASNFS
sudo mount 192.168.0.100:/home/0common /media/NASNFS
To mount on boot add the following to your /etc/fstab/:
192.168.0.100:/home/0common /media/NASNFS nfs rsize=8192,wsize=8192,timeo=14,intr
Disabling Access Patrol...
Stopping access-patrol: [ OK ]
Installing mediatomb media server...
Installing mediatomb (0.11.0-5) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/mediatomb_0.11.0-5_arm.ipk
Installing file (5.09-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/file_5.09-1_arm.ipk
Installing zlib (1.2.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/zlib_1.2.5-1_arm.ipk
Installing libexif (0.6.19-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libexif_0.6.19-1_arm.ipk
Installing libstdc++ (6.0.9-6) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libstdc++_6.0.9-6_arm.ipk
Installing ossp-js (1.6.20070208-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ossp-js_1.6.20070208-1_arm.ipk
Installing sqlite (3.7.14.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/sqlite_3.7.14.1-1_arm.ipk
Installing readline (6.1-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/readline_6.1-2_arm.ipk
Installing ncurses (5.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ncurses_5.7-1_arm.ipk
Installing expat (2.0.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/expat_2.0.1-1_arm.ipk
Installing taglib (1.6.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/taglib_1.6.3-1_arm.ipk
Configuring expat
Configuring file
Configuring libexif
Configuring libstdc++
Configuring mediatomb
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring ossp-js
Configuring readline
Configuring sqlite
Configuring taglib
Configuring zlib
Successfully terminated.
Starting mediatomb: ok
sed: -e expression #1, char 46: unknown option to `s'
Shutting down mediatomb: ok
Starting mediatomb: ok
Killing cups and preventing from startup...
Installing Transmission torrent client and daemon...
--07:07:19-- http://downloadue.info/NAS/Firmware/transmission-1_92_ARM_Stora_tar
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 962560 (940K) [text/plain]
Saving to: `transmission-1_92_ARM_Stora_tar'
100%[=====================================================================================================================================================>] 962,560 970K/s in 1.0s
07:07:20 (970 KB/s) - `transmission-1_92_ARM_Stora_tar' saved [962560/962560]
transmission/
transmission/init.d/
transmission/init.d/transmission-daemon
transmission/README
transmission/web/
transmission/web/images/
transmission/web/images/favicon.ico
transmission/web/images/favicon.png
transmission/web/images/progress/
transmission/web/images/progress/Makefile.am
transmission/web/images/progress/Makefile.in
transmission/web/images/progress/progress.png
transmission/web/images/progress/Makefile
transmission/web/images/webclip-icon.png
transmission/web/images/graphics/
transmission/web/images/graphics/logo.png
transmission/web/images/graphics/Makefile.am
transmission/web/images/graphics/Makefile.in
transmission/web/images/graphics/chrome.png
transmission/web/images/graphics/Makefile
transmission/web/images/graphics/transfer_arrows.png
transmission/web/images/graphics/filter_icon.png
transmission/web/images/graphics/filter_bar.png
transmission/web/images/graphics/iphone_chrome.png
transmission/web/images/buttons/
transmission/web/images/buttons/Makefile.am
transmission/web/images/buttons/Makefile.in
transmission/web/images/buttons/info_trackers.png
transmission/web/images/buttons/info_files.png
transmission/web/images/buttons/info_general.png
transmission/web/images/buttons/tab_backgrounds.png
transmission/web/images/buttons/Makefile
transmission/web/images/buttons/torrent_buttons.png
transmission/web/images/buttons/file_priority_buttons.png
transmission/web/images/buttons/toolbar_buttons.png
transmission/web/images/buttons/file_wanted_buttons.png
transmission/web/images/buttons/cancel.png
transmission/web/images/buttons/info_activity.png
transmission/web/index.html
transmission/web/stylesheets/
transmission/web/stylesheets/iphone.css
transmission/web/stylesheets/common.css
transmission/web/stylesheets/ie6.css
transmission/web/stylesheets/ie7.css
transmission/web/javascript/
transmission/web/javascript/jquery/
transmission/web/javascript/jquery/jquery.min.js
transmission/web/javascript/jquery/jquery.transmenu.min.js
transmission/web/javascript/jquery/jquery.contextmenu.min.js
transmission/web/javascript/jquery/json.min.js
transmission/web/javascript/jquery/jquery.form.min.js
transmission/web/javascript/transmission.remote.js
transmission/web/javascript/menu.js
transmission/web/javascript/dialog.js
transmission/web/javascript/common.js
transmission/web/javascript/torrent.js
transmission/web/javascript/transmission.js
transmission/transmission-daemon
Starting transmission-daemon: [ OK ]
john 15440 1 1 07:07 ? 00:00:00 /usr/local/bin/transmission-daemon -g /home/john/.config/transmission-daemon/
Shutting down transmission-daemon: [ OK ]
--07:07:27-- http://downloadue.info/NAS/Firmware/blocklist.bin
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1816640 (1.7M) [application/octet-stream]
Saving to: `blocklist.bin'
100%[=====================================================================================================================================================>] 1,816,640 1.25M/s in 1.4s
07:07:28 (1.25 MB/s) - `blocklist.bin' saved [1816640/1816640]
Starting transmission-daemon: [ OK ]
rm: cannot remove `transmission-1_92_ARM_Stora_tar': No such file or directory
rm: cannot remove `transmission': No such file or directory
Installing common tools...
Installing nano (2.2.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/nano_2.2.6-1_arm.ipk
Installing bash (3.2.49-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/bash_3.2.49-1_arm.ipk
Installing faad2 (2.6-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/faad2_2.6-3_arm.ipk
Installing ffmpeg (0.svn20080409-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ffmpeg_0.svn20080409-3_arm.ipk
Installing flac (1.2.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/flac_1.2.1-1_arm.ipk
Installing libogg (1.2.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libogg_1.2.1-1_arm.ipk
Installing freetype (2.3.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/freetype_2.3.6-1_arm.ipk
Installing fribidi (0.10.9-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/fribidi_0.10.9-1_arm.ipk
Installing liba52 (0.7.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/liba52_0.7.4-1_arm.ipk
Installing libdvbpsi (0.1.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libdvbpsi_0.1.5-1_arm.ipk
Installing libdvdnav (0.1.10-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libdvdnav_0.1.10-1_arm.ipk
Installing libdvdread (0.9.7-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libdvdread_0.9.7-2_arm.ipk
Installing libid3tag (0.15.1b-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libid3tag_0.15.1b-1_arm.ipk
Installing libmad (0.15.1b-4) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libmad_0.15.1b-4_arm.ipk
Installing libmpcdec (1.2.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libmpcdec_1.2.6-1_arm.ipk
Installing libmpeg2 (0.4.1-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libmpeg2_0.4.1-2_arm.ipk
Package libogg (1.2.1-1) installed in root is up to date.
Installing libpng (1.2.44-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libpng_1.2.44-1_arm.ipk
Installing libshout (2.2.2-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libshout_2.2.2-2_arm.ipk
Installing libvorbis (1.3.2-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libvorbis_1.3.2-1_arm.ipk
Installing speex (1.2rc1-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/speex_1.2rc1-2_arm.ipk
Installing libupnp (1.6.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libupnp_1.6.6-1_arm.ipk
package libupnp suggests installing ushare
Package libvorbis (1.3.2-1) installed in root is up to date.
Installing libxml2 (2.7.8-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libxml2_2.7.8-1_arm.ipk
Installing ncursesw (5.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ncursesw_5.7-1_arm.ipk
Package speex (1.2rc1-2) installed in root is up to date.
Installing avahi (0.6.30-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/avahi_0.6.30-1_arm.ipk
Installing libdaemon (0.14-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/libdaemon_0.14-1_arm.ipk
Installing dbus (1.2.16-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/dbus_1.2.16-1_arm.ipk
Installing adduser (1.10.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/adduser_1.10.3-1_arm.ipk
Installing x264 (0.0.20090220-svn2245-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/x264_0.0.20090220-svn2245-1_arm.ipk
Configuring adduser
update-alternatives: Linking //opt/bin/su to /opt/bin/adduser-su
Configuring avahi
Configuring bash
Configuring dbus
No messagebus user found, creating it... done
Configuring faad2
Configuring ffmpeg
Configuring flac
Configuring freetype
Configuring fribidi
Configuring liba52
Configuring libdaemon
Configuring libdvbpsi
Configuring libdvdnav
Configuring libdvdread
Configuring libid3tag
Configuring libmad
Configuring libmpcdec
Configuring libmpeg2
Configuring libogg
Configuring libpng
Configuring libshout
Configuring libupnp
Configuring libvorbis
Configuring libxml2
Configuring nano
Configuring ncursesw
Configuring speex
Configuring x264
Successfully terminated.
--07:09:18-- http://downloadue.info/NAS/Firmware/html.tar.gz
Resolving downloadue.info... 50.63.124.125
Connecting to downloadue.info|50.63.124.125|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 534648 (522K) [application/x-tar]
Saving to: `html.tar.gz'
100%[=====================================================================================================================================================>] 534,648 691K/s in 0.8s
07:09:19 (691 KB/s) - `html.tar.gz' saved [534648/534648]
html/index.php
html/deb.png
html/favico.ico
html/header.html
html/images.png
html/premium.png
html/README
html/style.css
html/arrow.gif
html/arrow_over.gif
html/back.gif
html/back.png
html/bg.gif
html/bg.png
html/bg-1.jpg
html/button1a.gif
html/button4.gif
html/chrome.js
html/chromebg.png
html/chromestyle.css
html/Co-Brand-Logos-Stora.png
html/doc.png
html/down.gif
html/folder.png
html/footer.html
html/gears.png
html/hover.gif
html/iso.gif
html/media.png
html/pantallazo3.png
html/run.png
html/stora.png
html/userContent.css
html/Co-Brand-Logos-Seagate.png
html/
15. Reboot NAS drive? (y/n): y
Broadcast message from root (pts/0) (Thu Dec 6 07:09:47 2012):
The system is going down for reboot NOW!
bash-3.2# exit
exit
-bash-3.2$ exit
logout
Connection to 192.168.0.100 closed.
theemahn@JackHammer:~$
For those interested in the code executed on the NAS. Now go and hook your NAS up to your PS3 / Bluray Player or stream movies to your PC. Go grab a few torrents and put it to work

Yes, I know the NAS drives do not show up on my conky, I am working on that.