Difference between revisions of "User:Polly"

From LinuxMCE
Jump to: navigation, search
(CUPS and Airprint)
(Network Boot from MacMini 2006)
Line 303: Line 303:
== Network Boot from MacMini 2006 ==
== Network Boot from MacMini 2006 ==
== Things to come... ==
== Things to come... ==

Revision as of 08:42, 25 September 2012


  • MacMini 2010 - Model 4,1
    • Intel Core 2 Duo - 2.66GHz
    • 8GB RAM
    • S/PDIF audio
  • Teufel Concept E 300 "5.1-Set"
  • DVB-S Device: TT-Connect S2 3650CI
  • Remote: WII Mote Plus
  • External HDD (2x 2TB): ICY BOX
  • iPad2
  • iPhone 3GS
  • Cups Printer: Canon IP5300

I used Snapshot LMCE-1004-20120701130826149.iso

Let's go

  • Drop in DVD and boot from cdrom
  • in grub select "Install"
  • TAB to set boot options and add nomodeset
  • hit ENTER to run installer
  • Wait till it completely bootet…
  • Follow the nice looking installer (If you can't figure out how to do this, go home! ;-) )

Update grub to enable reboot and graphics

After install boot again from DVD

  • Drop in DVD and boot from cdrom
  • in grub select "Install"
  • TAB to set boot options and add nomodeset
  • HDD needs to be mounted and we need to change some mount points temporarily. Do following steps:
 mount HDD Kubuntu is installed on
 mount --bind /dev/ /media/YOUR-DISK/dev/
 mount --bind /proc/ /media/YOUR-DISK/proc/
 mount --bind /sys/ /media/YOUR-DISK/sys/
 chroot /media/YOUR-DISK/


 nano -w /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


 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


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

auto install NVIDIA 320M

Does work now! THX L3top

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
 sudo /root/NVIDIA-Linux-x86-290.10.run --uninstall
 sudo reboot

Broadcom BCM57765 ethernet tg3-driver install

Download Driver


Go to dir and install

 cd tg3-3.116j/
 make install

Edit /etc/network/interfaces, replace address and gateway with yours

 iface eth0 inet static
     address 192.168.0.xx
     gateway 192.168.0.xx
     pre-up sysctl -q -e -w  net.ipv6.conf.eth0.disable_ipv6=1

Restart Network

 /etc/init.d/networking restart

or (this is recommended by Shell)

 service networking stop
 service networking start

NOTE: Make sure you disabled DHCP in lmce-admin web interface if you are running LMCE behind a router which is already using DHCP posde: This is only true, as long as you have a single NIC only!

Public Key Error medibuntu

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


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


 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EBC26B60C5A2783

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/*


 mkdir 3650
 cd 3650
 hg clone http://mercurial.intuxication.org/hg/s2-liplianin
 cd s2-liplianin
 make install


 /root/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 '/root/3650/s2-liplianin/v4l'
 make: *** [all] Fehler 2





Kernel versions earlier than „2.6.32-41-generic“ i used to install the dvb device like described here

Download and copy ngene to /lib/firmware (no idea if it is really needed)

 wget http://l4m-daten.de/downloads/firmware/dvb-s2/linux/all/ngene_15.fw
 cp ngene_15.fw /lib/firmware/
 wget http://l4m-daten.de/downloads/firmware/dvb-s2/linux/all/ngene_18.fw
 sudo cp ngene_18.fw /lib/firmware

Related Links



Set options for splitting twin tuners. If i got it right, there is some trouble with twin tuners detecting each tuner as a single device.

 options ngene one_adapter=1
 options ngene one_adapter=0

When these option are not set maybe an error occur in mythtv setting up the TV card



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

 sudo apt-get install mythtv

In my case pluto-mythtv-plugin was not found. So i decided to run myth-setup via a X session.

Remote login using ssh (on Mac you can use the Terminal-App)

 ssh user@ -X

Start mythtv-setup

 sudo mythtv-setup

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



mythweb white page

If you get a white page on mythweb, a possible reason is wrong settings for mysql connection.

Possible Fix

Make sure you set the right mysql values in /etc/apache2/sites-enabled/mythweb.conf

 setenv db_server        "localhost"
 setenv db_name          "mythconverg"
 setenv db_login         "mythtv"
 setenv db_password      "PASSWORD"

Can't save settings

Maybe you can't save channel settings. This happens because of apache and suhosin settings. Check your apache log

 tail -f /var/log/apache2/error.log

If you get an error like this:

 .. PHP Warning:  Unknown: Input variables exceeded 5000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://dcerouter/mythweb/settings/tv/channels

Increase the values in /etc/php5/apache2/php.ini as follows

 max_input_vars = 15000;
 suhosin.post.max_vars = 15000
 suhosin.request.max_vars = 15000

The value to set depends on the number of channels listed

iPad, iPhone 3GS Orbiter


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

 ServerAlias *

edit /etc/cups/printers.conf 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

Network Boot from MacMini 2006


Things to come...

  • AirPlay does not work. Bugreport: svn.linuxmce.org/trac.cgi/ticket/1478
  • Control my Samsung Plasma TV. 2 ways possible. Either use HDMI or Network...
  • Find a way to change the volume. Currently using S/PDIF, i guess no chance to change volume within LinuxMCE
  • Network Boot from DBOX2. Why? Coz' i got 2!