Archive talk:Install Tvheadend on Arch Linux

From Official Kodi Wiki
Jump to navigation Jump to search

Updating this page

There shouldn't be a seperate page for Arm arch, only one Arch Linux page. This guide is way old, For Arch Linux kernel 2.6 is long dead, x86-64 is on 3.8, all Arm devices have atleast a freezed 3.1 kernel and for most of them you can easily get the latest 3.8. It's bad approach not to use pacman for managing software, please consider removing the manual installation instructions completely. Currently tvheadend not available as a precompiled package but do maintained on Aur (Arch Users Repository)

I believe these are the steps to follow currently: (If you're running as root you don't need the prefix "sudo" but need to add the "--asroot" when building the package with makepkg)

  1. Install some build tools :
     # sudo pacman -Sy base-devel git 
  2. Install dependencies :
     # sudo pacman -S avahi nss-mdns openssl python2
  3. Get the package tarball from Aur:
    1. For the latest stable TVHeadend:
        # wget https://aur.archlinux.org/packages/tv/tvheadend/tvheadend.tar.gz 
    2. For a current git TVHeadend version :
        # wget https://aur.archlinux.org/packages/tv/tvheadend-git/tvheadend-git.tar.gz
  4. Extract the tarball :
      # tar -xvf tvheadend*.tar.gz 
  5. Build the package:
     # cd tvheadend 
    Or
      # cd tvheadend-git 
 # makepkg 

Or for Arm arch

 # makepkg -A
  1. Install the package:
     # sudo pacman -U tvheadend*xz
  2. Reboot the system, (needed only with tvheadend-git) or set temporarily set the following argument:
     # TVHEADEND_ARGS="-f -u hts -g video -C"
    (it's included in /etc/conf.d/tvheadend so it will be set on reboot).
  3. Start the service:
    # sudo systemctl start tvheadend
  4. Connect to tvheadend via web browser @ "tvheadednip":9981 and configure your setup.
  5. If you're happy with your tvheadend setup enable the service to start at boot :
     # sudo systemctl enable tvheadend

All of tvheadend settings are configureable via web browser, if I remember correctly the config files are store at /home/hts/.hts/tvheadend/. The default is that a non-name user with no password is created with admin credential everytime the service is initiated, to change this you must stop the service, disable it, (systemctl stop ..., systemctl disable ...) and edit the service file in /etc/lib/systemd/system/tvheadend.service and change it, for more info on this you shold consult tvheadend wiki and man page.

DVB Drivers.

The current kernel for x86-64 is 3.8, so "# pacman -Syu" will promise you've got the latest drivers. For Arm arch it a little bit more complicated, all the devices have atleast 3.1 kernel, one should consult the Arch Linux Arm forums about updating Marvell based devices (SheevaPlug, PogoPlug...) to a recent kernel. For PogoPlug 4 & Mobile, if you've installed the uBoot as instructed in Arch Linux Arm guide all you've got to do to get the latest kernel is: "# pacman -Sy linux-kirkwood" For Raspberry Pi, you've already set with the recent kernel.--Dhead 22:18, 14 March 2013 (EDT)