SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 01-08-2009, 02:22 PM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by kbyrd View Post
Hmm, so I actually need to that list (faad, mad, lame) and lay them down somwhere in that LD_LIBRARY_PATH can find them? Or does sage include them? The aren't load time depedencies because I've got sage running without 32-bit versions of those libs. The must dl_open (or whatever you do in Java to get a handle to a library at runtime) them.
I've been running Sage on 64-bit Ubuntu 8.04 for months. I don't have 32-bit versions of those libs installed, and I've never seemed to need them. Granted, I do almost all my viewing on an hd100, so I don't use the client software much.

Drew
Reply With Quote
  #42  
Old 01-11-2009, 04:25 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
Quote:
Originally Posted by drewg View Post
I've been running Sage on 64-bit Ubuntu 8.04 for months. I don't have 32-bit versions of those libs installed, and I've never seemed to need them. Granted, I do almost all my viewing on an hd100, so I don't use the client software much.

Drew
I'm installing ubuntu 64 as we speak -

question on liblame0 though - on 32 bit it worked to just apt-get it but it bawks that it is now libmp3lame on 64 bit -

did you have to do any additional linking to get it working?
Reply With Quote
  #43  
Old 01-11-2009, 05:07 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Quote:
Originally Posted by Zervun View Post
I'm installing ubuntu 64 as we speak -

question on liblame0 though - on 32 bit it worked to just apt-get it but it bawks that it is now libmp3lame on 64 bit -

did you have to do any additional linking to get it working?
I installed libmp3lame0 and lame (on 64-bit 8.10). I'm using SageTV Linux as a server, and an HD200 as the front end. Everything seems to be working, I can playback QAM mpeg2 content, older recorded ntsc mpeg2 content, and several handbrake mpeg4 rips of my DVDs. I'm not convinced those dependencies are getting used. It's possible Sage is handling these formats internally.

I do have a problem playing a x264 dvd rip, it crashes the HD200. I'm not sure if this is related or not. I'm going to report it to beta tech support.
Reply With Quote
  #44  
Old 01-12-2009, 04:27 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
Well I tried ubuntu 64 bit 8.10 everything seemed to go well until I got to the java install - (amd64). That plus the horrors of NetworkManager under ubuntu (god it's aweful rewritting /etc/resolv.conf and interfaces on reboot finally did a purge of it and edited rc.local).

I downloaded the i586.bin from Sun, extracting it would fail -

I tried to do the fakeroot/pkg trick to turn it into a .deb but that also failed. I have a feeling that there is some code within the .bin that is causing the fail.

I am going to try centos 64 bit tonight as well as debian 64 tonight.

They really do not make it simple to install 32 bit java under the 64 bit platforms, unless I'm doing something wrong. I'm hoping that I can either just regular install it on debian 64 with the i586.bin, fakeroot/jkpg it to trick it into a pkg, or pray that my install with Centos I can do it with either a rpm or the .bin

I like centos, but unfortunately no XFS out of the box - I run a personal server in a datacenter with Centos 5.2.
Reply With Quote
  #45  
Old 01-12-2009, 05:05 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Have hope. My install seems to work fine.

- Ubnutu 8.10 64-bit. I'm using the HDHomeRun, so no kernel issues.

- SageTV tar package put in /opt/sagetv/server/

- installed ia32-libs and ia32-sun-java6-bin. These are the 32-bit packages built to be installed on a 64-bit Ubuntu install.

- I installed (with aptitude) 64-bit versions of lame, mad, faac, faad. I still don't quite see how these can be used by the 32-bit Java process, but everything seems to work. I do have problems playing a single mkv file, but I also had trouble playing it in a 32-bit chroot with Sage and the right libs. I've filed a bug report.

I really wish Narflex or someone close to the code at Sage could tell us what the modern (6.5.6) Linux version actually needs for dependencies and why and whether they're libs or apps or whatever. When I do an ldd on the sage server directory, I get a few things like libTSnative missing, but nothing like mad or lame or anything.
Reply With Quote
  #46  
Old 01-12-2009, 07:30 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
libTS is included in the server directory. you'll find the other missing libs there too
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #47  
Old 01-13-2009, 12:24 AM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Quote:
Originally Posted by bcjenkins View Post
libTS is included in the server directory. you'll find the other missing libs there too
I saw that, and then after I posted I saw that the startsage script changes LD_LIBRARY_PATH to include '.' so I shouldn't worry.

I would still like to know under what conditions Sage 6.5.6 needs mad, faac, fad, and lame and whether it needs the lib or the binary. I've been using 64-bit Ubuntu with ia32-libs and ia32-sun-java6-bin, plus 64-bit packages (from the repository) of those dependencies and it seems to be working great. The one mkv file that I'm having trouble with has played at least once, I'm working through it with Sage tech support. But at least I know it's possible.

Last edited by kbyrd; 01-13-2009 at 10:09 AM.
Reply With Quote
  #48  
Old 01-13-2009, 07:13 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
well I think I am close to get it working on debian 64, if it does work I'll be making a readme on it -

I'm having a couple issues

1. I am failing on the keygen.sh, but I've emailed sage - I think I might be locked out due to more than 4 times installing

License Key File: activkey
Public/Private Key Generation Directory: .
Loaded SageTV's global public RSA key.
Establishing network connection to the SageTV License Activation Server...
Error with license activation: java.net.UnknownHostException: download.sage.tv

2. I can't for the life of me get my kworld 115 and my avermedia a180 to work in my machine though -

I've got the firmware - but for those cards you need to place the .fw file in either /lib/firmware/(kernel) or /lib64/firmware/(kernel)

sudo apt-get install linux-doc-(kernel version)
cd /(kernel source directory)/Documentation/dvb/
sudo gzip -d get_dvb_firmware.gz
sudo chmod +x get_dvb_firmware
sudo perl get_dvb_firmware nxt2004
sudo cp /dvb-fe-nxt2004.fw /lib/firmware/(kernel version)

I don't have the "kernel version" directory under 64 bit debian

Unfortunately both those directories are completely blank for me. There also was not a modprobe.conf file to add the special bit of code so that the cards can both be in there at the same time. I created one but it's not working in /etc/modprobe.conf or /etc/modprobe.d/modprobe.conf

The line for those who want to know is the following

options saa7134 card=90,90 disable_ir=1

This allows both card to work at the same time - I know it works on 32bit, as I've done it (there was also a modprobe.conf file already there)

3. My ldd doesn't seem to be working which I find odd as I'm running it as root - and those files are in the directory, also owned by root

alfonz:/opt/sagetv/server# ldd /opt/sagetv/server/* | grep not\ found
ldd: warning: you do not have execution permission for `/opt/sagetv/server/activkey'
ldd: /opt/sagetv/server/ChannelLogos: No such file or directory
ldd: /opt/sagetv/server/clients: No such file or directory
ldd: /opt/sagetv/server/irtunerplugins: No such file or directory
ldd: /opt/sagetv/server/JARs: No such file or directory
ldd: warning: you do not have execution permission for `/opt/sagetv/server/key'
libavutil-minimal.so.49 => not found
libavcodec-minimal.so.52 => not found
libavutil-minimal.so.49 => not found
libTSnative.so => not found
libiec61883.so.0 => not found
libraw1394.so.8 => not found
libavc1394.so.0 => not found
librom1394.so.0 => not found
libTSnative.so => not found
libavformat-minimal.so.52 => not found
libavcodec-minimal.so.52 => not found
libavutil-minimal.so.49 => not found
libTSnative.so => not found
ldd: /opt/sagetv/server/remotes: No such file or directory
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Sage.jar'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Sage.properties'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Sage.properties.autobackup'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/sagetv_0.txt'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/SageTVLocator.private.key'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/SageTVLocator.public.key'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/SageTV.private.key'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/SageTV.public.key'
ldd: /opt/sagetv/server/STVs: No such file or directory
ldd: warning: you do not have execution permission for `/opt/sagetv/server/tv.sage.mod.0.log'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/tv.sage.mod.0.log.lck'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Wiz.bak'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Wiz.bin'
ldd: warning: you do not have execution permission for `/opt/sagetv/server/Wiz.bin.corrupt0'
Reply With Quote
  #49  
Old 01-13-2009, 07:17 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
Actually I did ldd *.so and it looks normal within the directory not sure why the other command was not working
Reply With Quote
  #50  
Old 01-13-2009, 08:06 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Just an opinion...

Unless you're using Debian unstable, the stability of Debian comes with a cost of older software. I use Debian for my mail/web/svn/wiki server, but not my home Sage box.

My instinct is that the media stuff you want is likely to be in the latest and greatest kernels and userspace, not Debian 4.0. But, unstable is pretty up-to-date if you're using that.
Reply With Quote
  #51  
Old 01-13-2009, 08:40 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
Quote:
Originally Posted by kbyrd View Post
Just an opinion...

Unless you're using Debian unstable, the stability of Debian comes with a cost of older software. I use Debian for my mail/web/svn/wiki server, but not my home Sage box.

My instinct is that the media stuff you want is likely to be in the latest and greatest kernels and userspace, not Debian 4.0. But, unstable is pretty up-to-date if you're using that.
I use centos/redhat heavily both at work and I have my own 1u in a datacenter - wanted to just use debian/ubuntu varieties at home for some practice with the other distros

I've gotten all this to work perfectly under 32bit debian (with upgraded kernel) - I just can't seem to get it working on 64 bit.

Honestly at this point I'm almost ready to go back to Centos, but it doesn't offer XFS on a base install easily
Reply With Quote
  #52  
Old 01-13-2009, 09:40 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
I know some people bag on Ubuntu for stability, but if you want to play with .deb based distros but get newer kernels and userlevel binaries, pick Ubuntu 8.10. Sage is working fine for me on 64-bit 8.10 , and I can walk you through what I did over email or PM. You're on your own for driver support in the kernel, I use an HDHR which Sage supports by itself. But, if Myth supports your cards, you should be fine.
Reply With Quote
  #53  
Old 01-14-2009, 03:24 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Driver support is ok in 8.10 because it is fresh enough. However, the best stuff is at linux-dvb and is fairly simple to compile yourself from source.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #54  
Old 01-15-2009, 04:20 PM
jimwhite jimwhite is offline
Sage User
 
Join Date: Nov 2003
Posts: 65
Quote:
I know some people bag on Ubuntu for stability, but if you want to play with .deb based distros but get newer kernels and userlevel binaries, pick Ubuntu 8.10. Sage is working fine for me on 64-bit 8.10 , and I can walk you through what I did over email or PM.
Do us all a favor and write up the walk through here so we all can benefit...
__________________
<=============
Jim White
Treasure Island, FL
Reply With Quote
  #55  
Old 01-15-2009, 05:24 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
How I got sage working on Ubuntu 8.10 64-bit.

UPDATE: I rewrote this to put the step-by-step up front, with details below:
Well, I didn't plan to document it so this may not work for everyone. I may have done something here or there that I forgot to mention. If I reinstall from scratch, I'll keep better notes.


To get Sage running:

0) See my rambling system details below. It's a 64-bit Ubuntu 8.10 Server install. No GUI or desktop of any sort.

1) Install 32-bit Java 6 jre: 'aptitude install ia32-sun-java6-bin'

2) Do 'aptitude install faad libfaad2-0 lame liblame0 mad libmad0'. Accept whatever dependencies aptitude wants on top of those files. Notice I installed the libs and the apps. I still don't know if the libs or apps are required. If the libs are, I don't know how this works from a 32-bit java process. I suspect the libs are required and they are only used for transcoding content when the HD200 needs it. I'm probably lucky enough that I haven't actually needed transcoding yet.

3) mkdir /var/media/tv,video,pictures,music. These are just to get started, later I changed Sage's settings to not use these directories.

4) Starting from the system above, the tar.gz package.

5) Download and untar the Sage server download tar.gz package into /opt/sagetv/server.

5) cd /opt/sagetv/server, run ./keygen.sh

6) run /opt/sagetv/server/startsage

7) Connect from the HD200 and start configuring.

8) Add '/opt/sagetv/server/startsage' to /etc/rc.local

So far, everything works. I watch QAM output from an HDHR, and also h.264, xvid, dvix, other mpeg4 videos as well. It just occurred to me that I haven't tried playing mp3 files or looking at my image library.


-------

Some details about my setup. I don't think they matter, but it might to someone.

The server is Linux doing NAS/SageTV duties. I use an HD200 extender for the client. I'm using the HDHomerun for a tuner. Using the HDHR means I don't have to mess with 64-bit drivers for tuner cards working from 32-bit Sage.

I've got an AMD BE-2400 with 2GB or RAM. I'm running a fairly stock 64-bit 8.10 install. I've got no GUI, no X, no Gnome, or anything. I did the Ubuntu server installer, but it doesn't matter much. IIRC, you can make the desktop installer give you a pretty stripped down installation. I boot from a USB stick. My entire root file system is ext3 and is on the USB stick. When I built the box, drive bays and sata ports were at a premium and I didn't want to waste a disk on root. I've mounted things like /var/log and /tmp in tmpfs so I won't wear out the USB stick as fast. For lots of storage I've got 7 500GB SATA drives in a Linux md RAID5 (128k chunks) array formatted with XFS. I run Samba to share things to the other boxes in the house.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM

Last edited by kbyrd; 01-19-2009 at 10:32 AM.
Reply With Quote
  #56  
Old 01-19-2009, 02:20 AM
bbobbo bbobbo is offline
Sage User
 
Join Date: Feb 2004
Location: Cambridge, MA
Posts: 24
kbyrd: are you basically ignoring programming on standard-def-only channels?
Reply With Quote
  #57  
Old 01-19-2009, 10:34 AM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
Quote:
Originally Posted by bbobbo View Post
kbyrd: are you basically ignoring programming on standard-def-only channels?
Yes, I'm using only a Silicon Dust HDHomerun as my tuner, and it's pulling in QAM signals from Comcast Cable.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #58  
Old 01-20-2009, 01:43 PM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
Well, I gave up on amd64 bit debian -

I tried the exact steps above, except on debian

java --version shows the correct 32 bit java

isis:/opt/sagetv/server# java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

when doing ./keygen.sh it pops an error

License Key File: activkey
Public/Private Key Generation Directory: .
Loaded SageTV's global public RSA key.
Establishing network connection to the SageTV License Activation Server...
Error with license activation: java.net.UnknownHostException:
download.sage.tv alfonz:/opt/sagetv/server#

I can ping download.sage.tv just fine -

With the 32 bit identical install on debian it works - if someone is bored and has the time and has a amd64 machine I would love to see someone try it to make sure I'm not insane
Reply With Quote
  #59  
Old 01-20-2009, 03:00 PM
kbyrd kbyrd is offline
Sage Aficionado
 
Join Date: Sep 2008
Location: SF Bay Area, CA
Posts: 282
You might try submitting a bug report, being sure to mention you know it's not a supported OS and such, but maybe they are interested.
__________________
Current Server: Sage v7.1.9.1 beta w/ Diamond UI on Ubuntu 11.10 x86_64 | Storage: Linux md's raid10,f2 | Client: HD300 extender | Tuner: HDHomeRun for QAM
Reply With Quote
  #60  
Old 01-22-2009, 09:40 AM
Zervun Zervun is offline
Sage User
 
Join Date: Jan 2008
Posts: 64
I already did, haven't heard anything back
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login into linux running on HD Media Extender + GPL bastafidli SageTV Media Extender 10 12-15-2007 05:49 PM
HD on Linux paulbeers SageTV Linux 1 03-26-2007 09:01 AM
Linux Fan oddjob SageTV Linux 1 02-07-2007 12:20 PM
Can Sage Linux 'really' run as a client...? PGPfan SageTV Linux 5 02-04-2007 10:00 PM
SageTV for Linux version 5 or version 6? ataren SageTV Linux 1 12-28-2006 04:04 PM


All times are GMT -6. The time now is 09:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.