[ NOTE: For correct display of characters in your browser, select UTF-8 ] I. HOWTO get serviio to run on boot Ubuntu server 11.10 ------------------------------------------------------- root@poligon:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.10 DISTRIB_CODENAME=oneiric DISTRIB_DESCRIPTION="Ubuntu 11.10" root@poligon:~# - root@poligon:~# uname -a Linux poligon 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux root@poligon:~# - root@poligon:~# apt-get install default-jre - root@poligon:~# apt-get install ffmpeg - root@poligon:~# reboot - root@poligon:~# wget http://download.serviio.org/releases/serviio-0.6.2-linux.tar.gz - root@poligon:~# tar -zxvf serviio-0.6.2-linux.tar.gz - root@poligon:~# cp -r serviio-0.6.2/ /usr/local/bin/ - vi /etc/init/serviio.conf [code] # Serviio - media server # # Serviio is a free media server. It allows you to stream your media files # (music, video or images) to renderer devices (e.g. a TV set, Bluray player, # games console or mobile phone) on your connected home network. description "serviio - media server" author "Rafał Szkodziński " start on (starting network-interface or starting network-manager or starting networking) stop on runlevel [!023456] script exec /usr/local/bin/serviio-0.6.2/bin/serviio.sh end script [/code] - root@poligon:~# reboot - root@poligon:~# initctl list | grep serviio serviio start/running, process 754 root@poligon:~# - root@poligon:~# ps aux | grep serviio root 754 0.0 0.0 4272 580 ? Ss 16:30 0:00 /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio.sh root 809 10.6 4.4 788388 92168 ? Sl 16:30 0:19 java -Xmx384M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=/usr/local/bin/serviio-0.6.2/library -Dserviio.home=/usr/local/bin/serviio-0.6.2 -classpath /usr/local/bin/serviio-0.6.2/lib/*:/usr/local/bin/serviio-0.6.2/config org.serviio.MediaServer root 1463 0.0 0.0 10488 884 tty1 S+ 16:33 0:00 grep --color=auto serviio root@poligon:~# - root@poligon:~# stop serviio serviio stop/waiting root@poligon:~# - root@poligon:~# ps aux | grep serviio root 1473 0.0 0.0 10488 880 tty1 S+ 16:33 0:00 grep --color=auto serviio root@poligon:~# - root@poligon:~# start serviio serviio start/running, process 1475 root@poligon:~# - root@poligon:~# ps aux | grep serviio root 1475 0.0 0.0 4272 584 ? Ss 16:34 0:00 /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio.sh root 1480 71.0 3.6 782060 74836 ? Sl 16:34 0:11 java -Xmx384M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=/usr/local/bin/serviio-0.6.2/library -Dserviio.home=/usr/local/bin/serviio-0.6.2 -classpath /usr/local/bin/serviio-0.6.2/lib/*:/usr/local/bin/serviio-0.6.2/config org.serviio.MediaServer root 1514 0.0 0.0 10488 884 tty1 S+ 16:34 0:00 grep --color=auto serviio root@poligon:~# - root@poligon:~# ls -al / razem 88 drwxr-xr-x 23 root root 4096 2012-03-24 15:24 . drwxr-xr-x 23 root root 4096 2012-03-24 15:24 .. drwxr-xr-x 2 root root 4096 2012-03-24 15:53 bin drwxr-xr-x 3 root root 4096 2012-03-24 15:54 boot drwxr-xr-x 15 root root 4580 2012-03-24 16:35 dev drwxr-xr-x 88 root root 4096 2012-03-24 16:47 etc drwxr-xr-x 4 root root 4096 2011-10-09 09:31 home lrwxrwxrwx 1 root root 32 2012-03-24 15:24 initrd.img -> /boot/initrd.img-3.0.0-12-server drwxr-xr-x 16 root root 4096 2012-03-24 15:53 lib drwxr-xr-x 2 root root 4096 2012-03-24 15:52 lib64 drwx------ 2 root root 16384 2012-03-24 15:19 lost+found drwxr-xr-x 5 root root 4096 2012-03-24 15:23 media drwxr-xr-x 2 root root 4096 2011-10-09 09:31 mnt drwxr-xr-x 2 root root 4096 2012-03-24 15:19 opt dr-xr-xr-x 89 root root 0 2012-03-24 17:30 proc drwx------ 4 root root 4096 2012-03-24 16:47 root drwxr-xr-x 13 root root 480 2012-03-24 16:35 run drwxr-xr-x 2 root root 4096 2012-03-24 15:54 sbin drwxr-xr-x 2 root root 4096 2011-06-21 20:45 selinux drwxr-xr-x 2 root root 4096 2012-03-24 15:19 srv drwxr-xr-x 13 root root 0 2012-03-24 17:30 sys drwxrwxrwt 7 root root 4096 2012-03-24 16:47 tmp drwxr-xr-x 11 root root 4096 2012-03-24 15:19 usr drwxr-xr-x 13 root root 4096 2012-03-24 15:36 var lrwxrwxrwx 1 root root 28 2012-03-24 15:24 vmlinuz -> boot/vmlinuz-3.0.0-12-server root@poligon:~# --- P.S. Tested and working well for the desktop version of Ubuntu development branch - 12.04. - Last edited on Fri Apr 04, 2012 - It also works on a fresh (stable / LTS), installation of 12.04 - Last edited on Tue Dec 25 20012 - It also works on the installation of 12.10 First my idea skip upstart. But it also worked. It consisted of was added to the /etc/rc.local the following entries: [code] if [ -x /usr/local/bin/serviio-0.6.2/bin/serviio.sh ]; then /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio.sh fi sleep 15 if [ -x /usr/local/bin/serviio-0.6.2/bin/serviio-console.sh ]; then /bin/sh /usr/local/bin/serviio-0.6.2/bin/serviio-console.sh fi [/code] This method is not recommended - use upstart. II. HOWTO run a serviio console by HUD interface? ------------------------------------------------- The following description shows the steps that enabled me to run the serviio console by HUD interface, followed by attaching icons of serviio console to Unity Launcher. First, we create '.desktop file' called serviio-console.desktop in your home directory using your favorite editor and fill it with the following contents: rafszk@poligon:~$ vi ~/.local/share/applications/serviio-console.desktop [code] [Desktop Entry] Name=Servioo Console GenericName=Servioo Console Comment=Configure and manage your DLNA server Name[pl]=Konsola Serviio GenericName[pl]=Konsola Serviio Comment[pl]=Konfiguracja i zarządzanie serwerem DLNA Name[ru]=Kонсоль Serviio GenericName[ru]=Kонсоль Serviio Comment[ru]=Настройка и управление сервером DLNA Name[uk]=Kонсоль Serviio GenericName[uk]=Kонсоль Serviio Comment[uk]=Налагодження та управління сервером DLNA Exec=/usr/local/bin/serviio-0.6.2/bin/serviio-console.sh Icon=/usr/local/bin/serviio-0.6.2/serviio_48x48.png Terminal=false Type=Application Categories=AudioVideo;Player;FileTransfer; Keywords=Player;Audio;Video;Server;Broadcast;UPnP; # vi: encoding=utf-8 [/code] It contained translation for the four locations (English, Polish, Ukrainian and Russian). You can add another location if you need to. Then we need an icon that is displayed when you're looking for a serviio console: root@poligon:~# cd /usr/local/bin/serviio-0.6.2/ && wget http://uid.atnus.com/tmp/OS/ubuntu/serviio_48x48.png Finally, update the database: root@poligon:~# update-desktop-database Now click the ALT+F1 -> Enter key, type 'serviio' and you should see a shortcut to the serviio console bears a pretty icon. We can now add it to the unity launcher bar by dragging the icon of the cloth strip. The final result of our work - http://uid.atnus.com/tmp/OS/ubuntu/serviio_hud.png