Boinc is a piece of software that allows to get involved into distributed computing in projects such as WorldCommunityGrid, Rosetta@Home or even LHC@Home. It’s both interesting and put your lazy computers to work. There’s of course a package in the EPEL repository allowing us to install the software easily. Let’s install it ! yum install epel-release yum install boinc-client Now that this is done, there’s the tricky part. Right after you’ve created your account on the website of the project that you’d like to join, you have to get the account key.
Ripping a cd and encoding it to mp3 is so easy it takes only 3 lines to be achieved. mkdir cd01 && cd cd01 # create a directory and put yourself in it cdparanoia -B # extract all the cd tracks in current directory as .wav files for t in *.wav; do lame -b 320 $t; done # encode all the files to mp3 320kbps It makes it rather easy to script and encode all your cd collection easily if needed.
I was looking for a solution to run a little blog, I did try wordpress but it’s not what I was looking for, then I discovered Hugo. It’s a Go program that will parse Markdown files (your articles in fact) and generate a static website for you. I don’t want to describe the full configuration on this article, but I want to share the systemd unit file I wrote. [Unit] Description=Hugo webserver After=network.
I did install munin and at first my graphs looked like this on this image. So as you can see this looks like something is wrong here. The solution was to modify my cron job to look like the following. su -s /bin/ksh _munin -c 'LC_CTYPE=en_US.UTF-8 /usr/local/bin/munin-cron' It seems that munin-cron does require a LC_CTYPE value, otherwise it generates without any text.
Today I’ve decided to document how I installed my munin monitoring system on OpenBSD and how to make two plugins work in particular. I run an instance of Nginx and also a PostgreSQL server so I wanted my munin to be able to get some info about them. The fact is that you need some additionnal dependencies in order to make them return values properly. The two required libraries are p5-libwww (for the Nginx plugin) and p5-DBD-Pg (for the PostgreSQL one).
If for some reason you want to slow down the speed of a pipe between two process on Linux, you can use pv (pipe viewer). For example you can use it this way to transfer a file to another place at a slow speed. cat /home/user/file | pv -L 3k -q > /tmp/mynewfile You can adjust the speed with the number given to the -L parameter to pv. For example 1, 10, 100, 1k, 10k, 1m etc.
For a project at work I had to setup a SSL Proxy with nginx, because one of our old weblogic server can’t manage SHA2 certificates and we can’t update now. We decided to make it talk to a SSL Proxy and here is the code of the nginx.conf acting as such. It makes use of Nginx module http_proxy. As a little reminder we had a situation like this : serverA (client certificate) -> webservice (HTTPS / server certificate)
When you want to set up your webserver you might want to use gzip. But how to test if it works ? I used to test some request with telnet, the problem is that it will always return without gzip, because you don’t specify that you can process the gzip binary returned. So the webserver don’t use it. But there’s a solution available on all linux boxes. It requests headers only and specifies that it can handle gzip compression.
Hello Hugo world !