suckless: dwm, st and missed terminus font

After upgrading on Fedora 26 I’ve got wrong font in my dwm and st. It was painful to look at.

During investigation, I’ve found that there, firstly, font terminus name has been changed from “Terminus” to “xos4 Terminus”. So, that could be solved by changing font name in dwm and st configs, it’s easy.

Secondary, fontconfig-devel package provides incorrect include directory in pkg-config’s file. The bug is reported to redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1474072

The patch:--- /usr/lib64/pkgconfig/fontconfig.pc 2017-07-23 17:52:51.844365570 +0300 +++ /usr/lib64/pkgconfig/fontconfig.pc 2017-07-23 18:09:14.221529256 +0300 @@ -1,7 +1,7 @@ prefix=/usr exec_prefix=/usr libdir=/usr/lib64 -includedir=/usr/include +includedir=/usr/include/fontconfig sysconfdir=/etc localstatedir=/var PACKAGE=fontconfig

Rebuild. Done.

Looks like, I missed something on my home machine, but in the latest commit on git.suckless.org have no dependency in fontconfig.h

HH

New blog’s home and cpu managment

The story has a beginning in 2013. Me and my friend got node (aka physical server) in data center for free by marketing company for a year.

Time was going, a year has ended, but DC owners didn’t do anything with it. So, we lived on node until a couple weeks ago they are remembered about and were asked us to renew the contract with a charge or they’ll shut the server down.

Continue reading

Upgrade Fedora… manually.

Fedora’s manual (any many other copy-paste blogs, damn) describes the following steps to upgrade system:

sudo dnf update --refresh sudo fedup download --releasever=24 --allowerasing sudo fedup reboot

Guys, don’t worry about “fedup” it’s just an alias script to “dnf system-upgrade”

I did that steps, reboot finished aaaand.. nothing! F23 on the board yet.
Sure, the post not about happy end and easy way (:

Continue reading

TAR: Speed up compression on multicore systems

This is a little tip to speed up creating tar archive.

By default tar using gzip to compress and if you look at htop output, gzip use only one cpu.

Tar have an argument –use-compress-program, which allow us to set another gzip-ing program.

The most known mutlithreading gzip alternatives is pigz.

So, the tar usage should looks like:

tar --use-compress-program=pigz -cf ...

Under the cut you found the compression time difference between gzip and pigz Continue reading

Serial pinout and OpenWrt on Netgear board WNDR4000 rev.0

At last week I installed OpenWrt on my Nergear WNDR4000.
The chip on the board is marked as U12H194T99 instead of *T00, which sets on board rev.1.
The most of staff in the web is about T00, so, it wasn’t so easily find something about T99.
I did a mistakes and got experience. So, I collected a couple of advices for you, %username%.

Continue reading

Fedora 21: fglrx 15.20 fix again… for Kernel 4.0.8. Is it the last time?

This is a draft, have no enough time, btw, I guess, it could be informative for someone.
I’ll make patch for 4.0.x version of kernel as soon as possible, if I don’t made it – ping me, please, in a comment :)
Continue reading