User:Foxi352
Contents
[hide]Transforming joggler to LMCE orbiter
Creating device in LinuxMCE
Login to your webadmin. Go to "Orbiter" and add a new device of type "Orbiter". Set the Size to "Nokia770". Choose whatever skin and language you like. Quick reload your core and let it create the Orbiter. Anyway; you have a lot of work to do meanwhile :-)
Installing base system
Download and install SqueezeOS
Get SqueezePlay OS for Joggler. I suggest using the version "for internal memory". You may use the USB version and work on with an external USB stick on your joggler. However i tested this whole process using the joggler's internal flash.
Using linux
Unzip the download (filename may of course change if new version is released):
gunzip sqpos109mmc.img.gz
Plug in a 2GB (min) USB stick. Find the device name of your USB stick:
sudo fdisk -l
Write the image to your USB stick. ATTENTION: ALL FILES ON YOUR USB STICK WILL BE OVERWRITTEN !!!
sudo umount /dev/sdX* sudo dd if=sqpos109mmc.img of=/dev/sdX bs=1M
Where sdX is your USB device.
Using OSX
Unzip the download (filename may of course change if new version is released):
gunzip sqpos109mmc.img.gz
Open a Terminal window. Plug in a 2GB (min) USB stick. Find the device name of your USB stick:
sudo diskutil list
Write the image to your USB stick. ATTENTION: ALL FILES ON YOUR USB STICK WILL BE OVERWRITTEN !!!
sudo umount -f /dev/diskX* sudo dd if=sqpos109mmc.img of=/dev/rdiskX bs=1m
Where rdiskX is your USB device.
Flash it to your joggler's internal memory
Power off your joggler. Insert your newly prepared USB stick to your joggler's external USB port. Power on your joggler and let it flash the SqueezeOS to the internal flash memory. Read instructions on screen. When done remove the externel USB stick and let the joggler boot into your newly installed SqueezeOS.
Activating SSH server
Once booted into SqueezeOS go to "Settings > Advanced > Additional Features > OpenSSH server" and activate it. Give it some minutes to install and then try to ssh to your joggler:
ssh joggler@<your joggler's ip>
password is: joggler
Transform it to Orbiter
Adapt sources.list
SSH to core, "sudo su" to root and replace /etc/apt/sources.list with following content:
###### Ubuntu Main Repos deb http://uk.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb-src http://uk.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse ###### Ubuntu Update Repos deb http://uk.archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse deb http://uk.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse deb http://uk.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse deb-src http://uk.archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse deb-src http://uk.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse deb-src http://uk.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse ###### Ubuntu Partner Repo deb http://archive.canonical.com/ubuntu lucid partner deb-src http://archive.canonical.com/ubuntu lucid partner ##### Joggler PPA deb http://ppa.launchpad.net/jools/joggler/ubuntu lucid main deb-src http://ppa.launchpad.net/jools/joggler/ubuntu lucid main ##### Intel EMGD binaries PPA deb http://ppa.launchpad.net/jools/emgd-xorg1.9/ubuntu lucid main deb-src http://ppa.launchpad.net/jools/emgd-xorg1.9/ubuntu lucid main #### LinuxMCE repo deb http://deb.linuxmce.org/ubuntu/ lucid beta2
Update installation to latest packages
apt-get update apt-get upgrade
Install pre requirements for Orbiter
apt-get install mysql-client libsdl-ttf2.0-0 libsdl-sge libsdl-gfx1.2-4 libsdl-image1.2 libhid0 icewm liblinphone3 libxcursor1 msttcorefonts
Create directory structure
mkdir -p /usr/pluto/bin mkdir -p /usr/pluto/lib mkdir -p /var/log/pluto chown -R joggler:joggler /usr/pluto chown -R joggler:joggler /var/log/pluto
Copy needed files from your core to your joggler
SSH to joggler if not yet done. You don't need to become root.
Copy the Orbiter binary:
cd /usr/pluto/bin scp root@dcerouter:/usr/pluto/bin/Orbiter .
Copy the needed libraries:
cd /usr/pluto/lib scp root@dcerouter:/usr/pluto/lib/* .
Note: you may need to change "dcerouter" to your core's full FQDN or to your core's IP address, depending your local environment.
Modify config files
Tell your system where to find LinuxMCE libraries needed by Orbiter:
sudo echo /usr/pluto/lib > /etc/ld.so.conf.d/LinuxMCE.conf
Create /home/joggler/startOrbiter.sh file with following content:
#!/bin/bash while [ "1" == "1" ] ; do cd /usr/pluto/bin /usr/pluto/bin/Orbiter -r 192.168.80.1 -d <id> sleep 15 done
Replace <id> with your orbiter's ID. If for whatever reason you changed your core's IP address you must of course replace 192.168.80.1 by your own core's IP.
Replace /home/joggler/.xinitrc file with the following content:
export DISPLAY=:0.0 if [ -f /home/joggler/startOrbiter.sh ]; then exec /home/joggler/startOrbiter.sh else xterm fi
TODO
On my whishlist:
- Get mouse cursor hidden. All tries with unclutter or xsetroot to emptycursor failed miserably until today.
- Make it possible to switch from Orbiter to SqueezePlay and back
- Make mediaplay work on joggler via LMCE. At least audio. Video would be a bonus.
My experiences upgrading a running core / hybrid from 0810 to 1004
My main motivation to upgrade my core was my skystar hd2 dvb-s2 card which i never got working on my 0810 core. Everything i found on internet was based on 1004. And of course help to alpha test new lmce packages. If you feel in a need to upgrade too, you may base your work on my experiences to speed up things. I had some help from possy which i credit here.
Please note that this is:
- unsupported from official help channels
- on your own risk. Backup your data before proceeding and most important your config files.
- you need some linux experiences. If you don't know what ssh is, or what a debian package is, then stay with official lmce distro's !
- this guide is based on a merely ontouched clean core install. All i did manually on the core was playing with v4l2 and other drivers to get my dvb-s2 card working (while i must admit i never had success until now)
- a lot of fun :-) You are not done in 10 minutes.
This said, it took me half a day and everything was up running again except two issues which i will fix and upgrade this page accordingly.
Preparation
ssh to your core (or login on console). To simplify things i always sudo to root during this guide.
sudo su -
edit your apt sources.list to change from intrepid to lucid.
cd /etc/apt vi sources.list
replace the entire content with the following (sponsored by possy :-) ) NOTE: The important point here is, to replace all intrepid entries with lucid!
# Regular lucid repos deb http://de.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse # LinuxMCE repo deb http://deb.linuxmce.org/ubuntu/ lucid beta2 # For the Squeezeboxes deb http://debian.slimdevices.com/ stable main # And we want libdvdcss and stuff deb http://packages.medibuntu.org/ lucid free non-free # Some more LinuxMCE stuff (not sure it is still needed (it does not contain updates for 1004) deb http://deb.linuxmce.org/ubuntu/ 20dev_ubuntu main # eibd stuff deb http://www.auto.tuwien.ac.at/~mkoegler/debian/ eib main # Latest VDR stuff (from YaVDR.org) deb http://ppa.launchpad.net/yavdr/stable-vdr/ubuntu lucid main
The upgrade
After updating your sources.list you can download the new package lists:
apt-get update
Take a deep breath and launch a first upgrade. Don't worry, at least for me it was just the beginning of long intense relationship between me and apt-get :-)
apt-get dist-upgrade -f
It downloaded about 3,5GB and > 1000 packages. I launched the command multiple times (about a dozen) until always the same error message came back:
E: Couldn't configure pre-depend x11-common for libxau-dev, probably a dependency cycle.
I fixed this with
apt-get install x11-common
Then again i run
apt-get dist-upgrade -f
a couple of times until always the same error message came back:
(error message missing here). Basically: it could not install the following packages ... libxine1 phonon-backend-xine kdebase-runtime konsole xorg plasma-scriptengine-javascript .. because it could not delete /usr/share/doc/libxine1 which was not empty
This was a quick fix:
rm -rf /usr/share/doc/libxine1
I had that errormessage many many times about directories that are not empty. But i could ignore them all except this one. Then again, as usual:
apt-get dist-upgrade -f
a couple of times. At some point i did not get further on my way and had some hundred packages not installing. From my previous debian times i remember that aptitude did some times a better (less secure) job when having a lot of packages with problems. So i tried:
aptitude dist-upgrade -f
which proposed a solution including removing some packages. I made sure there was no package with "pluto" or "lmce" in the name and accepted the first proposed solution. This worked and there were only some packages left to install / configure. One package was libkipi7 which complained about overwriting some files also included in the libkipi common packages. While trying to remove this package i had a dependency with libkipi5 also installed. The solution was:
dpkg -r libkipi-common libkipi5
as usual:
apt-get dist-upgrade -f
a couple of times until nearly everything is installed. At this point it complained about installing the bind9 update. Apparmor blocked the update with some strange error messages. Digging deeper into it showed some kernel udev problem. At this point i rebooted my server for the first time to load the newly installed kernel.
reboot
And: TAADAA, lucid is booting for the first time :-) To continue with bind9 setup:
sudo su - (because after reboot you are normally back in user shell again) apt-get dist-upgrade -f
At this point we have finished all downloading. Time to free up some disk space.
apt-get autoclean
Resolving remaining problems
I HAD NO X (GUI) AFTER REBOOT. Don't panic if it's the same for you. I remember that one day KDE on core asked me to install restricted nvidia drivers. I suppose saying yes did remove the pluto nvidia drivers and replace with kubuntu ones. No idea why they were not upgraded. After rebooting i ssh'd to the core and continued:
sudo su - apt-get install pluto-nvidia-video-drivers (to fix X not coming up) apt-get -f install
Next Problem: I had a KDE login screen but no keyboard working (i have a Logitech USB keyboard). Analysing the Xorg log files showed me that the kbd driver module are not present. Simply remove the existing xorg.conf file
mv /etc/X11/xorg.conf /etc/X11/xorg.conf.dontload
Then you need to remove the kdm startup to avoid loading the kde login and desktop.
rm /etc/rc5.d/S30kdm mv /usr/bin/kdm /usr/bin/kdm-dontstart
Then i rebooted ...
reboot
... and (nearly) everything worked. ATTENTION: My orbiters were not showing any images at this time. The explanation was very very simple: The core was doing a complete regeneration of all orbiter screens. I don't know why, and to be honest, i would not give a cent to know why. I just waited for the process to finish and everything worked like a charm.
Additional tweaking
You can update your local shared package cache. Your MD's will upgrade faster without downloading all the packages again if you do this.
sudo su - (if not still in root mode) rm /usr/pluto/deb-cache/* cp /var/cache/apt/archives/* /usr/pluto/deb-cache cd /usr/pluto/deb-cache dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
If you did not follow the guide step by step and did not do apt-get autoclean like written above you will have a bunch of warning messages about doubble packages.