Category Archives: Tips and tricks

PyQt5 issue with GLX and EGL

During PostX Gnu/Linux RC2, I hit the following issue with RunIT-QT Browser.

QOpenGLWidget: Failed to create context
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed Continue reading

Search files with apt-file

Here is a quick tip if you ever need to find out, which Debian package has the file x or y.

To find your files you can use apt-file. First, install it. Then update apt-file caches – so it can go through files and search:

sudo apt-get -y install apt-file

sudo apt-file update

And finally search a file. Let´s say that I want to see, where is the file called something.json.

sudo apt-file search something.json

The above command will take a little while and if all goes well you should have your results when the command is complete.

Checking the checksums

This post is mostly about Security Hash Algoritms and how you can use them to verify the integrity of your files.

SHA1

Let’s say you downloaded something. The website had a sha1sum there and you want to verify that you actually got the file you wanted – and not some tampered malware. Checking is as easy as writing:

sha1sum <filename> .

Or if you want to verify a checksum even more easily, pipe it and use grep.

sha1sum <filename> | grep <checksum_listed_on_the_page> .

If you get the hash as an output that usually means that things are ok. If you get nothing then there is a mismatch.

SHA256 Continue reading

Run Gui application in a Docker

This post was originally released on 14th of January

RunIT Browser was first introduced in PostX Gnu/Linux Debian base. Now, since Fedora base is coming there are dependency issues, which will inhibit RunIT functionality.

One way to run the browser is via Docker. With below commands you can easily run RunIT Browser in a docker container. Here I will be running a Debian Stretch based container.

On a local machine

#xauth list –> Copy the code after COOKIE-1 or similar. This might be needed on some cases.

Continue reading