lauantai 31. joulukuuta 2016

How to install LineageOS (the successor of CyanogenMod) on OnePlusOne

Since CyanogenMod is not out there anymore I decided to move on to LineageOS - the successor of CyanogenMod. So now my OnePlusOne (aka OPO) is running the latest nightly version of LineageOS. If you ever flashed your phone chances are you'll be using a re-branded OS in no time. However keep in mind you do all modifications AT YOUR OWN RISK!

Flash the latest TWRP
  • Download the latest TWRP for OnePlus One
  • Attach your phone to your Linux computer
  • Shut down your OPO
  • Hold down Power + VolumeUp
    • Now you are in Fastboot Mode
  • As root type in the following commands:
    • fastboot devices
      • Check if your device is attached and ready
    • fastboot oem unlock
      • Unlock your device
    • fastboot flash recovery twrp-x.x.x-x-bacon.img
      • This flashes TWRP on your OPO
Flash LineageOS 14.1 and Gapps
  • In your Linux computer:
  • In your OPO:
    • Hold down Power + VolumeDown to enter TWRP
      • As soon as OnePlus One log appears release fingers
      • Swipe to allow modifications
    • Choose Swipe and after that Swipe to Factory Reset
    • Go back
    • Choose Advanced
    • Choose ADB Sideload
      • Check Wipe Dalvik Cache
      • Check Wipe Cache
      • Swipe to Start Sideload
  • In your Linux computer:
    • Type in the following commands as root:
      • adb sideload 
      • Wait until flashed
      • In OPO: Choose ADB Sideload again
      • In linux: adb sideload
      • Thumbs up, wait and reboot
So, happy ending! One more thing: OnePlusOne supports MultiROM which I've been using before. It seems the latest nightly version of LineageOS doesn't like MultiROM just yet! Or I don't know how make them co-operate ;D.

torstai 29. joulukuuta 2016

Android Things - an Iot-platform from Google for Raspberry Pi 3 and other SBCs

Ok, Android Things by Google is available for many SBCs (Single Board Computers) like:
  • Intel®Edison
  • NXP Pico i.MX6UL
  • Raspberry Pi 3
But what is Android Things? Lets see what Google has to say:
  • "Android Things lets you build professional, mass-market products on a trusted platform, without previous knowledge of embedded system design."
I'd put it this way:
  • "Android Things is an operating system for Raspberry Pi 3 based on Android phone OS. You can write/build IoT-apps/devices by using Android Studio SDK."
Now that we know what Android Things does it's time to write the OS on an SD card and boot up Raspberry Pi 3. Download the image for Raspberry Pi 3 here:

Android Things
up and running!

keskiviikko 21. joulukuuta 2016

Wie man Pixel Desktop - vertraut aus Raspberry Pi - auf Ihrem PC oder Mac ausführen

Es ist einfach! Laden und schreiben Sie das Bild (.iso) auf einem 2 GB USB-Stick. Starten Sie Ihren PC oder Mac von USB und dort haben Sie es! Live-Modus nur im Moment, habe ich Angst. Bitte folgen Sie den nachstehenden Schritten:
  • .iso herunterladen, entweder via torrent network oder direkt:
  • Schreiben Sie .iso auf einen USB-Stick (mindestens 2 GB). Verwenden Sie Ihre Lieblings-Anwendung oder Befehl dd auf Linux zu tun.
    • Ziehen Sie nicht einfach die .iso-Datei in Ihren USB-Stick
  • Booten Sie Ihren PC von usb-Stock. In meinem Fall ist es Knopf F12 aber das ändert sich; F1, Del usw. ... Mac? Keine Ahnung, sorry.
  • Drücken Sie Esc nach dem Start. Sie haben 5 Sekunden, um das zu tun!
  • Wählen Sie "Ausführen mit Persistenz". So können Sie Ihre Arbeit auf USB-Stick speichern. Das nächste Mal starten Sie Pixel Desktop von USB alle Ihre Dateien sind da!
Lassen Sie uns hoffen, dass Pixel Desktop auf der PC-Festplatte eines Tages installiert wird. Inzwischen müssen wir mit Persistent Live-Modus zu bewältigen.

Mein Mini-Laptop ist ab dem Jahr 2008 und hat 1 GB RAM Speicher. Raspberry Pi Foundation verspricht Pixel Desktop läuft auf einem PC mit 512 MB RAM. Wie klingt das? Es muss auf jeden Fall getestet werden!

Also, was ist der Punkt der Ausführung Pixel Desktop auf x86? Sie können fast alle Ihre Lieblings-Apps aus Raspbian vertraut zu genießen! Von nun an müssen Sie nicht verlassen Pixel Desktop, sondern gehen Sie mit es auf jeder Plattform!

PS Getestet zu arbeiten: Schreiben Sie etwas mit LibreOffice Writer. Speichern auf Pixel Desktop. Starten Sie Ihren PC neu. Die Datei ist noch da!

PPS Kein Wifi aber normales Netzwerk über RJ45 funktioniert! Edit: wifi funktioniert!

Pixel Desktop und Acer Aspire One ZG5

How to run Pixel Desktop - familiar from Raspberry Pi - on your PC or Mac

It's easy! Download  and write the image (.iso) on a 2 GB USB stick. Boot your PC or Mac from USB and there you have it! Live mode only at the moment, I'm afraid. Please follow the detailed steps below:
  • Download .iso either via torrent network or directly:
  • Write .iso on a USB stick (at least 2 GB). Use your favourite application or command dd on Linux to do that.
    • Do not just drag and drop the .iso file inside your USB stick
  • In case you have a PC find out how to boot from USB stick. In my case it's button F12 but that varies; F1, Del etc... Mac? No idea, sorry.
  • Press Esc after boot. You have 5 seconds to do that!
    • Choose "Run with persistence". That way you can save your work on USB stick. Next time you boot Pixel Desktop from USB all your files are there!
Let's hope Pixel Desktop installs on PC hard drive one day. Meanwhile we have to cope with Persistent Live Mode.

My mini laptop is from year 2008 and has 1 GB of RAM memory. Raspberry Pi foundation promises Pixel Desktop runs on a PC with 512 MB of RAM. How does that sound? It definitely got to be tested!

So what's the point of running Pixel Desktop on x86? You can enjoy almost all of your favourite apps familiar from Raspbian! From now on you don't need to leave Pixel Desktop but go on using it on any platform!

PS Tested to work: Write something with LibreOffice Writer. Save on Pixel Desktop. Reboot your PC. The file is still there!

PPS No wifi but normal network via RJ45 works! Edit: wifi works!

Pixel Desktop on Acer Aspire One ZG5

lauantai 17. joulukuuta 2016

How to enable M$ Office ribbon in LibreOffice 5.3 (beta)

The latest LibreOffice 5.3 (beta) can be run with a different UI than we are used to. A ribbon, familiar from M$ Office, is hidden inside LibreOffice and is easily enabled. Here's how to do it. Please keep in mind that you do all modifications at your own risk:

  • First of all, get rid of older LibreOffice which you might have installed before or has been there as default (in Ubuntu Linux). Open Terminal:
    • sudo apt-get remove --purge libreoffice*
  • Download LibreOffice 5.3 (beta). Default tar.gz has all the deb-packages needed for an English/US install. No need to install localization packages:
  • Extract debs where you like. This can be done by double clicking tar.gz -package, then dragging and dropping debs in a folder.
  • In Terminal:
    • cd /path/to_folder/where/debs/are
    • sudo dpkg -i *.deb
      • Now LibreOffice 5.3 (beta) is installed
  • Open LibreOffice Writer
    • Click Ubuntu-button in upper left corner and type-in libre
Once LibreOffice Writer 5.3 (beta) is up and running:
  • Click Tools, Options, LibreOffice Dev, Advanced and check Enable experimental features (may be unstable)
  • Next, click View in upper left corner, Toolbar layout, Notebookbar
There you have it!

LibreOffice 5.3 (beta) is available for Windows and macOS as well!

Be sure to check Enable experimental features

You can always go back if ribbon is "not your cup of tea",
the default UI is still there as well

maanantai 5. joulukuuta 2016

DietPi - a tiny yet versatile Linux for Raspberry Pi

What is DietPi?

It's a tiny Linux distribution for any Raspberry Pi (and other SBCs) full of ready-to-run software. Whether you want to setup a server or wifi hotspot with DietPi chances are DietPi will run those tasks for you. Take a look at the list of all the software available for DietPi!

How to download, extract and write DietPi on an SD card?

Download the image which is delivered as a 7zip-package (~ 90 MB). If you don't have any tool to extract .7z -files, follow these instructions:

  • Open Terminal to get to the command line
  • Install p7zip-full package:
    • sudo apt-get install p7zip-full
  • To extract files with extension .7z :
    • 7z e DietPi_RPi-armv6-(Jessie).7z
      • e stands for extract

Use either a graphical tool or command dd to write the extracted image (~ 550 MB) on an SD card. An example:

  • sudo dd if=DietPi_v136_RPi-armv6-(Jessie).img of=/dev/sdd
    • Attention! SD card is not always sdd!

Run DietPi on any RaspberryPi

It doesn't matter which RaspberryPi you have. DietPi runs on any Raspi! So get your gear ready and fire up your Raspberry Pi.

Once up and running you want to choose a server or two for your needs. Make sure Raspi is connected to the Internet. Let DietPi download and install automatic updates. Run DietPi-Software via the command line: dietpi-launcher or dietpi-software. Have fun!

Text-based interface for choosing software