PDA

View Full Version : Symbolic links on Mac ?



erland
2007-06-13, 11:00
Does anyone that have a Mac some more information about how symbolic links are converted to URLs in SlimServer on Max OS X ?

On Linux the URL seems to contain the symbolic link, lets say I have:

A directory:
/home/xxx/music/part1
And a symbolic link:
/home/xxx/music/part2 -> /mnt/externaldrive1

In that case the URL on Linux in the SlimServer database will be something like:
file:///home/xxx/music/part2/track.mp3

According to the debug log from the TrackStat plugin, the URL in the same setup on Mac seems to be the real path:
file:///mnt/externaldrive1/track.mp3

Can someone that either knows how this works or someone that have a Mac+SlimServer that have the ability to look in the SlimServer database verify that this is how it works ?

If it works this way, is there some way to convert the URL to the symbolic link based path ? (/home/xxx/music/part2/track.mp3 )

The reason is that MusicIP Mixer, which runs on the same Mac, seems to require the symbolic link version of the path in its API. It doesn't seem to accept the real path to the file.

I appreciate all help regarding this since I don't own a Mac myself.

erland
2007-06-13, 22:38
After a few days of struggling I finally got Mac OS running inside VM-Ware so I could verify this.

It seems like it works as I said in my previous post in this thread.

MusicIP:
- Refers to files using the soft link

SlimServer:
- Refers to files using the real path even if the files is behind a soft link, the soft link is expanded to the real part during scanning.

The result of all this is that if you use the MusicMagic(MusicIP) plugin integration on a Mac, you won't be able to create mixes from SlimServer if the files are behind a soft link.

I have only verified this in VM-Ware, so I'm not sure if a real Mac behaves the same way, but I suspect it does.

I have written a problem report on the problem, so if any one with a real Mac can verify the problem, please add the result on a real Mac to the problem report:
http://bugs.slimdevices.com/show_bug.cgi?id=5117

mherger
2007-06-13, 23:11
> After a few days of struggling I finally got Mac OS running inside
> VM-Ware so I could verify this.

????? Sources.... Please!

> I have written a problem report on the problem, so if any one with a
> real Mac can verify the problem, please add the result on a real Mac to
> the problem report:
> http://bugs.slimdevices.com/show_bug.cgi?id=5117

I'll take a look at this. How did you come across this issue anyway?

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

erland
2007-06-14, 03:13
> After a few days of struggling I finally got Mac OS running inside
> VM-Ware so I could verify this.

????? Sources.... Please!

This is a good start:
http://wiki.osx86project.org/wiki/index.php/Vmware_how_to




> I have written a problem report on the problem, so if any one with a
> real Mac can verify the problem, please add the result on a real Mac to
> the problem report:
> http://bugs.slimdevices.com/show_bug.cgi?id=5117

I'll take a look at this. How did you come across this issue anyway?

It was found due to a person having problem with the TrackStat MusicIP integration. TrackStat supports to export the rating information from SlimServer to MusicIP. See this thread for more information:
http://forums.slimdevices.com/showthread.php?t=35931

stinkingpig
2007-06-14, 08:53
On 6/13/07, Michael Herger <slim (AT) herger (DOT) net> wrote:
> > After a few days of struggling I finally got Mac OS running inside
> > VM-Ware so I could verify this.
>
> ????? Sources.... Please!
>

I've spent a bit of time on this without success yet, so let me give
you a couple of dead ends not to follow :)

The bovinity image boots and shows a desktop fine, but can't really do
anything beyond Safari and Terminal. Most universal binaries just
segfault on it, so don't waste your time unless you just want to show
your friends a screenshot of OS X running in VMWare :)

If you have your own MacBook disks, as I do, there's a lot more work
than just burning images. The disks are HFS+ formatted, not ISO, so
all the ISO mounting programs mentioned at the OSx86 forum are
useless. You have to mount them on your mac, find the installation
image, and burn that to an ISO file, which is where I'll be going next
time I have some time to work on this.
--
"I spent all me tin with the ladies drinking gin,
So across the Western ocean I must wander" -- traditional

mherger
2007-06-14, 08:59
> segfault on it, so don't waste your time unless you just want to show
> your friends a screenshot of OS X running in VMWare :)

I even intended to have it run inside VMware Fusion - on a MacBook. I use
(and like!) VMware a lot for development. It's so easy to come back to a
snapshot, don't care about a broken system.

Michael

erland
2007-06-14, 12:53
If you have your own MacBook disks, as I do, there's a lot more work
than just burning images. The disks are HFS+ formatted, not ISO, so all the ISO mounting programs mentioned at the OSx86 forum are
useless. You have to mount them on your mac, find the installation
image, and burn that to an ISO file, which is where I'll be going next time I have some time to work on this.
I used this process to get it to work on my Intel Core 2 Duo laptop. I did use a iso image which was patched with the correct patches to get it to work on a PC, but the image is still HFS+ based.

1. Convert the iso to a VM-Ware image using:
qemu-img convert -f raw <name>.iso -O vmdk <name>.vmdk

2. In your empty VM-Ware image, mount the ISO in the CDROM device
3. In your empty VM-Ware image, setup a second Harddisk and mount the vmdk image created in step 1.
4. Depending on the MacOS version you might also have to change some properties in the .vmx file manually. See the link in my previous post.

5. Startup the virtual machine and follow the instructions on the link in my previous post to install Mac OSX. The trick to get the HFS+ file system to boot was to mount it both as a ISO and as a vmdk image.

I had some problem getting the network up and running correctly, but I suspect this had to do with me running it on a PC. You might not have the same problem if you run it on a real Mac. I also had to disable scsi in the .vmx file to get the VM-Ware image to boot after the installation, if I didn't use this it hanged directly after boot when trying to boot after the installation.

I haven't tried so many program yet, by iTunes started, SlimServer succeeds to scan and MusicIP also succeeds to scan and Safari seems to work. So I haven't seen any real problem yet besides the fact that it is a bit slow. I haven't tried getting audio to work since it wasn't important for the thing I wanted to verify. I'm using VM-Ware server 1.0.3 on Ubuntu Feisty.

stinkingpig
2007-06-14, 21:00
thanks! That's just what I needed, it's installing right now.

On 6/14/07, erland <erland.2s6odn1181850902 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Jack Coates;208890 Wrote:
> > If you have your own MacBook disks, as I do, there's a lot more work
> > than just burning images. The disks are HFS+ formatted, not ISO, so all
> > the ISO mounting programs mentioned at the OSx86 forum are
> > useless. You have to mount them on your mac, find the installation
> > image, and burn that to an ISO file, which is where I'll be going next
> > time I have some time to work on this.
> > I used this process to get it to work on my Intel Core 2 Duo laptop. I
> did use a iso image which was patched with the correct patches to get
> it to work on a PC, but the image is still HFS+ based.
>
> 1. Convert the iso to a VM-Ware image using:
> qemu-img convert -f raw <name>.iso -O vmdk <name>.vmdk
>
> 2. In your empty VM-Ware image, mount the ISO in the CDROM device
> 3. In your empty VM-Ware image, setup a second Harddisk and mount the
> vmdk image created in step 1.
> 4. Depending on the MacOS version you might also have to change some
> properties in the .vmx file manually. See the link in my previous
> post.
>
> 5. Startup the virtual machine and follow the instructions on the link
> in my previous post to install Mac OSX. The trick to get the HFS+ file
> system to boot was to mount it both as a ISO and as a vmdk image.
>
> I had some problem getting the network up and running correctly, but I
> suspect this had to do with me running it on a PC. You might not have
> the same problem if you run it on a real Mac. I also had to disable
> scsi in the .vmx file to get the VM-Ware image to boot after the
> installation, if I didn't use this it hanged directly after boot when
> trying to boot after the installation.
>
> I haven't tried so many program yet, by iTunes started, SlimServer
> succeeds to scan and MusicIP also succeeds to scan and Safari seems to
> work. So I haven't seen any real problem yet besides the fact that it
> is a bit slow. I haven't tried getting audio to work since it wasn't
> important for the thing I wanted to verify. I'm using VM-Ware server
> 1.0.3 on Ubuntu Feisty.
>
>
> --
> erland
>
> Erland Isaksson
> 'My homepage' (http://erland.homeip.net) 'My download page'
> (http://erland.homeip.net/download)
> (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
> Custom Scan, Custom Skip, Multi Library and RandomPlayList plugins'
> (http://wiki.erland.homeip.net/index.php/Category:SlimServer))
> ------------------------------------------------------------------------
> erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
> View this thread: http://forums.slimdevices.com/showthread.php?t=36086
>
>