<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hodžův blog &#187; Scriptíky</title>
	<atom:link href="http://hodza.net/category/linux/scriptiky/feed/" rel="self" type="application/rss+xml" />
	<link>http://hodza.net</link>
	<description>I přestože jsem paranoidní neznamená, že mě nedostanou...</description>
	<lastBuildDate>Sat, 05 May 2012 08:18:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>HowTo block facebook with iptables</title>
		<link>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/</link>
		<comments>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 10:50:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bezpečnost]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2213</guid>
		<description><![CDATA[Insert these lines into your firewall: iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j DROP iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j DROP iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp [...]]]></description>
			<content:encoded><![CDATA[<p>Insert these lines into your firewall:<br />
<code>iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.171.220.0-69.171.234.255 –dport 443 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 80 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.171.220.0-69.171.234.255 –dport 80 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 80 -j DROP<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 80 -j DROP</code><br />
Pretty simply eh?</p>
<p><i>Update 1.4.2012:</i><br />
<a title="Facebook subnets" href="http://whois.arin.net/rest/org/THEFA-3/nets" target="_blank">Registered Facebook subnets (ARIN)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo Install Latest Redmine on Debian 6 (Squeeze, Ruby-on-Rails, Apache2 Passenger)</title>
		<link>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/</link>
		<comments>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 14:13:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ostatní]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Redmine]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2191</guid>
		<description><![CDATA[This is a short .bash_history manual&#8230; First install fresh Debian Squueze from businesscard (when selecting packages uncheck ALL). Correct hostname: # vi /etc/hostname server.example.com # hostname -F /etc/hostname # exit Edit hosts file (delete all IPv6 entries): # vi /etc/hosts 127.0.0.1 localhost.localdomain localhost localdomain 1.2.3.4 server.example.com server Install ssh server and best editor : # [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short .bash_history manual&#8230;</p>
<p>First install fresh Debian Squueze from <a title="Debian Businesscard 64bit" href="http://cdimage.debian.org/debian-cd/6.0.4/ia64/iso-cd/debian-6.0.4-ia64-businesscard.iso">businesscard</a> (when selecting packages uncheck ALL).</p>
<p>Correct hostname:<br />
<code># vi /etc/hostname<br />
server.example.com</code><br />
<span id="more-2191"></span><br />
<code># hostname -F /etc/hostname<br />
# exit</code></p>
<p>Edit hosts file (delete all IPv6 entries):<br />
<code># vi /etc/hosts<br />
127.0.0.1 localhost.localdomain localhost localdomain<br />
1.2.3.4 server.example.com server</code></p>
<p>Install ssh server and best editor <img src='http://hodza.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> :<br />
<code># aptitude -y install ssh fail2ban vim-nox</code></p>
<p>Set default system editor (select /usr/bin/vim.nox):<br />
<code># update-alternatives --config editor</code></p>
<p>Add contrib and non-free repositories:<br />
<code># perl -i -pe 's/main/main contrib non-free/;' /etc/apt/sources.list<br />
# aptitude update<br />
# aptitude full-upgrade</code></p>
<p>Disable IPv6 globally:<br />
<code># echo "net.ipv6.conf.all.disable_ipv6 = 1" &gt;&gt; /etc/sysctl.conf<br />
# /sbin/sysctl -p /etc/sysctl.conf</code></p>
<p>Remove unwanted packages:<br />
<code># /etc/init.d/mpt-statusd stop<br />
# aptitude -y purge mpt-status</code></p>
<p>Fix Locales and Time Zone:<br />
<code># dpkg-reconfigure locales<br />
# dpkg-reconfigure tzdata</code></p>
<p>Install NTP server:<br />
<code># aptitude -y install ntpdate<br />
# ntpdate tik.cesnet.cz<br />
# aptitude install ntp</code><br />
<code># vi /etc/ntp.conf<br />
driftfile /var/lib/ntp/ntp.drift<br />
statistics loopstats peerstats clockstats<br />
filegen loopstats file loopstats type day enable<br />
filegen peerstats file peerstats type day enable<br />
filegen clockstats file clockstats type day enable<br />
server 0.debian.pool.ntp.org iburst<br />
server 1.debian.pool.ntp.org iburst<br />
server 2.debian.pool.ntp.org iburst<br />
server 3.debian.pool.ntp.org iburst<br />
restrict -4 default kod notrap nomodify nopeer noquery<br />
restrict 127.0.0.1</code></p>
<p><code># /etc/init.d/ntp restart<br />
# ntpq -p</code></p>
<p>Install Postfix mail server:<br />
<code># apt-get -y install postfix bsd-mailx</code></p>
<p><code># vi /etc/postfix/main.cf<br />
inet_interfaces = all<br />
inet_protocols = all<br />
mynetworks_style = host<br />
mynetworks = 127.0.0.0/8<br />
myhostname = server.example.com<br />
mydomain = example.com<br />
myorigin = $mydomain<br />
smtpd_banner = $myhostname ESMTP<br />
mydestination = localhost, localdomain, localhost.localdomain<br />
append_dot_mydomain = no<br />
append_at_myorigin = yes<br />
alias_maps = hash:/etc/aliases<br />
alias_database = hash:/etc/aliases<br />
biff = no<br />
recipient_delimiter = +<br />
mailbox_size_limit = 0<br />
mailbox_command = procmail -a "$EXTENSION"<br />
smtpd_helo_required = yes<br />
smtpd_helo_restrictions = permit_mynetworks,<br />
permit_sasl_authenticated,<br />
reject_invalid_helo_hostname<br />
smtpd_sender_restrictions = reject_non_fqdn_sender,<br />
reject_unknown_sender_domain,<br />
permit_mynetworks,<br />
permit_sasl_authenticated<br />
smtpd_recipient_restrictions = reject_non_fqdn_recipient,<br />
reject_unknown_recipient_domain,<br />
permit_mynetworks,<br />
permit_sasl_authenticated,<br />
reject_unauth_destination,<br />
reject_unlisted_recipient,<br />
permit<br />
smtpd_data_restrictions = reject_multi_recipient_bounce,<br />
reject_unauth_pipelining</code></p>
<p>Restart mail server:<br />
<code># /etc/init.d/postfix restart</code></p>
<p>Send test email:<br />
<code># echo "Test message" | mailx example@example.com</code></p>
<p>Install MySQL server:<br />
<code># aptitude install mysql-server mysql-client libmysqlclient-dev</code></p>
<p>Fine tunnig MySQL server:<br />
<code># mysql_secure_installation</code></p>
<p>Create MySQL database and user for Redmine:<br />
<code>mysql -u root -p</code><br />
<code>CREATE DATABASE redmine CHARACTER SET utf8;<br />
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';<br />
GRANT ALL privileges ON redmine.* TO 'redmine'@'localhost';<br />
quit</code></p>
<p>Install Ruby &amp; unnecessary tools:<br />
<code># aptitude install ruby libruby libopenssl-ruby libpgsql-ruby rubygems apache2 libapache2-mod-passenger subversion<br />
# cd /var/www/<br />
# svn co http://redmine.rubyforge.org/svn/branches/1.3-stable redmine<br />
# cd redmine/<br />
# cp config/database.yml.example config/database.yml</code></p>
<p>Configure redmine database:<br />
<code># vi config/database.yml<br />
production:<br />
adapter: mysql<br />
database: redmine<br />
host: localhost<br />
username: redmine<br />
password: my_password<br />
encoding: utf8</code></p>
<p>Install Rails &#038; populate database &#038; fix permission:<br />
<code># gem install rails -v 2.3.14<br />
# gem install rake -v 0.8.7<br />
# gem uninstall rake -v 0.9.2.2<br />
# gem install i18n<br />
# gem install mysql<br />
# gem install rdoc<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake config/initializers/session_store.rb<br />
# /var/lib/gems/1.8/bin/rake generate_session_store<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake db:migrate<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake redmine:load_default_data<br />
# cd /var/www/redmine<br />
# chown -R www-data:www-data ./*<br />
# chmod -R 755 files log tmp public/plugin_assets</code></p>
<p>Configure Apache Web server:<br />
<code># vi /etc/apache2/sites-available/default<br />
ServerName example.com<br />
Serveralias www.example.com<br />
ServerAdmin example@example.com<br />
DocumentRoot /var/www/redmine/public<br />
PassengerDefaultUser www-data<br />
RailsEnv production<br />
RailsBaseURI /redmine<br />
SetEnv X_DEBIAN_SITEID "default"<br />
Order allow,deny<br />
Allow from all<br />
AllowOverride all<br />
Options -MultiViews</code></p>
<p>Fine tunning Apache:<br />
<code># perl -i -pe 's/TraceEnable Off/#TraceEnable Off/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#TraceEnable On/TraceEnable On/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/ServerSignature On/#ServerSignature On/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#ServerSignature Off/ServerSignature Off/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/ServerTokens OS/#ServerTokens OS/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#ServerTokens Minimal/ServerTokens Minimal/;' /etc/apache2/conf.d/security</code><br />
<code># /etc/init.d/apache2 restart</code></p>
<p>That&#8217;s all folks&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HowTo install Oracle Instant Client and PHP OCI8 module under Debian Squueze (Ubuntu) 64bit</title>
		<link>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/</link>
		<comments>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:22:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2099</guid>
		<description><![CDATA[1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed). # mkdir -p /opt/oracle/instantclient # cd /opt/oracle/instantclient # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip" 2) Unzip files, move it in correct location and delete unnecessary archives unzip instantclient-basic-linux-x86-64-11.2.0.2.0.zip unzip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip mv instantclient_11_2/* ./ rm -r instantclient_11_2/ instantclient-basic-linux-x86-64-11.2.0.2.0.zip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip 3) Craate missing simlinks ln -s [...]]]></description>
			<content:encoded><![CDATA[<p>1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed).<br />
<code># mkdir -p /opt/oracle/instantclient<br />
# cd /opt/oracle/instantclient<br />
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip<br />
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip"<br />
</code><br />
<span id="more-2099"></span><br />
2) Unzip files, move it in correct location and delete unnecessary archives<br />
<code>unzip instantclient-basic-linux-x86-64-11.2.0.2.0.zip<br />
unzip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip<br />
mv instantclient_11_2/* ./<br />
rm -r instantclient_11_2/ instantclient-basic-linux-x86-64-11.2.0.2.0.zip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip<br />
</code></p>
<p>3) Craate missing simlinks<br />
<code>ln -s libclntsh.so.10.1 libclntsh.so<br />
ln -s libocci.so.10.1 libocci.so</code></p>
<p>4) Install packages<br />
<code># aptitude install build-essential php5-dev php-pear libaio1 </code><br />
<code># pecl install oci8 (on question reply: instantclient,/opt/oracle/instantclient)</code></p>
<p>5) Enable the oci8 module in the php.ini<br />
<code># vi /etc/php5/apache2/php.ini<br />
extension=oci8.so (put this line after the examples starting with ;Dynamic Extension).</code><br />
<code># vi /etc/php5E/cli/php.ini<br />
extension=oci8.so (put this line after the examples starting with ;Dynamic Extension).</code></p>
<p>6) Restart Apache Web server<br />
<code>/etc/init.d/apache2 restart</code></p>
<p>Now stop and start Apache. You should see the oci8 module in the output of phpinfo().</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo fix a problem &#8222;DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha&#8220; in Pyzor</title>
		<link>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/</link>
		<comments>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 18:02:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Smtp]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2096</guid>
		<description><![CDATA[After a fresh Pyzor install I&#8217;m getting this error message: # aptitude install pyzor # pyzor discover /usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5 import multifile downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x A simple fix for this problem exists. Open [...]]]></description>
			<content:encoded><![CDATA[<p>After a fresh Pyzor install I&#8217;m getting this error message:<br />
<code># aptitude install pyzor<br />
# pyzor discover<br />
/usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead<br />
  import sha<br />
/usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5<br />
  import multifile<br />
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x<br />
</code><br />
<span id="more-2096"></span><br />
A simple fix for this problem exists. Open file /usr/bin/pyzor.<br />
<code># vi /usr/bin/pyzor</code></p>
<p>Delete line<br />
<code>#!/usr/bin/python</code></p>
<p>And insert this new one<br />
<code>#!/usr/bin/python -Wignore::DeprecationWarning</code><br />
Test it<br />
<code># pyzor discover<br />
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x</code></p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo fix a problem &#8222;loading from master file managed-keys.bind failed: file not found&#8220; under Debain Squeeze</title>
		<link>http://hodza.net/2011/07/30/howto-fix-a-problem-loading-from-master-file-managed-keys-bind-failed-file-not-found-under-debain-squeeze/</link>
		<comments>http://hodza.net/2011/07/30/howto-fix-a-problem-loading-from-master-file-managed-keys-bind-failed-file-not-found-under-debain-squeeze/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 16:30:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2091</guid>
		<description><![CDATA[# touch /var/cache/bind/managed-keys.bind # chown root:bind /var/cache/bind/managed-keys.bind # /etc/init.d/bind9 restart # tail -n 50 /var/log/daemon.log]]></description>
			<content:encoded><![CDATA[<p><code># touch /var/cache/bind/managed-keys.bind<br />
# chown root:bind /var/cache/bind/managed-keys.bind<br />
# /etc/init.d/bind9 restart<br />
# tail -n 50 /var/log/daemon.log<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/07/30/howto-fix-a-problem-loading-from-master-file-managed-keys-bind-failed-file-not-found-under-debain-squeeze/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo remove unwanted whitespace with vim</title>
		<link>http://hodza.net/2011/07/24/howto-remove-unwanted-whitespace-with-vim/</link>
		<comments>http://hodza.net/2011/07/24/howto-remove-unwanted-whitespace-with-vim/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 05:20:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scriptíky]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2089</guid>
		<description><![CDATA[Delete all trailing whitespace (a space or a tab) at the end of each line with: :%s/\s\+$//]]></description>
			<content:encoded><![CDATA[<p>Delete all trailing whitespace (a space or a tab) at the end of each line with:<br />
<code>:%s/\s\+$//</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/07/24/howto-remove-unwanted-whitespace-with-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo restore the &#8216;Show Desktop&#8217; shortcut in Windows XP or Windows 2003</title>
		<link>http://hodza.net/2011/07/21/howto-restore-the-show-desktop-shortcut-in-windows-xp-or-windows-2003/</link>
		<comments>http://hodza.net/2011/07/21/howto-restore-the-show-desktop-shortcut-in-windows-xp-or-windows-2003/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 19:06:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2086</guid>
		<description><![CDATA[1) Open notepad. 2) Copy the below code. [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop 3) Save the file with the name ShowDesktop.scf some where on your system or on your desktop. 4) Drag and drop the file to the Quick launch area. That’s it&#8230;]]></description>
			<content:encoded><![CDATA[<p>1) Open notepad.<br />
2) Copy the below code.</p>
<p><code>[Shell]<br />
Command=2<br />
IconFile=explorer.exe,3<br />
[Taskbar]<br />
Command=ToggleDesktop</code></p>
<p>3) Save the file with the name ShowDesktop.scf some where on your system or on your desktop.<br />
4) Drag and drop the file to the Quick launch area.</p>
<p>That’s it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/07/21/howto-restore-the-show-desktop-shortcut-in-windows-xp-or-windows-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo install TSM Backup client in Debian Squeeze (Ubuntu) 64bit</title>
		<link>http://hodza.net/2011/06/15/howto-install-tsm-backup-client-in-debian-squeeze-ubuntu-64bit/</link>
		<comments>http://hodza.net/2011/06/15/howto-install-tsm-backup-client-in-debian-squeeze-ubuntu-64bit/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 12:09:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2059</guid>
		<description><![CDATA[1. Update Debian system and install required packages # aptitude update # aptitude full-upgrade # aptitude install alien libstdc++6 ksh ia32-libs 2. Go to directory /usr/src/ and download latest package from IBM web site. After download unpack archive. # cd /usr/src/ # wget "ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar" # tar -xvf 6.2.2.0-TIV-TSMBAC-LinuxX86.tar 3. Unpack RPM files # alien -g -c TIVsm-API.i386.rpm [...]]]></description>
			<content:encoded><![CDATA[<p>1. Update Debian system and install required packages<br />
<code># aptitude update<br />
# aptitude full-upgrade<br />
# aptitude install alien libstdc++6 ksh ia32-libs</code></p>
<p>2. Go to directory <a title="/usr/src/">/usr/src/</a> and download latest package from IBM web site. After download unpack archive.<br />
<code># cd /usr/src/<br />
# wget "<a title="ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar" href="ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar">ftp://service.boulder.ibm.com/storage/tivoli-storage-management/maintenance/client/v6r2/Linux/LinuxX86/v622/6.2.2.0-TIV-TSMBAC-LinuxX86.tar</a>"<br />
# tar -xvf  6.2.2.0-TIV-TSMBAC-LinuxX86.tar</code></p>
<p><span id="more-2059"></span>3. Unpack RPM files<br />
<code># alien -g -c TIVsm-API.i386.rpm<br />
# alien -g -c TIVsm-API64.i386.rpm<br />
# alien -g -c TIVsm-BA.i386.rpm<br />
# alien -g -c gskcrypt32-8.0.13.4.linux.x86.rpm<br />
# alien -g -c gskcrypt64-8.0.13.4.linux.x86_64.rpm<br />
# alien -g -c gskssl32-8.0.13.4.linux.x86.rpm<br />
# alien -g -c gskssl64-8.0.13.4.linux.x86_64.rpm</code></p>
<p>4. Make a correct path for debian build script<br />
<code># mv TIVsm-API-6.2.2/debian TIVsm-API-6.2.2/DEBIAN<br />
# mv TIVsm-API64-6.2.2/debian TIVsm-API64-6.2.2/DEBIAN<br />
# mv TIVsm-BA-6.2.2/debian TIVsm-BA-6.2.2/DEBIAN<br />
# mv gskcrypt32-8.0/debian gskcrypt32-8.0/DEBIAN<br />
# mv gskcrypt64-8.0/debian gskcrypt64-8.0/DEBIAN<br />
# mv gskssl32-8.0/debian gskssl32-8.0/DEBIAN<br />
# mv gskssl64-8.0/debian gskssl64-8.0/DEBIAN</code></p>
<p>5. Make a correct file permissions for debian build script<br />
<code># chmod 755 TIVsm-API-6.2.2/DEBIAN/{postinst,prerm}<br />
# chmod 755 TIVsm-API64-6.2.2/DEBIAN/{postinst,prerm}<br />
# chmod 755 TIVsm-BA-6.2.2/DEBIAN/{postinst,prerm}<br />
# chmod 755 gskcrypt32-8.0/DEBIAN/postinst<br />
# chmod 755 gskcrypt64-8.0/DEBIAN/postinst<br />
# chmod 755 gskssl32-8.0/DEBIAN/{postinst,prerm}<br />
# chmod 755 gskssl64-8.0/DEBIAN/{postinst,prerm}</code></p>
<p>6. Edit control files for each package<br />
<code># vi TIVsm-API-6.2.2/DEBIAN/control<br />
Package: tivsm-api<br />
Version: 6.2.2<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM Tivoli Storage Manager API</code></p>
<p><code># vi TIVsm-API64-6.2.2/DEBIAN/control<br />
Package: tivsm-api64<br />
Version: 6.2.2<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM Tivoli Storage Manager API</code></p>
<p><code># vi TIVsm-BA-6.2.2/DEBIAN/control<br />
Package: tivsm-ba<br />
Version: 6.2.2<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM Tivoli Storage Manager Client</code></p>
<p><code># vi gskcrypt32-8.0/DEBIAN/control<br />
Package: gskcrypt32<br />
Version: 8.0<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM GSKit Cryptography Runtime</code></p>
<p><code># vi gskcrypt64-8.0/DEBIAN/control<br />
Package: gskcrypt64<br />
Version: 8.0.13.4<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM GSKit Cryptography Runtime</code></p>
<p><code># vi gskssl32-8.0/DEBIAN/control<br />
Package: gskssl32<br />
Version: 8.0.13.4<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM GSKit SSL Runtime With Acme Toolkit</code></p>
<p><code># vi gskssl64-8.0/DEBIAN/control<br />
Package: gskssl64<br />
Version: 8.0.13.4<br />
Architecture: amd64<br />
Maintainer: Milan Kozak &lt;<a title="hodza@hodza.net" href="mailto:hodza@hodza.net">hodza@hodza.net</a>&gt;<br />
Section: alien<br />
Priority: extra<br />
Description: IBM GSKit SSL Runtime With Acme Toolkit</code></p>
<p>7. Build deb packages<br />
<code># dpkg -b TIVsm-API-6.2.2<br />
# dpkg -b TIVsm-API64-6.2.2<br />
# dpkg -b TIVsm-BA-6.2.2<br />
# dpkg -b gskcrypt32-8.0<br />
# dpkg -b gskcrypt64-8.0<br />
# dpkg -b gskssl32-8.0<br />
# dpkg -b gskssl64-8.0</code></p>
<p>8. Install all deb packages<br />
<code># dpkg -i TIVsm-API-6.2.2.deb<br />
# dpkg -i TIVsm-API64-6.2.2.deb<br />
# dpkg -i TIVsm-BA-6.2.2.deb<br />
# dpkg -i gskcrypt32-8.0.deb<br />
# dpkg -i gskcrypt64-8.0.deb<br />
# dpkg -i gskssl32-8.0.deb<br />
# dpkg -i gskssl64-8.0.deb</code></p>
<p>9. Create missing symlinks<br />
<code># ln -s /opt/tivoli/tsm/client/api/bin/libgpfs.so /lib32/<br />
# ln -s /opt/tivoli/tsm/client/api/bin/libdmapi.so <a title="/lib32/">/lib32/</a><br />
# ln -s /usr/lib/libgsk8cms.so /lib32/<br />
# ln -s /usr/lib/libgsk8ssl.so /lib32/<br />
# ln -s /usr/lib/libgsk8sys.so /lib32/<br />
# ln -s /usr/lib/libgsk8iccs.so /lib32/</code></p>
<p>10. Test TSM Client<br />
<code># dsmc</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/06/15/howto-install-tsm-backup-client-in-debian-squeeze-ubuntu-64bit/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Generování Self-Signed Certifikátu skriptem</title>
		<link>http://hodza.net/2009/06/09/generovani-self-signed-certifikatu-skriptem/</link>
		<comments>http://hodza.net/2009/06/09/generovani-self-signed-certifikatu-skriptem/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 07:23:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Bezpečnost]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=245</guid>
		<description><![CDATA[Už mě to nebaví pořád psát, takže: #!/bin/bash SERVER_NAME=$1 OPENSSL_PATH=/usr/bin/openssl $OPENSSL_PATH genrsa -des3 -out $SERVER_NAME.key 1024 $OPENSSL_PATH genrsa -out $SERVER_NAME.key 1024 $OPENSSL_PATH rsa -in $SERVER_NAME.key -out $SERVER_NAME.pem $OPENSSL_PATH req -new -key $SERVER_NAME.pem -out $SERVER_NAME.csr $OPENSSL_PATH x509 -req -days 365 -in $SERVER_NAME.csr -signkey $SERVER_NAME.pem -out $SERVER_NAME.crt]]></description>
			<content:encoded><![CDATA[<p>Už mě to nebaví pořád psát, takže:</p>
<p><code>#!/bin/bash<br />
SERVER_NAME=$1<br />
OPENSSL_PATH=/usr/bin/openssl<br />
$OPENSSL_PATH genrsa -des3 -out $SERVER_NAME.key 1024<br />
$OPENSSL_PATH genrsa -out $SERVER_NAME.key 1024<br />
$OPENSSL_PATH rsa -in $SERVER_NAME.key -out $SERVER_NAME.pem<br />
$OPENSSL_PATH req -new -key $SERVER_NAME.pem -out $SERVER_NAME.csr<br />
$OPENSSL_PATH x509 -req -days 365 -in $SERVER_NAME.csr -signkey $SERVER_NAME.pem -out $SERVER_NAME.crt<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2009/06/09/generovani-self-signed-certifikatu-skriptem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables v1.3.6: X Couldn&#8217;t load match `ipp2p&#8217;</title>
		<link>http://hodza.net/2007/09/13/iptables-v136-x-couldnt-load-match-ipp2p/</link>
		<comments>http://hodza.net/2007/09/13/iptables-v136-x-couldnt-load-match-ipp2p/#comments</comments>
		<pubDate>Thu, 13 Sep 2007 07:03:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=75</guid>
		<description><![CDATA[Také se Vám stalo, že kompilace IPP2P proběhla v pořádku, ale pčesto iptables hlásí při zavádění modulu chybové hlášení &#8222;iptables v1.3.6: X Couldn&#8217;t load match `ipp2p&#8217;&#8222;? Řešení je jednoduché &#8211; v souboru makefile zaměňte při vytváření knihovny ld za gcc. Celý postup s mým patchem naleznete zde: apt-get install patch cd /usr/src wget http://ipp2p.org/downloads/ipp2p-0.8.2.tar.gz tar [...]]]></description>
			<content:encoded><![CDATA[<p>Také se Vám stalo, že kompilace <a href="http://ipp2p.org/" title="IPP2P HomePage">IPP2P</a> proběhla v pořádku, ale pčesto <a href="http://netfilter.org/projects/iptables/index.html" title="Netfilter HomePage">iptables</a> hlásí při zavádění  modulu chybové hlášení &#8222;<em>iptables v1.3.6: X Couldn&#8217;t load match `ipp2p&#8217;</em>&#8222;? Řešení je jednoduché &#8211; v souboru makefile zaměňte při vytváření knihovny <em>ld</em> za <em>gcc</em>. Celý postup s mým patchem naleznete zde:</p>
<p><code>apt-get install patch<br />
cd /usr/src<br />
wget http://ipp2p.org/downloads/ipp2p-0.8.2.tar.gz<br />
tar -xzf ipp2p-0.8.2.tar.gz<br />
cd ipp2p-0.8.2<br />
wget http://hodza.net/wp-content/files/ipp2p-0.8.2.patch<br />
patch Makefile &lt; ipp2p-0.8.2.patch<br />
make<br />
...</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2007/09/13/iptables-v136-x-couldnt-load-match-ipp2p/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

