Author Topic: Getting Media From Windows Shares  (Read 23359 times)

Vizeo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Getting Media From Windows Shares
« on: March 28, 2007, 08:18:23 am »
I just got LinuxMCE up and running. I am trying to test it's cababilities with my existing media that I have on a windows XP share before I make the plung and switch everything to LinuxMCE. However I can't seem to figure out how to access the files in my windows shares.

What settings do i need to change in windows or where can i add username and password information to LinuxMCE so that it can see my shares.

I am about as familiar with linux as i am with brain surgery so please be discriptive.


Drice

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Getting Media From Windows Shares
« Reply #1 on: March 28, 2007, 03:34:36 pm »
I am not a linux guru either but I saw this on the wiki.

Short to say create a directory on the windows share.
Make a network mount to that share in the directory structure explained below

Quote
If you want to add more storage you can map drives under those directories. For example, if you have another 2TB drive array that you want to use for both public music and your private movies, create 2 directories on that array, let's say: public_music and john_movies. Using a network mount, or a symlinc to a network mount, create a folder such as /home/public/data/music/my_2TB_nas that maps to public_music and /home/user_xxxx/data/movies/my_2TB_nas that maps to john_movies.

http://wiki.linuxmce.com/index.php/How_are_media_files_organized%3F

Vizeo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Getting Media From Windows Shares
« Reply #2 on: March 28, 2007, 04:44:25 pm »
Is mounting the only way for LinuxMCE to access windows shares. From what I know of linux that means anytime I restart the computer I have to remount the shares.

Drice

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Getting Media From Windows Shares
« Reply #3 on: March 28, 2007, 08:22:59 pm »

asgard

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Getting Media From Windows Shares
« Reply #4 on: March 28, 2007, 09:36:54 pm »
The steps that linuxmce takes to add widows shares to the system goes like this:

- Scans the network to find active samba (windows shares) servers and prompts the use about the detected ones
- If the user choses to use that add that computer as a 'file server' that a device is created (device template 1837) in the database for that computer
- After the 'File Server' device is added it automatically runs the configuration script for that device: "/usr/pluto/bin/Configure_1837.sh -d <DEVICE ID>" where <DEVICE ID> is the device id of the newly created 'file server' device. You can look for in the web admin interface to see which device id coresopnds to it.
- The configuration script for device template 1837 (File Server) is searching for active shares on that computer and prompts the user to see if he wants to access those shares from LinuxMCE.
- For each share that the user chose to use, a new device is created (Window Share / device template 1768)

Now since the configuration script for device 'File Server' is executed only once, when the device was added, you will need to manually run it once again to detect shares created on the computer after that moment. The correct method would be to use the 'Reconfigure device' checkbox from web admin and do a reload router, but you can also run the configuration file by hand from a console passing the correct device id.


Using fstab to mount is not the proper way to do it since you will lose all the advantages of a pluto device:
 - automount so you don't need to manually mount and remount it every time the file server restarts
 - get the share available on the core and every media director that you have in the sytem, not on only one location
 - integration with the linuxmce media directory structure
 - ...




steveb

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Getting Media From Windows Shares
« Reply #5 on: March 28, 2007, 11:21:31 pm »
Presumably it only looks on the internal network nic ?


asgard

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Getting Media From Windows Shares
« Reply #6 on: March 28, 2007, 11:36:10 pm »
Presumably it only looks on the internal network nic ?



Right, it only scans the internal network.

steveb

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Getting Media From Windows Shares
« Reply #7 on: March 29, 2007, 12:24:44 am »
Anyway to make it look on the external for testing ? I dont want to mess up my lan or have alter machines.

asgard

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Getting Media From Windows Shares
« Reply #8 on: March 30, 2007, 01:28:37 am »
Anyway to make it look on the external for testing ? I dont want to mess up my lan or have alter machines.

I would not recommend. For now add another device with the 'File Server'  device template. Make sure you type the ip address of the samba server there. Run the configuration file for that device so it can detect and create the samba share device on the hybrid.

Vizeo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Getting Media From Windows Shares
« Reply #9 on: March 30, 2007, 02:56:27 am »
I want to do this the right way but I can't for the life of me add a device and it is not seeing it any where. I have added a second IP on to my windows computer so that it is in the internal network. But I still can't see the device.

I try adding it through the administration site but nothing happens and none of my changes are saved.

Perhaps you can give me a detailed example that will explain how manually add a windows share. I would realy love to get this working.

cckrobinson

  • Veteran
  • ***
  • Posts: 124
    • View Profile
Re: Getting Media From Windows Shares
« Reply #10 on: March 31, 2007, 06:59:02 am »
I'm close to being able to add a windows share, but I'm not quite there.  Here's what I tried:

1. Clicked on 'Core' under My Devices in LCME admin page.
2. Clicked on 'Create Child Device' in the right hand window.
3. Typed in the IP of my windows box and hit 'Pick device template'.
4. From 'Device Category' selected 'File/Media Server'.
5. Clicked 'Apply filter'.
6. From 'Device Template' selected 'File Server'.
7. Clicked 'Close'.

'File Server' was now listed under My Device->Core.

8. Clicked on 'File Server' and recorded the Device Info number (45).
9. Opened a terminal (Ctrl+Alt+F2)
10. Typed sudo /usr/pluto/bin/Configure_1837.sh -d 45

I got this message:

mythtv@dcerouter:/media$ sudo /usr/pluto/bin/Configure_1837.sh -d 45
Domain=[HOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Domain=[HOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

I then Reloaded the Router.  Success right?  Not exactly.  Based on the the info in this thread, I was expecting to get prompted from LMCE to add my shares, but I don't.  So I decided to try to add them manually.

11. Clicked on 'File Server'.
12. Clicked on 'Create Child Device' in the right hand window.
13. Clicked on "Pick device template".
14. From 'Device Template' selected 'Windows Share'.
15. Clicked "Pick device template"
16. Scrolled down to the 'Device data' section and entered the share name in the 'Share Name' field.
17. Clicked 'save'.
18. Reloaded the Router

The share that I added contains pictures.  Once LMCE started up again I went to Media and selected Pictures.  The only thing that I see is flickr.  Why aren't my pictures there???

I'm stuck.  I verified that my windows share is valid\visible because I can see it from a browser like this:
smb://192.168.2.136/

Any Ideas?

Vizeo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Getting Media From Windows Shares
« Reply #11 on: March 31, 2007, 06:15:05 pm »
I have finally gotten the LinuxMCE to see my windows computer. I have even added my user name and password to the device. I created a share called public_movies and told the system to reconfigure the device.

Now that i have done all this I would assume that i should be able to see my movies but there is nothing.

How do I accomplish this? The files are MP4's create by Nero Recode. Are the files just not showing because of the type?

Is there a way I can test to see if the system is even accesing the shares?

k84

  • Veteran
  • ***
  • Posts: 69
    • View Profile
Re: Getting Media From Windows Shares
« Reply #12 on: March 31, 2007, 10:19:08 pm »
Just for a test, try renaming to .avi
it will probably see the file and play it.

Vizeo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Getting Media From Windows Shares
« Reply #13 on: March 31, 2007, 10:58:45 pm »
Unfortunatly that did nothing. I am not being prompted to add my shares even though the computer is now a device. If I try to add them manually via add child devices when ever I click the Pick Device Template the values i put in for desctiption, IP address and MAC Address dissapear. In addition after I enter all the information for the device nothing happens.


cckrobinson

  • Veteran
  • ***
  • Posts: 124
    • View Profile
Re: Getting Media From Windows Shares
« Reply #14 on: April 02, 2007, 04:35:10 am »
My window shares are now visible within LMCE.  The steps that I posted in this thread are correct.  The problem was that LMCE doesn't seem to allow me to view my pictures.  I noticed that all of the images on my windows share were being added to the database.  The problem is that they don't appear under Media->Pictures.  For fun I tried adding an avi file to the windows share and voila it appeared in the Media->Videos folder.

Also, I was able to get DVD ISO images to play from a windows share (sort of).  I initially tried modifying the database to add ISO as one of the supported video extensions.  That worked to the extent that it allowed my ISO's to be visible under the Media->Video.  The problem appears to be that xine don't know how to play files with a .iso extension.  The work around is to rename them to .dvd instead.  This works and they play just fine.

It's too bad the VLC can't be used to play video since it natively supports .iso and just about every other format known to man.

Now If I could just get MythTV working I'd be a happy camper.