2012-01-02, 21:54
Hi,
This took me a lot of hacking, so I thought I'd share with everyone.
I've got an Acer Revo, great machine, increased the hard drive, looking at mounting it behind the screen, it works a treat for everything I need. And all I need on it is XBMC.
However. It doesn't have a DVD drive.
I've got a lovely set up, but if I have a DVD which I haven't ripped, then it all comes tumbling down. So!
I've managed to configure my DVD drive in my main PC to be shared over the network and playable as a normal DVD on XBMC.
The problem I had, was that because Hollywood DVDs are restricted/locked/messed up they won't play over the network.
This is my new setup to take care of that. On my PC (not my XBMC machine):
I downloaded, compiled and installed DVDfs as detailed in the instructions:
http://www.jspenguin.org/software/dvdfs/
and then I was able to mount the DVDs unencrypted.
To get it mounting somewhat automatically, rather then typing:
dvdfs-amd64 /media/dvd
each time, I created a file:
/sbin/mount.dvdfs
which contains:
#!/bin/bash
dvdfs-amd64 $2 -o umask=777 -o allow_other
This allows me to put a line in fstab which will add the file type to the end of the mount command and call it with all the mount parameters
/etc/fstab
dvdfs-amd64 /media/dvd dvdfs defaults,ro,noauto,user 0 0
(ok, so that's just the line I added)
The dvdfs as the type means that when it mounts it, it will run "mount.dvdfs" which is the bash file created above (which of course has executable permissions!)
It starts with dvdfs-amd64 because that's what comes up as the source when it's mounted and you type "mount".
So the system doesn't think /dev/sr0 is mounted on /media/dvd, it thinks that dvdfs-amd64 is mounted on /media/dvd.
If the two don't match, you have issues unmounting them as a user.
If you have it as /dev/sr0 then it will mount automatically with dvdfs when you insert the disc, however you then get issues unmounting it, and I wanted it so I can just click a few buttons and it all looks swish (and it appears in the devices section in nautilus) (After XBMC has stopped accessing the DVD, it takes 90 seconds before something stops and the device is no longer marked as busy and you can unmount it)
It's using fuse, and thus my /etc/fuse.conf contains one line:
user_allow_other
And all that's left is to have it shared by samba, so /etc/samba/smb.conf
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /media/dvd
guest ok = yes
(yes, my samba config contains more lines, but the rest is out of the box, this is the section I added......ok, I just uncommented it)
Then, back on the XBMC machine, I added a video resource pointing to that particular samba share, and navigated to cdrom/VIDEO_TS/VIDEO_TS.IFO and then the main menu appeared. It starts a little stuttery, but after that there's no network issues. Both machines are on 100meg LAN.
Now I just need to fix the IP of my PC so XBMC doesn't loose it or something silly. Only outstanding issue is that the path is a path and doesn't pop up saying "You've inserted a DVD" or anything. Which is detracts from the swish, but not enough to make it much less sexy.
Anyway, hope this helps someone. Thanks to all who helped make XBMC what it is today, great stuff.
This took me a lot of hacking, so I thought I'd share with everyone.
I've got an Acer Revo, great machine, increased the hard drive, looking at mounting it behind the screen, it works a treat for everything I need. And all I need on it is XBMC.
However. It doesn't have a DVD drive.
I've got a lovely set up, but if I have a DVD which I haven't ripped, then it all comes tumbling down. So!
I've managed to configure my DVD drive in my main PC to be shared over the network and playable as a normal DVD on XBMC.
The problem I had, was that because Hollywood DVDs are restricted/locked/messed up they won't play over the network.
This is my new setup to take care of that. On my PC (not my XBMC machine):
I downloaded, compiled and installed DVDfs as detailed in the instructions:
http://www.jspenguin.org/software/dvdfs/
and then I was able to mount the DVDs unencrypted.
To get it mounting somewhat automatically, rather then typing:
dvdfs-amd64 /media/dvd
each time, I created a file:
/sbin/mount.dvdfs
which contains:
#!/bin/bash
dvdfs-amd64 $2 -o umask=777 -o allow_other
This allows me to put a line in fstab which will add the file type to the end of the mount command and call it with all the mount parameters
/etc/fstab
dvdfs-amd64 /media/dvd dvdfs defaults,ro,noauto,user 0 0
(ok, so that's just the line I added)
The dvdfs as the type means that when it mounts it, it will run "mount.dvdfs" which is the bash file created above (which of course has executable permissions!)
It starts with dvdfs-amd64 because that's what comes up as the source when it's mounted and you type "mount".
So the system doesn't think /dev/sr0 is mounted on /media/dvd, it thinks that dvdfs-amd64 is mounted on /media/dvd.
If the two don't match, you have issues unmounting them as a user.
If you have it as /dev/sr0 then it will mount automatically with dvdfs when you insert the disc, however you then get issues unmounting it, and I wanted it so I can just click a few buttons and it all looks swish (and it appears in the devices section in nautilus) (After XBMC has stopped accessing the DVD, it takes 90 seconds before something stops and the device is no longer marked as busy and you can unmount it)
It's using fuse, and thus my /etc/fuse.conf contains one line:
user_allow_other
And all that's left is to have it shared by samba, so /etc/samba/smb.conf
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /media/dvd
guest ok = yes
(yes, my samba config contains more lines, but the rest is out of the box, this is the section I added......ok, I just uncommented it)
Then, back on the XBMC machine, I added a video resource pointing to that particular samba share, and navigated to cdrom/VIDEO_TS/VIDEO_TS.IFO and then the main menu appeared. It starts a little stuttery, but after that there's no network issues. Both machines are on 100meg LAN.
Now I just need to fix the IP of my PC so XBMC doesn't loose it or something silly. Only outstanding issue is that the path is a path and doesn't pop up saying "You've inserted a DVD" or anything. Which is detracts from the swish, but not enough to make it much less sexy.
Anyway, hope this helps someone. Thanks to all who helped make XBMC what it is today, great stuff.