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
  #1  
Old 05-23-2006, 12:58 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Talking SageTV 5 for Linux Beta is now available - with Placeshifting & wireless MVP!!

Howdy all!

We've finally got that Linux V5 beta ready. And as promised, it includes support for Placeshifting. It also includes support for the new wired AND wireless MVP (Windows version will be out later today....Linux is first this time )

This version has a new architecture where the backend runs like a service and the front end is another application. There are no longer any dependencies on NVidia graphics cards. All graphics cards should function as long as they have an overlay.

This version also has the ability to be much more easily installed on another distribution instead of using the default Gentoo install (check out the advanced section at the end of the instructions).

REMEMBER: This requires a valid SageTV for Linux license to function.

Please submit any bugs here: http://sagetv.com/bugs.html

Anyways....without any more fussing. Here's what you need to know to install SageTV for Linux Version 5 Beta:

SageTV 5 for Linux OEM Edition Installation Information

The default installation is divided into 4 steps:

- Download and burn the Gentoo Installer CD.
- Install the Gentoo base system
- Install the SageTV packages
- Configuring SageTV

Please note that you need internet access to complete the install. It is VERY important to follow the directions, doing so will prevent you from having problems.

* Download and burn the Gentoo Installer CD.

You first need to obtain the Gentoo livecd installer 2006.0. You can download it from one of the mirrors at http://www.gentoo.org/main/en/mirrors.xml. It is found in the release/x86/2006.0/livecd directory of the mirrors as livecd-i686-installer-2006.0.iso.

This is an example link to one of the mirrors:
http://distro.ibiblio.org/pub/linux/...ler-2006.0.iso

Once you have obtained the file you need to burn it to a CD and boot from it on the system on which you wish to install SageTV 5. You might need to enable boot from cd in your system BIOS.

* Install the Gentoo base system

Restart your system with the cd in the drive and wait for the desktop menu to appear. When the system asks for a login simply wait 10 seconds.

Once you see the desktop you must go to a terminal to download the install profile. To do so press Ctrl-Alt-F1 to switch terminal then type the following command:

wget download.sagetv.com/linuxweb/installprofile.xml


[ *** If you are updating from a previous version you should make a copy of your old Wiz.bin in /opt/sagetv/usr to /var/media if you wish to keep your recordings. This can be done with the following commands assuming a default install of the previous version :
mount /dev/hda1 /mnt/gentoo
cp /mnt/gentoo/opt/sagetv/usr/Wiz.bin .
umount /mnt/gentoo
mount /dev/hda3 /mnt/gentoo
cp Wiz.bin /mnt/gentoo
umount /dev/hda3
]

This will download the installprofile to the temporary /root directory of the install CD.

After the download has completed return to the graphical desktop by pressing Ctrl-Alt-F7. You can now start the installer graphical interface by clicking on the Gentoo Linux Installer icon. From the first screen you need to load the installprofile.xml that was downloaded previously by clicking on the load button then going up the file tree to /root to select installprofile.xml.

After the installprofile is loaded you need to press forward up to the Partitioning screen. The default values entered in this screen are for an update from the previous version. If you are installing to a new system select the third partition, click the properties button and select that it should format the partition. Even if you are not updating you should verify the partitioning so that the first partition contains the main system in /, the second one the swap and the third one the media files in /var/media.

After that you can press forward up to the Timezone screen to select your timezone. Once that's completed you can press forward up to the end and finally press install.

The install process can take 1 hour or more depending on the computer speed. You can ignore the errors at the end of the process when it is installing services. When the install is completed a message will appear on the bottom.

At that point you can reboot the system by clicking on Desktop on the top of the screen, selecting Log out then restart the system.

* Install the SageTV packages

When the system is restarting you need to remove the installer CD to boot from the hard drive. You will be presented with a login screen. The username is root and the password is sage (you will be asked to set another password later)

Once you are at the command line you need to download the package install script by typing the command:

wget download.sagetv.com/linuxweb/sagesetup.sh

then execute it with the command

sh sagesetup.sh

This will start the install script on which you simply need to follow the on screen instructions. You might notice some warnings but you can safely ignore them.

At one point in the setup you will be asked to set the sound card configuration with alsamixer. In that screen you can use the left and right arrows to select the channels then press up/down to increase or decrease the volume. If a channel is muted you will see M at the base of the lines. You can unmute it by pressing M on the keyboard. Once you are done configuring the sound card you can press Escape to exit and save the configuration. You should not set the volumes too high if you want to avoid distortion problems. The values depend on the sound card so we can't give the appropriate values. You should try to look for channels called Master and PCM as they are usually the important ones.

You will be asked for your activation keys near the end of the package setup and the password you would like to set for the system. Once the setup is completed you will be asked to press enter to reboot the system.

* Configuring SageTV

After the system reboots you should see the SageTV wizard to configure your system settings and capture cards.


* Advanced setup - Installing SageTV on a non-Gentoo distribution

Installing Linux SageTV on existing systems

SageTV for linux is divided in two programs, the server and the client. You can install them independently for different purposes such as having a server for extenders or to run only the client to use as a placeshifter client that connects over the internet or a lan.

Before installing either of those you must accept the EULA by downloading it from http://download.sagetv.com/linuxweb/EULA.txt

- Server setup

The server depends on a capture source as well as some dependencies to support placeshifting clients.

First you must create the directory for the server files : /opt/sagetv/server Then download the server package from http://download.sagetv.com/linuxweb/server.tar.gz
and extract them with
tar -xzf server.tar.gz -C /opt/sagetv/server

The server has a few dependencies to run on the system :
- Java runtime 1.5 : http://java.sun.com/j2se/1.5.0/download.jsp
- mad library : http://www.underbit.com/products/mad/
- lame library : http://lame.sourceforge.net/download/download.html
- faad2 library : http://www.audiocoding.com/modules/mydownloads/

You can install those using the packaging system of your distribution or by downloading them from their respective websites.

To record video using a capture card you also need to install the ivtv drivers. Depending on the kernel version you should install the appropriate version. You can find more information at http://www.ivtvdriver.org/index.php/Main_Page

If you need the ivtv firmware files you can download the one we are using at :
http://download.sagetv.com/linuxweb/ivtvfirmware.tar.gz
You will need to extract them in the hotplug firmware directory of your distribution. (/lib/firmware for example)

You can verify the output of dmesg to see if the ivtv driver has loaded properly and found the right card model and firmware. As new revisions of the card appear it's possible for the tuner or other module of the cards not to be supported, they are usually added in the next revision of the drivers.

The default path for media files is /var/media you need to create this directory as well as the various subdirectories:
mkdir /var/media
mkdir /var/media/tv
mkdir /var/media/videos
mkdir /var/media/pictures
mkdir /var/media/music

You can also configure the server to use other directories when it is running.

Before starting the server initially you must enter your key by running the keygen script :
cd /opt/sagetv/server
./keygen.sh

Afer that you are ready to start the server process by executing the startsage script :
/opt/sagetv/server/startsage

You might want to add it so that it is automatically started on the system boot for example in the init scripts or your desktop startup programs.

The stopsage script can also be run before shutdown to stop the server.


- Client setup

The client has the same dependencies as the server except the ivtv driver. It is also able to use lirc for IR input.
- Java runtime 1.5 : http://java.sun.com/j2se/1.5.0/download.jsp
- mad library : http://www.underbit.com/products/mad/

You can download lirc from http://www.lirc.org. If you are running the latest kernel you might need to apply an additional patch for compatibility.

You can download the client package from http://download.sagetv.com/linuxweb/miniclient.tar.gz
and extract it in a new directory (/opt/sagetv/client for example) then run it by starting the sageclient.sh script.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #2  
Old 05-23-2006, 01:44 PM
zoop's Avatar
zoop zoop is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Elkridge, MD
Posts: 184
thanks jeff, upgrading now...
Reply With Quote
  #3  
Old 05-23-2006, 01:53 PM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
This should be fun

Given the comments on the Windows version about backing down to Java 1.5.0-05, should we be doing the same for the linux version?
__________________
Sage Server: HP ProLiant N40L MicroServer, AMD Turion II Neo N40L 1.5GHz Dual Core, 8GB Ram, WHS2011 64bit, Sage 7.1.9 WHS, HDHR (1 QAM, 1 OTA), HDHR Prime 3CC, HD-PVR for copy-once movie channels
HTPC Client:Intel DH61AG, Intel G620 cpu, 8GB ram, Intel 80GB SSD, 4GB RamDisk holding Sage/Java/TMT5
Sage Client:Sage HD-200 Extender

Last edited by Kirby; 05-23-2006 at 01:58 PM.
Reply With Quote
  #4  
Old 05-23-2006, 02:02 PM
_Demo_ _Demo_ is offline
Moderator
 
Join Date: Mar 2003
Posts: 863
Send a message via ICQ to _Demo_
I believe the java issue is windows specific.

_Demo_
Reply With Quote
  #5  
Old 05-23-2006, 02:05 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Kirby
This should be fun

Given the comments on the Windows version about backing down to Java 1.5.0-05, should we be doing the same for the linux version?
While that same bug does exist in the Linux version of Java, SageTV does not use that call at all on Linux.

So using the latest version of Java on Linux should present no problems.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #6  
Old 05-23-2006, 04:47 PM
AndyS AndyS is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 383
I'm wondering if the install behaviour is different on VMWare (4.5.3). I boot the LiveCD which logs into the desktop as 'gentoo', with a home directory of /home/gentoo and not (of course) /root (which user gentoo doesn't have access to). The Ctrl-Alt-F1 trick doesn't work (VMWare again?) so I manually open a terminal session and do the wget into /home/gentoo. However when I run the graphical installer and attempt to load the install profile it errors out with "An error occurred loading the install profile". I did a chmod to 777 on the file and the directory, and did the wget again into a new directory but nothing seems to help.

Anyone have any ideas?

FYI, I'm using VMWare because I want to eventually dd the filesystem to an NFS server so that I can do a diskless boot, and I don't have a spare disk-based system for the initial install.

Andy.
Reply With Quote
  #7  
Old 05-23-2006, 04:59 PM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
Jeff Placeshifting by it self?
Reply With Quote
  #8  
Old 05-23-2006, 05:15 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by SHS
Jeff Placeshifting by it self?
In the Windows 5.0.3 thread, this was posted:
Quote:
SageTV Placeshifter for Linux Gzip'd TAR
http://download.sage.tv/linuxweb/miniclient.tar.gz
Reply With Quote
  #9  
Old 05-23-2006, 05:21 PM
_Demo_ _Demo_ is offline
Moderator
 
Join Date: Mar 2003
Posts: 863
Send a message via ICQ to _Demo_
Quote:
Originally Posted by AndyS
FYI, I'm using VMWare because I want to eventually dd the filesystem to an NFS server so that I can do a diskless boot, and I don't have a spare disk-based system for the initial install.

Andy.
The activation will not work using this setup since it would bind to your vmware system. You could try to install SageTV by connecting to the nfs server while doing the install from the computer on which it will run. This only applies to the SageTV server, if you only want to run the client/placeshifter there should be no problem doing the setup directly on the nfs server.

_Demo_
Reply With Quote
  #10  
Old 05-23-2006, 05:38 PM
AndyS AndyS is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 383
Quote:
Originally Posted by AndyS
I'm wondering if the install behaviour is different on VMWare (4.5.3). .... When I run the graphical installer and attempt to load the install profile it errors out with "An error occurred loading the install profile".
I fixed it - the VM was using SCSI devices but the install script uses IDE device names.

Andy.
Reply With Quote
  #11  
Old 05-23-2006, 05:44 PM
AndyS AndyS is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 383
Quote:
Originally Posted by _Demo_
The activation will not work using this setup since it would bind to your vmware system. You could try to install SageTV by connecting to the nfs server while doing the install from the computer on which it will run. This only applies to the SageTV server, if you only want to run the client/placeshifter there should be no problem doing the setup directly on the nfs server.

_Demo_
Gotcha. To be honest I'm trying to build a 'fat' Linux client. I did see the new Linux PlaceShifter which will certainly be a good start, but I need something with a DVD drive.

I'll work on building a standard Gentoo diskless machine and then I'll NFS-mount the 'sage' mountpoints before doing the install. As you say, that should work.

Thanks again.

Andy.
Reply With Quote
  #12  
Old 05-23-2006, 05:54 PM
SHS's Avatar
SHS SHS is offline
Moderator
 
Join Date: Mar 2003
Location: Vinita, Oklahoma
Posts: 4,589
Dran I didn't see that one ke6guj thanks
I was kind hoping for a a rpm install any tips for installl on Suse 10.1
NEVER MIND works good so far

Last edited by SHS; 05-23-2006 at 06:57 PM.
Reply With Quote
  #13  
Old 05-24-2006, 05:42 AM
gt9228a gt9228a is offline
Sage User
 
Join Date: May 2006
Posts: 7
Well i was successful in getting the new version to work with ubuntu - dapper drake beta. Just installed the libraries needed and then the server/client, and it seems to be working so far. Just trying to get remote placeshifting working (Its being jumpy). Where do I put in my placeshifter license number? (It seemed to work without me entering in this license).

The only problem i had was that the default java program on ubuntu was an earlier version, and it worked fine after making the java version 1.5 the default.
Reply With Quote
  #14  
Old 05-24-2006, 05:57 AM
Deadbolt's Avatar
Deadbolt Deadbolt is offline
Sage Expert
 
Join Date: Nov 2003
Posts: 687
Quote:
Originally Posted by zoop
thanks jeff, upgrading now...
Now someone can get going on a Placeshifter for OS X!
Reply With Quote
  #15  
Old 05-24-2006, 09:11 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by Deadbolt
Now someone can get going on a Placeshifter for OS X!
I looked at it.. Not too sure it can be done. Looks like the PS client relies on ALSA, if it could use JACK instead, we might be able to get it to work. I was unable to find an ALSA lib for OS X. However, I am by no means overly qualified to make this statement.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #16  
Old 05-24-2006, 09:27 AM
zoop's Avatar
zoop zoop is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Elkridge, MD
Posts: 184
Quote:
Originally Posted by gt9228a
Well i was successful in getting the new version to work with ubuntu - dapper drake beta. Just installed the libraries needed and then the server/client, and it seems to be working so far. Just trying to get remote placeshifting working (Its being jumpy).
where did you define the STV for the user? i am having some trouble with setting a path in the advanced setup...

18c, CurSTV=\}] map=null] map={UseLocalFilePaths=false, FileBrowserTitle=Select an STV for testuser
, CurrentFilePath=null, FileBrowseFunction=XLoadSTV, SelectedFilePath=null, FileBrowseStyle=XSTV}]

as you can see, SelectedFilePath=null appears to be what is causing me the issue...

thx

/jer
Reply With Quote
  #17  
Old 05-24-2006, 10:04 AM
zoop's Avatar
zoop zoop is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Elkridge, MD
Posts: 184
Quote:
Originally Posted by zoop
where did you define the STV for the user? i am having some trouble with setting a path in the advanced setup...

18c, CurSTV=\}] map=null] map={UseLocalFilePaths=false, FileBrowserTitle=Select an STV for testuser
, CurrentFilePath=null, FileBrowseFunction=XLoadSTV, SelectedFilePath=null, FileBrowseStyle=XSTV}]

as you can see, SelectedFilePath=null appears to be what is causing me the issue...

thx

/jer
ended up fixing it in the properties file... definately an issue to be fixed though since it doesn't work through the UI

thx

/jer
Reply With Quote
  #18  
Old 05-24-2006, 03:12 PM
zoop's Avatar
zoop zoop is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Elkridge, MD
Posts: 184
i am having trouble with v5 on linux... i am experiencing "freezing" issues with the server, where after about an hour of uptime it will stop recording new shows and when i try to enter various menus (setup, system information, recording schedule) the client freezes, apparantly waiting for an answer from the server. additionally i am seeing "no signal" on my pvr-250 when this occurs (never had an issue with the previous version of sage4linux). should i submit a bug report with logs?

anyone else having trouble with sage5?

thx

/jer
Reply With Quote
  #19  
Old 05-24-2006, 10:01 PM
brain187 brain187 is offline
Sage User
 
Join Date: May 2006
Posts: 18
I am have a problem with ver. 5. I can't get installprofile.xml to load
it just keeps failing!

brain187
Reply With Quote
  #20  
Old 05-24-2006, 11:33 PM
AndyS AndyS is offline
Sage Aficionado
 
Join Date: Apr 2004
Location: Orange County, CA
Posts: 383
Quote:
Originally Posted by brain187
I am have a problem with ver. 5. I can't get installprofile.xml to load
it just keeps failing!

brain187
I had some trouble because the device name for the hard-disk was wrong. You might want to check that and edit the file appropriately.

Andy.
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


All times are GMT -6. The time now is 02:55 PM.


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