User Tools

Site Tools


de:linuxmce_1004_dvd_installer

This is an old revision of the document!


LinuxMCE 1004 DVD Installer

Snapshot: LMCE-1004-20120701130826149.iso

Hardware

Common hints

issuefix
can't eject cd/dvd hold down the left mouse button till the disc is ejected
switch to terminal STRG + ALT + F2
switch to UI STRG + ALT + F7

Let's go

  1. Drop in DVD and boot from cdrom - Boot LinuxMCE live
  2. in grub select “Boot LinuxMCE live DVD” (first option)
  3. TAB to set boot options and add nomodeset reboot=pci
  4. hit ENTER to run installer
  5. Wait till it completely bootet…
  6. Install Broadcom BCM57765 ethernet driver. Not needed if an internet connection already exists. If it does not work try to get connection via another device.
  7. Follow the nice looking installer (If you can't figure out how to do this, go home! ;-) )

Chroot the freshly installed LMCE-Disk

Do the following step:

chroot /target

:!: DID NOT WORK FOR ME! SO I DID THIS:

Boot from LiveCD, again. In Terminal:

sudo mount --bind /dev/ /media/disk/dev/
sudo mount --bind /proc/ /media/disk/proc/
sudo mount --bind /sys/ /media/disk/sys/
sudo chroot /media/disk/

Broadcom BCM57765 ethernet tg3-driver install

Download Driver (from another Computer)

http://www.broadcom.com/support/license.php?file=570x/linux-3.122g.zip

unzip the file and search for tg3-3.116j.tar.gz and put it on a usb drive plug it in to your freshly installed and not yet rebootet LinuxMCE machine.

Go to dir and install

mkdir /usr/pluto/drivers && cd /usr/pluto/drivers
cd tg3-3.116j/
tar xfvz /path/to/tg3-3.116j.tar.gz /usr/pluto/drivers/
make
make install
insmod tg3.ko
modprobe tg3
dhclient eth0 # OBTAIN IP ADDRESS FROM DHCP 

Update grub to enable reboot and graphics

Make sure is still working chroot /target

edit

vi /etc/default/grub

and verify that GRUB_CMDLINE_LINUX_DEFAULT contains nomodeset and reboot=pci Possibly its the best to add these values at the end

e.g.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset reboot=pci"

Whats going on ..

  • nomodeset fixes black screen after boot
  • reboot=pci enables reboot, if not set it won't reboot

To apply the new settings to grub run

update-grub

Now you should be able to boot without getting a black screen and you are also able to reboot, but hold on for a few more minutes

Install Apple USB Ethernet

Install Apple USB Ethernet Adapter - download the driver to an USB drive mount it and copy it as needed if no internet available

Driver download: http://www.asix.com.tw/FrootAttach/driver/AX88772B_772A_760_772_178_LINUX2.6.35_Driver_v3.5.0_Source.tar.bz2

mkdir /usr/pluto/drivers && cd /usr/pluto/drivers
mkdir asix
cd asix
cp path/to/AX88772B_772A_760_772_178_LINUX2.6.35_Driver_v3.5.0_Source.tar.bz2 ./
tar xvjf AX88772B_772A_760_772_178_LINUX2.6.35_Driver_v3.5.0_Source.tar.bz2
sudo apt-get install module-assistant
sudo module-assistant prepare

Add following lines to asix/asix.c after .driver_info = (unsigned long) &belkin178_info, (hint from Ubuntu Forums )

}, {
     // Apple USB Ethernet Adapter
     USB_DEVICE(0x05ac, 0x1402),
     .driver_info = (unsigned long) &ax88772_info,

Install it ..

sudo modprobe -r asix
make
sudo make install
sudo modprobe asix

First reboot !!!

sudo reboot

auto install NVIDIA 320M

Works with this Snapshot: LMCE-1004-20120701130826149.iso as long as theres a internet connection on boot!

Basic Steps to make it work automatically:

Check NVIDIA Card

sudo apt-cache policy nvidia-glx-260 | grep -i Installed
sudo lspci -nn | grep VGA

Update pciid

sudo update-pciids
lspci -nn | grep VGA

Get pciid

lspci -nn | grep -vi "non-vga" | grep "VGA" | sed 's/.*://;s/\].*//' 

add pciid in nvidia-install.sh. Add it to both lines DRIVER_260_SUPPORTED and VDPAU_REV_C_SUPPORTED

sudo nano -w /usr/pluto/bin/nvidia-install.sh

Install TT-connect 3650 S2 DVB receiver

Kernel update may harm your dvb driver!!!!


If this happend make sure you cleaned your dvb drivers:
sudo rm -rf /lib/modules/2.6.32-41-generic/kernel/drivers/media/dvb/dvb-usb/*

Remove previous installed modules:

sudo rm -rf /lib/modules/2.6.32-41-generic/kernel/drivers/media/dvb/dvb-usb/*

Installing the latest development V4L driver

Install required packages and the kernel headers:

sudo apt-get install build-essential mercurial linux-headers-`uname -r`

go to /usr/src/

cd /usr/src

download the driver sources

sudo hg clone http://linuxtv.org/hg/v4l-dvb

go to new created folder called v4l-dvb

cd v4l-dvb

start building ( this issue is expected :-) )

sudo make

Install drivers:

sudo make install

S2API

mkdir 3650
cd 3650
hg clone http://mercurial.intuxication.org/hg/s2-liplianin
cd s2-liplianin
make
make install
cd v4l/
sudo modprobe dvb-core
sudo modprobe stb6100 verbose=0
sudo modprobe stb0899 verbose=0
sudo modprobe lnbp22
sudo modprobe ttpci-eeprom
sudo modprobe dvb-usb
sudo modprobe dvb-usb-pctv452e

:!: Because of the previous installed v4l-dvb driver 2 modules are already loaded

Output of Loading modules:

me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod dvb-core.ko
insmod: error inserting 'dvb-core.ko': -1 File exists
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod stb6100.ko verbose=0
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod stb0899.ko verbose=0
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod lnbp22.ko
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod ttpci-eeprom.ko
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod dvb-usb.ko
insmod: error inserting 'dvb-usb.ko': -1 File exists
me@dcerouter:/usr/pluto/drivers/s2-liplianin/v4l$ sudo insmod dvb-usb-pctv452e.ko
insmod: error inserting 'dvb-usb-pctv452e.ko': -1 Unknown symbol in module

ISSUE

/home/jochen/3650/s2-liplianin/v4l/firedtv-1394.c:298: error: implicit declaration of function 'hpsb_unregister_protocol'
make[3]: *** [/home/jochen/3650/s2-liplianin/v4l/firedtv-1394.o] Error 1
make[2]: *** [_module_/home/jochen/3650/s2-liplianin/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-33-generic'
make[1]: *** [default] Fehler 2
make[1]: Verlasse Verzeichnis '/home/jochen/3650/s2-liplianin/v4l'
make: *** [all] Fehler 2

FIX

change CONFIG_DVB_FIREDTV=m to CONFIG_DVB_FIREDTV=y

in

./3650/s2-liplianin/v4l/.config
Kernel versions earlier than “2.6.32-41-generic” i used to install the dvb device like described here

Some Settings and useful commands

MythTV

Notice

By following the advice at LMCE-Forum i manually installed mythtv

sudo apt-get install mythtv

Settings

I used these instructions to setup my usb tv tuner.

Astra 19.2E scan settings

freq: 12551500

pol: horizontal/vertical (scan for both)

symbol rate: 22000000

fec: auto

mythbackend died

Error Messages:

  1. Frame Buffering failed to many times

Solution:

http://forum.linuxmce.org/index.php/topic,12659.msg90402.html#msg90402

FIX "mythtv has died" message

Basically you need to downgrad pluto-dcecommon as follows:

wget http://deb.linuxmce.org/ubuntu/dists/lucid/beta2/binary-i386/pluto-dcecommon_2.0.0.45.12062726126_i386.deb
sudo dpkg -i pluto-dcecommon_2.0.0.45.12062726126_i386.deb
reboot

Restart "mythbackend" after each reboot & add mysql to bootup scripts

Add mysql to startup scripts:

update-rc.d mysql defaults

Descripton

Running mythtv frontend after reboot gave me random errors e.g. “already using all available inputs”

Solution

Edit rc.local

sudo nano -w /etc/rc.local

add “killall mythbackend” right before “exit 0”

...

killall mythbackend
mythbackend


exit 0

Related Links

http://www.mythtvtalk.com/solution-having-restart-mythbackend-reboot-11530/

https://bugs.launchpad.net/mythbuntu/+bug/182746

Possible reason for the mythbackend mess

2012-07-03 23:17:03.314 DataDirect: Deleting temporary files
05	07/03/12 23:17:04.471		Connect() failed, Error Code 111 (Connection refused))
05	07/03/12 23:17:04.471		ClientSocket::Connect() not successful
05	07/03/12 23:17:04.471		void ClientSocket::Disconnect() on this socket: 0x85b9328 (m_Socket: 3)
05	07/03/12 23:17:04.471		Socket::SendData socket is invalid
01	07/03/12 23:17:04.471		Cannot communicate with router

Set DB password to make mythfilldatabase running

GRAnt all previliges to mythtv user and set password as shown in /home/mythtv/.mythtv/mysql.txt

iPad, iPhone 3GS Orbiter

http://wiki.linuxmce.org/index.php/Web_Orbiter_2.0

CUPS and Airprint

Someone wrote a nice python script to generate a *.service file for avahi

Install required packages

sudo apt-get install git-core python python-cups

Download script using git

git clone https://github.com/tjfontaine/airprint-generate.git

go to the downloaded folder, Execute command to generate *.service file of existing printers

cd airport-generate/
python airprint-generate.py

Copy *.service files to /etc/avahi/services/

cp *.service /etc/avahi/services/

Edit /etc/cups/cupsd.conf

sudo nano -w /etc/cups/cupsd.conf

Add this line

# CUPS AIRPRINT
ServerAlias *

edit /etc/cups/printers.confa and comment out “AllowUser” line. This allows every computer in the network to print! It was required for Airprint to work because of permission problems

#AllowUser USER

restart cups

sudo service cups restart

Some notes

  • after installation AVWizard was skipped for some reason, i made i somehow to commandline and used “sudo apt-get update && sudo apt-get upgrade” then reboot and the AVwizard came up
  • D-Link usb hub blocked boot/firmware, so it was stuck in the grey firmware screen
  • tried to set network to dhcp in lmce-admin → Advanced → Network → Network Settings for “1. External network card eth0”, it took ages and finally i changed it manually in /etc/network/interfaces (not needed if Apple USB Ethernet is installed before rebooting new installed LinuxMCE)

Public Key Error medibuntu

By making sure that the LinuxMCE is up to date i had trouble doing “apt-get update”.

Error

W: GPG error: http://packages.medibuntu.org lucid

Fix

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EBC26B60C5A2783
de/linuxmce_1004_dvd_installer.1342301322.txt.gz · Last modified: by admin