More > JRiver Media Center 22 for Linux

Setup Guide: Installing Media Center on FreeNAS server

<< < (2/4) > >>

stevemac:
Thanks to mwilliams for this.  His instructions can be found at https://yabb.jriver.com/interact/index.php/topic,108981.0.html

I have split his instructions into two parts.  This one covers getting x11vnc to start at boot / restart upon failure.  Once this is working the VM's graphical console should be available via a VNC client after any restart

Note the ExecStart command references the x11vnc password path set when you stored the password

My x11vnc.service is

--- Code: ---jriver@deb64vm003:/etc/systemd/system$ cat x11vnc.service
[Unit]
     Description=x11vnc
     After=display-manager.service

[Service]
     Type=forking
     Environment=DISPLAY=:0
     User=jriver
     ExecStart=/usr/bin/x11vnc -rfbauth /home/jriver/.vnc/passwd -display :0 -geometry 1920x1080 -auth guess -forever -bg
     Restart=always
     RestartSec=10

[Install]
     WantedBy=graphical.target

jriver@deb64vm003:/etc/systemd/system$

--- End code ---

Next enable the service

--- Code: ---sudo systemctl enable x11vnc.service

--- End code ---

At this stage x11vnc is configured but not running.  Start x11vnc.service

--- Code: ---sudo systemctl start x11vnc.service

--- End code ---

Note you will need to modify this service if you desire to secure the VNC session over SSH.  This will be covered in a later section

stevemac:
As mentioned in an earlier post, VMs in iohyve cannot access the host storage directly. As such you will need to access data on the NAS via CIFS (SMB), NFS or another sharing protocol

I am currently using a CIFS share.  Once I had mounted the share correctly - I updated the/etc/fstab file to ensure the share was mounted when the guest was restarted


* Create a mount point.  In my case this was /mnt/shares/FreeNas_Media
* Mount the share
* Edit /etc/fstab.  In my case I added //192.168.1.99/FreeNas_Media  /mnt/shares/FreeNas_Media  cifs  username=xxxxxxxx,password=xxxxxxx,iocharset=utf8  0  0
Notes

* I used the IP address of the FreeNas Server.  I should probably use a name & allow the name to be resolved to an address
* The username and password have been removed.  I should probably change the setup & move the username & password into a separate file

stevemac:
Awesome Donkey has documented all the required steps.  I was able to follow them without a hiccup.  Recommend you use the stable repository unless you specifically want the latest

https://yabb.jriver.com/interact/index.php/topic,105985.0.html

stevemac:
(reserved) Configure MediaCenter as per your preferences

stevemac:
once again - thanks to mwilliams for documenting / sharing how to do this.  His instructions are at https://yabb.jriver.com/interact/index.php/topic,108981.0.html

I intentionally didn't create / enable the jriver.service at them same time as the x11vnc.service.  I wanted to ensure mediacenter was installed OK and stable.

Create the jriver.service file.  My current version is

--- Code: ---root@deb64vm003:/etc/systemd/system# cat jriver.service
  [Unit]
     Description=JRiver
     After=x11vnc.service

  [Service]
     Type=simple
     Environment=DISPLAY=:0
     User=jriver
     ExecStart=/usr/bin/mediacenter22 /MediaServer
     Restart=always
     RestartSec=10
     KillSignal=SIGHUP
     TimeoutStopSec=45
  [Install]
     WantedBy=graphical.target

root@deb64vm003:/etc/systemd/system#

--- End code ---

Enable the jriver.service

--- Code: ---Systemctl enable jriver.service

--- End code ---

Need to add instructions to test the service without rebooting.  Also add what logs to check if issues

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version