Installing Galleon on Linux

Discussion in 'TiVo Home Media Features & TiVoToGo' started by smoothtivo, Nov 8, 2005.

  1. Nov 8, 2005 #1 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    I know there are a few people that have been installing Galleon on Linux. I am a bit new to Linux and in the process of installing Galleon on my new linux system. The instructions are a bit confusing to me and I noticed they were updated for version Galleon 1.8. Has anyone got these to work? I am not sure about the 2nd and 3rd step. Anyone have any experience with getting this running?

    Thanks,
    smoothtivo

    Linux

    * Install the Java JRE.
    * The Java JRE bin directory must be in you system PATH environment variable.
    * The JAVA_HOME environment variable must point to the root of the Java JRE installation.
    * Disable IPv6.
    * Configure your system's name in /etc/hosts under the actual IP address, not 127.0.0.1
    * If you are upgrading a previous installation, make a backup of the configure.xml file in the Galleon conf directory.
    * Extract the Galleon zip file to a directory.
    * Restore the backed up configure.xml file to the Galleon conf directory.
    * Make the scripts in the Galleon bin directory executable: chmod a+x *.sh
    * Run the Galleon server from the Galleon bin directory: run.sh
     
  2. Nov 10, 2005 #2 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    Don't let the steps confuse you too much -- just download the JRE (download the RPM from Sun if you want the easiest possible install), and if you run into trouble, ask for help here.

    In answer to your question, yes, I have personally run Galleon 1.8.0 fine on a (Fedora Core 4) Linux system.

    Drew
     
  3. Nov 14, 2005 #3 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    Sweet thanks for any help.

    I have the source files extracted to my home directory and have set the JAVA_HOME to look like this in the run.sh and gui.sh:

    JAVA_HOME=/usr/java/jre1.5.0_05

    I am assuming that "The Java JRE bin directory must be in you system PATH environment variable." means when i run the program to put the path of java in the command???

    Few more questions.
    Where do I disable ip6?
    What do I put in the host file?

    THanks again,

    smooth
     
  4. Nov 15, 2005 #4 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    You may not have to remove ipv6. I run ipv6 and Galleon works fine for me. To see if you are running ipv6 run:
    /sbin/lsmod | grep ipv6

    If you are running it and you want to stop it, then you will have to prevent the module from loading. The way that works varies a bit between distribtuions, but you'll want to take a look at the /etc/modules* files.

    As for the host file, you will want something like :
    127.0.0.1 localhost
    192.168.0.2 your_hostname

    If you are using DHCP to set your ip address, then you may need something a bit different.
     
  5. Nov 15, 2005 #5 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    Assuming you're using modprobe (Fedora, the only Linux distribution I currently use, does), adding the following lines to /etc/modprobe.conf turns off ipv6:

    alias net-pf-10 off
    alias ipv6 off

    I've never found a reliable way to put it into effect aside from rebooting, but you might be able to stop networking and use depmod.

    Drew
     
  6. Nov 15, 2005 #6 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    I am assuming that I have it set up correctly but I get this when I run, run.sh
    [wes@localhost bin]$ ./run.sh
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.lnicholls.galleon.util.Tools
    at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable)
     
  7. Nov 16, 2005 #7 of 138
    dachtler

    dachtler New Member

    34
    0
    Oct 21, 2002
    Has anyone looking at this thread made a start/stop file for /etc/init.d for galleon, so you can have it automatically start at boot? I have used one that I found elsewhere on tivocommunity.com (I can't remember where now), and it will work to start galleon if the system is completely booted, but won't work during boot up. Also, the stop command does not work (it uses pkill, which doesn't seem to correctly recognize galleon).

    I have 1.9.0 installed and working on Fedora Core 4, except for this one issue.

    Thanks,

    Jason
     
  8. Nov 16, 2005 #8 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    Hhm, here's the one I use. Note that it is "pkill -f" and that you may have to change the path to your galleon directory. It is a little kludgy because it changes into the galleon bin directory, but that's necessary because of the relative paths in some of the galleon files. It really would be better to define an environment variable for the galleon directory and remove those relative paths.

    #!/bin/sh
    case "$1" in
    start)
    echo "Starting Galleon TiVo HME server"
    cd /usr/local/galleon/bin; ./run.sh &
    ;;
    stop)
    echo "Stopping Galleon TiVo server"
    pkill -f galleon
    ;;
    *)
    echo "Usage: /etc/init.d/galleon {start|stop}"
    exit 1
    ;;
    esac
     
  9. Nov 16, 2005 #9 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    smoothtivo, it looks like it may not be finding all of your galleon installation. Are you sure that you installed all of galleon, and that you are running run.sh from the galleon directory?
     
  10. Nov 16, 2005 #10 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    For your start-at-boot problem, I wonder if bumping down where galleon starts in the chain might help (i.e. maybe it's starting before something else it needs, like networking)... Try giving it a start priority of 99.

    Drew
     
  11. Nov 16, 2005 #11 of 138
    dachtler

    dachtler New Member

    34
    0
    Oct 21, 2002

    Yup, this is the script. I realized that the version I was using had pkill -f Galleon, with a capital G, which was messing it up. I've now fixed it. I did have it running at 99, and it still didn't load properly, but that's a different problem. Thanks for the help!
     
  12. Nov 16, 2005 #12 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004

    I am running it from the unzipped files\folder (in the bin directory) i got from sourceforge. Do they have to be somewhere when i run them?

    -Wes
     
  13. Nov 16, 2005 #13 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    If you didn't move them outside of the galleon directory structure, than that not the problem. By which I mean if you are running from inside GALLEON_TOP_DIR/bin, as opposed to /usr/local/bin, for example, you should be fine.

    By the way, have you tried gui.sh? Does it give the same error?
     
  14. Nov 16, 2005 #14 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    im running it from my home folder is that not going to work? Insid e the galleon directory.
     
  15. Nov 16, 2005 #15 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    Here is what I get when I run gui.sh (same errors as run.sh):
    [wes@localhost bin]$ pwd
    /galleon-1.9.0/bin
    [wes@localhost bin]$ ./gui.sh
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Caused by: java.lang.NullPointerException
    at java.awt.Window.Window(java.awt.Frame) (/usr/lib/libgcj.so.6.0.0)
    at javax.swing.JWindow.JWindow(java.awt.Frame) (/usr/lib/libgcj.so.6.0.0)
    at org.lnicholls.galleon.gui.Galleon$SplashWindow.Galleon$SplashWindow() (Unknown Source)
    at org.lnicholls.galleon.gui.Galleon.<clinit>() (Unknown Source)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
    ...2 more
     
  16. Nov 16, 2005 #16 of 138
    jlgandy

    jlgandy New Member

    21
    0
    Jan 12, 2004
    What are you using for java? If you're not sure take a look at JAVA_HOME. I'm using the rpm's provided by Sun, so mine is JAVA_HOME=/usr/java/jdk1.5.0_05.

    Just a guess, but from your output it looks like GCJ... I think Galleon may need Sun's v.1.5 - please correct me if I'm wrong though.

    Edit:

    http://galleon.sourceforge.net/html/faq.html

    Looks like Sun > 1.4.2 is required.
     
  17. Nov 16, 2005 #17 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    I've definitely never had any luck getting Galleon to run under GCJ.

    Drew
     
  18. Nov 17, 2005 #18 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    Up near the top of this thread you say that you set:
    JAVA_HOME=/usr/java/jre1.5.0_05

    Do you actually have Sun's java installed at that location ?
     
  19. Nov 17, 2005 #19 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    Yes the correct version of sun java is in that folder
     
  20. Nov 17, 2005 #20 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    What does this mean:
    " * The Java JRE bin directory must be in you system PATH environment variable."
     

Share This Page