BubbleUPnP Server
Máy chủ BubbleUPnP
-
Cài đặt máy chủ phương tiện DLNA như minidlna
-
Cài đặt các gói cần thiết
ipkg install nano openjdk8-jre-headless
- Tải xuống và cài đặt BubbleUPnPServer
mkdir -p /opt/bubbleupnpserver
cd /opt/bubbleupnpserver
wget https://www.bubblesoftapps.com/bubbleupnpserver/BubbleUPnPServer-distrib.zip
unzip BubbleUPnPServer-distrib.zip
rm BubbleUPnPServer-distrib.zip
- Tạo tập lệnh khởi động
cat >> /opt/etc/init.d/S99bubbleupnpserver << 'EOF'
#!/bin/sh
DAEMON_PATH="/opt/bubbleupnpserver"
DAEMON="java -Xss256k -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding="UTF-8" -jar BubbleUPnPServerLauncher.jar"
DAEMONOPTS=""
NAME=BubbleUPnPServer
DESC="Runs BubbleUPnP"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/opt/etc/init.d/$NAME
case "$1" in
start)
printf "Starting $NAME..."
cd $DAEMON_PATH
PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!`
#echo "Saving PID" $PID " to " $PIDFILE
if [ -z $PID ]; then
printf "%s\n " "Fail"
else
echo $PID > $PIDFILE
printf "%s\n " " OK"
fi
;;
status)
printf "Checking $NAME..."
if [ -f $PIDFILE ]; then
PID=`cat $PIDFILE`
if [ -z "`ps w | grep ${PID} | grep -v grep`" ]; then
printf "%s " "Process dead but pidfile exists"
else
echo " Running"
fi
else
printf "%s\n " " Service not running!"
fi
;;
stop)
printf "Stopping $NAME..."
PID=`cat $PIDFILE`
cd $DAEMON_PATH
if [ -f $PIDFILE ]; then
kill -HUP $PID
printf "%s\n " " OK"
rm -f $PIDFILE
else
printf "%s\n " "pidfile not found"
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {status|start|stop|restart}"
exit 1
esac
EOF
Nhấn ENTER
- Làm cho tập lệnh có thể thực thi được
chmod +x /opt/etc/init.d/S99bubbleupnpserver
- Khởi động máy chủ
/opt/etc/init.d/S99bubbleupnpserver start
- Vào ip:58050 đợi khoảng 30s, mặc định Username Admin & password admin nếu hỏi, lúc này nhấn ok 2 lần


- Trên màn hình tiếp theo, nhấn Tự động phát hiện hoặc nhập địa chỉ ddns của bạn và nhấp vào Áp dụng , thay đổi tên người dùng và mật khẩu rồi nhấn Áp dụng

- Trên tab Máy chủ phương tiện, bạn sẽ thấy danh sách Máy chủ UPnP khả dụng
