Thanks again, Woodstock, thank you very much.
However, I found another way of sharing bluray drive across network. It IS working at least on ubuntu 16.04.
It works in such a way that the client htpc treats the shared bluray drive as a local optical drive.
Makemkv then sees that drive and uses 'direct disc access' mode to decrypt it (successfully).
So this is how to do it (I tried to be as breief as possible, without any explanations).
ON SERVER (with physical bluray drive)
Code: Select all
$ sudo -i
# apt install lsscsi
# apt install tgt
# lsscsi -g
output should be something like this:
[1:0:0:0] cd/dvd ASUS CD-ROM 1.0 /dev/sr0 /dev/sg0 <- remember "/dev/sg0"
[2:0:0:0] disk ATA HARDDISK 1.0 /dev/sda /dev/sg1
# nano /etc/tgt/conf.d/sharecd.conf
put the following replacing "/dev/sg0" with your device name from the step above:
Code: Select all
default-driver iscsi
<target iqn.2010-01.us.nimsa:tgt:4:16:0:0:T>
<direct-store /dev/sg0>
device-type pt
bs-type sg
removable 1
</direct-store>
</target>
Reboot the server machine.
ON CLIENT (with NO bluray drive):
Code: Select all
$ sudo -i
# apt install lsscsi
# apt install open-iscsi
# nano /etc/iscsi/iscsid.conf
find and comment:
and uncomment:
Now execute (replace 192.160.0.100 with your server ip):
Code: Select all
# iscsiadm -m discovery -t st -p 192.168.0.100
output should be something like this:
192.168.0.100:3260,1 iqn.2010-01.us.nimsa:tgt:4:16:0:0:T
# iscsiadm -m node --login -T iqn.2010-01.us.nimsa:tgt:4:16:0:0:T
output should be something like this:
Logging in to [iface: default, target: iqn.2010-01.us.nimsa:tgt:4:16:0:0:T, portal: 192.168.0.100,3260] (multiple)
Login to [iface: default, target: iqn.2010-01.us.nimsa:tgt:4:16:0:0:T, portal: 192.168.0.100,3260] successful.
Ok, now
Code: Select all
# systemctl enable iscsid
# reboot
After reboot issue the following command on client:
Code: Select all
# lsscsi -g
output should be something like this:
[2:0:0:0] disk ATA HARDDISK 1.0 /dev/sda /dev/sg0
[4:0:0:0] storage IET Controller 0001 - /dev/sg1
[4:0:0:1] cd/dvd ASUS CD-ROM 1.0 /dev/sr0 /dev/sg2 <- this is your server's bluray drive
Now you can use makemkv to rip a disk or a media player to watch a movie.