<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on David Hrbáč</title>
    <link>https://www.hrbac.cz/posts/</link>
    <description>Recent content in Posts on David Hrbáč</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 01 Jun 2017 07:02:03 +0000</lastBuildDate><atom:link href="https://www.hrbac.cz/posts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Proper way to delete channel, repository, packages in Spacewalk</title>
      <link>https://www.hrbac.cz/2017/06/proper-way-to-delete-channel-repository-packages-in-spacewalk/</link>
      <pubDate>Thu, 01 Jun 2017 07:02:03 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2017/06/proper-way-to-delete-channel-repository-packages-in-spacewalk/</guid>
      
      <description>This is the way to remove the channel together with repository. It will also remove the packages from the file system. The workflow is as follows:
remove subchannels and master channel remove repos remove orphan packages sync/clean up file system with Spacewalk DB records remove broken links to RPM packages (optional) You can remove channels and repos within GUI. You can also perform it all on command line:
spacecmd softwarechannel\delete \channel\name\ spacecmd repo\delete \reponame\name\ spacecmd package\removeorphans spacewalk-data-fsck -r -S -C -O find /srv/satellite/rpms/ -xtype l -delete Comments: Managing Spacewalk Repos – A Place To Put Stuff - Jan 3, 2018</description>
      
    </item>
    
    <item>
      <title>Docker: Error running DeviceCreate (createSnapDevice) dm_task_run failed</title>
      <link>https://www.hrbac.cz/2016/10/docker-error-running-devicecreate-createsnapdevice-dm_task_run-failed/</link>
      <pubDate>Mon, 17 Oct 2016 12:00:45 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2016/10/docker-error-running-devicecreate-createsnapdevice-dm_task_run-failed/</guid>
      
      <description>Reconfigure Docker instance running out of the space. Recreate data file up to 20GB.
service docker stop rm -rf /var/lib/docker /etc/init.d/docker restart dd if=/dev/zero of=/var/lib/docker/devicemapper/devicemapper/data bs=1G count=0 seek=20 </description>
      
    </item>
    
    <item>
      <title>Gitlab changing LDAP DN</title>
      <link>https://www.hrbac.cz/2015/04/gitlab-changing-ldap-dn/</link>
      <pubDate>Mon, 27 Apr 2015 07:21:37 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2015/04/gitlab-changing-ldap-dn/</guid>
      
      <description>We have upgraded our LDAP infra and introduced a new LDAP server. The LDAP has different LDAP tree. That&amp;rsquo;s why we had to modify Gitlab LDAP setting. This is quite easy, since it&amp;rsquo;s just modification of /etc/gitlab/gitlab.rb. The tricky part is uid search of current users. Gitlab stores the whole uid with the context inside the DB. So, we have to modify the records within the DB.
su - gitlab-psql /opt/gitlab/embedded/bin/psql gitlabhq_production UPDATE identities SET extern_uid = &amp;#39;NEW LDAP UID&amp;#39; WHERE id = x; I have created a dump of the table and modified all the records with:</description>
      
    </item>
    
    <item>
      <title>Format JSON in Vim</title>
      <link>https://www.hrbac.cz/2015/03/format-json-in-vim/</link>
      <pubDate>Fri, 20 Mar 2015 20:45:15 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2015/03/format-json-in-vim/</guid>
      
      <description>Very quick and easy solution to format API JSON response within the Vim.
:%!python -m json.tool </description>
      
    </item>
    
    <item>
      <title>Augeas to add Apache directive TraceEnable</title>
      <link>https://www.hrbac.cz/2014/05/augeas-to-add-apache-directive-traceenable/</link>
      <pubDate>Wed, 14 May 2014 12:23:47 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2014/05/augeas-to-add-apache-directive-traceenable/</guid>
      
      <description>This is a small exercise on Augeas just to add a new directive. I&amp;rsquo;d like to add TraceEnable On to the configuration.
rm /files/etc/httpd/conf/httpd.conf/*[self::directive=&amp;#39;TraceEnable&amp;#39;] ins directive before /files/etc/httpd/conf/httpd.conf/*[self::directive=&amp;#39;KeepAlive&amp;#39;] set /files/etc/httpd/conf/httpd.conf/directive[.=&amp;#34;&amp;#34;] &amp;#34;TraceEnable&amp;#34; set /files/etc/httpd/conf/httpd.conf/directive[.=&amp;#34;TraceEnable&amp;#34;]/arg &amp;#34;On&amp;#34; save quit Comments: Filip Valder - Aug 0, 2014
Hi. As an example, it&amp;rsquo;s OK. But for security reasons having &amp;ldquo;TraceEnable off&amp;rdquo; is better, isn&amp;rsquo;t it? Filip
#### [Risma](https://telkomuniversity.ac.id/ &#34;ritajengnugraheni@student.telkomuniversity.ac.id&#34;) - Apr 0, 2019 thank you for sharing</description>
      
    </item>
    
    <item>
      <title>Spacewalk not responding - &#34;Starting tomcat6: Error code 4&#34;</title>
      <link>https://www.hrbac.cz/2013/12/spacewalk-not-responding-starting-tomcat6-error-code-4/</link>
      <pubDate>Tue, 10 Dec 2013 14:25:46 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/12/spacewalk-not-responding-starting-tomcat6-error-code-4/</guid>
      
      <description>In case you see &amp;ldquo;Starting tomcat6: Error code 4&amp;rdquo;, make sure you have some free space on the file system&amp;hellip;
Comments: Tomáš Kašpárek - Mar 2, 2014
You can actually get this error any time even you have plenty of free space, following helps all the time rm /var/lock/subsys/tomcat6 rm /var/run/tomcat6.pid service tomcat6 start</description>
      
    </item>
    
    <item>
      <title>Nagios time in far future</title>
      <link>https://www.hrbac.cz/2013/12/nagios-time-in-far-future/</link>
      <pubDate>Tue, 10 Dec 2013 14:10:38 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/12/nagios-time-in-far-future/</guid>
      
      <description>In case of the time being too far in the future you can go to:
/etc/init.d/nagios stop mv /var/nagios/retention.dat{,.old} /etc/init.d/nagios start </description>
      
    </item>
    
    <item>
      <title>OpenWrt on TP-LINK TL-WR904N</title>
      <link>https://www.hrbac.cz/2013/07/openwrt-on-tp-link-tl-wr904n/</link>
      <pubDate>Mon, 01 Jul 2013 13:40:58 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/07/openwrt-on-tp-link-tl-wr904n/</guid>
      
      <description>I have successfully installed OpenWrt Attitude Adjustment 12.09 on TP-LINK TL-WR904N Rev. 1.0 Ver 1.3. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ar71xx-generic-tl-wr941nd-v4-squashfs-factory.bin.
BusyBox v1.19.4 (2013-03-14 11:28:31 UTC) built-in shell (ash) Enter &amp;#39;help&amp;#39; for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12.</description>
      
    </item>
    
    <item>
      <title>OpenWrt on Tenda W307R</title>
      <link>https://www.hrbac.cz/2013/07/openwrt-on-tenda-w307r/</link>
      <pubDate>Mon, 01 Jul 2013 13:37:36 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/07/openwrt-on-tenda-w307r/</guid>
      
      <description>I have successfully installed OpenWrt Attitude Adjustment 12.09 on Tenda W307R Rev. V2.0. This HW is not described on OpenWrt HW list, but I have flashed it successfully with openwrt-ramips-rt305x-w306r-v20-squashfs-factory.bin.
BusyBox v1.19.4 (2013-03-15 02:26:13 UTC) built-in shell (ash) Enter &amp;#39;help&amp;#39; for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12.</description>
      
    </item>
    
    <item>
      <title>Set window name in Tmux to hostname</title>
      <link>https://www.hrbac.cz/2013/03/set-window-name-in-tmux-to-hostname/</link>
      <pubDate>Sat, 09 Mar 2013 19:08:04 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/03/set-window-name-in-tmux-to-hostname/</guid>
      
      <description>This is the quick way to set window name to hostname connected to.
printf &amp;#34;\033k`hostname -s`\033\\&amp;#34; See superuser.com</description>
      
    </item>
    
    <item>
      <title>Moving the repositories</title>
      <link>https://www.hrbac.cz/2013/02/moving-the-repositories/</link>
      <pubDate>Fri, 01 Feb 2013 22:01:34 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/02/moving-the-repositories/</guid>
      
      <description>As a few of you might know, I&amp;rsquo;m going to leave the Centre for Information Technology at Technical University of Ostrava within a few weeks. It&amp;rsquo;s been great fun to work here all the time but the last year. There&amp;rsquo;s no call for me to stay, almost everybody I have admired had left. The fun has gone away too.
Well, this means I have to move my repositories which I have brought to University.</description>
      
    </item>
    
    <item>
      <title>Powercli to list &amp; delete snapshots</title>
      <link>https://www.hrbac.cz/2013/01/powercli-to-list-delete-snapshots/</link>
      <pubDate>Mon, 07 Jan 2013 13:43:14 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2013/01/powercli-to-list-delete-snapshots/</guid>
      
      <description>We have realized we are having broken NetApp VMs backup. The process left a lot of VM snapshots. To start off let&amp;rsquo;s find out those snaps with:
get-vm | get-snapshot | where {$\_.Description -match &amp;#34;SMVI Snapshot generated for backup&amp;#34;} | Format-Table -Property VM,Name,Created,Description, SizeMB This command prints the flowing table:
VM Name Created Description SizeMB -- ---- ------- ----------- ------ vyuka.fs smvi\_a3d... 23.11.2012 17:56:25 SMVI Snapshot... 6768,13 ojs smvi\_a3d... 23.11.2012 18:01:25 SMVI Snapshot.</description>
      
    </item>
    
    <item>
      <title>Git to list changed files</title>
      <link>https://www.hrbac.cz/2012/12/git-to-list-changed-files/</link>
      <pubDate>Sat, 08 Dec 2012 16:06:27 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/12/git-to-list-changed-files/</guid>
      
      <description>Today I want to make a brief summary of git log possibilities. There&amp;rsquo;s a huge range of git log commands to choose from. I have chosen only a few. Let&amp;rsquo;s limit git response to the latest commit with HEAD^! target. So here we go:
git log HEAD^! commit 68d0e02d20bdbdbaf3bce24ea5cfd51a854157a8 Author: David Hrbáč Date: Sat Dec 8 16:10:44 2012 +0100 dnsmasq-2.64-1: new upstream release git log --name-only HEAD^! commit 68d0e02d20bdbdbaf3bce24ea5cfd51a854157a8 Author: David Hrbáč Date: Sat Dec 8 16:10:44 2012 +0100 dnsmasq-2.</description>
      
    </item>
    
    <item>
      <title>Disable FC adapter (qla2xxx) in SystemRescueCD</title>
      <link>https://www.hrbac.cz/2012/11/disable-fc-adapter-qla2xxx-in-systemrescuecd/</link>
      <pubDate>Fri, 09 Nov 2012 14:54:37 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/11/disable-fc-adapter-qla2xxx-in-systemrescuecd/</guid>
      
      <description>During the boot of SystemRescueCD hit TAB and append:
noload=qla2xxx,scsi_transport_fc,scsi_tgt </description>
      
    </item>
    
    <item>
      <title>PowerCLI to start and stop Remote Tech Support (SSH)</title>
      <link>https://www.hrbac.cz/2012/08/powercli-to-start-and-stop-remote-tech-support-ssh/</link>
      <pubDate>Mon, 06 Aug 2012 12:02:56 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/08/powercli-to-start-and-stop-remote-tech-support-ssh/</guid>
      
      <description>Another PowerCLI one-liner to start Remote Tech Support (SSH) on ESX/ESXi:
Get-Cluster -Name &amp;#34;CIT2 CLuster&amp;#34; | Get-VMHost | Get-VMHostService | ? {$\_.Key -eq &amp;#34;TSM-ssh&amp;#34;} | Start-VMHostService One-liner to stop:
Get-Cluster -Name &amp;#34;CIT2 CLuster&amp;#34; | Get-VMHost | Get-VMHostService | ? {$\_.Key -eq &amp;#34;TSM-ssh&amp;#34;} | Stop-VMHostService -Confirm:$false </description>
      
    </item>
    
    <item>
      <title>Sed to extract email addresses from file</title>
      <link>https://www.hrbac.cz/2012/06/sed-to-extract-email-addresses-from-file/</link>
      <pubDate>Mon, 04 Jun 2012 11:45:42 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/06/sed-to-extract-email-addresses-from-file/</guid>
      
      <description>sed -e &amp;#34;s/^.\*&amp;lt;\(.*\)&amp;gt;.*$/\1/&amp;#34; /file_with_emails | sort | \\ uniq | tr &amp;#34;[:upper:]&amp;#34; &amp;#34;[:lower:]&amp;#34; PS: Filip, he&amp;rsquo;s terribly smart, I guess the only one to read my blog, pointed out the following one-liner:
sed -nr &amp;#34;s/.*&amp;lt;([A-Z0-9._%-+]+@[A-Z0-9.-]+\.[A-Z]{2,4})&amp;gt;.*/\L\1/pi&amp;#34; \\ file_with_emails | sort -u Comments: Filip - Jun 4, 2012
Hi. This one does the lowercase conversion immediately and lists only e-mails in a valid format.
sed -nr &amp;#34;s/.*.*/\L\1/pi&amp;#34; file_with_emails | sort -u Filip - Jun 4, 2012</description>
      
    </item>
    
    <item>
      <title>Get VM ethernet info and state</title>
      <link>https://www.hrbac.cz/2012/05/get-vm-ethernet-info-and-state/</link>
      <pubDate>Tue, 22 May 2012 08:57:29 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/05/get-vm-ethernet-info-and-state/</guid>
      
      <description>PowerCLI &amp;gt; Get-VM -Name builder2 | Get-NetworkAdapter| Format-List -Property \* MacAddress : 00:50:56:90:34:9d WakeOnLanEnabled : True NetworkName : Network 158.196.149.0 Type : e1000 ParentId : VirtualMachine-vm-4650 Parent : builder2 Uid : /VIServer=administrator@vcs1.vsb.cz:443/VirtualMachine=Virtu alMachine-vm-4650/NetworkAdapter=4000/ ConnectionState : Connected, GuestControl, StartConnected ExtensionData : VMware.Vim.VirtualE1000 Id : VirtualMachine-vm-4650/4000 Name : Network adapter 1 </description>
      
    </item>
    
    <item>
      <title>Disconnect all mounted CD-ROMs in VMware cluster</title>
      <link>https://www.hrbac.cz/2012/05/disconnect-all-mounted-cd-roms-in-vmware-cluster/</link>
      <pubDate>Tue, 22 May 2012 08:55:44 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/05/disconnect-all-mounted-cd-roms-in-vmware-cluster/</guid>
      
      <description>PowerCLI &amp;gt; Get-VM | Get-CDDrive | Set-CDDrive -NoMedia -Confirm:$false </description>
      
    </item>
    
    <item>
      <title>Get VMs with disconnected virtual ethernet</title>
      <link>https://www.hrbac.cz/2012/05/get-vms-with-disconnected-virtual-ethernet/</link>
      <pubDate>Tue, 22 May 2012 08:52:34 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/05/get-vms-with-disconnected-virtual-ethernet/</guid>
      
      <description>PowerCLI &amp;gt; Get-NetworkAdapter (get-vm | where {$\_.powerstate -eq “poweredon”}) | Where { $\_.connectionstate.connected -eq “$null” } | select parent, connectionstate Parent ConnectionState ------ --------------- licenser NotConnected, GuestControl, NoStartC... </description>
      
    </item>
    
    <item>
      <title>Centos 6 public key authentication fix</title>
      <link>https://www.hrbac.cz/2012/05/centos-6-public-key-authentication-fix/</link>
      <pubDate>Sat, 12 May 2012 21:18:05 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/05/centos-6-public-key-authentication-fix/</guid>
      
      <description>Due to SELinux enabled we are not able to use public key authentication on Centos 6. Here is the quick fix:
test -x /sbin/restorecon &amp;amp;&amp;amp; /sbin/restorecon .ssh .ssh/authorized\_keys </description>
      
    </item>
    
    <item>
      <title>Generating passwords with /dev/random</title>
      <link>https://www.hrbac.cz/2012/04/generating-passwords-with-/dev/random/</link>
      <pubDate>Tue, 24 Apr 2012 18:28:20 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/generating-passwords-with-/dev/random/</guid>
      
      <description>One-liner to generate passwords, lock files, etc.
watch -n5 &amp;#39;cat /dev/urandom | tr -dc \[:alnum:\] | head -c12; echo&amp;#39; </description>
      
    </item>
    
    <item>
      <title>PowerCLI to add vlan to vmware cluster</title>
      <link>https://www.hrbac.cz/2012/04/powercli-to-add-vlan-to-vmware-cluster/</link>
      <pubDate>Thu, 19 Apr 2012 11:12:29 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/powercli-to-add-vlan-to-vmware-cluster/</guid>
      
      <description>One-liner to add VLANs to the all hosts within vSphere cluster:
Get-Cluster &amp;#34;CIT Cluster&amp;#34; | Get-VMHost | Get-VirtualSwitch -name vSwitch0 | New-VirtualPortGroup -name &amp;#34;Networking - Vlan80&amp;#34; -VLanId 80 </description>
      
    </item>
    
    <item>
      <title>Create ESXi 4.0 USB stick with dd on Linux</title>
      <link>https://www.hrbac.cz/2012/04/create-esxi-4.0-usb-stick-with-dd-on-linux/</link>
      <pubDate>Sun, 15 Apr 2012 12:20:43 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/create-esxi-4.0-usb-stick-with-dd-on-linux/</guid>
      
      <description>These are the steps to create ESX 4.0 USB stick:
mount -o loop VMware-VMvisor-Installer-4.0.0.update04-504850.x86\64.iso /mnt/ cp /mnt/image.tgz . tar xvzf image.tgz bunzip2 usr/lib/vmware/installer/VMware-VMvisor-big-4.0.0-504850-x86_64.dd.bz2 dd if=usr/lib/vmware/installer/VMware-VMvisor-big-4.0.0-504850-x86_64.dd of=/dev/sdb rm -r usr umount /mnt </description>
      
    </item>
    
    <item>
      <title>Create ESXi 4.1 USB stick with dd on Linux</title>
      <link>https://www.hrbac.cz/2012/04/create-esxi-4.1-usb-stick-with-dd-on-linux/</link>
      <pubDate>Sun, 15 Apr 2012 10:18:26 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/create-esxi-4.1-usb-stick-with-dd-on-linux/</guid>
      
      <description>These are the steps to create ESX 4.1 USB stick:
mount -o loop VMware-VMvisor-Installer-4.1.0.update02-502767.x86\_64.iso /mnt/ cp /mnt/imagedd.bz2 . bunzip2 imagedd.bz2 dd if=imagedd of=/dev/sdb rm imagedd umount /mnt Comments: saurin - Sep 3, 2012
Is this procedure creates the ESXi 4.1 installation USB?
David Hrbáč - Dec 6, 2012
Not sure. As to 5.0, there&amp;rsquo;s no need to create boot-able USB stick this way. Vmware installer works smoothly&amp;hellip;</description>
      
    </item>
    
    <item>
      <title>Sed oneliner to change Centos 4 repos to vault.centos.org</title>
      <link>https://www.hrbac.cz/2012/04/sed-oneliner-to-change-centos-4-repos-to-vault.centos.org/</link>
      <pubDate>Thu, 05 Apr 2012 15:13:07 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/04/sed-oneliner-to-change-centos-4-repos-to-vault.centos.org/</guid>
      
      <description>Centos 4 is now EOLed. You should upgrade or remove your 4.x server from production. Since EOL all repositories have been moved to vault.centos.org. Yum is not working any more because of that. Here is my quick and dirty solution.
sed &amp;#34;s/\/mirror\.centos\.org\/centos/\/vault\.centos\.org/g;\ s/^#baseurl/baseurl/g;\ s/^mirrorlist/#mirrorlist/g;\ s/\$releasever/4\.9/g&amp;#34; /etc/yum.repos.d/CentOS-Base.repo -i.bak sed &amp;#34;s/\/mirror\.centos\.org\/centos/\/vault\.centos\.org/g;\ s/^#baseurl/baseurl/g;\ s/^mirrorlist/#mirrorlist/g;\ s/\$releasever/4\.9/g&amp;#34; /etc/yum.repos.d/CentOS-fasttrack.repo -i.bak </description>
      
    </item>
    
    <item>
      <title>fdupes to remove duplicate files on Linux</title>
      <link>https://www.hrbac.cz/2012/03/fdupes-to-remove-duplicate-files-on-linux/</link>
      <pubDate>Thu, 29 Mar 2012 14:12:45 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/03/fdupes-to-remove-duplicate-files-on-linux/</guid>
      
      <description>Quick and dirty solution to remove all duplicate files but one:
yes 1 | fdupes -rd /path/to/folder Comments: David Hrbáč - Apr 4, 2012
Filip, Thanks, going to push a new spec file to RepoForge. DH
Filip - Mar 5, 2012
Hi Dave. Thanks for this tip on a useful sysutil. The following cmdline options were good to me but it may depend on your fdupes version. See below.
root@ulicnik.ulice:/# fdupes -rndN /mnt/ root@ulicnik.</description>
      
    </item>
    
    <item>
      <title>dovecot-0.99.11-9.EL4 - assertion failed</title>
      <link>https://www.hrbac.cz/2012/02/dovecot-0.99.11-9.el4-assertion-failed/</link>
      <pubDate>Wed, 15 Feb 2012 11:20:03 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/02/dovecot-0.99.11-9.el4-assertion-failed/</guid>
      
      <description>A few days back I&amp;rsquo;m getting this error within /var/log/maillog: file lib.c: line 37 (nearest_power): assertion failed: (num &amp;lt;= ((size_t)1 &amp;lt;&amp;lt; (BITS_IN_SIZE_T-1)))
We are using the latest dovecot package for EL4:
[root@hruska tmp]# rpm -q dovecot dovecot-0.99.11-10.EL4 Package changelog has interesting entry:
[root@hruska ~]# rpm -q --changelog dovecot| head * Tue Aug 09 2011 Michal Hlavinka - 0.99.11-10 - fix potential crash when parsing header names that contain NUL characters (#728674) So, let&amp;rsquo;s go fetch the #728674 entry on https://bugzilla.</description>
      
    </item>
    
    <item>
      <title>Firefox and Thunderbird repositories for Ubuntu 10.10</title>
      <link>https://www.hrbac.cz/2012/01/firefox-and-thunderbird-repositories-for-ubuntu-10.10/</link>
      <pubDate>Tue, 17 Jan 2012 21:43:41 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2012/01/firefox-and-thunderbird-repositories-for-ubuntu-10.10/</guid>
      
      <description>sudo add-apt-repository ppa:mozillateam/firefox-stable sudo add-apt-repository ppa:mozillateam/thunderbird-stable </description>
      
    </item>
    
    <item>
      <title>Add line to the top of files with sed</title>
      <link>https://www.hrbac.cz/2011/10/add-line-to-the-top-of-files-with-sed/</link>
      <pubDate>Tue, 25 Oct 2011 15:20:21 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/10/add-line-to-the-top-of-files-with-sed/</guid>
      
      <description>One-liner to add line at the beginning of the file(s).
find mirrors-* -exec sed -i 1i&amp;#39;http://webmel53.vsb.cz/hrb33/el$releasever/hrb/stable/$basearch/&amp;#39; {} \\; </description>
      
    </item>
    
    <item>
      <title>Ssh complains host id has been changed</title>
      <link>https://www.hrbac.cz/2011/10/ssh-complains-host-id-has-been-changed/</link>
      <pubDate>Mon, 24 Oct 2011 10:30:04 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/10/ssh-complains-host-id-has-been-changed/</guid>
      
      <description>There are situations when host id might be changed a few times during fast, automatic, and massive host deployment. Ssh client begins to complain on changed host id.
[root@builder2 ~]# ssh webmel53 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed.</description>
      
    </item>
    
    <item>
      <title>How to remove sw raid for VMware Converter to work</title>
      <link>https://www.hrbac.cz/2011/09/how-to-remove-sw-raid-for-vmware-converter-to-work/</link>
      <pubDate>Tue, 20 Sep 2011 06:53:53 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/09/how-to-remove-sw-raid-for-vmware-converter-to-work/</guid>
      
      <description>VMWare converter is very powerful tool to provide physical to virtual conversion. It&amp;rsquo;s quite easy to make P2V of Windows base servers. The last versions of VMware Converter claim to support P2V of Linux based servers. This is true, but there are limits. Linux server running sw raid (mdadm) is one of them. Here is breif HOWTO:
stop all important services disable these services break the mirror strip mdadm info from the disk change the partition type from fd (Linux raid auto) to 83 (Linux) chroot into single disk instance rename mdadm.</description>
      
    </item>
    
    <item>
      <title>ESX Error 15</title>
      <link>https://www.hrbac.cz/2011/04/esx-error-15/</link>
      <pubDate>Mon, 18 Apr 2011 09:10:13 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/04/esx-error-15/</guid>
      
      <description>Esx 4.0/4.1 might be not able to boot after reboot. It happens after update installation. Esx console says:
Filesystem type is ext2fs, partition type 0x83 uppermem 819200 kernel /vmlinuz ro root=UUID=ceadc074-b397-adcb-7b7604a8ab4a mem=800M quiet [Linux-bzImage, setup-0x1e00, size=0x179cdc] initrd /initrd.img Error 15: File not found Press any key to continue... Console snapshot:
Quick look at usage space:
[root@esx8 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 4.9G 1.8G 2.9G 38% / /dev/sda2 2.</description>
      
    </item>
    
    <item>
      <title>Text_CAPTCHA_Numeral bugs</title>
      <link>https://www.hrbac.cz/2011/01/text_captcha_numeral-bugs/</link>
      <pubDate>Thu, 06 Jan 2011 13:38:59 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/01/text_captcha_numeral-bugs/</guid>
      
      <description>There are two bugs in Text_CAPTCHA_Numeral Pear Module. Here is the patch.
diff -Nuar Text\_CAPTCHA\_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml Text\_CAPTCHA\_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml --- Text\_CAPTCHA\_Numeral-1.3.0.ok/php-pear-Text-CAPTCHA-Numeral.xml	2010-10-24 04:16:40.000000000 +0200 +++ Text\_CAPTCHA\_Numeral-1.3.0/php-pear-Text-CAPTCHA-Numeral.xml	2010-11-18 23:15:05.000000000 +0100 @@ -43,7 +43,7 @@ - + diff -Nuar Text\_CAPTCHA\_Numeral-1.3.0.ok/Text/CAPTCHA/Numeral.php Text\_CAPTCHA\_Numeral-1.3.0/Text/CAPTCHA/Numeral.php --- Text\_CAPTCHA\_Numeral-1.3.0.ok/Text/CAPTCHA/Numeral.php	2010-10-24 04:16:39.000000000 +0200 +++ Text\_CAPTCHA\_Numeral-1.3.0/Text/CAPTCHA/Numeral.php	2010-11-18 23:13:58.000000000 +0100 @@ -355,7 +355,7 @@ \*/ private function setOperation($type = null) { - if (!stristr($type, &amp;#39;F&amp;#39;)) { + if (stristr($type, &amp;#39;F&amp;#39;)) { $this-&amp;gt;operation = $this-&amp;gt;getFirstNumber() .</description>
      
    </item>
    
    <item>
      <title>DNSBL for Horde</title>
      <link>https://www.hrbac.cz/2011/01/dnsbl-for-horde/</link>
      <pubDate>Wed, 05 Jan 2011 09:57:46 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2011/01/dnsbl-for-horde/</guid>
      
      <description>Here we go with a small patch to implement DNSBL for Horde. I have again used PEAR package, this time it is the Net_DNSBL, and as usually CentOS package is in my repos - http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html. The first patch is the important one. We let the attacker to log in, just to make sure he/she owns valid stolen credentials.
\--- imp/lib/Auth/imp.php.orig 2011-01-05 10:21:05.224155622 +0100 +++ imp/lib/Auth/imp.php 2011-01-05 10:39:24.699438519 +0100 @@ -146,6 +146,36 @@ return false; } + # DNSBL START + ini\_set(&amp;#39;include\_path&amp;#39;, ini\_get(&amp;#39;include\_path&amp;#39;).</description>
      
    </item>
    
    <item>
      <title>Captcha for Horde</title>
      <link>https://www.hrbac.cz/2010/12/captcha-for-horde/</link>
      <pubDate>Wed, 15 Dec 2010 12:22:54 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/12/captcha-for-horde/</guid>
      
      <description>Here is small patch to implement captcha on Horde login page. We have implemeteded Text_CAPTCHA_Numeral. Package for Centos is here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html. Here is the patch.
\--- horde-webmail-1.2.8.orig/imp/login.php	2010-10-25 17:10:05.000000000 +0200 +++ horde-webmail-1.2.8/imp/login.php	2010-11-30 17:36:27.571023703 +0100 @@ -398,6 +398,7 @@ $t-&amp;gt;set(&amp;#39;user\_vinfo&amp;#39;, Horde::callHook(&amp;#39;\_imp\_hook\_vinfo&amp;#39;, array(&amp;#39;vdomain&amp;#39;), &amp;#39;imp&amp;#39;)); } $t-&amp;gt;set(&amp;#39;password\_tabindex&amp;#39;, ++$tabindex); +$t-&amp;gt;set(&amp;#39;captch\_tabindex&amp;#39;, ++$tabindex); $t-&amp;gt;set(&amp;#39;change\_smtphost&amp;#39;, (!empty($conf\[&amp;#39;server&amp;#39;\]\[&amp;#39;change\_smtphost&amp;#39;\]))); if ($t-&amp;gt;get(&amp;#39;change\_smtphost&amp;#39;)) { @@ -446,7 +447,16 @@ &amp;#39;var imp\_auth = &amp;#39; . intval($imp\_auth), &amp;#39;var nomenu = &amp;#39; . intval(empty($conf\[&amp;#39;menu&amp;#39;\]\[&amp;#39;always&amp;#39;\])), )); -echo $t-&amp;gt;fetch(IMP\_TEMPLATES .</description>
      
    </item>
    
    <item>
      <title>Hunting the root kits</title>
      <link>https://www.hrbac.cz/2010/10/hunting-the-root-kits/</link>
      <pubDate>Thu, 14 Oct 2010 08:06:05 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/10/hunting-the-root-kits/</guid>
      
      <description>Within Linux mailing list there has been post on hacked Linux box. We have recommended root kit scan. There are two important tools on Linux now, rkhunter and chkrootkit.
[root@box ~]# chkrootkit ROOTDIR is &amp;#39;/&amp;#39; Checking &amp;#39;amd&amp;#39;... not found Checking &amp;#39;basename&amp;#39;... not infected Checking &amp;#39;biff&amp;#39;... not found Checking &amp;#39;chfn&amp;#39;... not infected Checking &amp;#39;chsh&amp;#39;... not infected Checking &amp;#39;cron&amp;#39;... not infected Checking &amp;#39;crontab&amp;#39;... not infected Checking &amp;#39;date&amp;#39;... not infected Checking &amp;#39;du&amp;#39;... not infected Checking &amp;#39;dirname&amp;#39;.</description>
      
    </item>
    
    <item>
      <title>avgd stops listening on port 54322</title>
      <link>https://www.hrbac.cz/2010/08/avgd-stops-listening-on-port-54322/</link>
      <pubDate>Mon, 30 Aug 2010 08:08:44 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/08/avgd-stops-listening-on-port-54322/</guid>
      
      <description>Last days I&amp;rsquo;m experiencing avgd not responding. Avgd stops to listen on port 54322, amavisd-new timeouts on talking to AV. Mails are being held and queue is slowly increasing its number. It&amp;rsquo;s strange, that I&amp;rsquo;m experiencing it not only on one production system&amp;hellip;
Aug 29 04:59:46 rakosnicek amavis\[25940\]: (25940-01-5) (!)AVG Anti-Virus av-scanner FAILED: run\_av error: Too many retries to talk to 127.0.0.1:54322 (timed out) at (eval 111) line 373.\\n It seems working after changing a little bit AVG configuration with following values:</description>
      
    </item>
    
    <item>
      <title>Firefox 3.6.2 and Thunderbird 3.0.3 for CentOS 5.4</title>
      <link>https://www.hrbac.cz/2010/03/firefox-3.6.2-and-thunderbird-3.0.3-for-centos-5.4/</link>
      <pubDate>Wed, 24 Mar 2010 09:08:58 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/03/firefox-3.6.2-and-thunderbird-3.0.3-for-centos-5.4/</guid>
      
      <description>It&amp;rsquo;s a quite long time I have announced Firefox 3.6 and Thunderbird 3.0 packages for CentOS 5.
Announcement has been submitted via CentOS mail-list. See http://lists.centos.org/pipermail/centos-devel/2010-February/005416.html and http://lists.centos.org/pipermail/centos/2010-February/090418.html. Packages have been tested by users and have been always within the testing repository only.
Today I&amp;rsquo;m pushing new firefox 3.6.2 into the stable repository together with xulrunner, mozilla-filesystem, and thunderbird. Packages are to be found here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/ http://fs12.vsb.cz/hrb33/el5/hrb/stable/x86_64/repoview/</description>
      
    </item>
    
    <item>
      <title>Nagios and dpt-i2o-raidutils, raidutil check</title>
      <link>https://www.hrbac.cz/2010/02/nagios-and-dpt-i2o-raidutils-raidutil-check/</link>
      <pubDate>Fri, 05 Feb 2010 08:24:49 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/02/nagios-and-dpt-i2o-raidutils-raidutil-check/</guid>
      
      <description>We do check our production boxes with hardware raid cards on raid status. We are using our script to call raidutil, which is running fine, but not under nagios user. Permissions for the files are as follows:
-rwxr-xr-x 1 root root 254708 Aug 20 2008 raideng -rwxr-xr-x 1 root root 255880 Aug 20 2008 raidutil Solution is to add proper rights to utils with:
chmod u+s raid* It should look like this:</description>
      
    </item>
    
    <item>
      <title>Sed to correct path lines</title>
      <link>https://www.hrbac.cz/2010/02/sed-to-correct-path-lines/</link>
      <pubDate>Thu, 04 Feb 2010 12:22:56 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/02/sed-to-correct-path-lines/</guid>
      
      <description>Sed one-liner to change correct paths. Before:
php_admin_value open_basedir /srv/www/www.domena.tld/www After:
php_admin_value open_basedir /srv/www/www.domena.tld Sed script:
sed -i &amp;#34;s/\(.*\)php_admin_value open_basedir \(.*\)\/www$/\1php_admin_value open_basedir \2/g&amp;#34; /etc/httpd/conf/httpd.conf </description>
      
    </item>
    
    <item>
      <title>Upgrade DAViCal 0.9.7.2 to 0.9.8</title>
      <link>https://www.hrbac.cz/2010/02/upgrade-davical-0.9.7.2-to-0.9.8/</link>
      <pubDate>Wed, 03 Feb 2010 09:54:31 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/02/upgrade-davical-0.9.7.2-to-0.9.8/</guid>
      
      <description>DAViCal upgrade is quite easy:
[root@fs12 html] wget http://debian.mcmillan.net.nz/packages/davical/davical_0.9.8.orig.tar.gz [root@fs12 html] tar xvzf davical_0.9.8.orig.tar.gz [root@fs12 html] cd davical-0.9.8.orig/dba [root@fs12 dba] su postgres bash-3.00$ ./update-davical-database The database is version 8.1 currently at revision 1.2.5. Applying patch 1.2.6.sql ... succeeded. Applying patch 1.2.7.sql ... succeeded. Successfully applied 2 patches. Supported locales updated. Updated view: dav_principal.sql applied. CalDAV functions updated. RRULE functions updated. Database permissions updated. bash-3.00$ exit [root@fs12 html] ln -s davical-0.9.8.orig davical That&amp;rsquo;s all.</description>
      
    </item>
    
    <item>
      <title>Squirrelmail and safe mode</title>
      <link>https://www.hrbac.cz/2010/02/squirrelmail-and-safe-mode/</link>
      <pubDate>Mon, 01 Feb 2010 21:18:41 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/02/squirrelmail-and-safe-mode/</guid>
      
      <description>chown apache: /etc/squirrelmail/* chown apache: -R /var/lib/squirrelmail/ chown apache: -R /usr/share/squirrelmail chown apache: -R /var/spool/squirrelmail/attach/ cd /usr/share/squirrelmail/plugins/ wget http://squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fcompatibility-2.0.15-1.0.tar.gz tar xvzf compatibility-2.0.15-1.0.tar.gz cd /usr/share/squirrelmail/plugins/compatibility patch -p0 &amp;lt; patches/compatibility_patch-1.4.8.diff chown apache: -R /usr/share/squirrelmail cd /usr/share/squirrelmail/plugins/ wget http://squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fwww.squirrelmail.org%2Fplugins%2Fmsg_flags-1.4.20-1.4.3.tar.gz tar xvzf msg_flags-1.4.20-1.4.3.tar.gz cd /usr/share/squirrelmail/plugins/msg_flags patch -p0 &amp;lt; patches/msg_flags-squirrelmail-1.4.3a.diff chown apache: -R /usr/share/squirrelmail #safemode php_admin_value safe_mode_include_dir /usr/share/pear/ php_admin_value safe_mode_exec_dir /usr/share/squirrelmail php_admin_value open_basedir &amp;#34;/usr/share/pear/:/usr/share/squirrelmail/:/var/lib/squirrelmail/prefs/:/etc/squirrelmail/:/var/spool/squirrelmail/attach/&amp;#34; --- class/deliver/Deliver.class.php.orig	2010-01-30 23:22:20.000000000 +0100 +++ class/deliver/Deliver.class.php	2010-01-30 23:22:39.000000000 +0100 @@ -430,7 +430,7 @@ if (isset($encode_header_key) &amp;amp;&amp;amp; trim($encode_header_key)!</description>
      
    </item>
    
    <item>
      <title>Zoner Antivirus with Amavisd-new</title>
      <link>https://www.hrbac.cz/2010/02/zoner-antivirus-with-amavisd-new/</link>
      <pubDate>Mon, 01 Feb 2010 21:05:04 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/02/zoner-antivirus-with-amavisd-new/</guid>
      
      <description>Today I have decided to test Amavisd-new with free Zoner Antivirus for Linux. First of all you have to download the package, (test it), install, and change the ownership. Then edit the configuration.
wget http://update.zonerantivirus.com/download/zav-1.2.2-redhat-i586.rpm --nodeps rpm -Uhv zav-1.2.2-redhat-i586.rpm --test rpm -Uhv zav-1.2.2-redhat-i586.rpm chown amavis: /opt/zav -R chown amavis: /var/run/zav -R vi /etc/zav/zavd.conf So, we have changed the ownership. Now we have to change the daemon user to amavis too.</description>
      
    </item>
    
    <item>
      <title>Send file as attachment from commnad line</title>
      <link>https://www.hrbac.cz/2010/01/send-file-as-attachment-from-commnad-line/</link>
      <pubDate>Mon, 18 Jan 2010 13:04:28 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2010/01/send-file-as-attachment-from-commnad-line/</guid>
      
      <description>There&amp;rsquo;s an easy way of sending files as attachment from command line:
uuencode file name | mail -s &amp;#34;Subject&amp;#34; &amp;#34;to@tld.cz&amp;#34; -- -ffrom@tld.cz Yes, there is double hyphen and -f before the from email address.</description>
      
    </item>
    
    <item>
      <title>pure-ftpd with geoip</title>
      <link>https://www.hrbac.cz/2009/10/pure-ftpd-with-geoip/</link>
      <pubDate>Fri, 16 Oct 2009 15:31:48 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/10/pure-ftpd-with-geoip/</guid>
      
      <description>During the last few weeks we are experiencing compromised FTP accounts within our production. These accounts seem to be stolen from infected Windows client machines, infected by malware or trojans. As far as I know the issues, everyone of them is using Total Commander&amp;hellip; TC seems to save the credentials in plain text form, unencrypted. Fine.
I have been going through pure-ftpd log to gather ips that had been used to upload files.</description>
      
    </item>
    
    <item>
      <title>AVG 8.5 with Amavisd-new</title>
      <link>https://www.hrbac.cz/2009/10/avg-8.5-with-amavisd-new/</link>
      <pubDate>Tue, 13 Oct 2009 13:35:31 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/10/avg-8.5-with-amavisd-new/</guid>
      
      <description>Amavisd-new is a quite powerful tool capable to co-operate with a large amount of AV scanners. Today I have decided to test it with free AVG Antivirus for Linux. First of all you have to download the package, (test it), install, and change the ownership. Then edit the configuration.
wget http://download.avgfree.com/filedir/inst/avg85flx-r287-a2632.i386.rpm rpm -Uhv avg85flx-r287-a2632.i386.rpm --test rpm -Uhv avg85flx-r287-a2632.i386.rpm chown amavis: /opt/avg -R vi /opt/avg/avg8/etc/init.d/avgdinit.conf So, we have changed the ownership. Now we have to change the daemon user to amavis too.</description>
      
    </item>
    
    <item>
      <title>Benchmarking php with apc, memcached</title>
      <link>https://www.hrbac.cz/2009/09/benchmarking-php-with-apc-memcached/</link>
      <pubDate>Wed, 23 Sep 2009 07:56:43 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/09/benchmarking-php-with-apc-memcached/</guid>
      
      <description>As we are very extensively using techniques to speed up web applications we build or host, I&amp;rsquo;d like to share some benchmarks. One of our clients is running site on our machines which is using SOAP/WSDL to get data. The application is extremely slow, result are very poor. Apache is able to server this webapp within cca 23 pages per second, which is bad. Here are the ab results:
[root@webmel4 ~]# ab -n 400 -c 5 http://beta.</description>
      
    </item>
    
    <item>
      <title>VIM macro to add changelog entry within spec file</title>
      <link>https://www.hrbac.cz/2009/09/vim-macro-to-add-changelog-entry-within-spec-file/</link>
      <pubDate>Tue, 22 Sep 2009 14:21:03 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/09/vim-macro-to-add-changelog-entry-within-spec-file/</guid>
      
      <description>Editing spec files is somewhat time-consuming repetitive task. It&amp;rsquo;s good to add a change log entry every time you rebuild srpm package. One can do it typing it all over the times. Someone can use the maco. I do use this one:
nmap ,cl /%changelog&amp;lt;CR&amp;gt;:r!date +&amp;#39;\%a \%b \%d \%Y&amp;#39;&amp;lt;CR&amp;gt;0i* &amp;lt;ESC&amp;gt;$a David Hrbáč &amp;lt;my@email.tld&amp;gt; - Simply add this line to you .vimrc file.
Comments: Yury V. Zaytsev - Oct 4, 2011</description>
      
    </item>
    
    <item>
      <title>Running yum-3.2.8 on CentOS 4.7 - part II.</title>
      <link>https://www.hrbac.cz/2009/07/running-yum-3.2.8-on-centos-4.7-part-ii./</link>
      <pubDate>Thu, 09 Jul 2009 13:30:39 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/07/running-yum-3.2.8-on-centos-4.7-part-ii./</guid>
      
      <description>Today I have looked again at yum 3.2.8 on Centos 4. I wanted everything to clean up, go back to unittests again. I have backported python-nose and started to clean up the source. Finally I had to make all yum tests python 2.3 compatible. Here is the result:
[root@build-c4-i386 yum-3.2.8\]# make test .............................................................................................................................................................. ---------------------------------------------------------------------- Ran 158 tests in 0.889s OK As you can see, all tests have passed. And as usual packages are available within my testing repo.</description>
      
    </item>
    
    <item>
      <title>Running yum-3.2.8 on CentOS 4.7</title>
      <link>https://www.hrbac.cz/2009/03/running-yum-3.2.8-on-centos-4.7/</link>
      <pubDate>Tue, 03 Mar 2009 22:20:15 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/03/running-yum-3.2.8-on-centos-4.7/</guid>
      
      <description>Today I spent a few hours testing and backporting yum-3.2.8 from CentOS 5.2 to CentOS 4.7. It wasn&amp;rsquo;t so hard to backport. Most of the time I have spent on testing and searching. Code is patched to allow sets, which are supported in python 2.3 :o) and that&amp;rsquo;s almost all. Final rpms are available for testing here:
http://fs12.vsb.cz/hrb33/el4/hrb/testing/i386/repoview/ http://fs12.vsb.cz/hrb33/el4/hrb/testing/x86_64/repoview/ [root@webmel4 ~]# yum update yum Loading &amp;#34;fastestmirror&amp;#34; plugin Loading &amp;#34;installonlyn&amp;#34; plugin Setting up Update Process Setting up repositories Loading mirror speeds from cached hostfile Reading repository metadata in from local files Reducing CentOS.</description>
      
    </item>
    
    <item>
      <title>nmap to get web server info</title>
      <link>https://www.hrbac.cz/2009/02/nmap-to-get-web-server-info/</link>
      <pubDate>Thu, 12 Feb 2009 20:10:41 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/02/nmap-to-get-web-server-info/</guid>
      
      <description>I realized that nmap can be used to get info about web server. Informations about servers are easy to read via header. Admins tend to mask actual product or version the web is running on. So, then nmap comes to play with.
[root@kremilek ~]# nmap -sV -P0 -p80 www.idnes.cz Starting Nmap 4.20 ( http://insecure.org ) at 2009-02-12 21:03 CET Interesting ports on c1.idnes.cz (194.79.52.192): PORT STATE SERVICE VERSION 80/tcp open http Microsoft IIS webserver 6.</description>
      
    </item>
    
    <item>
      <title>Call to undefined function load_config() - squirrelmail-1.4.8-5.el4.centos.3</title>
      <link>https://www.hrbac.cz/2009/02/call-to-undefined-function-load_config-squirrelmail-1.4.8-5.el4.centos.3/</link>
      <pubDate>Mon, 09 Feb 2009 17:54:39 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2009/02/call-to-undefined-function-load_config-squirrelmail-1.4.8-5.el4.centos.3/</guid>
      
      <description>During one of my squirrelmail upgrades I have discovered strange behavior. Users were able to login, but only blank page had appeared. I have found this in log:
[Mon Feb 09 18:29:10 2009] [error] [client 89.103.46.115] PHP Fatal error: Call to undefined function load_config() in /usr/share/squirrelmail/plugins/change_sqlpass/functions.php on line 326, referer: http://blabla.blabla.tld/src/login.php change_sqlpass pluging needs compatibility plugin to run. So here is the patch:
--- ../../functions/strings.php.orig 2006-08-11 04:15:43.000000000 -0700 +++ ../../functions/strings.php 2006-09-01 06:11:03.</description>
      
    </item>
    
    <item>
      <title>Virtual disk provisioning</title>
      <link>https://www.hrbac.cz/2008/09/virtual-disk-provisioning/</link>
      <pubDate>Mon, 08 Sep 2008 08:36:17 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2008/09/virtual-disk-provisioning/</guid>
      
      <description>/usr/sbin/vmkfstools -i testfed.vmdk -d thin tmp.vmdk /usr/sbin/vmkfstools -E tmp.vmdk testfed.vmdk </description>
      
    </item>
    
    <item>
      <title>Remove old kernels</title>
      <link>https://www.hrbac.cz/2008/05/remove-old-kernels/</link>
      <pubDate>Thu, 22 May 2008 13:49:30 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2008/05/remove-old-kernels/</guid>
      
      <description>Simple way to remove all but one kernel:
if [ $(rpm -q kernel | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel | sed &amp;#39;$d&amp;#39;); fi if [ $(rpm -q kernel-smp | wc -l) -gt 1 ]; then rpm -e $(rpm -q kernel-smp | sed &amp;#39;$d&amp;#39;); fi </description>
      
    </item>
    
    <item>
      <title>OpenSSH5 on CentOS 5</title>
      <link>https://www.hrbac.cz/2008/04/openssh5-on-centos-5/</link>
      <pubDate>Mon, 14 Apr 2008 15:14:12 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2008/04/openssh5-on-centos-5/</guid>
      
      <description>I have rebuilt OpenSSH RPMs for CentOS 5. They seem :o) to work pretty well. Files are located here:
http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/i386/ http://fs12.vsb.cz/hrb33/el5/hrb-ssh/stable/x86_64/ </description>
      
    </item>
    
    <item>
      <title>Kickstart encrypted password</title>
      <link>https://www.hrbac.cz/2008/03/kickstart-encrypted-password/</link>
      <pubDate>Thu, 06 Mar 2008 17:02:38 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2008/03/kickstart-encrypted-password/</guid>
      
      <description>Easy way to create encrypted password for kickstart:
perl -e &amp;#39;print crypt(&amp;#34;password&amp;#34;, &amp;#34;Xa&amp;#34;) . &amp;#34;\\n&amp;#34;;&amp;#39;p </description>
      
    </item>
    
    <item>
      <title>Enable installonlyn on CentOS 4.x</title>
      <link>https://www.hrbac.cz/2008/02/enable-installonlyn-on-centos-4.x/</link>
      <pubDate>Tue, 12 Feb 2008 20:10:52 +0000</pubDate>
      
      <guid>https://www.hrbac.cz/2008/02/enable-installonlyn-on-centos-4.x/</guid>
      
      <description>Easy way to enable:
yum -y install yum-utils; cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.conf /etc/yum/pluginconf.d/; cp -p /usr/share/doc/yum-utils-0.5/plugins/installonlyn/installonlyn.py /usr/lib/yum-plugins/ </description>
      
    </item>
    
  </channel>
</rss>
