Category Archives: Linux
howto: Create a RAID6 with mdadm
Note: This guide discusses RAID6 but the same will work for a RAID5, the only difference is that RAID6 uses two disks for parity data while RAID5 only uses one disk. 1) Make sure that all the hard drives you … Continue reading
SVN gives “attempt to write a readonly database” error
You can get a meeting with this error message when trying to commit something to a SVN repo, this is caused by wrong permissions on a file on the SVN server. The file “rep-cache.db” will most likely have wrong permissions … Continue reading
Yum gives depsolving problems for perl-IO-Compress packages
When doing yum update/upgrade etc you can get errors about dependency problems with perl-IO-Compress. hostname(R):/root>yum update perl-Compress-Raw-Bzip2 perl-Compress-Raw-Zlib Loaded plugins: downloadonly, protectbase, rhnplugin, security 13 packages excluded due to repository protections Skipping security plugin, no data Setting up Update Process … Continue reading
Mount KVM/Xen disk image / loop device
Working with virtual disks is pretty straight forward. If you have a single partition virtual disk you can mount or fsck the image file directly. It is a bit more work if you have multiple partitions on the disk, but … Continue reading
Installing NRPE on Red hat 5
Red Hat does not natively support NRPE/Nagios with the default package manager. Luckily, DAG can save the day Simply add the mirror spesified in the link above to your server and you get the ability to add the NRPE or other Nagios … Continue reading
Ubuntu: apt-get update gives 404 Not Found error
If you recieve “404 Not found” during a apt-get update / apt-get upgrade, the problem can be one of two things: 1) Your Ubuntu installation is no longer supported. You can check this by comparing the output of the command: … Continue reading
Getting Windows Vista/2008 to interact with older Samba installations
Newer versions of Windows have implemented a newer version of MS-LAN Manager communication, this is not supported by older Samba installations (below 3.2.1). So in order to fix this, you have to make your Windows client keep to the older … Continue reading
pwrstat: Daemon service is not found.
When trying to use the pwrstat program you may get the error message “Daemon service is not found”. Here is a simple check list to follow in order to fix it: 1) Make sure that pwrstatd is running 2) Open … Continue reading
sh: phpize: not found
When using pecl, or something else that require phpize, you may get a warning saying that phpize is not found, even when you have PHP installed on your server. In order to use phpize you need to install the PHP … Continue reading
Munin-graph error: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
You may get a mail from cron complaining about “Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()”, if you are running Munin. This is caused by Munin not receiving valid UTF-8 data. For this you have 2 possible solutions: 1) … Continue reading