Update Jenkins on Ubuntu

Posted by in IT, Tutorial

I’ve got an installation of Jenkins on a Ubuntu 14.04.5 LTS which I needed to update. In order to do so I did the following: Download the new version (2.107 at the moment of writing this post). In /home/user/backup/ execute:

Backup the old version (Jenkins war is installed in /usr/share/jenkins):

Overwrite the old jenkins.war:

Restart jenkins

Now, you’re all set and you can start updating the plugins. HTH, A little experiment: If you find this post and ad below useful, please check the ad out :-)

Show What’s on Swap in Linux

Posted by in IT, Tutorial

If you find your machine running sluggish, it might be the case that you have too many things running and it’s hitting the swap. You can check how bad (or good) things are with htop, but it won’t tell you which process is sitting on swap. To find out, I’ve cooked up a tiny script:

It will look in /proc/[PID]/status and get the VmSwap field. Then, it’ll print it out along with the PID and the command line (from ps -ax). Note: This is a rather crude script and…read more

Build a Simple Makefile

Posted by in Software

TL;DR: If you don’t have anything better to do, create Makefiles by hand :) Gist here. The other day I went back to origins with building a small C++ project. With modern tools, all went OK. However, deployment was a bit of a problem, in the sense the host had an obsolete toolchain: Me: GCC 5.2.x, CMAKE 3.3 … Host: GCC 4.7.x, no CMAKE :( So, I had to build a makefile by hand! Following some best practices, I’ve devised a simple Makefile with following sections: A declaration section, where…read more

D-BUS: DBUS and Mad scientists… – 2004 Style

Posted by in Software

TL;DR: This post is about an experience I had in 2004 and it’s part of my consolidating technical posts I wrote in time. It may or may not be relevant to today’s technologies. For the last while I was poking around with the glorious D-BUS… As it’s always the case with new cutting edge technology, it’s done by one or more very good, brilliant one might say (posh british accent here) people. I always have this image of “mad scientist” associated with that :). DBUS is great, is monumental, but…read more

DBus and Qt programming

Posted by in Software

For the past few days I’ve been trying to get more complex data sent via D-Bus. As one would say here in Ireland: Je’zus H. Christ Playing with python was easy. There are lots of examples on communicating complex data structures. But with Qt… It’s a bit more complex, because there are only a set of simple examples. A little experiment: If you find this post and ad below useful, please check the ad out :-)

Qt4 IDEs

Posted by in Software

Note: This is a post transferred from Laurii for historical and consolidation purposes. Qt4 is quite a nice piece of work. too bad that not too many devel tools actually support it in a decent way… I’ve tried: kdevelop nedit/emacs Cobras Monkey Studio eclipse I’ve got yet to try QDevelop which looks nice Visual Studio Here’s a summary of these tools: Kdevelop I’ve tried kdevelop off kde4 (3.80) to no avail… Why does it have a D-Bus dependency??? Kdevelop off kde 3.x (3.5.5 here) is an impressive tool. Looks and…read more

New laptop – episode 3

Posted by in Hardware, Random

My xorg.conf

Important are the following flags from the device section:

Otherwise, you’ll get the 1024×768 resolution. — This is a really old post published originally on my blogspot blog A little experiment: If you find this post and ad below useful, please check the ad out :-)

New laptop – episode 2

Posted by in Hardware, Random

.. or in other words, “why, oh, why I did this to myself”… First, the generics. I’m parametrising the distros I’ve tried so far and then I’ll explain what’s my setup now. Several parameters of outside interest are monitored: Sound: If the sound works out of the box or if I had something done to it Graphics: Does X work? how? Network: Cabled, wirelss, bluetooth status Function keys: the (in)famous FN Hardware monitoring: CPU frequency, temperature Some other notes First, I’ve followed Arielo’s detailson setiing up Ubuntu. So I’ve got…read more