Archiv der Kategorie: Linux

Install Android on Odroid-U3 (SD-Card, Linux)

Some words on how to install Android on your Odroid-U3 using Linux:

  • Download the Image from http://dn.odroid.com/4412/Android/
  • Extract the ZIP-File with your GUI-ZIP-Tool or in Command-Line
  • Prepare the Micro-SD (USB-Card Reader with your SD)
    • Clear your SD with dd first: dd if=/dev/zero of=/dev/sdX bs=4M
      (Depending on the size of your SD, this action can take a lot of time…)
    • Now we flash the image on the SD-Card: sudo dd if=image.img of=/dev/sdX bs=4M
    • To safely remove the SD: sync
  • Now we insert the SD into our Odroid-U3 and first boot will proceed – and it will take some minutes (with black screen) !!! (Anyways At the first booting, the self-installing will take about 1~2 minutes. While installation, the blue LED is blinking and fan is running. The blue-LED will turn off after installation. Turn on again and enjoy.)

More on this:

http://forum.odroid.com/viewtopic.php?f=78&t=3302

Odroid-U3 XuBuntu – no image wrong HDMI-Setting. Reset HDMI-settings

If you don’t get an image via HDMI on your TFT/TV, sometimes it’s because of a wrong setting… and if you can’t connect to your Odroid with SSH (to run odroid-config), you have got a problem :-( but just a small one.

Put the SD in a Card-Reader and connect it to a Linux-PC.

The first partition, a fat partition will have a file named boot-auto.scr copy it to boot.scr (replace the old boot.scr there)

odroid_bootscr

Now your little gadget should boot with an image on your screen :-)

More information on this topic: http://forum.odroid.com/viewtopic.php?f=82&t=3281

More on Odroid-U3

QGIS 2.0.1 on Fedora 20: Problems with “Raster-Menu”

After having QGIS 2.x successfully installed on Fedora 20 (yum install qgis) only the QGIS itself seems to be installed. You may get errors when trying to fetch new Plug-ins (Python!) or you have an nearly empty Raster-menu (without the GDAL-Tools).

qgissnapshot1

In these cases install the following packages with YUM:

  • qgis-python
  • gtatool-gdal
  • gdal

Screenshot-example (error): Missing GDAL-Lib – although the menu-items are in place:

qgissnapshot2

After installation of the above mentioned packages everything works fine 🙂 – e.g. hillshade and contour-lines

qgissnapshot3

 

Amazon Kindle & Linux… and how to remove DRM

Kindle and Linux

There are useful tools around to handle your Amazon Kindle:

  • calibre – a nice piece of software to manage your books (library) on your kindle. This tool also converts and sends books to your device. The all in one solution. It is extremely expendable with Plug-Ins (also for removing DRM)
  • ebook-convert and other commandline-tools (gets installed with calibre)
    example: ebook-convert filename.cbz filename.epub

snapshot3

snapshot4

Removing DRM with Python tool

  1.  What you need: Python on your system – just try “python” in CLI. If Python is missing in your distro install it – e.g. in Ubuntu by “sudo apt-get install python”
  2. The MobiDeDRM Scripts – http://nyquil.org/uploads/MobiDeDRM.zip
  3. If you buy a book from Amazon you normally get a “Book.azw”-File…
  4. … the next steps:
  • python kindlepid.py XXXXXXXXXXX” where XXXXXXXXXXXX is your 16-character Serial (get your serial from your Kindle Systeminformation – Settings/Device information). The Terminal window will return something like Mobipocked PID for Kindle serial# XXXXXXXXXXXXXXXX is Z1QFCDQ*74. That “Z1QFCDQ*74” string is what you need.

snapshot2

  • Now all you have to do to remove the DRM from the .AZW file is:
    python mobidedrm.py Book-Title.azw Book-Title.mobi YourMobiPocketKEY
    In a minute or so you should have a DRM-free MobiPocket book you can later convert in any other format you like. If that doesn’t work, try
    python mobidedrm2.py Book-Title.azw Book-Title.mobi YourMobiPocketKEY

 

Sources and more information:

  • https://www.facebook.com/notes/unix/remove-drm-from-amazon-kindles-ebooks-using-linux/293892687293406
  • http://apprenticealf.wordpress.com/2012/09/10/drm-removal-tools-for-ebooks/
  • http://www.heise.de/open/artikel/Toolbox-E-Book-Verwaltung-mit-Calibre-2038084.html

 

Sources for free eBooks

  • http://www.gutenberg.org/
  • Torrent

SMSen mit Linux (… SMS-Server)

Unter Linux können ganz einfach mit einem entsprechenden Modem (zB UMTS-Stick) SMS versendet und empfangen werden. Die Beschreibung nimmt Bezug auf Ubuntu mit Gammu und UMTS-Stick (Huwaei E160):

Die Befehle:

  • gammu-config

  • gammu getallsms

  • gammu sendsms text NUMBER

Im Detail:

Wenn Gammu noch nicht installiert wurde:

# sudo apt-get install gammu

Next, we need to configure Gammu to pickup the correct device. Check your dmesg for the serial port:

$ dmesg|grep tty
[12321.308078] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0
[12321.308275] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1

Edit ~/.gammurc, or run gammu-config to change the device settings. Your ~/.gammurc file should look similar to:

[gammu]
port = /dev/ttyUSB0
model =
connection = at19200
synchronizetime = yes
logfile =
logformat = nothing
use_locking =
gammuloc =

Give it a test by getting all the SMS from the device:

# gammu getallsms

This should bring back all the SMS currently stored on the stick, which should include your login details for the Three website (unless you’ve deleted them). To send a SMS use the “sendsms” command:

$ gammu sendsms text 07874454543
Enter message text and press ^D:
Test Message!!!!!1!
Sending SMS 1/1….waiting for network answer..OK, message reference=2

Projection settings (CRS) in QGIS 2.0 Dufour (e.g. Austria)

In QGIS 2.0 Dufour CRS-Settings are “hidden” in a new menu (not anymore in “Settings” like in 1.8).

  • Menu “Project” – “Project properties”
  • You’ll find an entry “CRS” ! Now you can choose your dedicated CRS and activate “on-the-fly” transformation. Using “on-the-fly” be aware of the correct transformation parameters for your CRS.
  • The parameters for Austria (see Screenshot) are OK and there is no difference between using ArcGIS 10.x and QGIS 2.0

qgis_crs