PDA

View Full Version : Symbolic Links?


codybj
12-28-2006, 10:49 PM
Hello. I am running OS X, and would like to have my ~/Pictures/ folder accesible in the "My Pictures" page in Wii Media Center X. I tried making a symbolic link in place of the ./Software/Pictures/images/ folder, but it gives me a "WARN org.mortbay.log - Aliased Resource" error when I try to access the photos. I can see the filename, including those of pictures in subdirectories, but it will not let me view them. Is there another solution, or do I have to copy all of my pictures into ./Software/Pictures/images/ ?
Thanks in advance,
CodyBJ

codybj
01-04-2007, 06:51 PM
<<<bump>>>

tumnus
01-07-2007, 11:56 AM
I'm running Linux and have the same problem as I don't want to move all my pictures, music and videos into the Media Center directories.

It uses Jetty (http://jetty.mortbay.org/) for the webserver, which is where the error is coming from because by default it will not follow aliases/symbolic links. The Jetty FAQ has an entry (http://jetty.mortbay.org/jetty5/faq/faq_s_400-Security_t_Aliases.html) about disabling this check, but I can't seem to get it to work.

It is set with a Java system property, so in theory starting the Media Center like this should work:
java -jar MediaCenter.jar -Dorg.mortbay.util.FileResource.checkAliases=false

Jetty also has an XML configuration file through which this can be set and the following should in theory set it, but it isn't working either.

Jetty.xml saved in /wherever/MediaCenter/etc/:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC
"-//Mort Bay Consulting//DTD Configure 1.1//EN"
"http://jetty.mortbay.org/configure_1_2.dtd">
<Call name="setProperty" class="java.lang.System">
<Arg>org.mortbay.util.FileResource.checkAliases</Arg>
<Arg>false</Arg>
</Call>

Then run these commands:

export JETTY_HOME=/wherever/MediaCenter
java -jar MediaCenter.jar

Might have to contact the Jetty developers if none of the developers here respond... :confused:

alx242
03-26-2007, 09:37 AM
I'm running Linux and have the same problem as I don't want to move all my pictures, music and videos into the Media Center directories.

It uses Jetty (http://jetty.mortbay.org/) for the webserver, which is where the error is coming from because by default it will not follow aliases/symbolic links. The Jetty FAQ has an entry (http://jetty.mortbay.org/jetty5/faq/faq_s_400-Security_t_Aliases.html) about disabling this check, but I can't seem to get it to work.

It is set with a Java system property, so in theory starting the Media Center like this should work:
java -jar MediaCenter.jar -Dorg.mortbay.util.FileResource.checkAliases=false
...


You are entirely correct. However you are using java which is case sensitive and should declare it as False and not false. That is your only problem. I use this start up script to run mediacenterx on my linux machine

#!/bin/sh
export JAVA_HOME=/opt/java
java -Dorg.mortbay.util.FileResource.checkAliases=False -jar MediaCenter.jar


It works fine with symbolic links and such. The beauty of Linux exists within its file system...:)

Also here is a nice command line to convert a movie into a FLV, in case anyone was wondering of how to do it on Linux.


ffmpeg -i <your-movie> -s 320x240 -ar 44100 -r 12 <your-movie>.flv


I have made a bash script which automatically checks a directory for any file that hasn't been converted to FLV and thus so on the fly by running the script with 5 minute intervals in cron. Piece of cake. Now I only need to put my movies I want to watch on the PS3 in a certain directory and they will get converted instantly (well within 5 minutes I can at least start to watch them). Keep up using a proper OS!