HOWTO: Minimal Debian Lenny + Dharma + Latest nVidia drivers + no window manager - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: HOWTO: Minimal Debian Lenny + Dharma + Latest nVidia drivers + no window manager (/showthread.php?tid=92622) |
[LINUX]HOWTO: Very minimal Debian 5.0 on AcerRevo w/ Dharma and latest nvidia drivers - gpuk - 2011-01-30 I'm posting this in the hope it may be useful to other Debian aficionados (or curious Ubuntu users who want to get closer to the action).... [ Guide is based on the following hardware ]
[ Objective ] Turn the Revo in to a lean, dedicated xbmc and media streaming/storage box. The key goals are no bloat and no fluff - just a stripped down install of Debian Lenny with only the bare essentials necessary to get xbmc running (we're not even going to use a window manager). The advantage of this approach is that you end up with a very clean install of Debian and xbmc, making it easy to use the Revo for other hacking duties alongside running xbmc. GUIDE STARTS HERE 1). Perform a minimal network install of Debian Lenny (remember to de-select both "Standard System" and "Desktop System" during the install wizard). Once Debian is installed, the base system should be using no more than 700MB or so of total disk space (well, we did say no fluff!). [ for more info on performing a network install, see: http://www.debian.org/CD/netinst/ ] 2). Using the Revo provided keyboard, log in locally and:
For the remaining part of the guide, we'll do everything remotely over ssh as root 3). Install the kernel headers, alsa sound drivers (we're shunning pulse audio - too bloated and not needed for analogue audio!) plus some useful helper programs: Code: # aptitude install linux-headers-2.6.26-2-686 pciutils xorg wget lsof iptraf htop nmap tcpdump linux-sound-base alsa-base alsa-utils psmisc 4). Configure the audio: Code: # alsamixer 5). Install the latest nvidia binary drivers: Code: # cd /usr/src 6). Grab the libvdpau headers so that xbmc can offload video processing to the GPU and support full, stutter free 1080p playback (this is necessary because nvidia has stopped including vdpau header files with their latest binary drivers): Code: # cd /usr/src 7). Install the minimum third party libraries required to successfully compile xbmc: Code: # aptitude install cvs make g++ gcc autoconf gawk pmount libtool quilt python-support autotools-dev libgl1-mesa-dev libglew-dev libvorbisenc2 libmysqlclient-dev libcurl3 libcurl4-openssl-dev libavahi-common-dev libavahi-client-dev libavcodec-dev libavformat-dev libavutil-dev libpostproc-dev libswscale-dev libdts-dev libmpeg2-4-dev libflac-dev libwavpack-dev python-dev libcwiid1-dev libbluetooth-dev zlib1g-dev libtiff4-dev libmicrohttpd-dev libmodplug-dev nasm automake cmake gperf unzip bison libogg0 libflac8 libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl-stretch-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl4-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbis-dev libmysqlclient15-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate0-dev libmms-dev libxtst-dev zip libssl-dev libfaad-dev libsmbclient-dev libiso9660-dev 8). I hate using backports but we need one package from here to satisfy the xbmc build process: Add "deb http://www.backports.org/debian lenny-backports main contrib non-free" (without the quotes) to /etc/apt/sources.list and run: Code: # aptitude install debian-backports-keyring 9). Install the latest version of rtmpdump: Code: # cd /usr/src 10). Compile and install Dharma stable: Code: # cd /usr/src You should get the following after configure has run: ------------------------ XBMC Configuration: ------------------------ Debugging: Yes Profiling: No Optimization: Yes Crosscomp.: No target ARCH: no target CPU: no OpenGL: Yes VDPAU: Yes VAAPI: No CrystalHD: No VDADecoder: No OpenMax: No Joystick: Yes XRandR: Yes GOOM: No Bluray: No MID Support: No ccache: No PulseAudio: No HAL Support: Yes FAAC: No DVDCSS: Yes Avahi: Yes Non-free: Yes ASAP Codec: No Webserver: Yes libRTMP support: Yes Deprecated libdts: No Deprecated liba52: No External FFmpeg: No External Python: No prefix: /usr/local ------------------------ Then compile and install xbmc: Code: # make 11). Create an xbmc user (rather than running xbmc as root): Code: # groupadd xbmc 12). Log-in as the new xbmc user and configure xinitrc so that xbmc automatically starts as soon as you type "startx" (thus negating the need for a window manager): Code: # echo "exec /usr/local/bin/xbmc" > ~/.xinitrc That's it! You now have a bare bones Debian Lenny install with only the absolute minimum software required to run XBMC. To start xbmc, login locally as the xbmc user and type "startx". - gpuk - 2011-01-30 Useful Optional Extras: 1). Add an entry to fstab to support a USB CD/DVD drive: Code: # nano /etc/fstab [ add: /dev/scd0 /mnt/cdrom0 udf,iso9660 user,noauto 0 0 ] 2). Install autofs and ntfs-3g to support auto-mounting an NTFS formatted external USB drive for media storage: Code: # aptitude install autofs ntfs-3g 3). Install samba, samba-common and libcups2 to share the USB drive across the network (useful for exposing your media to other devices on the network): Code: # aptitude install samba samba-common libcups2 4). Install the BBC iplayer plugin for xbmc (only of interest if you are in the UK and want to access the BBC iplayer service via xbmc): Code: # cd /home/xbmc/.xbmc/addons/ 5). Install up-to-date ffmpeg (needed for archiving BBC iplayer shows via get_iplayer. Again, this is only of interest if you are in the UK, use the BBC iplayer service and want to archive some programmes for personal use): Code: # cd /usr/src 6). Install youtube-dl (great for downloading youtube videos for later playback through xbmc): Code: # cd /usr/src Finally, here is an example /etc/samba/smb.conf for sharing a USB hard drive via eth0 (don't forget to open the necessary ports on the firewall): Code: #======================= Global Settings ======================= - xbmcvis - 2011-02-03 thanks! great howto! - nicx - 2011-02-26 thank you, i use it for update camelot to dhama on Lenny thank you - bas.t - 2011-05-02 Anyone got a remote working? Preferrably a mce_usb (former mce_usb2) There are tons of 'guides', but I did not succeed. I'm building a custom kernel on squeeze right now, but any help is welcome. Bas. - gpuk - 2011-08-02 Updated version of the guide (for Debian Squeeze) is here: http://forum.xbmc.org/showthread.php?tid=106811 bas.t: I have an MCE remote and that's next on my "todo" list... will post a guide if I get it working (plan is to use lirc). RE: HOWTO: Minimal Debian Lenny + Dharma + Latest nVidia drivers + no window manager - rashmi - 2012-06-12 Hi , Thanks for the Xcellent Guide it works. I wanted to know How to configure XBMC without X11 and to use only FrameBufferDisplays , for set-up-box kind of Boxes. Please let me know it will be of a Great Help!! Thanks, Rashmi RE: HOWTO: Minimal Debian Lenny + Dharma + Latest nVidia drivers + no window manager - RockerC - 2012-06-13 (2012-06-12, 12:36)rashmi Wrote: Hi ,There is no need to cross-post asking the same question in three different threads, and re-opening old threads at that will also annoy people. Again see http://forum.xbmc.org/showthread.php?tid=133722 and avoid cross-posting in the future, or no one will answer you out of spite |