Installing Galleon on Linux

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

  1. Nov 17, 2005 #21 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    It just means java has to be in your path.

    If you simply type:

    java

    at the command prompt, does it print "java: command not found", or a bunch of output on how to use java?

    Drew
     
  2. Nov 17, 2005 #22 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    prints this:
    [wes@localhost ~]$ java
    Usage: gij [OPTION] ... CLASS [ARGS] ...
    to invoke CLASS.main, or
    gij -jar [OPTION] ... JARFILE [ARGS] ...
    to execute a jar file
    Try `gij --help' for more information.
     
  3. Nov 17, 2005 #23 of 138
    windracer

    windracer joined the 10k club

    12,258
    214
    Jan 3, 2003
    St. Pete, FL
    Looks like the GNU Interpreter for Java (gij) is getting in the way. Check your PATH variable and make sure the location of your Sun Java install comes before wherever the GJC stuff is (I've never used GJC, so I apologize for not being more specific).
     
  4. Nov 18, 2005 #24 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    Just installed Galleon 1.9.0 for Linux on my server. It's an AMD64 running Debian-sid for amd64, and I have the AMD64-bit Java runtime 1.5.0_05 installed.

    I modified the paths in wrapper.conf to suit my server, added JAVA_HOME=/usr/java/jre1.5.0_05 to run.sh and gui.sh, then ran run.sh...it set everything up (it appeared to, anyway) - gave me "Galleon is ready".

    I then ran gui.sh - it came up fine, let me add apps, etc.

    Tried to access it from the TiVo. The TiVo can't find the server ("no servers found at 192.168.1.1").

    I can ping the TiVo from the server, and my firewall allows everything to/from the TiVo, so I don't think it's a network issue (also ran the network connectivity test from the TiVo - no problems).

    Any ideas?

    Thanks - Bob
     
  5. Nov 18, 2005 #25 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    Tried disabling ipv6...didn't matter.

    [root@kenobi: ~]$ netstat -anp | grep 2190
    tcp 0 0 192.168.1.1:2190 0.0.0.0:* LISTEN 6576/java
    udp 0 0 0.0.0.0:2190 0.0.0.0:* 6576/java

    The server appears to be listening..... :confused:
     
  6. Nov 18, 2005 #26 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    I know this is ugly, but here's the whole set of log entries for this session:

    Code:
    23:58:31,158  INFO [main] Server - http.agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    23:58:31,162  INFO [main] Server - java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    23:58:31,162  INFO [main] Server - sun.boot.library.path=/usr/java/jre1.5.0_05/lib/amd64
    23:58:31,162  INFO [main] Server - java.vm.version=1.5.0_05-b05
    23:58:31,162  INFO [main] Server - apps=/srv/galleon/bin/./../apps
    23:58:31,162  INFO [main] Server - os.user.home=/root
    23:58:31,162  INFO [main] Server - java.vm.vendor=Sun Microsystems Inc.
    23:58:31,162  INFO [main] Server - java.vendor.url=http://java.sun.com/
    23:58:31,162  INFO [main] Server - path.separator=:
    23:58:31,162  INFO [main] Server - java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    23:58:31,169  INFO [main] Server - file.encoding.pkg=sun.io
    23:58:31,169  INFO [main] Server - user.country=US
    23:58:31,169  INFO [main] Server - sun.os.patch.level=unknown
    23:58:31,169  INFO [main] Server - skins=/srv/galleon/bin/./../skins
    23:58:31,169  INFO [main] Server - java.vm.specification.name=Java Virtual Machine Specification
    23:58:31,169  INFO [main] Server - user.dir=/srv/galleon/bin
    23:58:31,169  INFO [main] Server - java.runtime.version=1.5.0_05-b05
    23:58:31,169  INFO [main] Server - bin=/srv/galleon/bin/./../bin
    23:58:31,170  INFO [main] Server - java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    23:58:31,170  INFO [main] Server - cache=/srv/galleon/bin/./../data
    23:58:31,170  INFO [main] Server - java.endorsed.dirs=/usr/java/jre1.5.0_05/lib/endorsed
    23:58:31,170  INFO [main] Server - os.arch=amd64
    23:58:31,170  INFO [main] Server - java.io.tmpdir=/tmp
    23:58:31,170  INFO [main] Server - line.separator=
    
    23:58:31,170  INFO [main] Server - java.vm.specification.vendor=Sun Microsystems Inc.
    23:58:31,170  INFO [main] Server - hme=/srv/galleon/bin/./../hme
    23:58:31,176  INFO [main] Server - java.awt.fonts=/usr/java/jre1.5.0_05/lib/fonts
    23:58:31,177  INFO [main] Server - os.name=Linux
    23:58:31,177  INFO [main] Server - sun.jnu.encoding=ANSI_X3.4-1968
    23:58:31,177  INFO [main] Server - java.library.path=/usr/java/jre1.5.0_05/lib/amd64/server:/usr/java/jre1.5.0_05/lib/amd64:/usr/java/jre1.5.0_05/../lib/amd$
    23:58:31,177  INFO [main] Server - java.specification.name=Java Platform API Specification
    23:58:31,177  INFO [main] Server - java.class.version=49.0
    23:58:31,177  INFO [main] Server - root=/srv/galleon/bin/./..
    23:58:31,177  INFO [main] Server - sun.management.compiler=HotSpot 64-Bit Server Compiler
    23:58:31,177  INFO [main] Server - os.version=2.6.11-9-amd64-k8
    23:58:31,177  INFO [main] Server - user.home=/srv/galleon/bin/./..
    23:58:31,177  INFO [main] Server - user.timezone=US/Pacific
    23:58:31,177  INFO [main] Server - java.awt.printerjob=sun.print.PSPrinterJob
    23:58:31,177  INFO [main] Server - java.specification.version=1.5
    23:58:31,177  INFO [main] Server - file.encoding=ANSI_X3.4-1968
    23:58:31,177  INFO [main] Server - user.name=root
    23:58:31,177  INFO [main] Server - java.class.path=../conf:../lib/MHS.jar:../lib/activation.jar:../lib/bananas.jar:../lib/browserlauncher.jar:../lib/commons$
    23:58:31,178  INFO [main] Server - logs=/srv/galleon/bin/./../logs
    23:58:31,178  INFO [main] Server - java.vm.specification.version=1.0
    23:58:31,178  INFO [main] Server - sun.arch.data.model=64
    23:58:31,178  INFO [main] Server - java.home=/usr/java/jre1.5.0_05
    23:58:31,178  INFO [main] Server - java.specification.vendor=Sun Microsystems Inc.
    23:58:31,178  INFO [main] Server - user.language=en
    23:58:31,178  INFO [main] Server - awt.toolkit=com.eteks.awt.PJAToolkit
    23:58:31,178  INFO [main] Server - java.vm.info=mixed mode
    23:58:31,178  INFO [main] Server - java.version=1.5.0_05
    23:58:31,178  INFO [main] Server - java.ext.dirs=/usr/java/jre1.5.0_05/lib/ext
    23:58:31,178  INFO [main] Server - sun.boot.class.path=/usr/java/jre1.5.0_05/lib/rt.jar:/usr/java/jre1.5.0_05/lib/i18n.jar:/usr/java/jre1.5.0_05/lib/sunrsas$
    23:58:31,178  INFO [main] Server - conf=/srv/galleon/bin/./../conf
    23:58:31,178  INFO [main] Server - java.vendor=Sun Microsystems Inc.
    23:58:31,178  INFO [main] Server - file.separator=/
    23:58:31,178  INFO [main] Server - java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    23:58:31,178  INFO [main] Server - sun.cpu.endian=little
    23:58:31,179  INFO [main] Server - sun.io.unicode.encoding=UnicodeLittle
    23:58:31,179  INFO [main] Server - data=/srv/galleon/bin/./../data
    23:58:31,179  INFO [main] Server - sun.cpu.isalist=
    23:58:31,179  INFO [main] Server - Galleon Version=1.9.0
    23:58:31,180  INFO [main] Server - Local IP=192.168.1.1
    23:58:31,181  INFO [main] Server - Host=kenobi.malibyte.net
    23:58:31,181  INFO [main] Tools - Max Memory: 64880640
    23:58:31,181  INFO [main] Tools - Total Memory: 64880640
    23:58:31,181  INFO [main] Tools - Free Memory: 53002056
    23:58:31,251  INFO [main] NetworkServerManager - Creating Database Network Server
    23:58:38,141  INFO [main] NetworkServerManager - Created Database Network Server
    23:58:38,145  INFO [main] HibernateUtil - Initializing Hibernate
    23:58:38,203  INFO [main] Environment - Hibernate 2.1.7
    23:58:38,204  INFO [main] Environment - loaded properties from resource hibernate.properties: {hibernate.connection.password=, hibernate.query.substitutions$
    23:58:38,206  INFO [main] Environment - using CGLIB reflection optimizer
    23:58:38,206  INFO [main] Environment - using JDK 1.4 java.sql.Timestamp handling
    23:58:38,283  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Version.hbm.xml
    23:58:38,605  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Version -> VERSION
    23:58:38,665  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Audio.hbm.xml
    23:58:38,859  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Audio -> AUDIO
    23:58:38,873  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Image.hbm.xml
    23:58:38,967  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Image -> IMAGE
    23:58:38,971  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Video.hbm.xml
    23:58:39,109  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Video -> VIDEO
    23:58:39,131  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Thumbnail.hbm.xml
    23:58:39,183  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Thumbnail -> THUMBNAIL
    23:58:39,192  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/PersistentValue.hbm.xml
    23:58:39,588  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.PersistentValue -> PERSISTENTVALUE
    23:58:39,590  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Podcast.hbm.xml
    23:58:39,768  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Podcast -> PODCAST
    23:58:39,771  INFO [main] Binder - Mapping collection: org.lnicholls.galleon.database.Podcast.tracks -> PODCAST_TRACKS
    23:58:39,777  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Movie.hbm.xml
    23:58:39,908  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Movie -> MOVIE
    23:58:39,911  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Theater.hbm.xml
    23:58:39,935  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Theater -> THEATER
    23:58:39,935  INFO [main] Binder - Mapping collection: org.lnicholls.galleon.database.Theater.showtimes -> THEATER_SHOWTIMES
    23:58:39,939  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Application.hbm.xml
    23:58:39,986  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Application -> APPLICATION
    23:58:39,988  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Videocast.hbm.xml
    23:58:40,010  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Videocast -> VIDEOCAST
    23:58:40,011  INFO [main] Binder - Mapping collection: org.lnicholls.galleon.database.Videocast.tracks -> VIDEOCAST_TRACKS
    23:58:40,035  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/Playlists.hbm.xml
    23:58:40,052  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.Playlists -> PLAYLISTS
    23:58:40,054  INFO [main] Configuration - Mapping resource: org/lnicholls/galleon/database/PlaylistsTracks.hbm.xml
    23:58:40,232  INFO [main] Binder - Mapping class: org.lnicholls.galleon.database.PlaylistsTracks -> PLAYLISTS_TRACKS
    23:58:40,232  INFO [main] Configuration - processing one-to-many association mappings
    23:58:40,524  INFO [main] Configuration - processing one-to-one association property references
    23:58:40,524  INFO [main] Configuration - processing foreign key constraints
    23:58:40,659  INFO [main] Dialect - Using dialect: net.sf.hibernate.dialect.DerbyDialect
    23:58:40,666  INFO [main] SettingsFactory - Use outer join fetching: true
    23:58:40,671  INFO [main] DBCPConnectionProvider - DBCP using driver: org.apache.derby.jdbc.EmbeddedDriver at URL: jdbc:derby:galleon;user=galleon;password=$
    23:58:40,671  INFO [main] DBCPConnectionProvider - Connection properties: {user=, password=}
    23:58:40,678  INFO [main] DBCPConnectionProvider - DBCP prepared statement pooling enabled
    23:58:40,689  INFO [main] TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cach$
    23:58:40,714  INFO [main] SettingsFactory - Use scrollable result sets: true
    23:58:40,714  INFO [main] SettingsFactory - Use JDBC3 getGeneratedKeys(): true
    23:58:40,715  INFO [main] SettingsFactory - Optimize cache for minimal puts: false
    23:58:40,715  INFO [main] SettingsFactory - Query language substitutions: {true=1, false=0}
    23:58:40,715  INFO [main] SettingsFactory - cache provider: net.sf.hibernate.cache.EhCacheProvider
    23:58:40,716  INFO [main] SettingsFactory - query cache factory: net.sf.hibernate.cache.StandardQueryCacheFactory
    23:58:40,718  INFO [main] Configuration - instantiating and configuring caches
    23:58:40,789  WARN [main] EhCache - Could not find configuration for org.lnicholls.galleon.database.Application. Configuring using the defaultCache settings.
    23:58:40,808  INFO [main] SessionFactoryImpl - building session factory
    23:58:42,963  INFO [main] SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    23:58:42,965  INFO [main] UpdateTimestampsCache - starting update timestamps cache at region: net.sf.hibernate.cache.UpdateTimestampsCache
    23:58:42,965  WARN [main] EhCache - Could not find configuration for net.sf.hibernate.cache.UpdateTimestampsCache. Configuring using the defaultCache settin$
    23:58:42,967  INFO [main] StandardQueryCache - starting query cache at region: net.sf.hibernate.cache.StandardQueryCache
    23:58:42,967  WARN [main] EhCache - Could not find configuration for net.sf.hibernate.cache.StandardQueryCache. Configuring using the defaultCache settings.
    23:58:42,968  INFO [main] HibernateUtil - Initialized Hibernate
    23:58:55,620  INFO [main] ShoutcastStations - Exceeded daily search limit for Shoutcast.com
    -> 23:58:55,902 ERROR [main] TiVoListener - java.io.IOException: Operation not permitted
    -> 23:58:56,000 ERROR [main] AppFactory - java.io.IOException: Operation not permitted
    23:58:56,373 ERROR [Thread-15] Tools - Image Error
    23:58:56,373 ERROR [Thread-14] Tools - Invalid internet image: /gallery
    23:58:56,415  INFO [main] BroadcastThread - High frequency enabled
    23:58:56,416  INFO [main] Server - Broadcast port=2190
    23:59:06,690  INFO [ListenThread] BroadcastThread - High frequency enabled
    23:59:30,044  INFO [ListenThread] BroadcastThread - High frequency enabled
    00:00:56,456 ERROR [Thread-25] Tools - EDU.oswego.cs.dl.util.concurrent.TimeoutException: http://www.malibyte.net/gallery
    00:00:56,456 ERROR [Thread-26] Tools - java.lang.InterruptedException
    00:03:57,056 ERROR [Thread-30] Tools - Image Error
    00:03:57,056 ERROR [Thread-29] Tools - Invalid internet image: /gallery
    
    OK, there are some errors near the end of this dump. A few have to deal with one of the URLs I gave it in the app configuration; that shouldn't be the issue.

    Any thoughts on the two I have marked with "->" ??

    TIA
    Bob
     
  7. Nov 18, 2005 #27 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004

    How do I change that?

    Thanks,
     
  8. Nov 18, 2005 #28 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    Well, the easiest way to get gjc out of the way would be to uninstall it. The way to do that depends on your distribution.


    If don't want to do that, then you have to change the path. If your are using bash as your shell, you can do:

    set | grep PATH

    to find your current path. Also, try

    set | grep JAVA

    to see how your java is set up.


    Then add the path to java to beginning of the path:

    PATH=/usr/java/jre1.5.0_05:$PATH
     
  9. Nov 18, 2005 #29 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    I tried running those commands but the same comes up when i type java
    [wes@localhost ~]$ java
    Usage: gij [OPTION] ... CLASS [ARGS] ...
    to invoke CLASS.main, or
    gij -jar [OPTION] ... JARFILE [ARGS] ...
    to execute a jar file
    Try `gij --help' for more information.
    [wes@localhost ~]$
     
  10. Nov 18, 2005 #30 of 138
    crumley

    crumley New Member

    42
    0
    Jan 22, 2003
    Post what you get from here.

    set | grep PATH
    and
    set | grep JAVA

    If your path is set the right way, it shouldn't be finding the wrong java.
     
  11. Nov 18, 2005 #31 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    [wes@localhost bin]$ pwd
    /galleon-1.9.0/bin
    [wes@localhost bin]$ set | grep PATH
    PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/wes/bin
    [wes@localhost bin]$ set | grep JAVA
    [wes@localhost bin]$ java
    Usage: gij [OPTION] ... CLASS [ARGS] ...
    to invoke CLASS.main, or
    gij -jar [OPTION] ... JARFILE [ARGS] ...
    to execute a jar file
    Try `gij --help' for more information.
    [wes@localhost bin]$
     
  12. Nov 18, 2005 #32 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    Try:

    which java

    Also try:

    ls -lad `which java`

    (note those are backticks).

    Drew
     
  13. Nov 18, 2005 #33 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    [wes@localhost ~]$ which java
    /usr/bin/java
    [wes@localhost ~]$ ls -lad `which java`
    lrwxrwxrwx 1 root root 22 Nov 11 13:37 /usr/bin/java -> /etc/alternatives/java
    [wes@localhost ~]$
     
  14. Nov 18, 2005 #34 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    Yeah, that's definitely pointing at gij.

    First, verify that Sun java exists where it should be:

    ls -la /usr/java/jre1.5.0_05/bin/java

    If it's there, remove your symbolic link and create one to Sun's java with the following two commands:

    rm -f /usr/bin/java
    ln -s /usr/java/jre1.5.0_05/bin/java /usr/bin/java

    Drew
     
  15. Nov 18, 2005 #35 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004
    That did it!!! Fired right up and works great. Work a lot faster than it did in Windows too. This was one of my hold backs from switching all to linux. goodbye windows.

    Thanks guys,
    smooth
     
  16. Nov 18, 2005 #36 of 138
    windracer

    windracer joined the 10k club

    12,258
    214
    Jan 3, 2003
    St. Pete, FL
    How did you disable it? Most of us have had to add:

    Code:
    alias net-pf-10 off
    to modprobe.conf.
     
  17. Nov 18, 2005 #37 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    Tried that; the ipv6 module still loaded up. I Googled this and found another solution: after I renamed the module (ipv6.ko) to something else, it no longer loads (obviously).

    Thanks - Bob
     
  18. Nov 18, 2005 #38 of 138
    smoothtivo

    smoothtivo New Member

    28
    0
    Apr 26, 2004

    So if I add a file named say "galleon" to the etc/init.d with this in it, then galleon will start automatically as a service?
     
  19. Nov 18, 2005 #39 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    Yeah...that little init script works. Since Galleon takes a while to finish loading, you'll see the "Galleon is ready" line after the login: prompt. No worries.

    Depending on which distro you're running, you'll need to add symlinks in the /etc/rc.x/ or /etc/rcX.d/ directories to start/stop the script.

    Bob
     
  20. Nov 19, 2005 #40 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    You can suppress that annoying little "Galleon is ready" line by changing line 5 of your script to:

    cd /usr/local/galleon/bin; ./run.sh > /dev/null &

    Drew
     

Share This Page