Installing Galleon on Linux

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

  1. Jan 22, 2006 #81 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA

    Advertisements


    Hi, Leon:

    I've upgraded to Galleon 2.1.0, but I'm still seeing the same issue. The TiVos can't see the server, Galleon can't find the TiVos when doing a search under gui.sh, but it seems to be able to talk to them enough to get their names and their current lists of recordings.

    [​IMG]


    Here's a snippet from netstat -anl:
    Code:
    tcp        0      0 0.0.0.0:1099            0.0.0.0:*               LISTEN
    tcp        0      0 192.168.1.1:7288        0.0.0.0:*               LISTEN
    tcp        0      0 127.0.0.1:1527          0.0.0.0:*               LISTEN
    tcp        0      0 192.168.1.1:8081        0.0.0.0:*               LISTEN
    udp        0      0 0.0.0.0:2190            0.0.0.0:*
    udp        0      0 0.0.0.0:5353            0.0.0.0:*
    
    All looks OK here now except that port 1527 (tcp) is bound only to the localhost address (I don't think that should make any difference, though).

    Here's the relevant stuff from the Galleon logs:
    Code:
    23:11:47,643  INFO [main] Server - java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    23:11:47,643  INFO [main] Server - sun.boot.library.path=/usr/java/jre1.5.0_05/lib/amd64
    23:11:47,643  INFO [main] Server - java.vm.version=1.5.0_05-b05
    23:11:47,643  INFO [main] Server - apps=/srv/galleon/bin/./../apps
    23:11:47,644  INFO [main] Server - os.user.home=/root
    23:11:47,644  INFO [main] Server - java.vm.vendor=Sun Microsystems Inc.
    23:11:47,644  INFO [main] Server - java.vendor.url=http://java.sun.com/
    23:11:47,644  INFO [main] Server - path.separator=:
    23:11:47,651  INFO [main] Server - java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    23:11:47,651  INFO [main] Server - file.encoding.pkg=sun.io
    23:11:47,651  INFO [main] Server - user.country=US
    23:11:47,651  INFO [main] Server - sun.os.patch.level=unknown
    23:11:47,651  INFO [main] Server - skins=/srv/galleon/bin/./../skins
    23:11:47,651  INFO [main] Server - java.vm.specification.name=Java Virtual Machine Specification
    23:11:47,651  INFO [main] Server - user.dir=/srv/galleon/bin
    23:11:47,651  INFO [main] Server - java.runtime.version=1.5.0_05-b05
    23:11:47,651  INFO [main] Server - bin=/srv/galleon/bin/./../bin
    23:11:47,651  INFO [main] Server - java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    23:11:47,651  INFO [main] Server - cache=/srv/galleon/bin/./../data
    23:11:47,651  INFO [main] Server - java.endorsed.dirs=/usr/java/jre1.5.0_05/lib/endorsed
    23:11:47,651  INFO [main] Server - os.arch=amd64
    23:11:47,651  INFO [main] Server - java.io.tmpdir=/tmp
    23:11:47,651  INFO [main] Server - line.separator=
    
    23:11:47,651  INFO [main] Server - java.vm.specification.vendor=Sun Microsystems Inc.
    23:11:47,651  INFO [main] Server - hme=/srv/galleon/bin/./../hme
    23:11:47,652  INFO [main] Server - java.awt.fonts=/lib/fonts
    23:11:47,652  INFO [main] Server - os.name=Linux
    23:11:47,652  INFO [main] Server - sun.jnu.encoding=ISO-8859-1
    23:11:47,652  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/am
    d64
    23:11:47,652  INFO [main] Server - java.specification.name=Java Platform API Specification
    23:11:47,652  INFO [main] Server - java.class.version=49.0
    23:11:47,652  INFO [main] Server - root=/srv/galleon/bin/./..
    23:11:47,652  INFO [main] Server - sun.management.compiler=HotSpot 64-Bit Server Compiler
    23:11:47,652  INFO [main] Server - os.version=2.6.14-2-amd64-k8
    23:11:47,652  INFO [main] Server - user.home=/srv/galleon/bin/./..
    23:11:47,652  INFO [main] Server - user.timezone=US/Pacific
    23:11:47,652  INFO [main] Server - java.awt.printerjob=sun.print.PSPrinterJob
    23:11:47,652  INFO [main] Server - java.specification.version=1.5
    23:11:47,652  INFO [main] Server - file.encoding=ISO-8859-1
    .
    .
    23:11:47,655  INFO [main] Server - Galleon Version=2.1.0
    23:11:47,656  INFO [main] Server - Local IP=192.168.1.1
    23:11:47,656  INFO [main] Server - Host=kenobi.malibyte.net
    23:11:47,656  INFO [main] Tools - Max Memory: 64880640
    23:11:47,657  INFO [main] Tools - Total Memory: 64880640
    23:11:47,657  INFO [main] Tools - Free Memory: 52685336
    23:11:47,769  INFO [main] NetworkServerManager - Creating Database Network Server
    23:11:51,278  INFO [main] NetworkServerManager - Created Database Network Server
    23:11:51,284  INFO [main] HibernateUtil - Initializing Hibernate
    23:11:51,344  INFO [main] Environment - Hibernate 2.1.7
    .
    .
    23:12:02,263 ERROR [main] TiVoListener - java.io.IOException: Operation not permitted
    23:12:02,263 DEBUG [main] TiVoListener - java.io.IOException: Operation not permitted
            at java.net.PlainDatagramSocketImpl.send(Native Method)
            at java.net.DatagramSocket.send(Unknown Source)
            at javax.jmdns.JmDNS.send(JmDNS.java:670)
            at javax.jmdns.JmDNS.init(JmDNS.java:134)
            at javax.jmdns.JmDNS.<init>(JmDNS.java:69)
            at org.lnicholls.galleon.server.TiVoListener.<init>(TiVoListener.java:57)
            at org.lnicholls.galleon.server.Server.start(Server.java:268)
            at org.lnicholls.galleon.server.Server.getServer(Server.java:632)
            at org.lnicholls.galleon.server.Server.main(Server.java:1209)
    
    23:12:02,295 ERROR [main] AppFactory - java.io.IOException: Operation not permitted
    23:12:02,296 DEBUG [main] AppFactory - java.io.IOException: Operation not permitted
            at java.net.PlainDatagramSocketImpl.send(Native Method)
            at java.net.DatagramSocket.send(Unknown Source)
            at javax.jmdns.JmDNS.send(JmDNS.java:670)
            at javax.jmdns.JmDNS.init(JmDNS.java:134)
            at javax.jmdns.JmDNS.<init>(JmDNS.java:69)
            at org.lnicholls.galleon.app.AppHost.listen(AppHost.java:165)
            at org.lnicholls.galleon.app.AppManager.loadApps(AppManager.java:102)
            at org.lnicholls.galleon.server.Server.start(Server.java:270)
            at org.lnicholls.galleon.server.Server.getServer(Server.java:632)
            at org.lnicholls.galleon.server.Server.main(Server.java:1209)
    
    23:12:02,333 DEBUG [main] Tools - findAvailablePort: 1099
    23:12:02,333 DEBUG [main] Tools - Trying port 1099
    23:12:02,505 DEBUG [main] Tools - findAvailablePort: 8081
    23:12:02,505 DEBUG [main] Tools - Trying port 8081
    23:12:02,520 DEBUG [main] Server - Using beacon port=2190
    23:12:02,522  INFO [main] BroadcastThread - High frequency enabled
    23:12:02,522  INFO [main] Server - Broadcast port=2190
    23:12:02,535 DEBUG [main] Server - Server schedule short term: org.lnicholls.galleon.util.ReloadTask@6128453c for 86400
    23:12:02,536 DEBUG [Timer-1] ReloadTask - ReloadTask run:
    23:12:02,538 DEBUG [main] Server - Server schedule long term: org.lnicholls.galleon.util.ReloadTask@bd5d765 for 720
    23:12:02,538 DEBUG [main] Server - Server schedule data: org.lnicholls.galleon.util.ReloadTask@4302df5 for 1440
    23:12:02,538 DEBUG [Timer-2] ReloadTask - ReloadTask run:
    23:12:02,539 DEBUG [ToGoThread] ToGoThread - tivos=2
    
    
    23:12:02,539 DEBUG [ToGoThread] ToGo - getRecordings: 2
    23:12:02,539 DEBUG [ToGoThread] ToGo - mServerConfiguration.getMediaAccessKey()=32
    23:12:02,569 DEBUG [Thread-17] ShoutcastStations - Shoutcast
    23:12:02,609 DEBUG [ToGoThread] ToGo - /TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes&ItemCount=20&AnchorOffset=0
    23:12:02,887 DEBUG [Thread-18] Users - updateApplications:
    23:12:02,887 DEBUG [ConnectionThread] ConnectionThread - Server waiting for client on port 2190
    23:12:04,597 DEBUG [Thread-17] ShoutcastStations - Parameters: ?rn=2297&file=filename.pls
    23:12:04,597 DEBUG [Thread-17] ShoutcastStations - Parameters: ?rn=1414&file=filename.pls
    23:12:04,597 DEBUG [Thread-17] ShoutcastStations - Parameters: ?rn=8045&file=filename.pls
    .
    .
    23:12:05,633 DEBUG [Thread-17] ShoutcastStations - Parameters: ?rn=953137&file=filename.pls
    23:12:05,851 DEBUG [ToGoThread] ToGo - lastChangedDate=Thu Jan 19 22:00:06 PST 2006
    23:12:05,851 DEBUG [ToGoThread] ToGo - tivo.getLastChangedDate()=Fri Jan 13 23:57:39 PST 2006
    23:12:05,851 DEBUG [ToGoThread] ToGo - total=9
    23:12:05,851 DEBUG [ToGoThread] ToGo - tivo.getNumShows()=5
    23:12:05,851 DEBUG [ToGoThread] ToGoThread - 1 of 9
    23:12:05,852 DEBUG [ToGoThread] ToGoThread - 2 of 9
    23:12:05,853 DEBUG [ToGoThread] ToGoThread - 3 of 9
    23:12:05,853 DEBUG [ToGoThread] ToGoThread - 4 of 9
    23:12:05,858 DEBUG [ToGoThread] ToGoThread - 5 of 9
    23:12:05,858 DEBUG [ToGoThread] ToGoThread - 6 of 9
    23:12:05,858 DEBUG [ToGoThread] ToGoThread - 7 of 9
    23:12:05,859 DEBUG [ToGoThread] ToGoThread - 8 of 9
    23:12:05,859 DEBUG [ToGoThread] ToGoThread - 9 of 9
    .
    .
    Method=Broadcast
    Platform=pc/Linux
    Machine=kenobi.malibyte.net
    Identity=00:A0:CC:62:50:85
    Services=TiVoMediaServer:8081/http
    swversion=2.1.0
     to 192.168.1.255
    .
    .
    23:12:07,720 DEBUG [VideoServer] VideoServer - /TiVoConnect?Command=QueryContainer&Container=%2F
    23:12:07,721 DEBUG [VideoServer] VideoServer - 192.168.1.21
    23:12:07,746 DEBUG [VideoServer] VideoServer - /TiVoConnect?Command=QueryContainer&Container=%2F
    23:12:07,746 DEBUG [VideoServer] VideoServer - 192.168.1.11
    .
    .
    23:12:08,403 DEBUG [ListenThread] ListenThread - Got beacon: TiVoConnect=1
    Method=broadcast
    Platform=tcd/Series2
    Machine=HumaxDVD
    Identity=5950001C02D065B
    Services=TiVo-ServeTcdVideo-1:2191/tvbus_v3,TiVoMediaServer:80/http
    swversion=7.2.1-elm-01-2-595
    .
    .
    23:12:08,404  INFO [ListenThread] BroadcastThread - High frequency enabled
    23:12:08,958 DEBUG [ListenThread] ListenThread - Got beacon: TiVoConnect=1
    Method=broadcast
    Platform=tcd/Series2
    Machine=Series2
    Identity=5400001706A8D72
    Services=TiVo-ServeTcdVideo-1:2191/tvbus_v3,TiVoMediaServer:80/http
    swversion=7.2.1-oth-01-2-540
    .
    .
    23:12:18,510 DEBUG [Thread-17] ShoutcastStations - PlaylistItem:  Radioseven - www.radioseven.se=http://217.118.212.66:8500
    23:12:18,573 DEBUG [Thread-17] ShoutcastStations - PlaylistItem:  Radioseven - www.radioseven.se=http://217.30.80.253:8500
    23:12:18,596 DEBUG [Thread-17] ShoutcastStations - PlaylistItem:  Radioseven - www.radioseven.se=http://212.73.29.83:8500
    23:12:18,802 DEBUG [Thread-17] ShoutcastStations - PlaylistItem:  Radioseven - www.radioseven.se=http://213.141.88.181:8500
    .
    .
    23:12:21,921 ERROR [ToGoThread] ToGo - java.net.NoRouteToHostException: No route to host
    23:12:21,922 DEBUG [ToGoThread] ToGo - java.net.NoRouteToHostException: No route to host
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(Unknown Source)
            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
            at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
            at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
            at org.lnicholls.galleon.togo.TiVoSSLProtocolSocketFactory.createSocket(TiVoSSLProtocolSocketFactory.java:65)
            at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:704)
            at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:359)
            at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)
            at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)
            at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
            at org.lnicholls.galleon.togo.ToGo.getRecordings(ToGo.java:136)
            at org.lnicholls.galleon.togo.ToGoThread.run(ToGoThread.java:58)
    .
    .
    23:12:33,626 DEBUG [Thread-17] ShoutcastStations - PlaylistItem:  ChroniX Aggression - Loud & Clear - www.chronixradio.com=http://64.236.34.67:80/stream/10
    39
    23:12:33,711 DEBUG [Thread-21] Movies - New: Edwards Simi Valley Plaza 10
    23:14:38,434 DEBUG [RMI TCP Connection(5)-64.166.193.210] Configurator - TiVo: Name=HumaxDVD DVR
    Server=null
    Address=192.168.1.21
    Port=80
    Platform=null
    SoftwareVersion=null
    Path=null
    LastChangedDate=Thu Jan 19 22:00:06 PST 2006
    NumShows=9
    Capacity=300
    
    23:14:38,437 DEBUG [RMI TCP Connection(5)-64.166.193.210] Configurator - TiVo: Name=Master-BR DVR
    Server=null
    Address=192.168.1.11
    Port=80
    Platform=null
    SoftwareVersion=null
    Path=null
    LastChangedDate=Thu Jan 19 15:57:50 PST 2006
    NumShows=0
    Capacity=40         (note - it's now running with a 200GB drive)
    .
    .
    
    Trying to run the test (on the 192.168.1.1 interface) through gui.sh gives me this (on the command line) just after the progress bar gets all the way over to the right:
    Code:
    
    [root@kenobi: /srv/galleon/bin]$ sh gui.sh
    Exception in thread "Timer-8" java.lang.NullPointerException
            at org.lnicholls.galleon.gui.MainFrame$NetworkDialog$TiVoListener.stop(MainFrame.java:1514)
            at org.lnicholls.galleon.gui.MainFrame$29.run(MainFrame.java:1404)
            at java.util.TimerThread.mainLoop(Unknown Source)
            at java.util.TimerThread.run(Unknown Source)
    
    If I use the "Default" address, it runs through the search, then gives me "No TiVos found on this network interface."

    So, still scratching my head. Any other hints you could throw my way would be appreciated. Could this have anything to do with the fact that I'm running a 64-bit-optimized kernel and binaries (the Java JRE is also 64-bit)? There should be no firewall issues, as I've allowed everything between the internal network and the server's internal interface.

    Thanks...Bob
     
  2. Jan 22, 2006 #82 of 138
    javahmo

    javahmo New Member

    1,538
    0
    Aug 11, 2003
    Is the IP address correct in the Galleon configuration GUI File/Properties menu?
    Have you disabled IPv6?
     
  3. Jan 22, 2006 #83 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    Yes, the IP address is correct:

    [​IMG]

    but it gives me the output in the previous message when I try to test it.

    Yes, I have disabled IPv6.
    Code:
    [root@kenobi: /srv/galleon]$ lsmod | grep v6
    [root@kenobi: /srv/galleon]$
    
     
  4. Jan 24, 2006 #84 of 138
    javahmo

    javahmo New Member

    1,538
    0
    Aug 11, 2003
    I will have to modify Galleon to get around the error you reported earlier. That should get you further, but might not be a solution to your problem. I will include this in the next version of Galleon.
     
  5. Jan 24, 2006 #85 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA

    Advertisements

    Thanks, Leon...I will be happy to help you debug this :D

    Bob
     
  6. Jan 24, 2006 #86 of 138
    jpepin

    jpepin New Member

    12
    0
    Sep 5, 2005
    Well I've installed the latest galleon on my ubuntu "breezy" setup, and it all works great. But I can't seem to get it to start automatically when I log in. I've tried the other tips on this forum, but I can't get it to work. It will really be a pain if I have to start it manually every time I log in or reboot.

    Can anyone tell me how to have the galleon server start automatically on boot (Ubuntu 5.10 w/ gnome).
     
  7. Jan 24, 2006 #87 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA

    Here's a quick-and-dirty one I borrowed from someone else here:

    As root, copy the following to a file named /etc /init.d/galleon:

    Code:
    #!/bin/sh
    case "$1" in
    start)
    echo "Starting Galleon TiVo HME server:"
    cd /srv/galleon/bin; ./run.sh &       # <------CHANGE this directory to whatever it is on your machine.
    ;;
    stop)
    echo "Stopping Galleon TiVo server:"
    pkill -f galleon
    ;;
    *)
    echo "Usage: /etc/init.d/galleon {start|stop}"
    exit 1
    ;;
    esac
    

    Then, at a command prompt:

    chmod 750 /etc/init.d/galleon

    ln -s /etc/rc0.d/K98galleon /etc/init.d/galleon
    ln -s /etc/rc2.d/S98galleon /etc/init.d/galleon
    ln -s /etc/rc3.d/S98galleon /etc/init.d/galleon
    ln -s /etc/rc6.d/K98galleon /etc/init.d/galleon

    You're good to go.
     
  8. Jan 25, 2006 #88 of 138
    jpepin

    jpepin New Member

    12
    0
    Sep 5, 2005
    Thanks for the quick respomse...i'll give it a shot!
     
  9. Jan 25, 2006 #89 of 138
    jpepin

    jpepin New Member

    12
    0
    Sep 5, 2005

    Thanks Malibyte, that did the trick with a couple modifications. It should be :

    ln -s /etc/init.d/galleon /etc/rc0.d/K98galleon
    ln -s /etc/init.d/galleon /etc/rc2.d/S98galleon
    ln -s /etc/init.d/galleon /etc/rc3.d/S98galleon
    ln -s /etc/init.d/galleon /etc/rc6.d/K98galleon

    Initially it didn't work. Then I changed the file owner to root and the group to users, and it worked (it was originally owner=jpepin, group=jpepin). I don't know enough about it to know if I needed to change both of theses settings, but it worked.

    So the question is...does root have to be the owner? Also, how can I check to see that it's working, other than trying it on the Tivo? Is there a command to stop the server?

    Thanks again :)
     
  10. Jan 25, 2006 #90 of 138
    azitnay

    azitnay Active Member

    2,977
    0
    Jan 20, 2003
    Washington,...
    root would typically be the owner of anything in /etc/init.d... You can ls the dir and verify that everything else is.

    I don't know anything about your particular distribution of Linux, but typical commands to start and stop would be:

    service galleon start
    service galleon stop

    If all else fails, the following should definitely work:

    /etc/init.d/galleon start
    /etc/init.d/galleon stop

    Drew
     
  11. Jan 25, 2006 #91 of 138
    windracer

    windracer joined the 10k club

    12,275
    219
    Jan 3, 2003
    St. Pete, FL
    Ah, thanks for reminding me about this! I had been meaning to set up a daemon for Galleon and kept forgetting. Now I'm all set ...
     
  12. Jan 28, 2006 #92 of 138
    classicsat

    classicsat Astute User

    17,877
    0
    Feb 18, 2004
    Ontario Canada.
    I did the script and the K/S98 links, and Galleon does not autostart, but the /etc/init.d/galleon start command starts it. service galleon start does not work, as I have no service command, at least in my user path.

    How do I make galleon

    I have couple icons on my desktop ( a shell script) that each starts galleon and the GUI.

    Galleon and the GUI work just fine when I manually start them.

    I am using Fedora Core 3, as a user (which auto logs in for me). I will got to root if I need to, but I won't just to autostart Galleon.
     
  13. Jan 28, 2006 #93 of 138
    Malibyte

    Malibyte Took the red pill

    128
    0
    Jun 12, 2005
    Simi Valley, CA
    The service command is not in the "regular" user path (it's in /sbin, I believe).

    No guarantees here, but you could try this (as root):

    Add this line to the beginning of the /etc/init.d/galleon script:
    # chkconfig: 2345 98 98

    Then cd to /etc/init.d and issue the following command:
    chkconfig --level 2345 galleon on

    The Fedora and Mandr(ake, iva) distros utilize chkconfig as a way to turn these init scripts on and off. Hope this works.
     
  14. Jan 29, 2006 #94 of 138
    classicsat

    classicsat Astute User

    17,877
    0
    Feb 18, 2004
    Ontario Canada.
    I found the service command, That starts galleon manually.

    The chkconfig thing doesn't work.

    For kicks, I put /sbin/service galleon start in the /etc/rc.d/rc.local file, with no effect.

    Any other suggestions.
     
  15. Feb 1, 2006 #95 of 138
    classicsat

    classicsat Astute User

    17,877
    0
    Feb 18, 2004
    Ontario Canada.
    This is in my system log (galleon not in rc.local)


    Feb 1 00:02:45 localhost anacron: anacron startup succeeded
    Feb 1 00:02:45 localhost atd: atd startup succeeded
    Feb 1 00:02:45 localhost readahead: Starting background readahead:
    Feb 1 00:02:45 localhost rc: Starting readahead: succeeded
    Feb 1 00:02:45 localhost messagebus: messagebus startup succeeded
    Feb 1 00:02:45 localhost cups-config-daemon: cups-config-daemon startup succeeded
    Feb 1 00:02:45 localhost galleon: Starting Galleon TiVo HME server:
    Feb 1 00:02:46 localhost galleon: libgcj-java-placeholder.sh
    Feb 1 00:02:46 localhost rc: Starting galleon: succeeded
    Feb 1 00:02:46 localhost haldaemon: haldaemon startup succeeded


    I think it might not be finding the JRE for some reason.

    I tried putting the path and java+home variable into the run.sh script, with no effect.
     
  16. Feb 15, 2007 #96 of 138
    liam193

    liam193 New Member

    7
    0
    Jan 4, 2005
    Can you give some more details regarding your install? Do you have jmdns installed on your system? What java version are you running, etc.? Keeping IPv6 shutdown is getting more and more difficult.
     
  17. Feb 15, 2007 #97 of 138
    ocntscha

    ocntscha Member

    149
    0
    Oct 22, 2003
    About a year ago when I set up Galleon on my Linux box I stuck the line

    /usr/local/galleon/bin/run.sh < /dev/null &> /var/log/galleon.log &

    into /etc/rc.local

    and modified /usr/local/galleon/bin/run.sh a little bit as shown below, key being to get java in $PATH and changing directory to wherever run.sh is (cd /usr/local/galleon/bin) so that the lines with the relative paths in them ("CLASSPATH=../conf" and "for j in ../lib/*.jar") will work.

    Thats all it took as I recall, its served me well for the past year.

    #!/bin/bash
    #
    # Run the Galleon server
    #
    # You may have to set JAVA_HOME to the correct value for your system

    export PATH=/usr/java/jre1.5.0_06/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/
    local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    export JAVA_HOME=/usr/java/jre1.5.0_06
    OLDCLASSPATH=$CLASSPATH
    cd /usr/local/galleon/bin
    CLASSPATH=../conf
    for j in ../lib/*.jar
    do
    CLASSPATH=$CLASSPATH:$j
    done

    OPTION=""
    if [ -f "$JAVA_HOME/bin/server" ]; then
    OPTION=-server
    fi
    #java $OPTION -cp $CLASSPATH -Xms64m -Xmx64m -Djava.awt.fonts="$JAVA_HOME/lib/fo
    nts" -Dawt.toolkit=com.eteks.awt.PJAToolkit org.lnicholls.galleon.server.Server
    ulimit -n 3072
    java $OPTION -cp $CLASSPATH -Xms64m -Xmx128m -Djava.awt.fonts="$JAVA_HOME/lib/fo
    nts" -Dawt.toolkit=com.eteks.awt.PJAToolkit org.lnicholls.galleon.server.Server
    export CLASSPATH=$OLDCLASSPATH
     
  18. Sep 29, 2007 #98 of 138
    seanatki

    seanatki New Member

    5
    0
    Sep 27, 2007
    Here is my problem.

    If the server is running, I can't get gui.sh to show me anything other than the logo that pops up.

    If the server is not running, gui.sh seems to work fine, but it obviously cannot not connect to the server.

    I know the server is working properly since my TiVo can see it, so does anybody have an idea of what the problem might be?
     
  19. Sep 29, 2007 #99 of 138
    windracer

    windracer joined the 10k club

    12,275
    219
    Jan 3, 2003
    St. Pete, FL
    What version are you running? As of 2.5.0 (and now 2.5.1 was released today) there is a Linux makefile for installs. Maybe you should give the new version a shot to see if that helps (assuming you're not running it already).
     
  20. seanatki

    seanatki New Member

    5
    0
    Sep 27, 2007
    I'm downloading it now. Hopefully this will not only work, but be a little easier to get running. Thanks!
     

Share This Page

spam firewall

Advertisements