Hej.
Har försökt göra en liten howto på min htpc.
Denna är inte helt komplett men kanske nån kan hjälpa till å få den slutförd.

Kan finnas fel i den ??
Å stavfel kan förekomma men ni behöver inte göra enhel tråd med dem, bara ni fattar vad som menas. :P

Howto install debian +vdr +plugins for Nexus-s card +remote.

----------------------------------------------------------------------------------------
Debian install + compile kernel + add some apps.
----------------------------------------------------------------------------------------

Install Debian on pc.
Download debian from www.debian.org

Update to debian unstable (sarge)
Kod:
	apt-setup (and change to sarge!)
    or
 	joe /etc/apt/sources.list (change all stable to unstable)
   and
	apt-get update
	apt-get dist-upgrade
add fellowing packets: (whit apt-get install <package>)
Kod:
	joe
	ssh
	wget
	tar ?
	bzip2 ?
	...
Download newest 2.6 kernel from kernel.org to /usr/src (must be newer than 2.6.11)
Kod:
	cd /usr/src
	wget <file name>
Install make + libncurses5-dev + hotplug + ??? (whit apt-get install <package>)


Compile kernel:
Kod:
	tar -jxvf linux-<version>.tar.bz2
	ln -s linux-<version> linux
	cd linux
	make menuconfig
----------------------------------------------------------------------------------
< add what you need for you're pc > + the fellowing:
[*] Prompt for development and/or incomplete code/drivers ¦ ¦
¦ ¦[*] Select only drivers expected to compile cleanly ¦ ¦
¦ ¦ [ ] Select only drivers that don't need compile-time external firmware


General Setup[*] Support for hot-pluggable devices


Loadable module support[*] Module unloading


Processor type
Pick you processor type


Bus options[*] PCI Support[*] PCI Device name database

Device drivers
Generic Driver Options[*] Hot plug firmware loading support

--- Mouse interface ¦ ¦
¦ ¦[*] Provide legacy /dev/psaux device ¦ ¦
¦ ¦ (1024) Horizontal screen resolution ¦ ¦
¦ ¦ (768) Vertical screen resolution ¦ ¦
¦ ¦ < > Joystick interface ¦ ¦
¦ ¦ < > Touchscreen interface ¦ ¦
¦ ¦ <*> Event interface ¦ ¦
¦ ¦ < > Event debugging

--- I2C support ¦ ¦
¦ ¦ <*> I2C device interface ¦ ¦
¦ ¦ I2C Algorithms ---> ¦ ¦
¦ ¦ I2C Hardware Bus support ---> ¦ ¦
¦ ¦ Hardware Sensors Chip support ---> ¦ ¦
¦ ¦ Other I2C Chip support ---> ¦ ¦
¦ ¦ [ ] I2C Core debugging messages ¦ ¦
¦ ¦ [ ] I2C Algorithm debugging messages ¦ ¦
¦ ¦ [ ] I2C Bus debugging messages ¦ ¦
¦ ¦ [ ] I2C Chip debugging messages

<*> I2C bit-banging interfaces ¦ ¦
¦ ¦ < > I2C PCF 8584 interfaces

[*] DVB For Linux ¦ ¦
¦ ¦ <*> DVB Core Support ¦ ¦
¦ ¦ --- Misc. Frontend Modules ¦ ¦
¦ ¦ --- DVB-S (satellite) frontends ¦ ¦
¦ ¦ <*> ST STV0299 based ¦ ¦
¦ ¦ < > Connexant CX24110 based ¦ ¦
¦ ¦ < > Grundig 29504-491 based ¦ ¦
¦ ¦ < > Zarlink MT312 based ¦ ¦
¦ ¦ < > VLSI VES1893 or VES1993 based


--- Supported SAA7146 based PCI Adapters ¦ ¦
¦ ¦ <*> AV7110 cards ¦ ¦
¦ ¦[*] Compile AV7110 firmware into the driver ¦ ¦
¦ ¦ (/usr/lib/hotplug/firmware/dvb-ttpci-01.fw) Full pathname of av7110 firmware file ¦ ¦
¦ ¦[*] AV7110 OSD support ¦ ¦
¦ ¦ < > Budget cards ¦ ¦
¦ ¦ < > Budget cards with onboard CI connector ¦ ¦
¦ ¦ < > Budget cards with analog video inputs


[*] /proc file system support ¦ ¦
¦ ¦ [ ] /dev file system support (OBSOLETE) ¦ ¦
¦ ¦ [ ] /dev/pts Extended Attributes
-----------------------------------------------------------------------------------
done?? = exit and save.... (maby something i miss??? then just add and recompile)
------------------------------------------------------------------------------------
Kod:
	make
	make modules_install
	cp arch/i386/boot/bzImage /boot/kernel-<version>
	joe /etc/lilo.conf
--------------------------
default=Linux

image=/boot/kernel-<version>
        label=Linux
        read-only

image=/vmlinuz
        label=Safe
        read-only
#       restricted
#       alias=1
---------------------------
save...
---------------------------

	lilo (no errors)
	reboot
----------------------------------------------------------
Now u shall have a working new kernel!!!
Not? Boot to Safe and add the missing + recompile kernel.
----------------------------------------------------------

Kod:
	<login>
	cd /usr/src
	wget http://207.44.152.197/dvb-ttpci-01.fw.bz2 <-- patched for use whit vdr + sc later!!
	tar -jxvf dvb-ttpci-01.fw.bz2
	cp dvb-ttpci-01.fw /lib/firmware (creat map if not there! or missing some in kernel/hotplug!!)
	modprobe dvb-ttpci (no errors i hope!)
	lsmod
---------------------------------------------------
shall show something like this: (dvb-ttpci = card working now!)

Module                  Size  Used by
ipv6                  207552  10
lirc_dev               11748  0
parport_pc             21956  0
parport                19648  1 parport_pc
dvb_ttpci              91432  22
dvb_core               72232  1 dvb_ttpci
l64781                  6788  1 dvb_ttpci
saa7146_vv             45440  2 dvb_ttpci
video_buf              16644  1 saa7146_vv
saa7146                14600  2 dvb_ttpci,saa7146_vv
v4l1_compat            13956  1 saa7146_vv
v4l2_common             4864  1 saa7146_vv
videodev                7040  2 saa7146_vv
ves1820                 5380  1 dvb_ttpci
stv0299                10504  1 dvb_ttpci
tda8083                 5636  1 dvb_ttpci
stv0297                 8320  1 dvb_ttpci
sp8870                  6924  1 dvb_ttpci
ves1x93                 6276  1 dvb_ttpci
ttpci_eeprom            2432  1 dvb_ttpci
af_packet              12552  2
-------------------------------------------------

	joe /etc/modules (add dvb-ttpci to a new line for working card when startup!)
	reboot and lsmod to see if ok!!
SYSTEM = OK!

------------------------------------------------------------------------------------
VDR Install:
------------------------------------------------------------------------------------

Kod:
	
	cd /usr/src
Download dvb driver
Kod:
	wget ftp://ftp.cadsoft.de/vdr/linux-dvb.2003-11-08.tar.bz2
	tar -jxvf linux-dvb.2003-11-08.tar.bz2
	ln -s DVB
	cd DVB
	ln -s /usr/src/linux/include include
	cd ..
Download vdr
Kod:
	wget ftp://ftp.cadsoft.de/vdr/Developer/vdr-<version>.tar.bz2 (1.3.x)
	tar -jxvf vdr-<version>.tar.bz2
	cd vdr-<version>
	joe Makefile
		edit too:
			DVBDIR   = ../DVB
			LSIDIR   = ./libsi
			MANDIR   = /usr/share/man
			BINDIR   = /usr/local/bin
			LIBS     = -ljpeg -lpthread -ldl
			INCLUDES = /usr/include

	apt-get install gcc
	apt-get install libjpeg62-dev (i hope it was this one!)
	make
	make plugins <options>
	mkdir /etc/vdr
	mkdir /usr/lib/vdr
	mkdir /video
	cp vdr /usr/bin
	cp *.conf /etc/vdr
	cp PLUGINS/lib/* /usr/lib/vdr
Make channels.conf before start
Kod:
	cd /usr/src/DVB/apps/scan (if you dont have this search the net!!)
	joe dvb-s/<Satelit you want to have or creat new>
add to this file: freq pol sr fec
ex: S 12054000 V 27500000 3/4
Kod:
	./scan -o vdr -e 3 dvb-s/<satelit> > channels.conf
	cp channels.conf /etc/vdr/

Start VDR
Kod:
	vdr -c/etc/vdr -L/usr/lib/vdr -w900 -P<plugin name if some>
----------------------------------------------------------------------
Now is you're vdr working! If you have edited *.conf in /etc/vdr!!
----------------------------------------------------------------------

Want to see in pc monitor?
Kod:
	apt-get install fbtv
	fbtv -q -t10 (error? some missing in kernel (framebuffer/event interface)
Start vdr whit:
Kod:
	vdr -c/etc/vdr -L/usr/lib/vdr -t/dev/tty10 -w900 -P<plugin name if some>
--------------------------
Add plugins:
--------------------------

For plugin errors try fellowing:
Kod:
	make clean
	make plugins-clean
	<start over>
Remote (for nexus remote)
Kod:
	cd /usr/src/vdr-<version>/PLUGINS/src
	wget http://escape-edv.de/endriss/vdr/vdr-remote-<version>.tgz
	tar -zxvf vdr-remote-<version>.tgz
	ln -s vdr-remote-<version> remote
	cd /usr/src/vdr-<version>
	make clean
	make
	make plugins
	cp PLUGINS/lib/libvdr-remote.so.<vdr-version> /usr/lib/vdr/
	rm /etc/vdr/remote.conf
	< start vdr and add -Premote to startup and hold down a button until vdr find the remote >
Kvar:
Göra ett startup script som startar vdr + fbtv när man sätter igång den å ett shutdown script till vdr power off.

Fattas hur man sätter in:
SC (softcam, cardsharing)
ttxtsubs (subtitles som används för viasat + cd)

Bra sida om vdr och hur man sätter in plugins + vart man hittar dem.
http://www.linuxtv.org/vdrwiki/

Är det nåt ni vet är fel i denna så säg till.
Jag vet inget nu men man kan inte se allt. :wink:

Tack för mig.

/Mami