![]() |
|
OpenWRT or router install - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: OpenWRT or router install (/showthread.php?tid=1361) |
OpenWRT or router install - hooliganshark - 07-03-2014 11:04 Very very happy with MinimServer on my Raspberry Pi. It just works. ![]() In the constant search for reducing the number of boxes and cables, I wondered whether it was possible to run MinimServer on a router - perhaps one running OpenWRT? In that scenario I would plug in my USB drive with all my music. My router is pretty old but even so has USB sockets and a UPnP server - which I never used, and I could not go without MinimServer now. I have always assumed that the router would not be capable of handling a large music library... Anyone had any experience of using it on a router, or any comments on whether it would be feasible? thanks RE: OpenWRT or router install - simoncn - 07-03-2014 18:10 (07-03-2014 11:04)hooliganshark Wrote: Very very happy with MinimServer on my Raspberry Pi. It just works. Which router do you have? Are you comfortable using Linux commands? RE: OpenWRT or router install - hooliganshark - 07-03-2014 18:42 The router I have (SFR Neufbox) is not something I could use for this, I think, however if there has been positive experience with one of the open firmwares, it would be worth hunting down another router. I am ok with basic Linux commands so could have a go. This is as much for fun as anything else! My Pi hangs off the router and I have a USB drive plugged in to a USB hub. All works fine. But if I could put minimserver on a router I could use the Pi as a client
RE: OpenWRT or router install - hooliganshark - 07-03-2014 19:44 Ah, turns out that there is a lot of info out there about my router eg http://www.neufbox4.org/blog/ I might reach the limit of my linux skills and french knowledge quite quickly ![]() But I can see that if I replace the official firmware with openwrt the DSL modem will not work. So it would be better to continue to use it just as a modem, and look out for another router for running as my minimserver, if someone has had success with one? RE: OpenWRT or router install - simoncn - 07-03-2014 19:50 (07-03-2014 19:44)hooliganshark Wrote: Ah, turns out that there is a lot of info out there about my router eg A quick look at this page has already exhausted my French language skills. ![]() You might be able to run a client on the Raspberry Pi as well as MinimServer. I don't know of anyone who has got MinimServer running on a router. The starting point would be the generic Linux downloads. RE: OpenWRT or router install - hooliganshark - 07-03-2014 20:08 Thanks Simon - was worth asking. The Pi is in a cupboard so too far from anything to use as a client. I could always look for another Pi, but I thought I would ask about the router first. RE: OpenWRT or router install - alexinc - 01-01-2015 18:03 hi guys, i'm trying to get rid of the crappy firmware my medion nas came with and switched over to openwrt! of course i cant live without minimserver and i couldnt imagine that getting java on openwrt would be that tricky. i managed to build my own firmware including jamvm 1.6 as java runtime, but noticed its based on java 1.5 so i guess/hope my only problem is now to get jamvm 2.0 running on openwrt as it supports the latest java versions. can you confirm that following error is just caused by old java runtime or do i have to edit various path variables? root@NAS-Server:/# /usr/bin/jamvm /usr/share/minimserver/minimserver-0.8.3/bin/startc Exception in thread "main" java.lang.NoClassDefFoundError: /usr/share/minimserver/minimserver-0/8/3/bin/startc <<No stacktrace available>> Caused by: java.lang.ClassNotFoundException: .usr.share.minimserver.minimserver-0.8.3.bin.startc not found in java.lang.ClassLoader$1{urls=[file://./], parent=null} at java.net.URLClassLoader.findClass(URLClassLoader.java:531) at java.lang.ClassLoader.loadClass(ClassLoader.java:341) at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112) at java.lang.ClassLoader.loadClass(ClassLoader.java:293) any other idea how we could minimserver into openwrt world? ![]() cheers! RE: OpenWRT or router install - simoncn - 01-01-2015 18:35 (01-01-2015 18:03)alexinc Wrote: hi guys, Your command line: /usr/bin/jamvm /usr/share/minimserver/minimserver-0.8.3/bin/startc is wrong. This isn't caused by the oild version of Java. To fix the command-line problem, you need to put a link to /usr/bin/jamvm with the name "java" somewhere in your PATH, for example: ln -s /usr/share/jamvm /usr/local/bin/java To check this has worked, type the command: java -version To launch MinimServer, type the command: /usr/share/minimserver/bin/startc RE: OpenWRT or router install - alexinc - 01-01-2015 19:38 thx for your helping hand! first what i got after building firmware with jamvm succesfully running:root@NAS-Server:/# jamvm -version java version "1.5.0" JamVM version 1.6.0-devel Copyright © 2003-2011 Robert Lougher <rob@jamvm.org.uk> 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 2, 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. Build information: Execution Engine: direct-threaded interpreter with stack-caching Compiled with: gcc 4.8.3 Boot Library Path: /usr/lib/classpath Boot Class Path: /usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip following your hints i'm getting: root@NAS-Server:/# /usr/share/minimserver/bin/startc /usr/share/minimserver/bin/startc: line 41: java: not found as i had to create /usr/local/bin/java i'm guessing i have to change ln -s to another directory? RE: OpenWRT or router install - alexinc - 01-01-2015 19:42 alright, after copying jamvm to java, im getting what i feared: root@NAS-Server:/usr/bin# /usr/share/minimserver/bin/startc MinimServer: Java 7 or later is required: current version is 1.5.0 java.lang.reflect.InvocationTargetException at java.lang.reflect.VMMethod.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:327) at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50) Caused by: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607) at javax.swing.plaf.basic.BasicLookAndFeel.initialize(BasicLookAndFeel.java:1720) at javax.swing.UIManager.setLookAndFeel(UIManager.java:912) at javax.swing.UIManager.<clinit>(UIManager.java:245) at org.jminim.launch.Launcher.reportErrorUC(Launcher.java:427) at org.jminim.launch.Launcher.launch(Launcher.java:118) at com.minimserver.launch.LaunchServer.main(LaunchServer.java:30) at java.lang.reflect.VMMethod.invoke(Native Method) ...2 more Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path at java.lang.Runtime.loadLibrary(Runtime.java:763) at java.lang.System.loadLibrary(System.java:670) at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:177) at java.lang.VMClass.forName(Native Method) at java.lang.Class.forName(Class.java:233) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583) ...9 more |