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 10-07-2013, 08:54 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Arrow SageTV 7 - Arch Linux 2013.10.01 Install HOWTO

This tutorial picks up from a base install of Arch Linux and adds: Oracle Java, SSH, NTP, WINE, Comskip, SageTV

All actions performed as root user unless otherwise stipulated.

STEP 1: Add SSH, NTP, base-dev to system
Code:
pacman -S base-dev openssh ntp
systemctl enable sshd.service
echo "logfile /var/log/ntp.log" >> /etc/ntp.conf
systemctl start ntpd
systemctl enable ntpd
#Confirm Date/Time
timedatectl status
#Set time if needed Eg. timedatectl set-time "2013-10-02 11:05:30"
#If time set manually execute: ntpd -q
STEP 2: Add SageTV
Code:
mkdir -p /opt/sagetv/server
cd /opt/sagetv/server
curl -O http://download.sage.tv/linuxbeta/server_7.1.9.tar.gz
tar xvzf server_7.1.9.tar.gz
rm server_7.1.9.tar.gz
mkdir -p /var/media/{tv,videos,music,pictures} #Multiple TV directories for mounting additional storage drives
STEP 3: Add sagesettings file with tweaks for memory and running as non-privileged user
Code:
cat > /opt/sagetv/server/sagesettings <<EOF
#Placed here for ArchLinux JRE Install
export PATH=/opt/jre/bin:$PATH
## End
PIDFILE=/opt/sagetv/server/sagetv.pid
HEADLESS=true
JAVAMEM=-Xmx1024m
mkdir -p /var/tmp/sage
JAVAOPTS="-Djava.io.tmpdir=/var/tmp/sage -XX:ThreadPriorityPolicy=42"
EOF
STEP 4: Setup Oracle Java
Code:
curl -b gpw_e24=http%3A%2F%2Fwww.oracle.com -O -L 'http://download.oracle.com/otn-pub/java/jdk/7u40-b43/jre-7u40-linux-i586.tar.gz'
tar xvzf jre-7u40-linux-i586.tar.gz 
ln -s /opt/jre1.7.0_40 /opt/jre
chown -R root:root jre1.7.0_40
rm jre-7u40-linux-i586.tar.gz
STEP 5: Setup 32-bit libs for Java, SageTV, and Wine - Wine is used for Comskip
Code:
pacman -S lib32-glibc lib32-libstdc++5 lib32-gcc-libs lib32-zlib lib32-freetype2 mesa-libgl lib32-mesa-libgl mpg123 libpng lib32-ncurses wine
STEP 6: Setup ifconfig for SageTV. Activation and runtime uses. Arch Linux doesn't supply and this works.
Code:
cat > /usr/bin/ifconfig <<EOF
#!/bin/bash
ip addr
EOF
chmod +x /bin/ifconfig
STEP 7: Activate SageTV
Code:
cd /opt/sagetv/server
export PATH=/opt/jre/bin:$PATH
./keygen.sh
STEP 8: Setup non-privileged user
Code:
useradd -G video -M -N -d /opt/sagetv sagetv
chown -R sagetv:users /opt/sagetv /var/media/{tv,videos,music,pictures}
STEP 9: Start SageTV
Code:
su -c /opt/sagetv/server/startsage sagetv
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 10-08-2013 at 12:49 PM. Reason: Typos
Reply With Quote
  #2  
Old 10-07-2013, 08:59 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Adding IR support for HDPVR

Code:
cd /lib/firmware && curl -O http://www.blushingpenguin.com/mark/lmilk/haup-ir-blaster.bin
echo lirc_zilog > /etc/modules-load.d/lirc_zilog.conf 
echo "options lirc_zilog tx_only=1" > /etc/modprobe.d/lirc_zilog.conf
modprobe lirc_zilog
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #3  
Old 10-14-2013, 02:51 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Native Linux Cable Card Setup

Thanks to jpwegas perl script, you can now use cable card in Linux without SageDCT. This assumes you're logged in to the server as root and that you have completed an initial setup of SageTV so that sage.properties exists.

Setup build directory
Code:
mkdir /opt/builds
chown sagetv:users builds
su sagetv
Install perl and IPC from official repo
Code:
su -c 'pacman -S perl perl-ipc-run'
Install perl Process Daemon from AUR (Requires Process Table)
Code:
curl -O https://aur.archlinux.org/packages/pe/perl-proc-processtable/perl-proc-processtable.tar.gz
tar xvzf perl-proc-processtable.tar.gz 
cd perl-proc-processtable
makepkg -s
pacman -U perl-proc-processtable-0.48-1-any.pkg.tar.xz

cd /opt/builds
curl -O https://aur.archlinux.org/packages/pe/perl-proc-daemon/perl-proc-daemon.tar.gz
tar xvzf perl-proc-daemon.tar.gz 
cd perl-proc-daemon
makepkg -s
pacman -U perl-proc-daemon-0.14-1-any.pkg.tar.xz
Build HD Homerun libraries
Code:
mkdir -p /opt/sagetv/hdhomerun
cd /opt/builds
curl -O http://download.silicondust.com/hdhomerun/libhdhomerun_20130328.tgz
tar xvzf libhdhomerun_20130328.tgz 
cd libhdhomerun
make
cp hdhomerun_config /opt/sagetv/hdhomerun/
chmod +x /opt/sagetv/hdhomerun/hdhomerun_config
Enable network tuner discovery
Code:
sed -i 's/network_encoder_discovery=false/network_encoder_discovery=true/' /opt/sagetv/server/Sage.properties
Please follow the setup instructions here: https://github.com/jwittkoski/prime_encoder

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #4  
Old 09-14-2014, 04:57 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Java 8u20

Code:
curl -L -C - -b "oraclelicense=accept-securebackup-cookie" -O http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jre-8u60-linux-i586.tar.gz
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 08-24-2015 at 02:21 PM.
Reply With Quote
Reply

Tags
arch linux, java 7, wine


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
HOWTO: Install SageTV PlaceShifter on Ubuntu 10.10 Desktop 32-Bit bcjenkins SageTV Linux 5 10-26-2012 09:42 AM
Howto: Install Java correctly for sage Zervun SageTV Linux 6 05-23-2008 11:33 AM
QAM Linux HOWTO (using a180) milbarge SageTV Linux 1 06-25-2007 11:48 AM
Another HTPC / SageTV HOWTO KarylFStein General Discussion 2 08-04-2006 07:59 AM


All times are GMT -6. The time now is 11:52 AM.


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