Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
minimserver on centos
20-05-2013, 21:11
Post: #11
RE: minimserver on centos
(20-05-2013 20:57)gillecaluim Wrote:  making progress....adding ohnet.subnet = 192.168.1.0 to minimwatch.conf and restarting
voila! minimwatch finds the server......

That's good progress! Smile

Quote:now, try to connect via windows laptop( which also has several network interfaces)
where is the minimwatch.conf located in windows?

C:\Users\your-user-name\AppData\Roaming\MinimWatch\data\minimwatch.config

The AppData folder is "hidden" in Explorer, so you need to enter the path on the Explorer address bar.
Find all posts by this user
Quote this message in a reply
20-05-2013, 22:15
Post: #12
RE: minimserver on centos
(20-05-2013 21:11)simoncn Wrote:  
(20-05-2013 20:57)gillecaluim Wrote:  making progress....adding ohnet.subnet = 192.168.1.0 to minimwatch.conf and restarting
voila! minimwatch finds the server......

That's good progress! Smile

Quote:now, try to connect via windows laptop( which also has several network interfaces)
where is the minimwatch.conf located in windows?

C:\Users\your-user-name\AppData\Roaming\MinimWatch\data\minimwatch.config

The AppData folder is "hidden" in Explorer, so you need to enter the path on the Explorer address bar.

that worked. Is there any way that minimwatch can automagically scan interfaces until it finds a server.....that way you could roam and wouldn't need to know what the dhcp server is handing out
Find all posts by this user
Quote this message in a reply
21-05-2013, 04:45
Post: #13
RE: minimserver on centos
Everything's working now and I put together a init.d script for RHEL/Centos which you're free to use/abuse/modify
the script has the minimserver untar'd into /usr/local/src/minimserver and you'll have to run ./autostart.sh initially so that you can create the minimserver.config file, then
1. chmod +x /etc/init.d/minimserver
2. chkconfig minimserver on
3.service minimserver start

/etc/init.d/minimserver:
#!/bin/sh
# Startup script for MinimServer Music Server on RedHat/CentOS (cPanel)
# chkconfig: 2345 95 55
# description: MinimServer UPnP Music Server
# processname: minimserver
NAME=minimserver
HOME=/usr/local/src/minimserver/data
PIDFILE=/var/run/$NAME.pid

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME

RETVAL=0

case "$1" in
start)
echo -n $"Starting $NAME "
cd $HOME
java -jar ../lib/minimserver.jar --noconsole --nohup >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$NAME

fi
[ $RETVAL -eq 0 ] && success $"$NAME startup" || failure $"$NAME startup"
echo
;;
stop)
echo -n $"Shutting down $NAME: "
killproc -p $PIDFILE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME
;;
restart)
$0 stop
$0 start
;;
status)
status $NAME -p $PIDFILE
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=1
esac

exit $RETVAL
Find all posts by this user
Quote this message in a reply
21-05-2013, 10:00
Post: #14
RE: minimserver on centos
(20-05-2013 22:15)gillecaluim Wrote:  that worked. Is there any way that minimwatch can automagically scan interfaces until it finds a server.....that way you could roam and wouldn't need to know what the dhcp server is handing out

Thanks for this suggestion. It would work if there's a running instance of MinimServer on exactly one interface subnet when MinimWatch is started. It wouldn't work if MinimWatch is started with no MinimServer instances currently active, because MinimWatch wouldn't know which interface subnet to use for listening. It also wouldn't do the right thing if there are MinimServer instances running on more than one interface subnet, because it would always choose the first interface subnet that has a running MinimServer instance and ignore the other interface subnets.

The simplest solution would be for ohNet to add support that allows a single MinimWatch process to listen on multiple interfaces, but I think that's unlikely to happen.

Another option is for the MinimWatch process to start proxy listener subprocesses for all available subnets. This would handle all cases correctly, but it would require quite a bit of work to implement the necessary interprocess communication and coordination.
Find all posts by this user
Quote this message in a reply
21-05-2013, 10:06
Post: #15
RE: minimserver on centos
(21-05-2013 04:45)gillecaluim Wrote:  Everything's working now and I put together a init.d script for RHEL/Centos which you're free to use/abuse/modify
the script has the minimserver untar'd into /usr/local/src/minimserver and you'll have to run ./autostart.sh initially so that you can create the minimserver.config file, then
1. chmod +x /etc/init.d/minimserver
2. chkconfig minimserver on
3.service minimserver start

Thanks very much for this!

I'm hoping to produce a .rpm package for MinimServer at some stage. This should make it simpler for RHEL/Centos users to install and run MinimServer.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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