Post Reply 
minim on Slax linux
20-02-2015, 10:46
Post: #2
RE: minim on Slax linux
(18-02-2015 17:47)roadster Wrote:  I have just built a low power server based on Slax which is booted from a small usb stick. Installing standard Linux distribution Minimserver was not difficult after I had installed a standard Java 8 JRE distribution. (None of the SLAX pre-built java modules worked).

I did have some problems getting it to start automatically on boot up. I added the startd script to /etc/rc.d/rc.local where I already have a zfs storage pool imported and mounted.
It did not work because ( I suspect) the Java environment variables and PATH had not yet been established.

Looking more closely at the startd script I notice that an attempt is made to derive the java executable location from the file minimstart.conf and assign it to the variable JAVA . So I created this file and put this line in it:-
java=path to ...bin/java
This didn't work! Looking at the grep pattern used to read the conf file I couldn't fully understand it so I made a simpler version of the pattern that did work. I also have JAVA_HOME defined in rc.local.

This did the trick and started the minimserver daemon as required. But unfortunately it caused another problem. Somehow the X display initialisation was disrupted and the KDE desktop never appeared. I did try reducing the priority using the nice command but this was only partly successful and also left the daemon running with reduced priority. Eventually after further dissecting the startd script I added a 60 second delay ( sleep 60) right at the end to give KDE time to start up first. This seems to be working.

There is every chance that I have hacked the script about unnecessarily because of lack of understanding so feel free to tell me how it should be done.

Minim is working well, both server and streamer, so many thanks to the developers.

The \s in the grep pattern is there to ignore any spaces between java and =. It seems that different versions of grep handle this differently. The ^ in the grep pattern is there to make sure java appears at the start of the line.

Did you try running minimserver/bin/setup and enabling automatic startup? Have you run minimserver/bin/setup and enabled desktop integration?

If you are adding automatic startup yourself (not via minimserver/bin/setup), it is important to use startd init rather than just startd.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
minim on Slax linux - roadster - 18-02-2015, 17:47
RE: minim on Slax linux - simoncn - 20-02-2015 10:46
RE: minim on Slax linux - roadster - 20-02-2015, 14:15
RE: minim on Slax linux - simoncn - 20-02-2015, 18:16
RE: minim on Slax linux - roadster - 21-02-2015, 10:25
RE: minim on Slax linux - roadster - 17-10-2016, 10:05
RE: minim on Slax linux - simoncn - 17-10-2016, 11:06
RE: minim on Slax linux - roadster - 17-10-2016, 16:57
RE: minim on Slax linux - simoncn - 17-10-2016, 17:24

Forum Jump:


User(s) browsing this thread: 1 Guest(s)