Plasma/Mobile/CyanogenModBase: Difference between revisions

From KDE Community Wiki
< Plasma‎ | Mobile
Line 27: Line 27:
       adb push lxc-system-config /data/lxc/containers/system/
       adb push lxc-system-config /data/lxc/containers/system/


* Start lxc container and then plasma
* Start lxc container


      adb shell
    adb shell
      root@hammerhead:/ # lxc-start -n system -F
    root@hammerhead:/ # lxc-start -n system -F
      * Setting up X socket directories...
    * Setting up X socket directories...
     ...done.
     ...done.
     Ubuntu Xenial Xerus (development branch) ubuntu-phablet console
     Ubuntu Xenial Xerus (development branch) ubuntu-phablet console
     ubuntu-phablet login: phablet
     ubuntu-phablet login: phablet
     Last login: Wed May 12 08:39:00 UTC 1971 on lxc/console
     Last login: Wed May 12 08:39:00 UTC 1971 on lxc/console
     Welcome to Ubuntu Xenial Xerus (development branch) (GNU/Linux 3.4.0-cyanogenmod-g15e5a99-dirty armv7l)
     Welcome to Ubuntu Xenial Xerus (development branch) (GNU/Linux 3.4.0-cyanogenmod-g15e5a99-dirty armv7l)
   * Documentation:  https://help.ubuntu.com/
   * Documentation:  https://help.ubuntu.com/
   phablet@ubuntu-phablet:~$
   phablet@ubuntu-phablet:~$
* Start udev and lightdm
    sudo service udev start
    sudo udevadm trigger --action=add
    sudo service lightdm start

Revision as of 06:18, 1 May 2016

Introduction

Plasma Mobile is free mobile platform and it is capable of running on any operating system base. Initial reference images were based on Ubuntu Touch. This document explains how to install the Plasma Mobile with CyanogenMod base on Nexus 5.

How to install

Following guide assumes that your Nexus 5 device have unlocked bootloader.

     adb root
  • Once adbd is restarted as root, Download and extract lxc for android.
     wget https://jenkins.linuxcontainers.org/job/lxc-build-android/lastSuccessfulBuild/artifact/lxc-android.tar.gz
     adb push lxc-android.tar.gz /tmp
     adb shell tar xvf /tmp/lxc-android.tar.gz
  • Create directory for the system container and extract rootfs into its location.
     wget http://mobile.neon.pangea.pub:8080/job/img_phone_xenial_armhf/lastSuccessfulBuild/artifact/result/livecd..rootfs.tar.gz
     adb push livecd..rootfs.tar.gz /tmp
     adb shell mkdir -p /data/lxc/containers/system/rootfs/
     adb shell tar xvf /tmp/livecd..rootfs.tar.gz -C /data/lxc/containers/system/rootfs/
     wget https://raw.githubusercontent.com/plasma-phone-packaging/CM/master/lxc-system-config
     adb push lxc-system-config /data/lxc/containers/system/
  • Start lxc container
   adb shell
   root@hammerhead:/ # lxc-start -n system -F
   * Setting up X socket directories...
   ...done.
   Ubuntu Xenial Xerus (development branch) ubuntu-phablet console
   ubuntu-phablet login: phablet
   Last login: Wed May 12 08:39:00 UTC 1971 on lxc/console
   Welcome to Ubuntu Xenial Xerus (development branch) (GNU/Linux 3.4.0-cyanogenmod-g15e5a99-dirty armv7l)
  * Documentation:  https://help.ubuntu.com/
  phablet@ubuntu-phablet:~$
  • Start udev and lightdm
   sudo service udev start
   sudo udevadm trigger --action=add
   sudo service lightdm start