Enjoy Slackware 15.0!

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:multimedia:htpc [2012/10/29 00:19 (UTC)]
arfon created
howtos:multimedia:htpc [2016/07/18 23:55 (UTC)]
klaatu updated for kodi
Line 1: Line 1:
-<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> +<!-- Reviewed 2013-10-16 by mfillpot --> 
-====== Build A Slackware Mediacenter (HTPC) With XBMC ======+<!-- Reviewed 2013-01-23 by hazel --> 
 +<!-- Add your text below. We strongly advise to start with a Headline (see butto 
 +bar above). --> 
 +====== How To Build A Slackware Mediacenter (HTPC) With Kodi (formerly: XBMC======
  
 ====== My Situation ====== ====== My Situation ======
  
-I wanted a **stand alone** media center and everything pointed to XBMC. I tried the various LiveCD versions of XBMC but each had problems that either made to system just not work or were too annoying.  The solution turned out to be a Slackware 14 box that boots right into XBMC.+I wanted a **stand alone** media center and everything pointed to XBMC. I tried 
 +the various LiveCD versions of XBMC but each had problems that either prevented 
 +the system from working or were too annoying.  The solution turned out to be a 
 +lackware 14 box that boots right into XBMC.
  
 ====== Here's What I Did ====== ====== Here's What I Did ======
  
-1) Install Slackware on an old PC. +  - Install Slackware. Optionally, use an old PC; you might be surprised at how powerful even an older PC can be for media playback
- +  - Install [[https://slackbuilds.org/result/?search=kodi&sv=|Kodi]] (formerly known as XBMC), [[https://slackbuilds.org/result/?search=ffmpeg&sv=|ffmpeg]], and dependencies. For automated installs, use [[http://www.sbopkg.org|sbopkg]] or a similar SlackBuilds.org frontend
-1a) Set the default windows manager to TWM. +  - To keep the install as light as possible, use a lightweight GUI environment. You probably don't need a traditional desktop; copy ''/etc/X11/xinit/xinitrc.twm'' to ''~/.xinitrc'' to set twm as the default window manager. 
- +  - Create a user named ''kodi'' and login as the user ''kodi'' to create the essential window manager configuration files. 
-2Create user xbmc and login as user xbmc+  Edit ''~/.xinitrc'' to simplify the window manager even further. At the bottom, change: <code bash> 
- +/usr/bin/twm &
-3) Copy /etc/X11/xinit/xinitrc.twm to ~/.xinitrc +
- +
-4) Edit ~/.xixnitrc and at the bottom, change: +
-<code>/usr/bin/twm &+
 /usr/bin/xclock -geometry 50x50-1+1 & /usr/bin/xclock -geometry 50x50-1+1 &
 /usr/bin/xterm -geometry 80x50+494+51 & /usr/bin/xterm -geometry 80x50+494+51 &
 /usr/bin/xterm -geometry 80x20+494-0 & /usr/bin/xterm -geometry 80x20+494-0 &
-exec /usr/bin/xterm -geometry 80x66+0+0 -name login</code> +exec /usr/bin/xterm -geometry 80x66+0+0 -name login 
-to: +</code> to: <code bash> 
-<code>/usr/bin/twm &+/usr/bin/twm &
 #/usr/bin/xclock -geometry 50x50-1+1 & #/usr/bin/xclock -geometry 50x50-1+1 &
 #/usr/bin/xterm -geometry 80x50+494+51 & #/usr/bin/xterm -geometry 80x50+494+51 &
 #/usr/bin/xterm -geometry 80x20+494-0 & #/usr/bin/xterm -geometry 80x20+494-0 &
 #exec /usr/bin/xterm -geometry 80x66+0+0 -name login #exec /usr/bin/xterm -geometry 80x66+0+0 -name login
-exec /usr/bin/xbmc -geometry +0+0</code>+exec /usr/bin/xbmc -geometry +0+0 
 +</code> 
 +  - Edit /etc/rc.d/rc.local and add: <code>sudo -u kodi startx</code> this is instructing the system to login as the ''kodi'' user on boot and start the default window manager.
  
-5) su back to root+After you reboot the machine, it should boot right into kodi, and you should have 
 + a working media center/HTPC.
  
-6) Install FFMPEG, XBMC and their dependencies via sbopkg. 
- 
-7) Edit /etc/rc.d/rc.local and add: 
-<code>sudo -u xbmc startx</code> 
- 
-After you reboot the machine, it should boot right into XBMC and you should have a working media center/HTPC. 
  
 ====== Some Other Things to Configure ===== ====== Some Other Things to Configure =====
  
-If you keep your media files on other machines and they are accessible via Samba or NFS, make sure you+If you keep your media files on other machines and they are accessible via Samba 
- + or NFS, make sure you enable file sharing:
-To enable Samba file sharing: +
-<code>chmod 755 /etc/rc.d/rc.samba;/etc/rc.d/rc.samba start</code>+
  
-To enable NFS file sharing: +  * To enable Samba file sharing: <code> 
-<code>chmod 755 /etc/rc.d/rc.nfsd;/etc/rc.d/rc.nfsd start</code>+chmod 755 /etc/rc.d/rc.samba;/etc/rc.d/rc.samba start 
 +</code> 
 +  * To enable NFS file sharing: <code> 
 +chmod 755 /etc/rc.d/rc.nfsd;/etc/rc.d/rc.nfsd start 
 +</code>
  
-For NFS, you'll have to do some other configuration but all that is explained in the NFS wiki pages.+For NFS, you'll have to do some other configuration but all that is explained in 
 + the [[howtos:network_services:home_nfs_howto|NFS wiki pages]].
  
  
Line 61: Line 63:
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos software HTPC media_center XBMC author_arfon}+{{tag>howtos software htpc media_center xbmc author_arfon}}

In Other Languages
QR Code
QR Code howtos:multimedia:htpc (generated for current page)