Linux

Basics: from dummies for dummies

Written by  on March 7, 2016

Create symbolic link ๐Ÿ˜€
Doing it for years, still tries first: “ln -s link actual”

Update kernel

Written by  on February 18, 2016

Call me dumb, but every few weeks I check my kernel, check the current one and then decide to update, but notice that I can’t remember the needed commands. First try is always “sudo kernelupdate”, which never succeeds ๐Ÿ˜‰
Of course: Linux Mint is the target. For all other Ubuntu-based distros it should work as well.
Therefore: check http://kernel.ubuntu.com/~kernel-ppa/mainline/ and adapt ..

Synergy

Written by  on December 21, 2015

I was using this tool already in 2005(!) and recently re-discovered it when I set up again a multi-monitor multi-system desktop at home. Synergy allows to share keyboard and mouse between different systems by defining virtual expansions at the edges of the ‘server’. Layout is configurable. It is even possible to share the input between different operating systems!

Use the nightly build-download-archive, because for the stable release they charge at least 10$ (since 2014 ).

  1. install at both systems
  2. define one as server
  3. enter the server-IP at the client
  4. configure a expansion-setup for the screens, done!

edit 20190319: url for the repo not working anymore, use https://sourceforge.net/projects/synergy-stable-builds/ (v1.8.8) instead. Worked on OSX <--> Win10.

Install an operating system-rage

Written by  on December 14, 2015

I hesitated for a longer time to add rant-posts to this blog. Reason is: most of the time not the criticized fact is noted by the reader but the fact that someone complains.

From time to time you encounter some flaws or bugs or “design-choices” whre you start to think: this can’t be an accident. Or there are reasons I don’t understand. But this is nothing which could not be fixed.

Therefore todays rant: create/recover a working and sound operating system. I just refer to the major three ones: Windows, OSX and GNU/Linux.

  • OSX: Boot, press CMD+R, select recover and add you favorite Wifi and wait: no problem. But since its a really enclosed environment in terms of hard- and software I did not expect something cumbersome/special. Since it is not wanted that you can change something inbetween, the needed user-interaction is quite limited. Works, ok.
  • Linux: I always have a USB-stick with one of the latest Linux Minut (former times Ubuntu, DSL, Kubuntu or just some other distro) in my pocket. Reasons: I don’t trust foreign computers for sensible data (plug it in and use a live-system) AND safety (main system fails to boot? Oh, you still have some backup solution :D). So this is inserted, then select for booting this stick either via UEFI or BIOS. Boot, select in GRUB the real version, “Install Linux”, maybe addd Wifi/ethernet before, add additional user-data, maybe change partition so that your old home-partition is mounted correctly, reboot, unplug the stick, run maybe “sudo apt-get update && sudo apt-get upgrade” ONCE and be happy. Although this text is quite big this takes roundabout 60 to 90 minutes! Et voila: working system with all your previous data. Almost all devices have correct drivers and are usable. Continue with your work …
  • Windows: buy a Win7 Ultimate-key (2 min), burn a 3 GiByte-image for the corresponding version on DVD, insert and reboot. Select to install, add all the needed credentials. 1 hour later it looks like you can reboot. Oh, 800×600 display resolution, no fucking device is recognized, therefore neither ethernet nor Wifi are usable to get additional drivers and updates, I can use the mouse and that is all. No usable tools for image viewing and editing, nothing. A bare system. Is this a joke? Microsoft, come on … when this happended to me in former times for older versions of Windows I thought this is how it should be. But why don’t you force the manufacturers to create small driver-libraries for their stuff so that at least basic, minimal support for all the hardware is given? Why is this possible for FOSS-projects but not for you with your big market-reach?!?
    Back to topic: so I downloaded and installed the basic drivers and then armaggeddon happend: 179 important and 49 optional updates are offered. OK? why not, better safe than sorry. ONE fucking DAY later the whole cycle of installing, rebooting and re-doing the search for newer updates was still not finished. And I started with SP1, not the original Win 7-release. This is 2015, hello!

Ok, to cut it short: having to install Windows is still the worst what can happen. Sometimes it is needed, because some Wine and virtual machines are not covering everything.

Sometimes Windows is fundamental ..

Written by  on November 26, 2015

Long time, no see updates. But I applied some changes to my life and also traveled a lot ๐Ÿ˜‰
I also built a new PC. Yes. A desktop-PC. In 2015! I didn’t do this for years, but now the black cube is running (so fast and still cheap ..) and powered by Linux Mint 17.2 MATE.
It took just one day to find out, that there is still software which is neither available for Linux nor runnable via wine. Yes, you can install and start it, but then it will immediately crash. Nice.
So my first thought was the good old fashioned dual boot-idea with several partitions on the harddrive. But since the SSD-space is limited and I didn’t want to attach an additional (slow) HDD, I tried the following. And it worked! Almost out of the box. Therefore the post … it is nothing really complicated, but I am really surprised that everything went so smooth.

  1. install virtualbox via apt-get (used 5.0 version from Oracle – base was 4.3)
  2. torrent meanwhile a legal copy of Windows 7/64 Ultimate via WindRiver-Microsoft-distribution: used Transmission
  3. create a virtual machine (at least 20 GiByte … not 10 like I did ;)) as VDI; assign processors, memory and disable the network (‘The only safe computer is a computer turned off’ .. computer science-prof); assign the ISO as CD-drive
  4. boot Windows, select the 30 day-trial period; install Windows; shutdown
  5. assign a shared directory to the virtual machine; put the installer of the software there
  6. reboot VM; install the guest-tools there; install your needed software …

Additional hints:

  • if the VM needs to be resized, then
    • vboxmanage modifyhd ‘/home/tanteedith/VirtualBox VMs/win7ultimate/win7ultimate.vdi’ –resize 20480
    • grab a gparted-ISO; assign as optical drive; reboot; resize the partition
  • if you activated the fullscreen-mode and wonder how to return to the host: press “right CTRL + F”

 

Still: amazing. I spent 70 minutes or something. And it works!

No one said this will be easy: GT-i9506 with CM12 & no bloatware

Written by  on July 22, 2015

I just wanted to replace the OEM-Samsung Lollipop with the latest CyanogenMod-version on my Samsung Galaxy S4 LTE (GT-i9506).
So the simple plan was to: root the device; replace the ROM with CM12; add the Gapps-package; reboot and be happy ..
.. in the end I tried so many different ways involving Linux Mint, OSX 10.9 and Windows 7 as host-system; flashing via adb, heimdall and Odin; different nightlies and kernels; several gapps-packages and seven hours lifetime .. but I learned a lot ๐Ÿ˜€

tl;dr:

    • Win7: install Samsung driver; reboot, reboot, reboot
    • root with CF-AutoRoot: guide // download – use “root checker” or some other app to verify the superuser-access before rebooting into download mode
    • flash TWRP via Odin
    • flash CM12-nightly: download
    • flash gapps: download flash minimal GApps: download (is without the useless crap)
    • wipe cache/dalvik
    • reboot and setup everything from scratch (or with some backups … you created some, didn’t you? ๐Ÿ˜€ I used “Easy Backup & Restore” – worked perfectly. K-9 Mail can restore itself ..)

edit: 20150724 replaced Gapps with “GAPPS minimal”; restored all settings, SMS, contacts, …

Qt: find the libs (Linux)

Written by  on June 26, 2015

I let synaptic install the libs, the qt-creator, the other stuff and their dependencies. Upon creating my first project I noticed NO kit was configured. Compiler was doable, but what about the libs? Tried this:

Create an usable linux-usb-drive with OSX

Written by  on June 22, 2015

Based on this tutorial (for Linux itself, use Unetbootin).
Open a terminal and then run:

Used it twice to create first a Kubuntu-stick (did not like the desktop-enviroment) and then a newer for Linux Mint (latest version).