Simple Linux gateway

This simple guide will show how to to turn on and off Internet access with some Linux PC in the middle. If you have Raspberry PI without its main purpose, it’ll be the perfect choice. With all the ingredients at one place, workshop can start.

PulseAudio debugging

PulseAudio is a sound system used in modern Linux distributions. In most scenarios sound will work without any problem and you’ll not know what is under the hood. The fun begins when some additional settings are needed and that usually leads to debugging process

No soundcards found with aplay

After Fedora 22 fresh install, aplay command didn’t find any sound cards. On the other hand, root user had correct output of the “aplay -l” command. The solution was to add “audio” group to the user.

Fedora LXDE auto login and Kodi auto start

Here is small tip how to set up auto login and Kodi auto start on top of the Fedora 22 LXDE spin – Lightweight X11 Desktop Environment. With settings in two files, after reboot Fedora should run Kodi without login screen. These two configuration files are lxdm.conf and .dmrc in user home directory.

CentOS 6.6 and MySQL 5.6

By default, CentOS 6.6 will come with MySQL 5.1 packages. After MySQL upgrade to version 5.6, some old good working SQL inserts start to cause errors. The error message was “data too long” which was a bit strange.

PHP mcrypt on CentOS 6

PHP on CentOS 6.6 didn’t have support for mcrypt_get_block_size() function. When something like that happen, next step is to use yum and try to install needed packages. Unfortunately, with default RPM repositories it was not possible and the solution was to add Remi and EPEL repositories.

GNOME wrong window scaling on TV

After connecting HTPC via HDMI cable to 42″ LG TV (42LD650), resolution was correctly set to 1920×1080 (HDTV) but screen was recognized as 7″. The result was wrong scaling for windows, fonts and mouse pointer. Luckily, solution is easy and with gsettings command (and logout/login) GNOME 3.10 desktop environment is set to normal in a minute.

Change GRUB timeout on Fedora 20 with UEFI

After migration to Fedora 20 with UEFI (instead of BIOS), making GRUB changes was totally ignored. The problem was with definition of output generated GRUB config file. UEFI system reads settings from new location and that is described in second step.

Downgrade OpenCV library on Fedora 18

Fedora 18 and OpenCV version 2.4.3 is not the brightest combination. After upgrading from FC17, python script has stopped working with displayed “SURF missing” error. I decided to downgrade OpenCV to 2.3.1 until this library problem will be resolved. Downgrade process is a little tricky, but finally my python code started to work on FC18 the same as it worked on FC17.

Fedora Core 18 NetInstall from USB stick

Post describes Fedora Core 18 installation on an old PC with no CDROM and no USB boot option in BIOS. Fortunately, PC had dual boot (Fedora 13 and Windows XP), so existing GRUB was reused to start installation. The solution was to copy netinst.iso image to the USB device and to load new kernel and initial ramdisk from it.

Fedora – grub Error 15

In my case, “Error 15” occurred right after Fedora installation. It seems that I didn’t check somewhere during installation to write GRUB to the /dev/sda disk. After first reboot (while finishing Fedora installation), GRUB displayed “Error 15” message and booting was stopped.

How to install mplayer in Fedora Core 18

Mplayer Installation procedure is the same as is in my post “How to install mplayer in Fedora Core 12” but with some tweaks at the end. It seems that RPM Fusion repository didn’t create needed symbolic links in /etc/pki/rpm-gpg directory. After symbolic link was created manually, mplayer / vlc installation has been finished successfully.