Macbook touchpad configuration tip for Fedora Linux

Some time ago I wrote a few tips about Running Fedora 22 on a Late 2013 Macbook Pro (Retina). Fedora is now on its version 24 and remains the best Linux distribution out there and the tips are still valid.

However, there’s one new tip. Instead of dealing with the Synaptics/Synclient stuff by yourself, you may want to try using the configuration from my Copr repository instead:

And with that you should have a touchpad behavior that is similar to the one on OS X.

 

Some messaging stuff

Just sharing some messaging tools I have been working with recently.

The first one is this performance test tool: msg-perf-tool. There’s no secret here: you run the tool and it does its best to bring your messaging system to its knees (though this may not be the correct way how to test it … check the testing tips on the Github page). For now it supports only AMQP, but Stomp and MQTT support is on the way. You can find rpms for RHEL/Centos (6 and 7) and Fedora (22, 23 and 24) for i686 and x86_64 on my Copr profile here.

The second one is a web page that can display the performance data stored on an ElasticSearch database and present it in a beautiful way. I call it messaging performance center. Here’s how it looks like:

messaging performance tool
mpt-perf-ui

Some bits are still in progress, but it’s functional.

Lastly, there’s litestomp. A C implementation of the Simple (or Streaming) Text Oriented Messaging Protocol. It was built on top of what-seems-to-be the now defunct libstomp project. There’s a couple of bugfixes, a simpler and higher level API for ease of use. Still a work in progress, but you can download the current rpms for RHEL/Centos (6 and 7) and Fedora (22, 23 and 24) for i686 and x86_64 from my Copr project page on this link.

Parallels Tools 10 and Linux Kernel 4.2

There seem to a be problem with Parallels Tools 10.3 and recent versions of the Linux kernel (4.2, at least, which is used by recent versions of Fedora 22 and Fedora 23, for example). During the installation tools, the installer fails to compile one of the modules. That can lead to problems booting up your virtual machine.

In Fedora, in order to avoid this problem, you can just add the following line to /etc/dnf/dnf.conf file:

After Parallels release an update, you just remove the line, update the system, and it should be fine. As a final reminder, you should always generate a snapshot before upgrading the system.

Gentoo Linux Box for Vagrant Parallels Provider

As I explained in an earlier post, Vagrant now supports Parallels as a provider. Since I wanted to test how they were working together, I created a standard 64bit Gentoo Linux box that you can download and use. In addition to a standard Gentoo install, the box also comes with Puppet installed, so you can do some actual work on it.

Since I presume you already have the Parallels provider setup by now, this is how you can download and use the box:

[code]vagrant init orpiske/gentoo-linux-64 && vagrant up[/code]

After the box is downloaded from the cloud you can use vagrant as usual (ie.: vagrant ssh, etc).

 

Vagrant and Parallels Desktop

Maybe this is not news anymore, but Vagrant now supports Parallels. It seems to work with Parallels Desktop 8 and above, but I wasn’t able to run it 9 on OS X Yosemite. Upgrading to Parallels Desktop 10 seems to have fixed the issue and it worked like a charm. One additional problem is that there’s a shortage of images in the Vagrant Cloud. Although I believe this will be fixed as the community grows and share more templates on the cloud, this may be an nuisance to some users.

Toy Project: Download Server

In case you need an example about how to use one of these:

  • Unix Message Queues
  • Unix Sockets
  • POSIX Threads
  • LibCurl
  • Basic C usage

You may want to take a look at the source code of my toy project at GitHub. I don’t claim it to be good, bug free or even usable beyond what I need – much to the contrary: I don’t think I would show this at a job interview o.O. Anyway, feel free to check it out if you need an usage example of any of these technologies.