Install Logitech Media Server on a Virtual Ubuntu Machine on a QNAP NAS

See this video over on YouTube

Using a QNAP TS-253

Virtualization Station

Ubuntu 16 Desktop LTS

Summary of command line instructions used:

Install Logitech Media Server (using a wildcard *)

cd ~

sudo dpkg -i ~/Downloads/logitech*.deb

Install Lame

sudo apt-get install lame

Install CIFS utils

sudo apt-get install cifs-util

Mount the drives

sudo mkdir /mnt/Multimedia

sudo mount -t cifs -ousername=admin,password=admin //TS253A.local/Multimedia /mnt/Multimedia
  • Change username, password and hostname (TS253A.local) to match your environment

Using System Rescue CD to Share a Mounted Folder

System Rescue CD is an essential tool for system and data recovery. I typically use it for recovering files off fail(ing) or damaged hard drives from multiple types of systems: Windows, QNAP and OSX etc.

System Rescue CD

Download System Rescue CD here.

Find the partition to mount with:

fdisk -l

or use the graphical application gparted from the GUI (use the command startx to switch to the GUI from the command line).

The following assumes we have a NFTS partition on /dev/sdc1

First mount the partition and make it fully accessible:

mkdir /mnt/sdc1

mount /dev/sdc1 /mnt/sdc1

chmod 777 /mnt/sdc1

At this point we should be able to access the files on the Windows drive e.g

ls /dev/sdc1

Now I want share this entire drive so I can access it from any machine on the local area network.

Create the file /etc/samba/smb.conf.default

** Check this maybe filename is just /etc/samba/smb.conf

nano /etc/samba/smb.conf.default

Add the following and save (CTRL+X):

[public]
path = /mnt/sdc1
public = yes
writable = yes
printable = no
browsable = yes

Next we need to give the root user a password using:

pdbedit -a -u root

Start the Samba server with:

service samba start

Find the IP address of the machine using:

ifconfig

Now you should be able to access the share from any client computer on the same network.

Assuming the computer running System Rescue CD is at ip address 192.168.1.100 then drive should be available at the following UNC path:

\\192.168.1.100\public

or using “Connect to Server” option in Finder on the Mac:

smb://192.168.1.100/public