PDA

View Full Version : Slimserver 6.5 - linkstation - freelink



stevos
2006-10-04, 01:13
I have had a look at the instructions for installing freelink and they don't seem to bad.

Could someone give me step by step instructions on installing slimserver6.5 on a freelink system.

Cheers
Steve.

aubuti
2006-10-04, 07:54
Dang, I knew I should have written it down when I was doing it! Anyway, I'll try to find the time to write up and post the steps I used for a PowerPC LinkStation.

In the meantime, you could go ahead and reflash your LS to FreeLink, and install slimserver 6.3.1. Upgrading is usually easier if you're sure you have a previous version working first. Then going to 6.5 will just be repeating those steps, plus the additional steps for MySQL.

It would also be a good idea to go ahead and install other packages you'll need after reflashing. The most notable example is Samba, which you'll need if you ever want to add tracks to your library. Samba is pre-installed on the LS factory firmware, and it is preserved when you use OpenLink, but FreeLink wipes it out completely.

EDIT: I forgot to mention that the linkstationwiki.net site and forum will have all the info you need for getting FreeLink and other utilities installed. Then you can use the instructions in the Slim Devices wiki (with link to Marc Field's site) for installing slimserver 6.3.1. Oh, and when you flash to FreeLink, believe what they say about the DHCP setting on your router. I think DHCP has to be enabled, but double check the docs and forum at linkstationwiki.net.

stevos
2006-10-05, 04:42
That would be great. I may also need help with openlink, but here's hoping.

aubuti
2006-10-05, 08:21
Is that a typo, or did you really mean to say openlink? You don't need to go through openlink to install freelink, and I would advise against doing it. OpenLink and FreeLink serve the same basic function, which is to "open" the LinkStation so that the user can install software on it.

stevos
2006-10-05, 10:52
Yeah just got confused.

aubuti
2006-10-05, 10:59
Okay, glad to hear it. Like I said earlier, you don't need to wait for the 6.5 instructions to get started. I'd suggest going ahead with reflashing to FreeLink (assuming you're comfortable with the instructions, which seems to be the case). And don't hesitate to post at the linkstationwiki.net forum if you have questions. They're a good group, and really know this stuff.

After you get it reflashed, install the various development tools and slimserver 6.3.x.

stevos
2006-10-05, 12:21
That was what i was going to ask, which dev tools do you need?

aubuti
2006-10-05, 13:32
First, it looks like there might be some obsolete information kicking around LSW about reflashing itself. I am pretty sure the one you want is the one at http://linkstationwiki.net/index.php?title=FreeLink_for_the_MIPSel_%28LS2%29_ LinkStation

Second, *don't* follow the link that says "Development Tools" in the projects section on the left side of the linkstationwiki.net (hereafter LSW) home page. Those are for OpenLink'd devices.

There's a good list of key packages to install at http://linkstationwiki.net/index.php?title=Install_key_Debian_packages. The GNU C++ compiler should be installed with the initial FreeLink reflash, but if it isn't, you can follow the links from this page.

FreeLink should also automatically install ssh (secure shell). If it doesn't, get it from http://linkstationwiki.net/index.php?title=Convert_from_telnet_to_SSH_%28both _OpenSSH_and_Dropbear%29

Then some others you'll want to install are listed on the Category Debian page at http://linkstationwiki.net/index.php?title=Category:Debian. From this page you'll want Samba, MySQL, and Webmin. Webmin will be your substitute for the web-based management interface that came with the stock LS firmware. Use it to configure Samba.

The key thing that I don't remember is whether FreeLink installs Perl automatically. Perl is essential for any version of slimserver. If your LS doesn't have Perl at this stage, follow the instructions on Marc Field's page at http://fieldnetworks.com/slim/linkstation3.html

Recommendation: don't try to do all of this at once, and don't start doing it at 11pm. Good luck.

stevos
2006-10-05, 14:45
cheers, about to start a two week holiday from work, shall give it a go then.

stevos
2006-10-08, 13:20
You were saying something about DHCP setting on the router, where can details of this be found.

I have flashed freelink but can only access the linkstaion when it is connected directly to my laptop, however this doesn't seem to allow the linkstation to connect to the internet.

Cheers
Steve.

aubuti
2006-10-08, 21:36
Well, if you can access the LS after flashing then you're in good shape -- congrats! So you shouldn't have to worry about the DHCP setting any more.

After flashing to FreeLink I had to temporarily add the following two lines to /etc/hosts so that the LS would know where to find the packages I was trying to get with apt-get. Later on I was able to get it to resolve normally, though right now I don't remember how.

194.109.137.218 security.debian.org
204.152.191.7 mirrors.kernel.org

aubuti
2006-10-08, 21:40
Okay, just took another look and see that I edited /etc/resolv.conf to include:

nameserver <my.router's.local.ip>

That might not be the best way to do it, but it works for me. Note that it has to be the local ip address (eg, something like 192.168.0.1) and not the public ip address. Other people sometimes insert the ip addresses of their ISP's name servers, which is more direct than what I've done.

stevos
2006-10-17, 08:04
okay freelink seems slightly easier so far, however i can't work out how to access webmin.

What is the default username / password or where can they be located?

stevos
2006-10-17, 08:14
Never mind worked it out. However still can't work out how to access the shared files on windows. Currently it requires a password and username which i don't know.

aubuti
2006-10-17, 08:57
Sharing directories to Windows is done by Samba, which can be configured through webmin. The username and password depends on how you configured Samba. Try defining a new share that includes your music library and see if you can access that. You'll also want to make sure that the username you connect with has appropriate permissions for those files/directories, or that Samba is configured with the right permissions.

stevos
2006-10-17, 09:00
right got to the slimserver part and coming up with the same error i go before

Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help
There was a problem creating Makefile - exiting!


What am i missing?

aubuti
2006-10-18, 01:41
It looks like you haven't installed MySQL, or that slimserver can't find it. See this thread, http://forums.slimdevices.com/showthread.php?t=25391 , and this one will probably help too http://forums.slimdevices.com/showthread.php?t=26468. In fact, you might want to print those threads, or bookmark them until you get this installed..... ;o)

Note that MySQL has to be at least version 4.1.x, and version 5.0 is recommended.

stevos
2006-10-18, 04:48
Hi,

It appears i am using mysql v4.0.24, how do i install version 5 or 4.1?

aubuti
2006-10-18, 12:53
Did you look at the second link I pointed you to? Like Dan Sully says, you need to update MySQL by using one of the 'testing' or 'unstable' repositories. Edit your /etc/apt/sources.list file to include a debian 'testing' or 'unstable' repository. (I think that's the right path, but I can't check it now because I'm literally on the other side of the world from my LS right now.) Then do 'apt-get update' to add the new repositories, and then you can upgrade *all* the mysql pieces using apt-get. When you're done, remove (or comment out) the testing/unstable repositories from your sources.list file.

Unfortunately, because my LS isn't available, I don't have access to the URL for the specific repository I used, but I'm pretty sure it ended in debian.de. A couple minutes with google or looking around debian.org should find it for you. And don't be put off by the scary words 'testing' and 'unstable' -- MySQL 5.0 is fine.

stevos
2006-10-18, 13:29
Will give it ago, out of interest the version of mysql that i currently have installed in a few minutes whilst mysql on openlink took hours. How long should mysql5.0 take to install via freelink /apt-get?

aubuti
2006-10-18, 13:45
It only took a few minutes when I installed it. Maybe 10-15 minutes max for all 4 mysql packages (mysql-server, mysql-client, mysql-common and libmysqlclient). Yours may go a little slower because of slower processor, but it certainly shouldn't take hours.

stevos
2006-10-18, 14:16
Oh i only typed the following to install it from scratch

apt-get install mysql-server

was i meant to do it for all 4 files?

aubuti
2006-10-18, 15:17
Uh, yeah...

stevos
2006-10-19, 08:26
I appear to be on the final straight.

I have everything freelink wise setup fine (instructions to follow)

Installed mysql-client via

apt-get install mysql-client-5.0

when i try the same for mysql-client and mysql-common (without the version numbers) it states i already have the latest versions in installed

I believe i also need libmysqlclient, however apt-get states no such module.

However i believe i have found the way around this my typing

apt-get install libmysqlclient15-dev

Fingers crossed, time to build the perl modules.

stevos
2006-10-19, 08:39
when building the perl modules the console comes up with loads of error messages. Is this normal?

aubuti
2006-10-19, 09:20
when i try the same for mysql-client and mysql-common (without the version numbers) it states i already have the latest versions in installed
What version do you have installed? I think the command to get the version information is "mysql -v". Type "mysql --help" to see what the command is. For the server the command is "mysqld -v".

And no, it's not normal to get loads of error messages. On the other hand, with earlier versions of slimserver I used to get lots of errors at that stage, and it still worked in the end, so keep those fingers crossed, no matter how hard it is to type that way.

stevos
2006-10-19, 09:23
using mysql -V gives

mysql Ver 14.12 Distrib 5.0.24a, for unknown-linux-gnu (mipsel) using readline 5.1

mysql -v gives

Your MySQL connection id is 6 to server version: 5.0.24a-Debian_9-log

p.s. unfortuntely it didn't work

i have installed linkomatix (giving samba and webmin)and expat, but nothing else

aubuti
2006-10-19, 09:36
MySQL version info looks okay. Hard to say what to do about "loads of error messages" or "unfortuntely it didn't work" without more details. You do need a C compiler (gcc) to compile the perl modules. What do you get from the command "which gcc"? Better yet, post the error messages that you're getting and give a little more background to "it didn't work".

stevos
2006-10-19, 09:39
which gcc gives

/usr/bin/gcc

too many errors to post, damn

aubuti
2006-10-19, 09:55
You've got a C compiler, that's good. Beyond that, don't know without seeing the errors. Can you start slimserver.pl from the command line (using the appropriate options like --daemon)?

stevos
2006-10-19, 09:56
By the way most of the errors seem to relate to the following directory.

usr/lib/perl/5.8/

stevos
2006-10-19, 10:00
here is an extract from the errors


Expat.xs:1701: error: syntax error before "eldeclhndlr"
Expat.xs:1703: error: `cbv' undeclared (first use in this function)
Expat.xs:1703: error: syntax error before ')' token
Expat.xs:1707: error: `eldeclhndlr' undeclared (first use in this function)
Expat.xs:1709: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetAttListDeclHandler':
Expat.c:1934: error: `XML_Parser' undeclared (first use in this function)
Expat.c:1934: error: syntax error before "parser"
Expat.xs:1719: error: `XML_AttlistDeclHandler' undeclared (first use in this function)
Expat.xs:1719: error: syntax error before "attdeclhndlr"
Expat.xs:1721: error: `cbv' undeclared (first use in this function)
Expat.xs:1721: error: syntax error before ')' token
Expat.xs:1725: error: `attdeclhndlr' undeclared (first use in this function)
Expat.xs:1727: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetDoctypeHandler':
Expat.c:1963: error: `XML_Parser' undeclared (first use in this function)
Expat.c:1963: error: syntax error before "parser"
Expat.xs:1737: error: `XML_StartDoctypeDeclHandler' undeclared (first use in this function)
Expat.xs:1737: error: syntax error before "dtsthndlr"
Expat.xs:1739: error: `cbv' undeclared (first use in this function)
Expat.xs:1739: error: syntax error before ')' token
Expat.xs:1744: error: `dtsthndlr' undeclared (first use in this function)
Expat.xs:1746: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetEndDoctypeHandler':
Expat.c:1993: error: `XML_Parser' undeclared (first use in this function)
Expat.c:1993: error: syntax error before "parser"
Expat.xs:1756: error: `XML_EndDoctypeDeclHandler' undeclared (first use in this function)
Expat.xs:1756: error: syntax error before "dtendhndlr"
Expat.xs:1758: error: `cbv' undeclared (first use in this function)
Expat.xs:1758: error: syntax error before ')' token
Expat.xs:1762: error: `dtendhndlr' undeclared (first use in this function)
Expat.xs:1764: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetXMLDeclHandler':
Expat.c:2022: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2022: error: syntax error before "parser"
Expat.xs:1775: error: `XML_XmlDeclHandler' undeclared (first use in this function)
Expat.xs:1775: error: syntax error before "xmldechndlr"
Expat.xs:1777: error: `cbv' undeclared (first use in this function)
Expat.xs:1777: error: syntax error before ')' token
Expat.xs:1781: error: `xmldechndlr' undeclared (first use in this function)
Expat.xs:1783: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetBase':
Expat.c:2051: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2051: error: syntax error before "parser"
Expat.xs:1803: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetBase':
Expat.c:2079: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2079: error: syntax error before "parser"
Expat.xs:1812: error: `parser' undeclared (first use in this function)
Expat.xs:1812: warning: initialization makes pointer from integer without a cast
Expat.c: In function `XS_XML__Parser__Expat_PositionContext':
Expat.c:2106: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2106: error: syntax error before "parser"
Expat.xs:1829: error: `parser' undeclared (first use in this function)
Expat.xs:1829: warning: initialization makes pointer from integer without a cast
Expat.c: In function `XS_XML__Parser__Expat_DefaultCurrent':
Expat.c:2222: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2222: error: syntax error before "parser"
Expat.xs:1920: error: `cbv' undeclared (first use in this function)
Expat.xs:1920: error: syntax error before ')' token
Expat.xs:1922: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_RecognizedString':
Expat.c:2242: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2242: error: syntax error before "parser"
Expat.xs:1930: error: `XML_DefaultHandler' undeclared (first use in this function)
Expat.xs:1930: error: syntax error before "dflthndl"
Expat.xs:1931: error: `cbv' undeclared (first use in this function)
Expat.xs:1931: error: syntax error before ')' token
Expat.xs:1934: error: `dflthndl' undeclared (first use in this function)
Expat.xs:1942: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetErrorCode':
Expat.c:2286: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2286: error: syntax error before "parser"
Expat.c:2290: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetCurrentLineNumber':
Expat.c:2304: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2304: error: syntax error before "parser"
Expat.c:2308: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetCurrentColumnNumber':
Expat.c:2322: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2322: error: syntax error before "parser"
Expat.c:2326: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetCurrentByteIndex':
Expat.c:2340: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2340: error: syntax error before "parser"
Expat.c:2344: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_GetSpecifiedAttributeCount' :
Expat.c:2358: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2358: error: syntax error before "parser"
Expat.c:2362: error: `parser' undeclared (first use in this function)
Expat.xs: In function `XS_XML__Parser__Expat_ErrorString':
Expat.xs:1983: warning: initialization makes pointer from integer without a cast
Expat.c: In function `XS_XML__Parser__Expat_OriginalString':
Expat.c:2522: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2522: error: syntax error before "parser"
Expat.xs:2091: error: `parser' undeclared (first use in this function)
Expat.xs:2091: warning: initialization makes pointer from integer without a cast
Expat.c: In function `XS_XML__Parser__Expat_SetStartCdataHandler':
Expat.c:2551: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2551: error: syntax error before "parser"
Expat.xs:2109: error: `cbv' undeclared (first use in this function)
Expat.xs:2109: error: syntax error before ')' token
Expat.xs:2110: error: `XML_StartCdataSectionHandler' undeclared (first use in this function)
Expat.xs:2115: error: `scdhndl' undeclared (first use in this function)
Expat.xs:2117: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_SetEndCdataHandler':
Expat.c:2580: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2580: error: syntax error before "parser"
Expat.xs:2127: error: `cbv' undeclared (first use in this function)
Expat.xs:2127: error: syntax error before ')' token
Expat.xs:2128: error: `XML_EndCdataSectionHandler' undeclared (first use in this function)
Expat.xs:2133: error: `ecdhndl' undeclared (first use in this function)
Expat.xs:2135: error: `parser' undeclared (first use in this function)
Expat.c: In function `XS_XML__Parser__Expat_UnsetAllHandlers':
Expat.c:2609: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2609: error: syntax error before "parser"
Expat.xs:2144: error: `cbv' undeclared (first use in this function)
Expat.xs:2144: error: syntax error before ')' token
Expat.xs:2149: error: `XML_StartNamespaceDeclHandler' undeclared (first use in this function)
Expat.xs:2149: error: syntax error before numeric constant
Expat.xs:2153: error: `parser' undeclared (first use in this function)
Expat.xs:2154: error: `XML_StartElementHandler' undeclared (first use in this function)
Expat.xs:2154: error: syntax error before numeric constant
Expat.xs:2158: error: `XML_UnknownEncodingHandler' undeclared (first use in this function)
Expat.xs:2158: error: syntax error before numeric constant
Expat.c: In function `XS_XML__Parser__Expat_ElementIndex':
Expat.c:2642: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2642: error: syntax error before "parser"
Expat.xs:2167: error: `cbv' undeclared (first use in this function)
Expat.xs:2167: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_SkipUntil':
Expat.c:2664: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2664: error: syntax error before "parser"
Expat.xs:2179: error: `cbv' undeclared (first use in this function)
Expat.xs:2179: error: syntax error before ')' token
Expat.c: In function `XS_XML__Parser__Expat_Do_External_Parse':
Expat.c:2687: error: `XML_Parser' undeclared (first use in this function)
Expat.c:2687: error: syntax error before "parser"
Expat.xs:2194: error: `cbv' undeclared (first use in this function)
Expat.xs:2194: error: syntax error before ')' token
Expat.xs:2197: error: `parser' undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make: *** [subdirs] Error 2
Couldn't find a valid dynamic library for XML-Parser-2.34.tar.gz - something is wrong. Exiting!

stevos
2006-10-19, 10:14
I get the same errors when i try to run v6.3.1.

The inital errors are along the lines of:

/usr/lib/perl/5.8/CORE/proto.h:2020: warning: `warn_unused_result' attribute directive ignored
/usr/lib/perl/5.8/CORE/proto.h:2023: warning: `warn_unused_result' attribute directive ignored

talks about makefile.pl not containing numeric value or something.

stevos
2006-10-19, 14:26
May have got somewhere.

using the unstable versions i did

apt-get install slimserver

and i now have a version of slimserver.pl running when i do

ps -A

However no idea how to access the web interface to see which version it is. I tried 192.168.1.10:9000 without luck.

Any ideas
Steve.

stevos
2006-10-19, 15:23
p.s.

i believe the reason 6.5 doesn't work comes down to the following error

Argument "6.30_01" isn't numeric in subroutine entry at Makefile.PL line 6