Monday, March 13, 2017

Installing Kubuntu 16.04 on ThinkPad T420

Installing Kubuntu 16.04 on ThinkPad T420

It was again time to reinstall Kubuntu to get more of latest stuff. I had purchased a Kingston 480 GB SSD drive, which was much bigger than the 120 GB one that I had used for some five years. I need to do a lot of video editing, so I needed a lot of disk space, and it must be fast.

I downloaded the Kubuntu 16.04.2 LTS version. I definitely want to use the LTS versions, as I don't want to upgrade every few months.

These are my notes for the process, just to remember what I did there. I'm writing them here just in case someone benefits from it somehow, such as regarding some of the problems.

Creating a USB image

Run usb-creator-gtk. Select the ISO image and the drive to write to. Start writing the image. The actual burn took me quite long, perhaps around half an hour. I have no idea what it did there, but at some points I thought it was stuck. Nevertheless, got it done.

Booting

Booting from the USB stick, I got the following error:
gfxboot.c32: not a COM32R image
It kept repeating.
Pressing Tab gave a menu of commands. I typed "live" to start the live mode. It worked just fine.

Installing Kubuntu

Once the live mode had started, I just clicked the Install Kubuntu 16.04.2 LTS icon. The installation APP popped up.
  1. Language – I chose "Suomi" (Finnish) as my installation language. I've been doing Finnish localizations of KDE and always want to use that. (Note that UI captions mentioned from here on are my back-translations from Finnish to English)
  2. Wireless connections – I chose to connect to network. Oddly, the keyboard layout was in en-US layout, not Finnish. That should not go so.
  3. Preparations – I wanted to choose to download updates when Kubuntu is installed, and also install 3rd party drivers. Oddly, the check box for downloading updates did not work! Pressing Continue took quite a while with no progress feedback.
  4. Installation type – I wanted encryption, but "encrypted LVM" sounded like some low-level encryption, which I didn't want. I assumed that the default was to have encrypted home directory, and encrypting entire disk would not be a huge benefit. I was installing on SSD, so I didn't want swap. Using the guided installation seemed to use swap, which is kind of stupid nowadays that it doesn't default no-swap on SSDs, so I had to do manual partitioning. Hence, I selected Partition yourself. So, I added a single /dev/sda1 partition with root (/) mount point that uses the whole disk. Ext4 filesystem was OK. Again oddly, it complained about the missing swap. Really, why doesn't it recognize SSDs? Everybody uses SSDs nowadays and nobody wants swap on SSDs!
  5. Time zone – chose my time zone.
  6. Keyboard – chose my keyboard (Finnish). It is a bit bad that it asked keyboard here and not before entering wireless password, where it really would be needed.
  7. User info – pretty straight-forward here. Noticed to select Encrypt my home folder, which enables EncFS for the home folder. That can cause trouble in some cases, such as reinstalls, but it's mostly what you want unless using whole-disk encryption. I did not want that because I want to have encryption more controllable and have more efficient non-encrypted directories.
  8. ...installation went quite smoothly. Reinstalled the machine. Pulled the USB drive out a bit too quick, so had to restart, but everything seemed to be OK.
Kubuntu booted rather fast and also KDE started rather fast. That's an improvement. And it looked good.

Then on to the settings.

System Settings

  • Optimize for SSD. You don't want atime access and such for SSD drives, so have to set in /etc/fstab for the root filesystem:

       defaults,noatime,discard

    There's probably some other relevant settings needed as well. This is a bit surprising issue, as most laptops nowadays have an SSD drive and they should be optimized automatically, without hell requiring a specialist. OK, I'm rather one, but still.

 Toolbar Settings

  • Chose to hide the toolbar automatically.
  • Set it a bit higher, as the height doesn't really disturb when it hides automatically, and I want to be able to see and click even smaller icons better.
  • Application Launcher –  The default is a new "fancy" application launcher, but I want to use the old tree-like one.
  • Quick Launcher – This is a handly grid for having quick launch buttons for the most commonly used applications.
  • Pager – Allows switching between desktops.
    • Configured to no text, but icons, so that it shows miniature icons for open windows in each desktop. You can actually drag and drop windows from one desktop to another in the pager.
  • Task Manager
    • Rows at most: 2, and always organise tasks in those two rows.
    • Only show windows in this desktop, as I often need to control the visibility of windows from the task manager and it gets rather confusing if it shows also the windows in other desktops. Only show windows in this display (I only use one display anyhow).


Arranging the toolbar proved really difficult. Applets were positioned in wrong places and moving them was really buggy.

KDE System Settings

Started up the System Settings. First, I chose the "Classic Tree View", which I've used for the last 15 years or so.

There was a lot of settings that I wanted to do:
  • Appearance
    • Workspace Theme
      • Look and feel – There are two choises: Breeze and Breeze dark.
        I want to use dark theme on my external OLED TV display. In OLED, black is true black, so I wanted to use black desktop. Hence Breeze dark.
      • Desktop Theme – Again choosing a dark theme, the Oxygen theme. That actually didn't have much effect.
      • Oddly, I haven't found a way to set desktop background to completely black. Setting black background still has some low brightness, making the screen look like LCD. In an OLED display, black should be completely black and it works that way with my other computer, so I don't understand why not here. Can't find a setting that could cause the problem.
    • Colors – Chose Obsidian Coast, which seemed rather dark, but not entirely. I don't want all black inside windows, as that sometimes causes trouble when applications assume black-on-white colors.
    • Font – The default font was Noto 10 pt, which looked rather great. However, in Libreoffice, I noticed that font rendering is horrible, so I tried tuning the font antialising settings, as instructed somewhere, but that didn't seem to help.
  • Workspace
    • Desktop
      • Desktop Effects
        • Desktop Cube – I use the desktop cube animation (see below), and set the rotation time to faster 200 ms, set Windows float on top, and Use the effect to browse desktops.
        • Desktop Cube Animation – I set the animation time to 200 ms, which is rather OK, although could be a bit quicker still. The default was way too slow. I had to disable "Use pager layout for animation", as I have two rows in the pager, but animation gets really weird that way.
      • Virtual Desktops
        • Layout – I always want eight, in two rows in the desktop pager in the panel, hence 8 and 2 in the settings.
        • Desktop names – Yeah I like to give them names.
        • ChangingAnimation – I really like the KDE's 3D desktop cube animation, so I chose that, as describe above.
        • Shortcuts – Changed the keyboard defaults for changing the desktops. For some sick reason, KDE uses Win+Tab and Shift+Win+Tab to browse "activities", but I really want to browse the desktop list. OK....there still seems to be the bug that can't use Shift+Win+Tab. The Shift key there does nothing, so had to use Ctrl+Win+Tab.
        • For some reason, the Win key does not work on my Logitech G110 keyboard. I was able to use the keyboard for several years with the old version, but then it appeared suddenly. I have to see if
      • Desktop Locking – Disabled this for now, as 5-minute locking is a bit annoying at home.
  • Window Chooser
    • Choose to use Compact rather than the default one.
    • Deselect Show selected window. The default is too disturbing.
  • Power Saving – When plugged in, don't dim and don't change mode if the lid is closed.

Extra Packages

  • kubuntu-restricted-extras – Gets MS core fonts (Times New Roman) and such.

Firefox

  • General
    • Set Firefox as the default browser
    • Set Ctrl+Tab to browse in order, not latest
    • Save downloads to a custom folder. I don't want those under my home directory, which is encrypted and backed up. Hence, I usually have a download folder directory such as /ftp (some long history with that naming).
    • Deselect opening new windows to tabs. I want to control that.
  • Content
    • Set default font size to 14. The default 10 resulted in really tiny letters on many pages.

Other Software

  • KDEnlive – Linux video editing software. I use this for all of my Youtube and other videos.
  • Synfig – Animation editor, which I have been experimenting with recently.
  • Kaffeine – Video and movie device viewer. I have been using Kaffeine for TV viewing for years. Nowadays I'm not using my TV card anymore, rather a real TV, and use Kaffeine for viewing camera videos.
    • MP4 support was missing, had to install also libxine2 plugins:
      # apt-get install kaffeine libxine2 libxine2-all-plugins
    • MTS video playback is broken! It shows green "static" about once a second. Actually, it also shows for MP4 in some cases.

      This is rather annoying, as all of my camera videos are in MTS. It looks like it's a problem with hardware acceleration. If I edit .kde/share/apps/kaffeine/xine-config and set video.driver to a safe setting such as xshm, it plays just fine. Well actually it doesn't, because the video mode is not hardware-accelerated, so it is laggy like hell. I haven't found a good video mode, so Kaffeine is currently rather unusable.
  • VLC – Installed also this, as MTS playback was broken in Kaffeine, but it seemed to work just fine in VLC. VLC also has some other features that I need, such as playing 50 FPS video back in half speed. I don't like VLC's GUI so much and some things like browsing video folders is total hell.
  • Octave – Mathematical software.
  • Jed – My preferred quick command-line editor.
  • Atom – I like to use the Atom editor for some stuff. There was no Ubuntu package for that, so had to get the DEB package from atom.io. It required installing "apt-get install git gvfs-bin".
  • Thunderbird – My preferred email client, although it does have some issues.
  • Kazam – A screen recorder that I use to make video presentations. 
  • LibreOffice –  This was actually preinstalled, but for some reason, the font rendering is horrible. It's a Gtk application, so it renders fonts a bit differently from native KDE/Qt applications. I tried some fixes, but no success so far.
There's tons of other software that I need to install, but that's a start.

New Things

For one thing, KDE was able to link up with my Android phone with KDE Connect. It's at least useful for file transfer and such. It will be interesting to learn what it exactly does.

Conclusions 

It took me some years to update (K)ubuntu, but it was worthwhile. The speed seems to have improved greatly. Some of that may be due to the faster SSD, but also rendering seems significantly faster.

I am a bit disappointed with some serious bugs, especially in organizing the desktop panel. That is a very basic task and beginners would get really frustrated. Font problems with LibreOffice seem like something very basic. I am also surprised that there is no special installation mode for SSDs. KDE also has many rather odd defaults.

There is probably much to learn about Kubuntu 16.04. Most importantly, it gives me latest versions of various important software.

No comments: