SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux

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.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
arch linux, java 7, wine


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

Advanced Search
Display Modes

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 07:47 PM.


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