SharePoint Stuff



Installing Slimserver on the Linkstation

Written by admin. Posted in LinkStation

After flashing the Drive installing the tools and MySQL your ready to install slim 6.5.1

cd /mnt/hda/opt/
addgroup slimserv
adduser slimserv -g slimserv
passwd slimserv
wget http://www.slimdevices.com/downloads/SlimServer_v6.5.1/SlimServer_v6.5.1.tar.gz
tar -xzvf SlimServer_v6.5.1.tar.gz
mv SlimServer_v6.5.1 /mnt/slimserver
cd /mnt/slimserver/Bin
mkdir mipsel-linux-gnu-thread-multi
cd mipsel-linux-gnu-thread-multi
ln -s /mnt/hda/opt/mysql mysqld
/mnt/slimserver/Bin/build-perl-modules.pl

enter the relevent paths for your install

==
Install /mnt/slimserver
Extract <enter with defaults>
Tmp /mnt/slimserver
==
mkdir /mnt/hda/opt/slim-data
cd /mnt/hda/opt/
chown -R slimserv:slimserv slim-data
cd /mnt/
chown -R slimserv:slimserv slimserver

 

To make it start automatically do this
cd /etc/init.d/
create a file called slimserver containing the following:

====
#!/bin/sh

# slimserver init.d script for Linux
#
# Daemon needs to be your install path
DAEMON=/mnt/slimserver/slimserver.pl
PIDFILE=/var/tmp/slimserver.pid
LOGFILE=/mnt/hda/opt/slim-data/slimserver.log
USER=slimserv
SLIMSERVER_OPTS=””

test -x ${DAEMON} || exit 0

case “$1” in
 start) echo -n “Starting Slimserver: ”
  HOME=/home/$USER
  start-stop-daemon –start –quiet –exec $DAEMON
   –chuid ${USER} — –daemon
   –prefsfile=/mnt/hda/opt/slim-data/slimserver.pref –pidfile=${PIDFILE}
   –cachedir=/mnt/hda/opt/slim-data –pidfile=${PIDFILE}
   –logfile=${LOGFILE} ${SLIMSERVER_OPTS}
  echo “slimserver started”
  ;;

 stop) echo -n “Stopping Slimserver: ”
 start-stop-daemon –stop –quiet –user ${USER} –pidfile ${PIDFILE} –retry 5
 echo “done”
 ;;

  force-reload|restart) $0 stop
   $0 start
   ;;

  *) echo “Usage: $0 {start|stop|restart|force-reload}”
     exit 1;
     ;;

esac

exit 0

 

====
chmod +x /etc/init.d/slimserver
cd /etc/rc.d/rc2.d
ln -s /etc/init.d/slimserver S90slimserver
Slimserver runs well at streaming but the interface can be a bit sluggish – this I need to sort out later ..

Installing MySQL On the Linkstation

Written by admin. Posted in LinkStation

Installing MySQL 4.1.22

cd /mnt/hda/misc
wget http://ftp.up.ac.za/pub/windows/MySQL/Downloads/MySQL-4.1/mysql-4.1.22.tar.gz
tar -zxvf mysql-4.1.22.tar.gz
cd mysql-4.1.22
groupadd mysql
useradd -g mysql mysql
export CFLAGS=-O3
export CXXFLAGS=-O3
./configure –prefix=/mnt/hda/opt/mysql –with-readline –without-debug
make
make install

Then install the Dev tools

cd /mnt/hda/misc
wget http://momonga.nahi.to/pub/mips/mipsel/MySQL-devel-4.0.25-1m.mipsel.rpm
rpm2cpio MySQL-devel-4.0.25-1m.mipsel.rpm | cpio -di
cp -r usr/* /usr

SQL Done

Buffalo Linkstation Flashing

Written by admin. Posted in LinkStation

These articles are not complete but they should be able to assist with baselining the NAS with Linux:

Flash here:

http://linkstationwiki.net/index.php?title=The_LinkStation_firmware_flasher

==========
Start by creating the following

mkdir /mnt/hda/misc
mkdir /mnt/hda/opt
After that you should install the development tools. cd /mnt/hda/misc
wget http://downloads.linkstationwiki.net/development_tools/mipsel-tools-2_1.tgz
mkdir devtools
cd devtools
tar -xzvf ../mipsel-tools-2_1.tgz
./install.sh

Install expat
cd /mnt/hda/misc
wget http://switch.dl.sourceforge.net/sourceforge/expat/expat-1.95.8.tar.gz
tar -xzvf /mnt/hda/misc/expat-1.95.8.tar.gz
cd expat-1.95.8
./configure –prefix=/usr
make install

for more information please see www.linkstationwiki.com