Hi,
I've found out how to install an x-server on my raspberry pi 2.
My wife wanted a simple internet radio an I have an old xenarc 7" touchscreen which would be great to use as a second interface.
First make a backup of your SD-Card. If you don't know how to do this, please do not go on as this is the easiest part.
After this I increased the size of the partition, so there is enough space for the additional software (very important). I used a SD-Cardreader and gparted (you can use a ubuntu live cd for this).
All done? Ok, let's begin:
Update Repository (to be sure all software packages are up to date and download-links still exist)
- Code: Select all
pacman -Sy
Please DO NOT run a full system update (pacman -Syu). It will brick your installation!
Install x-server:
- Code: Select all
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils
Install graphic-driver:
- Code: Select all
pacman -S xf86-video-fbdev xf86-video-vesa
Install the desktop environment:
- Code: Select all
pacman -S xfce4
Start desktop environment:
- Code: Select all
startxfce4
At this time you have to start the environment manually on every boot. I did not have the time to care about auto-starting it at this time.
Now we have a very lightweight desktop environment and many essential parts such as the browser are still missing.
I've tried a lot of browsers and midori was the only one who worked the way i wanted. So let's install it:
- Code: Select all
pacman -S midori
BUT, if you want to start midori now (like every useable browser I've tried -all of them webkit based) you get an error because of
ICU - International Components for Unicode
http://site.icu-project.org/Well I thought this could be solved with installing/updating icu:
- Code: Select all
pacman -S icu
Now I can start midori and show the runeaudio webinterface by visiting
http://127.0.0.1. Even fullscreen is possible (midori -e Fullscreen)
Everything seems to work as it should - well sadly NOT!
After rebooting the system the whole webinterface is not working anymore!
The problem is icu. But I have to install/update it, to get any browser to work.
This is the error message I get:
- Code: Select all
Warning: socket_write() expects parameter 1 to be resource, boolean given in /srv/http/app/libs/runeaudio.php on line 99 Warning: socket_last_error() expects parameter 1 to be resource, boolean given in /srv/http/app/libs/runeaudio.php on line 88 Warning: socket_close() expects parameter 1 to be resource, boolean given in /srv/http/app/libs/runeaudio.php on line 89
So the php code seems to have a problem with the new icu package. Hopefully only a small problem, but I don't know. Sadly I'm not into php programming.
This is where I need your help! Maybe someone can modify the code to get runeaudio to work again.
This is the ICU Info before update...
- Code: Select all
<icuSystemParams type="icu4c">
<param name="copyright"> Copyright (C) 2014, International Business Machines Corporation and others. All Rights Reserved. </param>
<param name="product">icu4c</param>
<param name="product.full">International Components for Unicode for C/C++</param>
<param name="version">54.1</param>
<param name="version.unicode">7.0</param>
<param name="platform.number">4000</param>
<param name="platform.type">Linux</param>
<param name="locale.default">en_US_POSIX</param>
<param name="locale.default.bcp47">en-US-u-va-posix</param>
<param name="converter.default">US-ASCII</param>
<param name="icudata.name">icudt54l</param>
<param name="icudata.path"></param>
<param name="cldr.version">26.0</param>
<param name="tz.version">2014h</param>
<param name="tz.default">CET</param>
<param name="cpu.bits">32</param>
<param name="cpu.big_endian">0</param>
<param name="os.wchar_width">4</param>
<param name="os.charset_family">0</param>
<param name="os.host">armv7l-unknown-linux-gnueabihf</param>
<param name="build.build">armv7l-unknown-linux-gnueabihf</param>
<param name="build.cc">gcc</param>
<param name="build.cxx">g++</param>
<param name="uconfig.internal_digitlist">1</param>
<param name="uconfig.have_parseallinput">1</param>
<param name="uconfig.format_fastpaths_49">1</param>
</icuSystemParams>
... and after update:
- Code: Select all
<icuSystemParams type="icu4c">
<param name="copyright"> Copyright (C) 2015, International Business Machines Corporation and others. All Rights Reserved. </param>
<param name="product">icu4c</param>
<param name="product.full">International Components for Unicode for C/C++</param>
<param name="version">55.1</param>
<param name="version.unicode">7.0</param>
<param name="platform.number">4000</param>
<param name="platform.type">Linux</param>
<param name="locale.default">en_US_POSIX</param>
<param name="locale.default.bcp47">en-US-u-va-posix</param>
<param name="converter.default">US-ASCII</param>
<param name="icudata.name">icudt55l</param>
<param name="icudata.path"></param>
<param name="cldr.version">27.0.1</param>
<param name="tz.version">2015b</param>
<param name="tz.default">CET</param>
<param name="cpu.bits">32</param>
<param name="cpu.big_endian">0</param>
<param name="os.wchar_width">4</param>
<param name="os.charset_family">0</param>
<param name="os.host">armv7l-unknown-linux-gnueabihf</param>
<param name="build.build">armv7l-unknown-linux-gnueabihf</param>
<param name="build.cc">gcc</param>
<param name="build.cxx">g++</param>
<param name="uconfig.internal_digitlist">1</param>
<param name="uconfig.have_parseallinput">1</param>
<param name="uconfig.format_fastpaths_49">1</param>
</icuSystemParams>
Can someone please have a look at runeaudio.php and fix the error?
P.S.: If you don't install icu, you can use the mpd client ario. But it has a ugly interface for my touchscreen and does not support all runeaudio features such as selecting an internet radio (only if you have them stored in a playlist).
Greetings from Germany