I found out that I can install Mono on my Synology DS209. It has a 1,2 GHz Arm compatible processor and luckily Mono is included in the IPKG Packet system. As i’m a Windows developer i use putty to connect to the DS209 from my Windows machine. This might be interesting for other Diskstations: http://www.synology-wiki.de/index.php/Welchen_Prozessortyp_besitzt_mein_System%3F.
So i have made the following steps to install mono:
1. Connect with putty as root to the DS209
2. cd /volume1
3. wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
4. sh syno-mvkw-bootstrap_1.2-7_arm.xsh
5. ipkg update
6. ipkg install mono
7. Enter mono to check it runs.
So i have made the following steps to install mono:
1. Connect with putty as root to the DS209
2. cd /volume1
3. wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
4. sh syno-mvkw-bootstrap_1.2-7_arm.xsh
5. ipkg update
6. ipkg install mono
7. Enter mono to check it runs.
hi
ReplyDeletewill the dsm3.0 os software still works?
will it be a add-in?
gr.
yes, i know a user, who has upgraded to 3.0 and it works ! .NET is not a Add-In. It must be installed like described...
ReplyDeleteHi Michael, ich kann Mono per IPKG nicht installieren:
ReplyDeleteipkg install mono
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package mono.
Check the spelling or perhaps run 'ipkg update'
Hast Du da eine Idee?
Danke
Daniel
Hallo Daniel,
ReplyDeletewahrscheinlich musst Du tatsächlich 'ipkg update' eingeben. Das Paketmanagement holt sich dann die aktuelle Paketliste. Da sollte dann Mono dabei sein. Wenn das nichts nützt, welche Diskstation hast Du und hast Du Dir das dass dazu passende ipkg geholt?
Michael
Hi Michael,
ReplyDeleteAfter installing Mono and I try to run it but it doesn't find the Default.aspx page.
So I typed it in manually and then I just saw the source of the page.
Am I missing something? Any suggestions?
Hello ProTeus,
ReplyDeletei'm not sure what you actually mean by 'I try to run it'. Do you have your own ASP.NET Code and try to run it on synology ?. To be honest, i have never tried and tested it and it sure needs more installation. As there is no IIS you have to convience Apache to support mono. All I did, is to run C# Console Applications, which work pretty good.
Ah ok, because I was trying to run a web site, sorry for being a but unclear :)
ReplyDeleteThat's to bad because my Win server just died so I bought a Synology to replace most of it's functions and when I found this post I was really excited about perhaps getting ASP.NET web sites up and running.
Thanks anyway!
Hello Michael,
ReplyDeleteI'm writing a little late, I hope you'll get this. I'm having the same issue that Daniel is having "Cannot find package mono". I don't speak german. Could you lead me to a solution for this issue? I have a ds209 as well.
Thank you!
Hello Migs,
ReplyDeletehave you followed my instructions above.
I just repeat it:
Connect with putty as root to the DS209
2. cd /volume1
3. wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
4. sh syno-mvkw-bootstrap_1.2-7_arm.xsh
5. ipkg update [Enter]
6. ipkg install mono [Enter]
7. mono [Enter]
It is important, that you update the application list with step 5.
Please tell me if you have done all steps like described and it still does not work.
Michael
First of all thx for your help!
ReplyDeleteI have tried several time, removed the bootstrap, tried again... still the same error. I don't understand where the problem is coming from since I have the same server and am using the same address for the bootstrap. The logical conclusion would be that the mono package was removed from it but if it works for you it can't be a valid explanation...
Any other thoughts? :)
Hello Migs,
ReplyDeletethis might be a reason. Have you tried to play a little around with the ipkg command. there is a list command l where you can list which packages are available. In the moment i have no access to my DS209, but later, i will try out if anything changed with the available packages.
Michael
This is what happens when I type ipkg update:
ReplyDeleteDownloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
Then ipkg install mono:
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package mono.
Check the spelling or perhaps run 'ipkg update'
ipkg list shows that there is a package "moe", "monit", "most" but no "mono"...
Same thing if I look in the file /opt/lib/ipkg/lists/cross
Doesn't give much hope :)
Ok, i will try to give you access to my download. Maybe you can give it a try.
ReplyDeleteMichael
Yup that would be perfect! Thx :)
ReplyDeleteI have tried to find the mono install package on my box , but without success. I have to do a little more research and come back.
ReplyDeleteMichael
That's very nice, sorry for the hassle! I have search the whole internet, went to the darkest places of the ipkg forums and websites. Couldn't find it! :)
ReplyDeleteI noticed a website explaning how to compile it but looking at the comments it didn't look easy at all. I'm not sure to want to throw myself into this kind of trouble ;)
It has been removed, I have it installed on my box, but there is no ipkg named "mono" anymore.
ReplyDeleteThe version that was there was in unstable and was version 2.4:
Mono JIT compiler version 2.4 (tarball Tue Nov 30 04:48:32 UTC 2010)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp
Disabled: none
Hum... Does this mean that there is no way I can get mono installed on my NAS? Was that version 2.4 so much unstable that it had to be removed?
ReplyDeleteI have managed to compile mono 2.10.9 on Synology DS 211.
ReplyDeleteIt seems to build fine for both DSM 3.1 and 4.0.
I will make a binary build and some build instructions soon, but it will not be in ipkg format, just tar.bz2.
Ok as long as there are some minimum guide lines it should be fine! Thank you so much! :)
ReplyDeleteI finished writing the instructions:
ReplyDeletehttp://blog.hexad.dk/2012/03/mono-on-synology-nas-ds-211.html
Wow that was fast ;) I will definitly try that. I'll you know how it went. Thx :)
ReplyDeleteOk so I tried but unfortunately something must have gone wrong...
ReplyDeleteAfter the build took about 2 hours and I was displaying a lot warnings and ended like this:
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[4]: *** [libmonosgen-2.0.la] Error 1
make[4]: Leaving directory `/volume1/bootstrap/mono-2.11/mono/mini'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/volume1/bootstrap/mono-2.11/mono/mini'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/volume1/bootstrap/mono-2.11/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/volume1/bootstrap/mono-2.11'
make: *** [all] Error 2
Then I tried to install anyway and I got the following result:
/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[3]: *** [libmonosgen-2.0.la] Error 1
make[3]: Leaving directory `/volume1/bootstrap/mono-2.11/mono/mini'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/volume1/bootstrap/mono-2.11/mono/mini'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/volume1/bootstrap/mono-2.11/mono'
make: *** [install-recursive] Error 1
No bin folder created so...
I think I might wait for a package ;)
The error message looks like a cross-compile build issue, but I can't help you with that.
ReplyDeleteI have put up the binary build now:
http://blog.hexad.dk/2012/03/mono-211-binary-build-for-synology-211.html