<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.disorder.sk/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>wiki.disorder.sk howto</title>
        <description></description>
        <link>http://wiki.disorder.sk/</link>
        <lastBuildDate>Sun, 20 May 2012 09:46:17 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://wiki.disorder.sk/lib/images/favicon.ico</url>
            <title>wiki.disorder.sk</title>
            <link>http://wiki.disorder.sk/</link>
        </image>
        <item>
            <title>howto:acpi_handler</title>
            <link>http://wiki.disorder.sk/howto:acpi_handler?rev=1265745058&amp;do=diff</link>
            <description>There were a lot of wild changes lately in ACPI event names so I was forced to clean up the mess that was growing over the years.  Now it's cleaner, modifiable, extendable and maintainable.

It does not depend on HAL in any way and I am finally free of any power manager (depends on pm-utils for suspend command though).</description>
        <category>howto</category>
            <pubDate>Tue, 09 Feb 2010 20:50:58 +0200</pubDate>
        </item>
        <item>
            <title>howto:anchoring_latex_floats_figures_tables</title>
            <link>http://wiki.disorder.sk/howto:anchoring_latex_floats_figures_tables?rev=1257115158&amp;do=diff</link>
            <description>There is a way to anchor float strictly to the place where it appears.  In Debian you will need to install texlive-latex-recommended (for float.sty).


\usepackage{float}
\restylefloat{figure}


Now you can anchor figure exactly to the place where it appears in the text by using [H] position:</description>
        <category>howto</category>
            <pubDate>Sun, 01 Nov 2009 23:39:18 +0200</pubDate>
        </item>
        <item>
            <title>howto:apache_mass_virtual_hosting</title>
            <link>http://wiki.disorder.sk/howto:apache_mass_virtual_hosting?rev=1178739624&amp;do=diff</link>
            <description>Official documentation for Apache's vhost_alias module can be found at &lt;http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html&gt;.  Some configurations of mass hosting can be also found there -- &lt;http://httpd.apache.org/docs/2.2/vhosts/mass.html&gt;.</description>
        <category>howto</category>
            <pubDate>Wed, 09 May 2007 21:40:24 +0200</pubDate>
        </item>
        <item>
            <title>howto:audio_recording_in_linux</title>
            <link>http://wiki.disorder.sk/howto:audio_recording_in_linux?rev=1327951937&amp;do=diff</link>
            <description>Please note that I am only amateur.  Also this is not of much use for someone seeking tutorial, just few tips for Ardour:


	*  turn on editor mixer strip (Shift-E) and there you can access input selection for Track (for recording) or Bus (for real-time monitoring) and also add effects or external inserts just underneath it
	*  Busses are apparently useful also for track which share same effects (or sharing same settings for monitoring with effects while recording clean track and using the outpu…</description>
        <category>howto</category>
            <pubDate>Mon, 30 Jan 2012 20:32:17 +0200</pubDate>
        </item>
        <item>
            <title>howto:autoconfigured_debian_x.org_on_thinkpad_evdev</title>
            <link>http://wiki.disorder.sk/howto:autoconfigured_debian_x.org_on_thinkpad_evdev?rev=1326993148&amp;do=diff</link>
            <description>So it happened I couldn't use kbd and mouse drivers at all with recent upgrade so I was forced to fix the evdev configuration.

First thing is to get rid of /etc/X11/xorg.conf, we won't need it for keyboard or mouse and you probably won't need it for anything else.  You can just rename it.</description>
        <category>howto</category>
            <pubDate>Thu, 19 Jan 2012 18:12:28 +0200</pubDate>
        </item>
        <item>
            <title>howto:creating_a5_booklets_from_pdf</title>
            <link>http://wiki.disorder.sk/howto:creating_a5_booklets_from_pdf?rev=1286800488&amp;do=diff</link>
            <description>This script takes PDF file and number of pager (multiply of 4) and creates new PDF ordered for booklet printing.

:!: Make sure you're using the right paper orientation and ordering when printing in batches (odd, even pages) -- you should try it on 4-page document first.  Not tested on duplex printer.</description>
        <category>howto</category>
            <pubDate>Mon, 11 Oct 2010 14:34:48 +0200</pubDate>
        </item>
        <item>
            <title>howto:creating_debian_packages</title>
            <link>http://wiki.disorder.sk/howto:creating_debian_packages?rev=1219212322&amp;do=diff</link>
            <description>checkinstall


checkinstall is a handy tool which automagically creates packages from source.  It's pretty straightforward to use and very handy if you need to quickly create a package.

The typical usage is:


make
fakeroot checkinstall --install=0</description>
        <category>howto</category>
            <pubDate>Wed, 20 Aug 2008 08:05:22 +0200</pubDate>
        </item>
        <item>
            <title>howto:creating_gnu_linux_live_cd</title>
            <link>http://wiki.disorder.sk/howto:creating_gnu_linux_live_cd?rev=1218733842&amp;do=diff</link>
            <description>Universal Linux Live scripts


With Linux Live scripts can make image of any GNU/Linux system.  Short and straightforward howto is on &lt;http://www.linux-live.org/&gt;.  Version 6 should make live CDs almost out of the box (:!: but I haven't been lucky with it, please tell me if you know how to do it).  Great compression ratio.</description>
        <category>howto</category>
            <pubDate>Thu, 14 Aug 2008 19:10:42 +0200</pubDate>
        </item>
        <item>
            <title>howto:debian_on_ion_system_htpc</title>
            <link>http://wiki.disorder.sk/howto:debian_on_ion_system_htpc?rev=1297104249&amp;do=diff</link>
            <description>Base system setup applies to all computers.  Tweaks are for ASUS AT3IONT-I Deluxe motherboard with nVidia ION (and Intel Atom).

:!: Later I installed XBMC 10.0 “Dharma” which seems to be better and with more ergonomic OSD than Boxee (not as pretty though).  There is also plugin for CSFD.cz database.</description>
        <category>howto</category>
            <pubDate>Mon, 07 Feb 2011 19:44:09 +0200</pubDate>
        </item>
        <item>
            <title>howto:debian_reinstall</title>
            <link>http://wiki.disorder.sk/howto:debian_reinstall?rev=1185392053&amp;do=diff</link>
            <description>COLUMNS=200 dpkg -l | awk '/^[hi]i/{print $2}' | xargs apt-get -y --reinstall install


or


dpkg --get-selections &gt; packages


and later


dpkg --set-selections &lt; packages &amp;&amp; apt-get install</description>
        <category>howto</category>
            <pubDate>Wed, 25 Jul 2007 21:34:13 +0200</pubDate>
        </item>
        <item>
            <title>howto:debian_setup_for_z61m</title>
            <link>http://wiki.disorder.sk/howto:debian_setup_for_z61m?rev=1217148902&amp;do=diff</link>
            <description>Some notes about installing amd64 (Debian 4.0 etch) distribution on notebook.  No proprietary drivers were used (it is quite huge problem on amd64 :)).

Everything seems to have appropriate driver.

Hardware

Input devices


Touchpad and trackpoint are working out of the box but I have tweaked their default behaviour.</description>
        <category>howto</category>
            <pubDate>Sun, 27 Jul 2008 10:55:02 +0200</pubDate>
        </item>
        <item>
            <title>howto:file_rescue</title>
            <link>http://wiki.disorder.sk/howto:file_rescue?rev=1219212294&amp;do=diff</link>
            <description>magicrescue is a tool for scanning damaged partitions and rescuing files which are recognised by their format's magic bytes.

photorec is similar tool focused on graphics formats but can recover files in other formats as well.  Usually comes with the testdisk program.</description>
        <category>howto</category>
            <pubDate>Wed, 20 Aug 2008 08:04:54 +0200</pubDate>
        </item>
        <item>
            <title>howto:generating_apache_ssl_certificate</title>
            <link>http://wiki.disorder.sk/howto:generating_apache_ssl_certificate?rev=1209060506&amp;do=diff</link>
            <description>The latest way how to do it (on Debian) is:


/usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem</description>
        <category>howto</category>
            <pubDate>Thu, 24 Apr 2008 20:08:26 +0200</pubDate>
        </item>
        <item>
            <title>howto:hashing_passwords_with_blowfish</title>
            <link>http://wiki.disorder.sk/howto:hashing_passwords_with_blowfish?rev=1188170193&amp;do=diff</link>
            <description>Instructions applies to Debian but should be similar on other distributions.

Firstly you need to install PAM module capable of Blowfish, install libpam-unix2:



apt-get install libpam-unix2


Then change PAM configuration in /etc/pam.d:


	*  in /etc/pam.d/common-account change:</description>
        <category>howto</category>
            <pubDate>Mon, 27 Aug 2007 01:16:33 +0200</pubDate>
        </item>
        <item>
            <title>howto:ipv6_connectivity</title>
            <link>http://wiki.disorder.sk/howto:ipv6_connectivity?rev=1185392050&amp;do=diff</link>
            <description>SixXS tunnel broker


I'm using this free tunnel broker (homepage) and I'm quite happy with the service.  It's mainly european tunnel broker which provides tunnels using several technologies including AYIYA which can traverse NAT.

You have to register and wait for account creation (mine was accepted in few minutes and tunnel was created about a hour later).</description>
        <category>howto</category>
            <pubDate>Wed, 25 Jul 2007 21:34:10 +0200</pubDate>
        </item>
        <item>
            <title>howto:latex_with_latin2_fonts</title>
            <link>http://wiki.disorder.sk/howto:latex_with_latin2_fonts?rev=1185392055&amp;do=diff</link>
            <description>There are several ways how to enable accented characters, you can try all of them an choose the one you like most.  Example document is using one I think is best (but you have to install cs fonts (based on Computer Modern)).

You can use normal CM fonts with added diacritics (looks weird):</description>
        <category>howto</category>
            <pubDate>Wed, 25 Jul 2007 21:34:15 +0200</pubDate>
        </item>
        <item>
            <title>howto:lvm_configuration</title>
            <link>http://wiki.disorder.sk/howto:lvm_configuration?rev=1218733621&amp;do=diff</link>
            <description>The terminology of LVM:


	*  physical volumes -- physical disks and disk partitions to be used by LVM
	*  volume groups -- virtual disk composed of physical volumes
	*  logical volumes -- virtual partitions which we use and could be easily managed</description>
        <category>howto</category>
            <pubDate>Thu, 14 Aug 2008 19:07:01 +0200</pubDate>
        </item>
        <item>
            <title>howto:partition_rescue_and_backup_tools</title>
            <link>http://wiki.disorder.sk/howto:partition_rescue_and_backup_tools?rev=1179652168&amp;do=diff</link>
            <description>Rescue

gpart


Tool for recovering partitions after partiotion table loss.  Extended partitions may not be detected correctly.

testdisk


testdisk is similar to gpart but also recognises Linux RAID and LVM 2.

dd_rescue and gddrescue


Very handy tools for copying from damaged media or combining more damaged sources.</description>
        <category>howto</category>
            <pubDate>Sun, 20 May 2007 11:09:28 +0200</pubDate>
        </item>
        <item>
            <title>howto:phone_backup</title>
            <link>http://wiki.disorder.sk/howto:phone_backup?rev=1328265914&amp;do=diff</link>
            <description>Some parts apply to Nokia E52 (Symbian 9) which is not supported by Gnapplet.  If you have supported phone, try can also try Gnokii (no idea which version) or Wammu/Gammu 1.29.90.

Funambol


:!: It works but it's also pretty huge bundle of Java applications.  Try the other method for something lightweight.</description>
        <category>howto</category>
            <pubDate>Fri, 03 Feb 2012 11:45:14 +0200</pubDate>
        </item>
        <item>
            <title>howto:qt_4_blurry_fonts_fix</title>
            <link>http://wiki.disorder.sk/howto:qt_4_blurry_fonts_fix?rev=1270832145&amp;do=diff</link>
            <description>Qt 4 was supposed to fix font rendering.  I remember that it worked for a while but then it stopped.

Finally, I have found the reason.  It ignores my subpixel setting in .fonts.conf (sure, what else would it be).  In addition you have to add Xft.rgba: none to your .Xdefaults or run:</description>
        <category>howto</category>
            <pubDate>Fri, 09 Apr 2010 18:55:45 +0200</pubDate>
        </item>
        <item>
            <title>howto:quota_setup</title>
            <link>http://wiki.disorder.sk/howto:quota_setup?rev=1219162731&amp;do=diff</link>
            <description>Install quota support.


apt-get install quota quotatool


Add usrquota or grpquota option to /etc/fstab records for which user or group quota should apply.  Reboot or remount.

Load quota kernel module (also add it to /etc/modules).


modprobe quota_v2
echo quota_v2 &gt;&gt; /etc/modules</description>
        <category>howto</category>
            <pubDate>Tue, 19 Aug 2008 18:18:51 +0200</pubDate>
        </item>
        <item>
            <title>howto:recovering_windows_nt_passwords</title>
            <link>http://wiki.disorder.sk/howto:recovering_windows_nt_passwords?rev=1179673459&amp;do=diff</link>
            <description>Password can be changed easily with small live CD (&lt;http://home.eunet.no/~pnordahl/ntpasswd/&gt;) but you can also install the program chntpw in your regular distribution (&lt;http://packages.debian.org/stable/admin/chntpw&gt;).  Or you can crack it with ophcrack.</description>
        <category>howto</category>
            <pubDate>Sun, 20 May 2007 17:04:19 +0200</pubDate>
        </item>
        <item>
            <title>howto:securing_ssh</title>
            <link>http://wiki.disorder.sk/howto:securing_ssh?rev=1218733645&amp;do=diff</link>
            <description>Obviously the first step is to make sure root can't log in.  Disable password authentication (if possible and desirable).  Maybe test for weak passwords with john or disable SSH login for users which are not trusted (or enforce password policy).

Banning bruteforce


denyhosts or fail2ban (&lt;http://debaday.debian.net/2007/04/29/fail2ban-an-enemy-of-script-kiddies/&gt; -- useful article and comments).  Or you can use ipt_recent module for iptables:</description>
        <category>howto</category>
            <pubDate>Thu, 14 Aug 2008 19:07:25 +0200</pubDate>
        </item>
        <item>
            <title>howto:simple_nat_with_iptables</title>
            <link>http://wiki.disorder.sk/howto:simple_nat_with_iptables?rev=1176996797&amp;do=diff</link>
            <description>iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -d 0/0 -j MASQUERADE


where 192.168.0.0/24 is network behind router (PC) and eth0 is interface with connectivity.  This iptables rule will allow forwarding packets from NAT-ed devices to any IP address.</description>
        <category>howto</category>
            <pubDate>Thu, 19 Apr 2007 17:33:17 +0200</pubDate>
        </item>
        <item>
            <title>howto:sip_pbx_-_opensips_and_asterisk_configuration</title>
            <link>http://wiki.disorder.sk/howto:sip_pbx_-_opensips_and_asterisk_configuration?rev=1259280169&amp;do=diff</link>
            <description>This document explains how to install and configure Asterisk 1.6
PBX and OpenSIPS (OpenSER or Kamailio will probably work too).

OpenSIPS will handle registrations and SIP/SIMPLE IM and presence.
Asterisk will do everything else.  This will not scale well but
OpenSIPS configuration can be modified to not route all calls through
Asterisk but this will make some services unavailable.</description>
        <category>howto</category>
            <pubDate>Fri, 27 Nov 2009 01:02:49 +0200</pubDate>
        </item>
        <item>
            <title>howto:standalone_common_lisp_executables</title>
            <link>http://wiki.disorder.sk/howto:standalone_common_lisp_executables?rev=1268333008&amp;do=diff</link>
            <description>Let's say we have code like this:


(defpackage :app
  (:use :cl)
  (:export :main))

(in-package :app)

(defun main ()
  3)


cl-launch


This is supposed to work like this:



cl-launch --lisp sbcl --system app --dump app-image
cl-launch --image app-image --init '(app:main)' -o app</description>
        <category>howto</category>
            <pubDate>Thu, 11 Mar 2010 19:43:28 +0200</pubDate>
        </item>
        <item>
            <title>howto:tunneling_traffic_to_the_nat-ed_computer</title>
            <link>http://wiki.disorder.sk/howto:tunneling_traffic_to_the_nat-ed_computer?rev=1213862142&amp;do=diff</link>
            <description>For this we need SSH client, server with public IP address (any computer with public IP and OpenSSH daemon), shell account on this server and administrator willing to change default SSH daemon configuration :)

We almost certainly need to set this tunnel up from script and therefore we need to generate a key with ssh-keygen utility (distributed along with OpenSSH client).  It is recommended to generate a new key for any script.</description>
        <category>howto</category>
            <pubDate>Thu, 19 Jun 2008 09:55:42 +0200</pubDate>
        </item>
        <item>
            <title>howto:video_slideshow</title>
            <link>http://wiki.disorder.sk/howto:video_slideshow?rev=1277844217&amp;do=diff</link>
            <description>With ffmpeg:


ffmpeg -y -r 1 -loop_input -shortest -i &lt;IMAGE&gt; -acodec copy -i &lt;AUDIO&gt; output.avi


	*  -y -- overwrite output,
	*  -r 1 -- fps=1,
	*  -loop_input -- loop image,
	*  -shortest -- end when we run out of inputs, 
	*  -acodec copy -- don't recode</description>
        <category>howto</category>
            <pubDate>Tue, 29 Jun 2010 22:43:37 +0200</pubDate>
        </item>
        <item>
            <title>howto:webkit_snippets</title>
            <link>http://wiki.disorder.sk/howto:webkit_snippets?rev=1263412711&amp;do=diff</link>
            <description>These snippets show how to use WebKit bindings in Python and Ruby.


import gtk, webkit

import gobject
gobject.threads_init()

view = webkit.WebView()

# don't load images, we're not visible
s = view.get_settings()
s.set_property('auto-load-images', False)

w = gtk.Window()
w.add(view)
#w.show_all()

view.open('URL here')

# how to get HTML
def get_page(webview):
    # or use get_main_frame.get_data_source.get_data (since webkit 1.1.14)
    webview.execute_script(&quot;document.title=document.docume…</description>
        <category>howto</category>
            <pubDate>Wed, 13 Jan 2010 20:58:31 +0200</pubDate>
        </item>
    </channel>
</rss>

