1 post from 2007
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
Installer Slimserver 6.5.1 sur un NSLU2
Ce guide est une traduction partielle de http://www.openfsg.com/forum/viewtopic.php?p=14920#14920 . Tout les crédits vont donc à "bpa of openfsg.com".
Téléchargement des sources
Vous pouvez trouver les sources de Slimserver 6.5.1 à l'adresse ci-dessous:
http://homepage.eircom.net/~altondsl/slim/ss65_6.5.1-1_armeb.ipk
Pour le télécharger sur le NSLU2, vous pouvez utiliser wget ou curl.
Installation
L'installation va placer les fichier aux emplacements suivant - De ce fait si vous utilisez déjà ces emplacements, veuillez déplacer les fichiers qui sont déjà dedans.
/home/slimserver
/opt/share/ss65
1) Login as root, and make sure your PATH is correct:
# export PATH=$PATH:/opt/libexec:/opt/bin
2) Add the slimserver group and user by editing /etc/passwd and /etc/group. Create the /home/slimserver folder.
3) Install the perl, expat and mysql packages. The slimserver ipkg will request them but it is better to do manually in case there are problems, you'll know where to look.
# ipkg update; ipkg install perl expat mysql perl-compress-zlib
4) Create the /home/slimserver folder, and add the slimserver group (edit /etc/group) and slimserver user (edit /etc/passwd).
5) Change current directory to where the ss65_6.5.1-1_armeb.ipk has been saved.
6) install the Slimserserver package with the command
# ipkg install ss65_6.5.1-1_armeb.ipk
Change the first line in /opt/share/ss65/slimserver.pl from "#!/usr/bin/perl -w" to "#!/opt/bin/perl -w", and fix some permissions:
# chmod a=rw /opt/share/ss65/Slim/Utils
# chmod -R a=rwx /opt/share/ss65
7) Edit /opt/share/ss65/MySQL/my.tt, add a "#" in front of "innodb_fast_shutdown = 1"
8) If it install goes OK, try the command
# slimserver
The response should be
Usage: /opt/bin/slimserver {start|stop|status|enable|disable|firewall|wanenable|wandisable|info}
9) If it works. then try
# slimserver info
10) To start slimserver used the command below - it will take a couple of minutes before your see a "Slimserver Started message"
# slimserver start
11) To see progress through log file you can do
# tail /home/slimserver/slimserver.log
The following is a normal start - the last line about port 9000 indicate web interface is ready.
# tail /home/slimserver/slimserver.log
http://nslu2:9000/
2007-01-22 20:39:37.8519 Attempt to free unreferenced scalar: SV 0x1bc6b4c.
2007-01-22 20:40:51.0064 Use of uninitialized value in join or string at /opt/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
2007-01-22 20:42:07.4538 Your data source needs to be configured. Please open your web browser,
2007-01-22 20:42:07.4763 go to the following URL, and click on the "Server Settings" link.
2007-01-22 20:42:07.4785 The URL to access SlimServer is now:
http://nslu2:9000/
12) By default slimserver will not start as part of boot - if you want this then add an executable script as /opt/etc/init.d/S85slimserver:
#!/bin/sh
/opt/bin/slimserver start
There is an issue with this build - there seems to be too many mysql processes started. bpa of openfsg.com is looking into it.