Community Workspace/Omap4/Pandaboard/mer-minimal-lipstick-pandaboard-armv7hl.ks

# #  lang en_US.UTF-8 keyboard us timezone --utc UTC part /boot --size=32 --ondisk mmcblk0p --fstype=vfat --active part / --size=1024 --ondisk mmcblk0p --fstype=ext3 rootpw nemo user --name nemo --groups audio,video --password nemo repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages --save repo --name=nemo-devel-hw-ti-omap4-pandaboard --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap4:/pandaboard/latest_armv7hl/ --save repo --name=nemo-testing-mw --baseurl=http://repo.merproject.org/obs/nemo:/testing:/mw/latest_armv7hl/ --save repo --name=nemo-testing-apps --baseurl=http://repo.merproject.org/obs/nemo:/testing:/apps/latest_armv7hl/ --save repo --name=nemo-testing-ux --baseurl=http://repo.merproject.org/obs/nemo:/testing:/ux/latest_armv7hl/ --save %packages @Mer Minimal Xorg @Mer Connectivity @Mer Core qt-qmlviewer kernel-adaptation-pandaboard xorg-x11-server-Xorg-setuid pvr-omap4 pvr-omap4-kernel pvr-omap4-libEGL pvr-omap4-libGLESv1 pvr-omap4-libGLESv2 u-boot-omap4panda linux-firmware-ti-connectivity #mce xorg-x11-xauth openssh-clients openssh-server ce-backgrounds plymouth-lite vim-enhanced xterm xorg-launch-helper lipstick-colorful-home libdeclarative-sensors qt-components mcompositor maliit-plugins meegotouch-community-l10n mapplauncherd flickr-qml qmlcalc meegotouchcp-wallpaper tumbler meegotouch-theme connman-qt connman-qt-declarative contextkit-plugin-cellular contextkit-plugin-connman contextkit-plugin-upower diffutils droid-sans-fonts droid-sans-mono-fonts droid-serif-fonts giflib glib-networking gmime gst-plugins-bad-free gst-plugins-base gst-plugins-good heliumreborn info libXv libcreds3 libdeclarative-gallery libdeclarative-location libdeclarative-multimedia libenca libenca-libenca0 liberation-fonts-common liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts libgsf libgudev1 libiptcdata libphonon4 libqtdeclarative4-folderlistmodel libqtgallery1 libqtlocation1 libqtmultimediakit1 libqtwebkit-qmlwebkitplugin libqtwebkit4 libsmack libsoup libtheora libvisual meego-handset-maps meego-terminal meegotouch-compositor-gestures meegotouch-systemui meegotouch-theme-darko meegotouchcp-connman mtdev nemo-control-panel-applet-power nemo-control-panel-common nemo-mobile-session nemo-qml-plugin-contextkit nemo-qml-plugins-thumbnailer pango phonon phonon-backend-gstreamer pm-utils poppler poppler-glib python python-libs qmlgallery qmlmusicplayer recode taglib totem-pl-parser tracker unzip upower xorg-x11-drv-mtev %end %post Config_Src=`gconftool-2 --get-default-source` gconftool-2 --direct --config-source $Config_Src \ -s -t string /meegotouch/target/name Panda-19in-1280x1024 mkdir -p /etc/xdg/mcompositor/ echo "close-timeout-ms 15000;" > /etc/xdg/mcompositor/new-mcompositor.conf echo -n 'armv7hl-meego-linux' > /etc/rpm/platform echo 'arch = armv7hl' >> /etc/zypp/zypp.conf mv /usr/bin/ply-image /usr/bin/ply-image-real cat > /usr/bin/ply-image << EOF echo 32 > /sys/class/graphics/fb0/bits_per_pixel exec /usr/bin/ply-image-real $@ EOF chmod +x /usr/bin/ply-image echo -n "Rebuilding db using target rpm.." rm -f /var/lib/rpm/__db* rpm --rebuilddb echo "done" sed -i 's! -nocursor!!g' /etc/sysconfig/nemo-mobile-ui cat > /etc/profile.d/mtf-mouse-ptr.sh << EOF export M_USE_SHOW_CURSOR=1 EOF cat > /etc/profile.d/qt-graphicssystem-opengl.sh << EOF export QT_GRAPHICSSYSTEM=runtime export QT_DEFAULT_RUNTIME_SYSTEM=opengl EOF cat > /usr/share/meegotouch/targets/Panda-19in-1280x1024.conf << EOF [resolution] X=1280 Y=1024 [ppi] X=250 Y=250 [allowedOrientations] keyboardOpen = 0 keyboardClosed = 0,270 [other] showStatusBar=true EOF sed -i 's!Exec=/usr/bin/invoker --type=q /usr/bin/duicontrolpanel.launch!Exec=sh -c "M_USE_SHOW_CURSOR=1 /usr/bin/invoker --type=q /usr/bin/duicontrolpanel.launch"!g' /usr/share/applications/mtf-settings.desktop sed -i 's!meegotouch-systemui.service!!g' /usr/lib/systemd/user/lipstick.service Config_Src=`gconftool-2 --get-default-source` gconftool-2 --direct --config-source $Config_Src \ -s -t string /desktop/meego/background/landscape/picture_filename \ /usr/share/themes/base/meegotouch/images/meegotouch-wallpaper-landscape.jpg cat > /var/lib/environment/nemo/60-adaptation-pandaboard.conf << EOF M_USE_SHOW_CURSOR=1 QT_GRAPHICSSYSTEM=runtime QT_DEFAULT_RUNTIME_SYSTEM=opengl EOF sed -i 's!ExecStart=/usr/bin/lipstick!EnvironmentFile=/var/lib/environment/nemo/60-adaptation-pandaboard.conf\nExecStart=/usr/bin/lipstick!g' /usr/lib/systemd/user/lipstick.service %end %post --nochroot if [ -n "$IMG_NAME" ]; then echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release fi %end
 * 1) -*-mic2-options-*- -f raw --record-pkgs=name --pkgmgr=yum --arch=armv7hl -*-mic2-options-*-
 * 1) Do not Edit! Generated by:
 * 2) kickstarter.py
 * 1) @Nemo Middleware Shared
 * 2) @Nemo Apps
 * 3) @MTF Handset UX
 * 1) This one started pulling all Nemo Apps and other components, which break Pb for now (dreaded out-of-memory I reckon)
 * 2) https://bugs.nemomobile.org/show_bug.cgi?id=651
 * 3) That's why below there are so many manually 1-by-1 installed packages
 * 4) @Mer Graphics Common
 * 1) xorg-x11-drv-evdev
 * 2) xorg-x11-drv-vesa
 * 3) xorg-x11-drv-fbdev
 * 1) pulseaudio-module-x11
 * 1) contextkit-maemo-mce
 * 1) some apps
 * 1) wallpaper changing ability (will pull-in settings app, too)
 * 1) this will finally show thumbnails when choosing wallpaper:
 * 1) pull in the theme
 * 1) Only necessary bits from Mer Graphics Common:
 * 1) perl
 * 2) perl-Compress-Raw-Zlib
 * 3) perl-IO-Compress-Base
 * 4) perl-IO-Compress-Zlib
 * 5) perl-Module-Pluggable
 * 6) perl-Pod-Escapes
 * 7) perl-Pod-Simple
 * 8) perl-libs
 * 1) Set up proper target for libmeegotouch, in this case:
 * 2) Pandaboard on 19in monitor at 1280x1024 resolution
 * 1) Wait a bit more than the default 5s when starting application.
 * 1) arch-armv7hl.post from mer-kickstarter-configs package
 * 2) Without this line the rpm don't get the architecture right.
 * 1) Also libzypp has problems in autodetecting the architecture so we force tha as well.
 * 2) https://bugs.meego.com/show_bug.cgi?id=11484
 * 1) end arch-armv7hl.post
 * 1) Hack to fix the plymouth based splash screen on N900
 * 1) !/bin/sh
 * 1) rpm-rebuilddb.post from mer-kickstarter-configs package
 * 2) Rebuild db using target's rpm
 * 1) end rpm-rebuilddb.post
 * 1) Show mouse cursor
 * 1) Set env variable to show cursor on MTF apps
 * 1) Set Qt graphics system to opengl
 * 1) Make Pandaboard config for 19in monitor - how to parametrise this?
 * 1) Make invoker launch Settings app with mouse cursor visible
 * 2) FIXME: any better methods to do that? Invoker does not read env :{
 * 1) Detach lipstick from systemui, because it's causing random crashes
 * 2) Remove this when sysuid enters the .ks and is stabilised
 * 1) Set a nice wallpaper
 * 1) This should go to nemo-configs-pandaboard eventually:
 * 2) TODO: figure out how to toggle mouse cursor if needs be
 * 1) TODO: REMOVE HACK: Fix lipstick acceleration problem. It has to be in .service file
 * 2) and I don't know why, but it's the only way to get things accelerated
 * 3) WHENEVER LIPSTICK GETS UPDATED, THIS WILL DISSAPPEAR, AND YOU'LL FALL INTO THE
 * 4) LIMP HOME MODE :)