grub-pc (2.02~beta2-36ubuntu3.10)

I’m running an Ubuntu server and the other day while running updates I started getting the following error:

Setting up grub-pc (2.02~beta2-36ubuntu3.10) ...
/var/lib/dpkg/info/grub-pc.postinst: line 703: syntax error near unexpected token `fi'
dpkg: error processing package grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Opening /var/lib/dpkg/info/grub-pc.postinst I found:

        if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10 then
          if [ -e "/boot/efi/EFI/${bootloader_id}/fbx64.efi" ]; then
            rm -f "/boot/efi/EFI/${bootloader_id}/fbx64.efi";
          fi
        fi

There was a missing semicolon in the first line and that’s what was breaking my update. I updated it and the error went away:

        if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10; then
          if [ -e "/boot/efi/EFI/${bootloader_id}/fbx64.efi" ]; then
            rm -f "/boot/efi/EFI/${bootloader_id}/fbx64.efi";
          fi
        fi
Advertisements

Installing Linux Kernel v4.10

I started using CentOS over several other Distros that I have been testing ever the years. I still have an Ubuntu laptop just to keep up to date with things seeing that it’s one of the most popular ones.

I’ve covered installing Kernels before but I wanted to refresh that topic and include how to do it on CentOS.

Continue reading Installing Linux Kernel v4.10

Activate Ubuntu login sound

I miss some things from the old Ubuntu releases and one of those things is the login sound. I found it still included but not active, here is how to re-activate it if you want to have some nostalgia…

  • Cling on the Ubuntu Launcher
  • Search for and launch Startup Applications
  • Click Add
  • Add the following lines:
    • Name: Login Sound
    • Command: paplay /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
    • Comment: Play Login Sound
  • Click Save
  • Restart your computer

If you just want to hear it without having it load every time you login check, here ya go.

ttf-mscorefonts-installer fails to install/upgrade

In the article on What to do after installing Ubuntu 16.04 we went over installing some things to the default Ubuntu install and it seems one of the processes needs the ttf-mscorefonts-installer package. Well, it seems that something is broken in that process and this article will cover how to fix it and get your system back to full throttle…

What’s the error?

Here is what I’ve seen, sometimes it happens with different fonts as well.

ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
 Get:1 http://downloads.sourceforge.net/corefonts/andale32.exe [198 kB]
 Fetched 198 kB in 12s (15.8 kB/s)
 ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/arial32.exe
 Get:1 http://downloads.sourceforge.net/corefonts/arial32.exe
 Fetched 552 B in 11s (47 B/s)

E: Failed to fetch http://downloads.sourceforge.net/corefonts/arial32.exe Hash Sum mismatch

E: Download Failed
 Setting up ttf-mscorefonts-installer (3.4+nmu1ubuntu2) ...

Continue reading ttf-mscorefonts-installer fails to install/upgrade

What to do after installing Ubuntu 16.04 Xenial Xerus

I never use anything but LTS if and when I put Ubuntu on my machines so I will not cover 15.10 or 16.10. These are some of the things to do right after installing Ubuntu on your computer.

Important:
This is not an exhaustive list nor is it the only things to do. If you have anything to add, please leave a comment below.

Most of these steps will be terminal based so start up a terminal. Press the super key (the Key Formerly Known as the Windows Key) to bring up the Unity dash. Then, type in terminal and choose the icon for the terminal program.

Continue reading What to do after installing Ubuntu 16.04 Xenial Xerus

Linux Kernel Zero Day Vulnerability CVE-2016-0728

This vulnerability has existed since 2012 and it affects Android and Linux systems running Linux Kernel version 3.8+, and Linux server or desktop running kernel 3.8+ is vulnerable.

As of the date of disclosure, this vulnerability has implications for approximately tens of millions of Linux PCs and servers, and 66 percent of all Android devices (phones/tablets).

How do I fix this?

First some background on what the CVE-2016-0728 bug is. From the Perception Point Research Team

CVE-2016-0728 is caused by a reference leak in the keyrings facility. Before we dive into the details, let’s cover some background required to understand the bug. It can successfully escalates privileges from a local user to root.

Continue reading Linux Kernel Zero Day Vulnerability CVE-2016-0728

Install Viber on Linux

What is viber?

Viber for Desktop lets you send free messages as well as make free calls to other Viber users, on any device and network, in any country! Initially released as a phone app, you can now use it on your Windows and Mac desktops with a Linux version currently in development for 64-bit systems.

For the Viber site:

Viber is a mobile application that allows you to make phone calls and send text messages to all other Viber users for free! Viber is available over WiFi or 3G. Our sound quality is much better than a regular call. Once you and your friends install Viber, you can use it to talk and message as much as you want. Talk, message, and talk and message some more – for free!* You can also call any number that doesn’t have Viber at low rates using ViberOut.

Continue reading Install Viber on Linux

Netflix on Ubuntu 14.04

With many services today needing Silverlight to run web services and many people converting to Linux or refusing to use Windows or Macs it seems like you can’t enjoy those services. Here is a great feature for those of you that use Ubuntu and want to enjoy Netflix on your computer, once you set this up you will have the benefit for other services that require Silverlight.

Tip:
Before installing pipelight, we recommend closing your browsers, copy the information to a text editor so you know what to do or print it out. Not closing out your browser may cause the install to fail

Continue reading Netflix on Ubuntu 14.04

Mac like mouse scrolling in Ubuntu

Three posts ago we went over getting Natural scrolling in Windows, today we’ll show you how to get it in Ubuntu.

Update: Nov 22 2016

I use vi, but in your favorite editor open 10-evdev.conf

vi /usr/share/X11/xorg.conf.d/10-evdev.conf

Look for a line with MatchIsPointer and add this line (Option "ButtonMapping" "1 2 3 5 4 6 7 8") to that section, it should now look like this:

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "ButtonMapping" "1 2 3 5 4 6 7 8"
EndSection

Not sure if the following still works so proceed with extreme caution

Make sure you system is all updated:

sudo apt-get update && sudo apt-get upgrade

Add the natural scrolling repo:

sudo add-apt-repository ppa:zedtux/naturalscrolling

If you get a NO_PUBKEY 16126D3A3E5C1192 error, run the following (you may get a different key):

gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 16126D3A3E5C1192
gpg --export --armor 16126D3A3E5C1192 | sudo apt-key add -

Update your system once more then install natural scrolling:

sudo apt-get update
sudo apt-get install naturalscrolling

Go to System SettingInput DevicesMouse.

Check the box Reverse Scrolling Direction. Click Apply.

Linux and Non PAE CPU

What is PAE

Physical Address Extension (PAE) is a feature found on almost all 32 bit processors produced after Pentium Pro, ie. younger than around 1995. Because PAE is close to being a standard it is now a requirement for some Linux Distros. During installation the processor is prompted for the PAE flag, and only if present the process will the install carry on. A number of older Pentium M processors produced around 2003-4 (the Banias family) do not display the PAE flag, and hence a normal installation fails. However, these processors are in fact able to run the latest (and PAE-demanding) kernels if only the installation process is modified a little. The problem is not missing PAE, it’s about the processor not displaying its full capabilities. Pentium M’s of the Dothan family display the PAE flag correctly and support the latest distros without modifications. The same distinction (Banias versus Dothan) goes for the lower performing Celeron M processors. In spite of their age many of the affected computers (IBM Thinkpads and Dell Latitudes, for example) are suitable for today’s use if given a light distro.

How to Install my OS

At the Welcome screen of your OS you will need to get to the advanced menu, different flavors have different options. Some will have you press the Tab key, others like Ubuntu will have you press the F6 key, you will see the following line at the bottom of the screen:

Boot Options file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --

Edit this line and add the forcepae parameter with spaces twice around the -- at the end so it looks like this:

Boot Options file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash forcepae -- forcepae

forcepae — forcepae note:

forcepae is required twice because it sets the boot parameters for two different kernel boots – the kernel that runs as part of the installer (left of --), and the kernel that runs on the installed system (right of --).

The text at the end should be -- forcepae not --forcepae. There is a space between -- and forcepae.