<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6337741957437560735</id><updated>2011-10-05T15:39:29.700+03:00</updated><category term='color scheme'/><category term='virtualization'/><category term='packaging'/><category term='grub'/><category term='revision control'/><category term='ipfw'/><category term='bugs'/><category term='lscolors'/><category term='annoyance'/><category term='mailbox'/><category term='asus'/><category term='last.fm'/><category term='postfix'/><category term='pidgin'/><category term='tag'/><category term='rapidshare'/><category term='evolution'/><category term='shockwave'/><category term='monotone'/><category term='maildir'/><category term='procfs'/><category term='locales'/><category term='libre.fm'/><category term='gimp'/><category term='windows'/><category term='ape'/><category term='freebsd'/><category term='mc'/><category term='firewall'/><category term='wget'/><category term='pro51v series'/><category term='linux'/><category term='apache'/><category term='photo editing'/><category term='sysctl'/><category term='m51vr'/><category term='convert'/><category term='core'/><category term='intro'/><category term='volume'/><category term='utf-8'/><category term='rename'/><category term='firefly'/><category term='sendmail'/><category term='bash'/><category term='kde'/><category term='openssh'/><category term='split'/><category term='pro51vr'/><category term='transparency'/><category term='numkey'/><category term='flac'/><category term='kernel'/><category term='numpad'/><category term='mp3'/><category term='microphone'/><category term='sata'/><category term='ubuntu'/><category term='amarok'/><category term='mt-daapd'/><category term='numlock'/><category term='svn'/><category term='kmail'/><title type='text'>Plug-and-Pray</title><subtitle type='html'>IT blog, focusing &lt;i&gt;mainly&lt;/i&gt; on Linux and FreeBSD.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>44</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-311022581094799039</id><published>2010-02-14T09:47:00.012+02:00</published><updated>2010-02-14T17:47:12.565+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='rapidshare'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><title type='text'>RapidShare Premium, wget and your download queue</title><content type='html'>&lt;span style="font-family: verdana"&gt;&lt;p&gt;So you just bought a RapidShare Premium account and would like to automatize fetching your link list? Here is a very raw solution with cookie-based authentication handled by &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; and a download queue in the form of a plain text file.&lt;/p&gt;&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: verdana"&gt;&lt;h3&gt;An overview&lt;/h3&gt;&lt;p&gt;The idea for getting your download queue with &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt;, using your RapidShare Premium account, is very simple. Here are the main steps:&lt;/p&gt;&lt;ul style="text-align: justify"&gt;&lt;li&gt;Enable direct downloads from your RapidShare profile;&lt;/li&gt;&lt;li&gt;Make &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; save your RapidShare cookie;&lt;/li&gt;&lt;li&gt;Make &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; use the cookie to fetch a link;&lt;/li&gt;&lt;li&gt;Paste all your links in a plain text file;&lt;/li&gt;&lt;li&gt;Write a basic bash script that reads the said plain text file – your "download queue".&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;The step-by-step guide&lt;/h3&gt;&lt;p&gt;&lt;b&gt;1.&lt;/b&gt; Log into your RapidShare Premium account and go to "Settings". Under the "Configuration" paragraph, you need to tick the "&lt;i&gt;Direct downloads&lt;/i&gt;" check box and then click the "Save" button. The direct downloads option means that you will not be shown the free-vs-premium download page each time you open a RapidShare link. You will get the "save as" dialog instead.&lt;/p&gt;&lt;p&gt;&lt;b&gt;2.&lt;/b&gt; You need to make &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; to store your RapidShare cookie.&lt;blockquote&gt;&lt;pre span style="font-family: courier new"&gt;wget &lt;br /&gt;    --save-cookies ~/.rs \ &lt;br /&gt;    --post-data "login=&lt;i&gt;YOUR_RS_USERNAME&lt;/i&gt;&amp;password=&lt;i&gt;YOUR_RS_PASSWORD&lt;/i&gt;" \ &lt;br /&gt;    -O - \ &lt;br /&gt;    https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;&lt;p&gt;You obviously need to replace &lt;span style="font-family: courier new"&gt;&lt;i&gt;YOUR_RS_USERNAME&lt;/i&gt;&lt;/span&gt; with your RapidShare user name and &lt;span style="font-family: courier new"&gt;&lt;i&gt;YOUR_RS_PASSWORD&lt;/i&gt;&lt;/span&gt; with the password associated to your Premium account. The cookie will be saved in a new file called &lt;span style="font-family: courier new"&gt;.rs&lt;/span&gt;, in your home directory. It is now time to adjust the permissions on that file:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;chmod 400 ~/.rs&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;There is one final thing to do here: suppose somebody browses through your command history. You would not want that. So take a look with&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;history | tail&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;You will probably see an output such as:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;503 ls&lt;br /&gt;504 wget --save-cookies ~/.rs --post-data "login=YOUR_RS_USERNAME&amp;password=YOUR_RS_PASSWORD" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi&lt;br /&gt;505 chmod 400 ~/.rs&lt;br /&gt;506 history | tail&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;Notice the "offset" (the number associated to the &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; command) – in our example, it is 504. You will just have to delete the command at this offset from your bash history:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;history -d 504&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;&lt;b&gt;3.&lt;/b&gt; Now that your RapidShare cookie is saved, you can instruct &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt; to use it. Here is how you can download a single file using your RapidShare Premium account and &lt;span style="font-family: courier new"&gt;wget&lt;/span&gt;:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;wget --load-cookies ~/.rs &lt;i&gt;URL&lt;/i&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;(You need to replace &lt;span style="font-family: courier new"&gt;&lt;i&gt;URL&lt;/i&gt;&lt;/span&gt; above with an actual valid RapidShare link.)&lt;/p&gt;&lt;p&gt;&lt;b&gt;4.&lt;/b&gt; It is time to build your "download queue". Just paste the RapidShare links you want to download in a plain text file, one URL per line. Your file might be called &lt;span style="font-family: courier new"&gt;rs_download_queue.txt&lt;/span&gt; and it might look a bit like this:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;http://rapidshare.com/files/123456781/archive.part1.rar&lt;br /&gt;http://rapidshare.com/files/123456782/archive.part2.rar&lt;br /&gt;http://rapidshare.com/files/123456783/archive.part3.rar&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;&lt;b&gt;5.&lt;/b&gt; The final step is to wrap up the whole thing and start downloading without further interaction. A very raw solution would be to write a script like this one:&lt;/p&gt;&lt;pre span style="font-family: courier new"&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;dq="/path/to/rs_download_queue.txt" # your "download queue"&lt;br /&gt;ck="/home/yourusername/.rs"         # your RS cookie from step 2&lt;br /&gt;&lt;br /&gt;for line in `seq "$( wc -l "$dq" | awk '{ print $1 }' )"`&lt;br /&gt;do&lt;br /&gt;    URL="$( sed -n ''$line'p' "$dq" )"&lt;br /&gt;    URL="$( echo "$URL" | sed -e 's/^[ \t]*//;s/[ \t]*$//' )"&lt;br /&gt;    if [ "x${URL}" != "x" ]&lt;br /&gt;    then&lt;br /&gt;        wget --load-cookies "$ck" "$URL"&lt;br /&gt;    fi&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;Save this script as &lt;span style="font-family: courier new"&gt;rsdq.sh&lt;/span&gt;. Do not forget to make it executable:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;chmod 755 rsdq.sh&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;So each time you need to download something, you just have to edit the &lt;span style="font-family: courier new"&gt;rs_download_queue.txt&lt;/span&gt; file accordingly and then launch the script &lt;span style="font-family: courier new"&gt;rsdq.sh&lt;/span&gt; that you just wrote.&lt;/p&gt;&lt;h3&gt;Caveats&lt;/h3&gt;&lt;p&gt;As stated at the beginning of this post, this is a very unsophisticated solution. Since for me it works wonders, I will not bother to improve it, but it is only fair to let you know that:&lt;/p&gt;&lt;ul style="text-align: justify"&gt;&lt;li&gt;The script does not check for dead links.&lt;/li&gt;&lt;li&gt;The script provides no way to resume an interrupted download.&lt;/li&gt;&lt;li&gt;The script does not check for the space you have left on the device.&lt;/li&gt;&lt;li&gt;The script does not check whether you still have RapidShare traffic left for the current day.&lt;/li&gt;&lt;li&gt;The script does not parse the "download queue" file in any way other than skip empty lines.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;As I said, it works fine for me – as long as I can use it during the RapidShare Happy Hours (when your traffic gets counted only as 10% of the real one), it's enough.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-311022581094799039?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/311022581094799039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/rapidshare-premium-wget-and-your-link.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/311022581094799039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/311022581094799039'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/rapidshare-premium-wget-and-your-link.html' title='RapidShare Premium, wget and your download queue'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7999569493192511520</id><published>2010-02-07T19:58:00.009+02:00</published><updated>2010-02-09T18:15:00.042+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tag'/><category scheme='http://www.blogger.com/atom/ns#' term='flac'/><category scheme='http://www.blogger.com/atom/ns#' term='rename'/><title type='text'>Mass-(re)naming files from .flac tags</title><content type='html'>&lt;span style="font-family: verdana"&gt;&lt;p&gt;The story is usually the other way around: you have a bunch of correctly named audio files and you want to automatically mass-tag them. Most players and tag editors already allow you to do that.&lt;/p&gt;&lt;p&gt;My problem was the exact reverse of this situation: I had neatly tagged &lt;span style="font-family: courier new"&gt;.flac&lt;/span&gt;-s and I wanted to rename the files, which were bleakly called &lt;span style="font-family: courier new"&gt;split-track01.flac&lt;/span&gt;, &lt;span style="font-family: courier new"&gt;split-track02.flac&lt;/span&gt; etc.&lt;/p&gt;&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: verdana"&gt;&lt;p&gt;I came up with a handy script that allows me to do just that. In order for it to work, you will of course need the FLAC tools:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;sudo aptitude install flac&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;Note that this script works &lt;i&gt;only&lt;/i&gt; for &lt;span style="font-family: courier new"&gt;.flac&lt;/span&gt; files at the moment (I have not yet taken the time to dig into the differences between ID3v1 and ID3v2 tags for &lt;span style="font-family: courier new"&gt;.mp3&lt;/span&gt;-s, nor did I figure out how is it that I should decide on which tag version to take into account – in case both are present).&lt;/p&gt;&lt;p&gt;Before proceeding with the actual script, let me explain a bit what it does and how it should be used. Suppose you have a directory with these files (all with their tags in place):&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;b&gt;alex@enterprise$&lt;/b&gt; ls -1&lt;br /&gt;&lt;i&gt;cd7split-track05.flac&lt;br /&gt;cd8split-track01.flac&lt;br /&gt;cd8split-track02.flac&lt;/i&gt;&lt;/span&gt;&lt;p&gt;You know these files are part of the same album and you want to rename them, according to their tags. Here's what the script does if it is invoked with the &lt;span style="font-family: courier new"&gt;--display&lt;/span&gt; argument:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;b&gt;alex@enterprise$&lt;/b&gt; track_number=1 ; for track in cd7split-track05.flac cd8split-track01.flac cd8split-track02.flac ; do ./flacrename.sh $track $track_number --display ; track_number=$(($track_number+1)) ; done&lt;br /&gt;&lt;i&gt;cd7split-track05.flac: 01_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_I._Feierlich._Misterioso.flac&lt;br /&gt;cd8split-track01.flac: 02_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_II._Scherzo._Bewegt_lebhaft_-_Trio._Schnell.flac&lt;br /&gt;cd8split-track02.flac: 03_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_III._Adagio._Langsam_feierlich.flac&lt;/i&gt;&lt;/span&gt;&lt;p&gt;As you can see, the second argument (the one between the file name and the optional &lt;span style="font-family: courier new"&gt;--display&lt;/span&gt;) represents the track number that is to be inserted at the beginning of the file name. The above output is just that, an output. No changes have been made upon the files themselves. So now that you've checked and made sure there is no error in the file naming scheme, you can run it without the &lt;span style="font-family: courier new"&gt;--display&lt;/span&gt; parameter. The files will be renamed:&lt;/p&gt;&lt;span style="font-family: courier new"&gt;&lt;b&gt;alex@enterprise$&lt;/b&gt; track_number=1 ; for track in cd7split-track05.flac cd8split-track01.flac cd8split-track02.flac ; do ./flacrename.sh $track $track_number ; track_number=$(($track_number+1)) ; done&lt;br /&gt;&lt;b&gt;alex@enterprise$&lt;/b&gt; ls -1&lt;br /&gt;&lt;i&gt;01_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_I._Feierlich._Misterioso.flac&lt;br /&gt;02_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_II._Scherzo._Bewegt_lebhaft_-_Trio._Schnell.flac&lt;br /&gt;03_Anton_Bruckner_-_Symphony_No._9_in_D_minor_-_III._Adagio._Langsam_feierlich.flac&lt;/i&gt;&lt;/span&gt;&lt;p&gt;That was the usage part. Here is a short description of what the script actually does:&lt;/p&gt;&lt;ul style="text-align: justify"&gt;&lt;li&gt;If the script is called with anything but two or three arguments: a usage reminder is displayed;&lt;/li&gt;&lt;li&gt;If it is called with three arguments but the third one is different from &lt;span style="font-family: courier new"&gt;--display&lt;/span&gt;: a usage reminder is displayed;&lt;/li&gt;&lt;li&gt;If the second argument (the track number) is not a number &lt;i&gt;or&lt;/i&gt; if it is a number less than 1 (i.e. zero or negative): an error message and a usage reminder are displayed;&lt;/li&gt;&lt;li&gt;If the file specified by the first argument does not exist: an error message is displayed;&lt;/li&gt;&lt;li&gt;If the file specified by the first argument is not a valid &lt;span style="font-family: courier new"&gt;.flac&lt;/span&gt;: an error message is displayed;&lt;/li&gt;&lt;li&gt;The values of the artist, album and track title tags are stored in local variables. The values stored in these variables have two characteristics: all spaces are turned into underscores ('_') and other special characters (that should not appear in a file name) are suppressed;&lt;/li&gt;&lt;li&gt;The new file name is finally constructed from the said variables. If the &lt;span style="font-family: courier new"&gt;--display&lt;/span&gt; argument is called, the script will only show what the file name(s) would look like, without doing the actual renaming. If the &lt;span style="font-family: courier new;"&gt;--display&lt;/span&gt; argument is &lt;i&gt;not&lt;/i&gt; invoked, the renaming will proceed normally.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;These being said, here's the script:&lt;/p&gt;&lt;pre style="font-family: courier new"&gt;#!/bin/bash                                                                                     &lt;br /&gt;# Return codes&lt;br /&gt;# 0 - success &lt;br /&gt;# 1 - incorrect usage&lt;br /&gt;# 2 - incorrect &amp;lt;track_number&amp;gt; argument&lt;br /&gt;# 3 - file &amp;lt;file_name.flac&amp;gt; not found  &lt;br /&gt;# 4 - file &amp;lt;file_name.flac&amp;gt; not .flac  &lt;br /&gt;&lt;br /&gt;function usage() {&lt;br /&gt;    echo "Usage: $0 &amp;lt;file_name.flac&amp;gt; &amp;lt;track_number&amp;gt; [--display]"&lt;br /&gt;    echo ""                                                     &lt;br /&gt;    echo "  e.g. The command "                                  &lt;br /&gt;    echo "       $0 split-track01.flac 3 "                      &lt;br /&gt;    echo "  will read the tags in 'split-track01.flac' and will rename "&lt;br /&gt;    echo "  the file accordingly, preceding it by the specified track "  &lt;br /&gt;    echo "  number – '03' in this case."                            &lt;br /&gt;    echo ""                                                               &lt;br /&gt;    echo "--display    Use this if you only wish to check the resulting "&lt;br /&gt;    echo "             file name, without actually renaming the file."&lt;br /&gt;    echo "             e.g. $0 split-track01.flac 3 --display"                      &lt;br /&gt;}&lt;br /&gt;                                        &lt;br /&gt;function display() {&lt;br /&gt;    echo "$1: $2"       &lt;br /&gt;    exit 0              &lt;br /&gt;}                   &lt;br /&gt;&lt;br /&gt;if [ $# -ne 2 ] &lt;br /&gt;then            &lt;br /&gt;    if [ $# -ne 3 ]&lt;br /&gt;    then           &lt;br /&gt;        usage  &lt;br /&gt;        exit 1 &lt;br /&gt;    else           &lt;br /&gt;        if [ "$3" != "--display" ]&lt;br /&gt;        then                      &lt;br /&gt;            usage             &lt;br /&gt;            exit 1            &lt;br /&gt;        fi                        &lt;br /&gt;    fi                                &lt;br /&gt;fi                                        &lt;br /&gt;&lt;br /&gt;if [ "$( expr $2 - $2 2&amp;gt;/dev/null )" != "0" -o $2 -lt 1 ]&lt;br /&gt;then                                                     &lt;br /&gt;    echo "The &amp;lt;track_number&amp;gt; must be a numeric, greater than zero value!"&lt;br /&gt;    echo                                                                 &lt;br /&gt;    usage                                                                &lt;br /&gt;    exit 2                                                               &lt;br /&gt;fi                                                                           &lt;br /&gt;&lt;br /&gt;if [ ! -e "$1" ]&lt;br /&gt;then&lt;br /&gt;    echo "The file you specified does not exist."&lt;br /&gt;    exit 3&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ "$( file "$1" | grep -c "FLAC audio bitstream data" )" -eq 0 ]&lt;br /&gt;then&lt;br /&gt;    echo "The file you specified is not a valid FLAC."&lt;br /&gt;    exit 4&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;flac_artist="$( metaflac --show-tag=artist "$1" | awk -F= '{ print $2 }' )"&lt;br /&gt;flac_artist="$( echo "$flac_artist" | sed -e 's/\ /_/g' | sed -e "s/'//g" )"&lt;br /&gt;flac_artist="$( echo "$flac_artist" | sed -e 's/[|\/\\",;:?!%&amp;]//g' )"&lt;br /&gt;&lt;br /&gt;flac_album="$( metaflac --show-tag=album "$1" | awk -F= '{ print $2 }' )"&lt;br /&gt;flac_album="$( echo "$flac_album" | sed -e 's/\ /_/g' | sed -e "s/'//g" )"&lt;br /&gt;flac_album="$( echo "$flac_album" | sed -e 's/[|\/\\",;:?!%&amp;]//g' )"&lt;br /&gt;&lt;br /&gt;flac_title="$( metaflac --show-tag=title "$1" | awk -F= '{ print $2 }' )"&lt;br /&gt;flac_title="$( echo "$flac_title" | sed -e 's/\ /_/g' | sed -e "s/'//g" )"&lt;br /&gt;flac_title="$( echo "$flac_title" | sed -e 's/[|\/\\",;:?!%&amp;]//g' )"&lt;br /&gt;&lt;br /&gt;if [ $2 -ge 10 ]&lt;br /&gt;then&lt;br /&gt;    flac_track="$2"&lt;br /&gt;else&lt;br /&gt;    flac_track="0$2"&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;flac_name="${flac_track}_${flac_artist}_-_${flac_album}_-_${flac_title}.flac"&lt;br /&gt;&lt;br /&gt;if [ "$3" == "--display" ]&lt;br /&gt;then&lt;br /&gt;    display "$1" "$flac_name"&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# if the execution has reached this line, it means the '--display' argument &lt;br /&gt;# was not used; proceed with renaming the file&lt;br /&gt;&lt;br /&gt;mv "$1" "$flac_name"&lt;br /&gt;&lt;br /&gt;exit 0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7999569493192511520?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7999569493192511520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/mass-renaming-files-from-flac-tags.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7999569493192511520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7999569493192511520'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/mass-renaming-files-from-flac-tags.html' title='Mass-(re)naming files from .flac tags'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2950684828489757591</id><published>2010-02-06T20:07:00.012+02:00</published><updated>2010-02-08T13:05:29.263+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='flac'/><category scheme='http://www.blogger.com/atom/ns#' term='ape'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Splitting and converting large .ape files</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;p&gt;In a &lt;a href="http://plug-and-pray.blogspot.com/2010/02/splitting-large-flac-files.html" target="_blank"&gt;previous post&lt;/a&gt; I talked about how a large &lt;span style="font-family:courier new;"&gt;.flac&lt;/span&gt; file can be split into the original CD tracks (provided you have a correct &lt;span style="font-family:courier new;"&gt;.cue&lt;/span&gt; file).&lt;/p&gt;&lt;p&gt;Here is how to do the same for a large &lt;span style="font-family:courier new;"&gt;.ape&lt;/span&gt; file.&lt;/p&gt; &lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;Installing the &lt;span style="font-family:courier new;"&gt;mac&lt;/span&gt; utility&lt;/h3&gt;&lt;span style="font-family:verdana;"&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;APE&lt;/span&gt; is &lt;a href="http://www.monkeysaudio.com/" target="_blank"&gt;Monkey's Audio&lt;/a&gt; file format for lossless audio compression. It will be a bit of a problem if you want to actually &lt;i&gt;use&lt;/i&gt; the Monkey's Audio encoder/decoder, since there is no official Linux port. You can't even officially download the sources, because they're hosted on a Chinese server that drops all non-Chinese incoming traffic (you'd need a Chinese proxy to bypass that).&lt;/p&gt;&lt;p&gt;Not knowing all this, when I found an APE image in my collection I attempted to split it and convert it to &lt;span style="font-family:courier new"&gt;flac&lt;/span&gt;. Well, here's what happened:&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;alex@enterprise$ cuebreakpoints CDImage.cue | shnsplit CDImage.ape&lt;br /&gt;shnsplit: warning: failed to read data from input file using format: [ape]&lt;br /&gt;shnsplit:          + you may not have permission to read file: [CDImage.ape]&lt;br /&gt;shnsplit:          + arguments may be incorrect for decoder: [mac]&lt;br /&gt;shnsplit:          + verify that the decoder is installed and in your PATH&lt;br /&gt;shnsplit:          + this file may be unsupported, truncated or corrupt&lt;br /&gt;shnsplit: error: cannot continue due to error(s) shown above&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;After unsuccessfully trying to find the said &lt;span style="font-family:courier new;"&gt;mac&lt;/span&gt; package, I eventually came across &lt;a href="http://aidanjm.wordpress.com/2007/01/26/using-monkeys-audio-ape-files-in-ubuntu" target="_blank"&gt;this&lt;/a&gt; very useful post.&lt;/p&gt;&lt;p&gt;It all boils down to this: either you &lt;a href="http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb" target="_blank"&gt;download the &lt;span style="font-family: courier new"&gt;mac&lt;/span&gt; 3.99 .deb package for Ubuntu (i386)&lt;/a&gt;, or you have to get the source mirrored by that guy and compile it yourself.&lt;/p&gt;&lt;p&gt;My case was the lucky one:&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;wget http://members.iinet.net.au/~aidanjm/mac-3.99-u4_b3-1_i386.deb&lt;br /&gt;sudo dpkg -i mac-3.99.u4_b3_1_i386.deb&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;If you do not use Ubuntu or Debian or if you use a different architecture from i386, you will need to get the source and compile the &lt;span style="font-family:courier new;"&gt;mac&lt;/span&gt; utility yourself:&lt;/p&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;sudo aptitude install build-essential nasm&lt;br /&gt;wget http://members.iinet.net.au/~aidanjm/mac-3.99-u4-b5.tar.gz&lt;br /&gt;tar xfz mac-3.99-u4-b5.tar.gz&lt;br /&gt;cd mac-3.99-u4-b5&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;/blockquote&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3&gt;Splitting the &lt;span style="font-family:courier new;"&gt;.ape&lt;/span&gt; file&lt;/h3&gt;&lt;p&gt;You can decompress the file(s) directly:&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;mac CDImage.ape CDImage.wav -d&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;Now you can split the &lt;span style="font-family:courier new;"&gt;.wav&lt;/span&gt; file the normal way, converting the parts into &lt;span style="font-family:courier new;"&gt;.flac&lt;/span&gt; files at the same time:&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;cuebreakpoints CDImage.cue | shnsplit -o flac CDImage.wav&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;...and add the tags from the &lt;span style="font-family:courier new;"&gt;.cue&lt;/span&gt; sheet:&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;cuetag CDImage.cue split-track*.flac&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;(If you need to actually convert &lt;span style="font-family:courier new;"&gt;.flac&lt;/span&gt; files to &lt;span style="font-family:courier new;"&gt;.mp3&lt;/span&gt;-s, check out &lt;a href="http://plug-and-pray.blogspot.com/2008/04/convert-flac-files-into-mp3.html" target="_blank"&gt;this&lt;/a&gt; post.)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2950684828489757591?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2950684828489757591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/splitting-and-converting-large-ape.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2950684828489757591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2950684828489757591'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/splitting-and-converting-large-ape.html' title='Splitting and converting large .ape files'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6169134087535781334</id><published>2010-02-03T06:40:00.006+02:00</published><updated>2010-02-07T19:44:44.938+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='flac'/><title type='text'>Splitting large .flac files</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Suppose you have a large &lt;span style="font-family:courier new"&gt;.flac&lt;/span&gt; file and a &lt;span style="font-family:courier new"&gt;.cue&lt;/span&gt; one (which provides the correct &lt;i&gt;and&lt;/i&gt; complete ripping information). The large &lt;span style="font-family:courier new"&gt;.flac&lt;/span&gt; stands for the whole CD. How to split it into the tracks that should make it up?&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;&lt;b&gt;0.&lt;/b&gt; First off: if there is no &lt;span style="font-family:courier new"&gt;.cue&lt;/span&gt; file, no splitting is possible!&lt;br /&gt;&lt;br /&gt;This being said, we can move on:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.&lt;/b&gt; Install these tools:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;sudo aptitude install cuetools shntool&lt;/span&gt;&lt;/blockquote&gt;&lt;b&gt;2.&lt;/b&gt; Split the file:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;cuebreakpoints large_file.cue | shnsplit -o flac large_file.flac&lt;/span&gt;&lt;/blockquote&gt;&lt;b&gt;3.&lt;/b&gt; Tag the tracks (according to the ripping information present in the &lt;span style="font-family:courier new"&gt;.cue&lt;/span&gt; file):&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;cuetag large_file.cue split-track*.flac&lt;/span&gt;&lt;/blockquote&gt;This should be it.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6169134087535781334?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6169134087535781334/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/splitting-large-flac-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6169134087535781334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6169134087535781334'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/splitting-large-flac-files.html' title='Splitting large .flac files'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7470283540963063335</id><published>2010-02-02T11:49:00.006+02:00</published><updated>2010-02-07T19:45:33.945+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='last.fm'/><category scheme='http://www.blogger.com/atom/ns#' term='amarok'/><category scheme='http://www.blogger.com/atom/ns#' term='libre.fm'/><title type='text'>How to gobble (GNU scrobble) to Libre.FM using Amarok2</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Remember my &lt;a href="http://plug-and-pray.blogspot.com/2009/03/goodbye-lastfm.html"&gt;Last.FM rant&lt;/a&gt;? Ever since, I have not used their service anymore. In the meantime, I found a more open alternative for the ones who like to keep track of their listening habits – it is called &lt;a href="http://www.libre.fm"&gt;Libre.FM&lt;/a&gt; and it keeps growing. &lt;br /&gt;&lt;br /&gt;One does not &lt;i&gt;scrobble&lt;/i&gt; on Libre.FM, but &lt;i&gt;gobbles&lt;/i&gt; instead.&lt;br /&gt;&lt;br /&gt;It would have all been nice if there wouldn't have been so many issues with clients with poor or no support at all. I discontinued using my Libre.FM account when I switched to Amarok2, which offered no support for Libre.FM. Not any more! It is now possible to submit the metadata in your tracks to your Libre.FM account, even from Amarok2.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Here's a step-by-step guide.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.&lt;/b&gt; Go to &lt;a href="http://www.libre.fm"&gt;Libre.FM&lt;/a&gt; and create an account.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.&lt;/b&gt; Configure Amarok: Go to &lt;i&gt;Settings&lt;/i&gt; -&gt; &lt;i&gt;Configure Amarok...&lt;/i&gt; -&gt; &lt;i&gt;Internet Services&lt;/i&gt; -&gt; tick the "Last.fm" check box and click the settings icon next to it. Enter here your &lt;b&gt;Libre.FM&lt;/b&gt; username and your &lt;b&gt;Libre.FM&lt;/b&gt; password and untick the "Submit tracks" and "Retrieve similar artists" check boxes, then click "OK".&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3.&lt;/b&gt; Install &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;lastfmsubmitd&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;. If you are using (K)Ubuntu, use this command in a terminal:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo aptitude install lastfmsubmitd&lt;/span&gt;&lt;/blockquote&gt;When asked, enter &lt;span style="font-family:courier new;"&gt;audio&lt;/span&gt; as the group.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4.&lt;/b&gt; Edit &lt;span style="font-family:courier new;"&gt;/etc/lastfmsubmitd.conf&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; and add the following:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;[server]&lt;br /&gt;url=http://turtle.libre.fm/&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;5.&lt;/b&gt; Make these directories accessible:&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;sudo chmod -R 777 /var/spool/lastfm&lt;br /&gt;sudo chmod -R 777 /var/log/lastfm&lt;/span&gt;&lt;/blockquote&gt;&lt;b&gt;6.&lt;/b&gt; Download the &lt;a href="http://kde-apps.org/content/show.php/Amarok2LibreFM?content=107339"&gt;Amarok2LibreFM&lt;/a&gt; script for Amarok2 (no need to unpack it, just leave it as it is).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7.&lt;/b&gt; Configure Amarok to use this script: &lt;i&gt;Tools&lt;/i&gt; -&gt; &lt;i&gt;Script Manager&lt;/i&gt; -&gt; &lt;i&gt;Install Script&lt;/i&gt;, then choose the &lt;span style="font-family:courier new;"&gt;Amarok2LibreFM.amarokscript.tar.gz&lt;/span&gt; that you just downloaded.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;8.&lt;/b&gt; Restart Amarok and you should be able to scrobble/gobble the tracks that you listen to.&lt;br /&gt;&lt;br /&gt;Don't know about you, but I'm very glad that Libre.FM is "usable" again.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7470283540963063335?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7470283540963063335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/how-to-gobble-gnu-scrobble-to-librefm.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7470283540963063335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7470283540963063335'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2010/02/how-to-gobble-gnu-scrobble-to-librefm.html' title='How to gobble (GNU scrobble) to Libre.FM using Amarok2'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6820289317444067404</id><published>2009-11-25T15:24:00.005+02:00</published><updated>2009-11-29T05:21:15.928+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='split'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='volume'/><title type='text'>How to split large files in Linux and *BSD</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Suppose you have a large file that you need to "break down" to smaller pieces and then reconstruct. It's fairly simple, using the &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;split&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; command.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;I will only give a brief usage example. For more information, check out &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;man split&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; (and &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;info coreutils 'split invocation'&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; on Linux).&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;1. Splitting &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;You split a larger file into smaller ones issuing a command such as:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:'Courier New', Courier, monospace;"&gt;split -b 100M your.file&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-family:'DejaVu Sans';"&gt;&lt;span style="font-family:verdana;"&gt;The command above will split &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;your.file&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; in 100 megabytes volumes, called by default "xaa", "xab", "xac" and so on.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;If you feel you need another "pattern" or prefix, add that string to the end of the command:&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;split -b 100M your.file file.part.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;The above command will split &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;your.file&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; in volumes called "file.part.aa", "file.part.ab" etc. (instead of the default "xaa", "xab" etc.).&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;If you prefer the suffix (the "increment") to be &lt;i&gt;digits&lt;/i&gt; rather than letters, use the &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;-d&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; flag.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;split -db 1G your.file file.part.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;would produce volumes of your file of exactly 1 gigabyte, called "file.part.00", "file.part.01" etc.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;b&gt;2. Joining&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;To join the volumes, it is this simple:&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;cat `echo file.part.* | sort` &amp;gt; your.file.reloaded&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Both &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;your.file&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; and &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;your.file.reloaded&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; have the same MD5 sum – they are identical.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6820289317444067404?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6820289317444067404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/how-to-split-large-files-in-linux-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6820289317444067404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6820289317444067404'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/how-to-split-large-files-in-linux-and.html' title='How to split large files in Linux and *BSD'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2587612308154134451</id><published>2009-11-19T17:47:00.004+02:00</published><updated>2009-11-29T05:22:04.049+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='firewall'/><category scheme='http://www.blogger.com/atom/ns#' term='ipfw'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>IPFW: rule-based forwarding disabled</title><content type='html'>&lt;span style="font-family:verdana;"&gt;If you want to enable IPFW (or load the module) and you get "rule-based forwarding disabled" in dmesg... and you &lt;/span&gt;&lt;i&gt;&lt;span style="font-family:verdana;"&gt;need &lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:verdana;"&gt;forwarding, well, that is just too bad. You will need to enable IPFW forwarding support in the kernel.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Yes, you will have to compile a custom FreeBSD kernel.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;It's not that awful, actually.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;First off, make sure you have the kernel sources (i.e. in &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;/usr/src/sys&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;). &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;You will be better off if you will run &lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;sysinstall&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; beforehand: select "Configure" -&amp;gt; "Distributions" -&amp;gt; "Src" -&amp;gt; select "base" and "sys" and install them.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Right, now you're ready to configure your kernel to support IPFW and forwarding.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;cd /usr/src/sys/i386/conf&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;cp GENERIC NEWKERNEL&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;vim NEWKERNEL&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Here, add the following:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPFIREWALL&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPFIREWALL_VERBOSE&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPFIREWALL_FORWARD&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPFIREWALL_VERBOSE_LIMIT=5&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPFIREWALL_DEFAULT_TO_ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;options    IPDIVERT&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Now you should be ready to compile the new kernel:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;cd /usr/src&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;make buildkernel KERNCONF=NEWKERNEL&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;make installkernel KERNCONF=NEWKERNEL&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;reboot&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Basically, you will now need to explicitly enable IPFW and to point to the location of the file containing its rules. So you can add to your&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt; /etc/rc.conf&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; the following:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;firewall_enable="YES"&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;firewall_script="/etc/ipfw.rules"&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;The command&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;# ipfw list&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;will show you which rules are in effect at the moment.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Further reading: &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.freebsd.org/doc/en/books/handbook/firewalls-ipfw.html"&gt;&lt;span style="font-family:verdana;"&gt;IPFW&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;FreeBSD handbook on &lt;/span&gt;&lt;a href="http://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html"&gt;&lt;span style="font-family:verdana;"&gt;building and installing custom kernels&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;FreeBSD handbook: &lt;/span&gt;&lt;a href="http://www.freebsd.org/doc/en/books/handbook/kernelconfig-trouble.html"&gt;&lt;span style="font-family:verdana;"&gt;if something goes wrong&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:Georgia, serif;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2587612308154134451?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2587612308154134451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/ipfw-rule-based-forwarding-disabled.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2587612308154134451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2587612308154134451'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/ipfw-rule-based-forwarding-disabled.html' title='IPFW: rule-based forwarding disabled'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2749453733851603961</id><published>2009-11-19T15:07:00.006+02:00</published><updated>2010-02-07T19:47:11.778+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='annoyance'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='shockwave'/><title type='text'>Shockwave content on Linux</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;Suppose you have the misfortune of &lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;having &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;to access a page which only provides its interactive content in Shockwave, not Flash or Java. A stupid, ugly and slow leftover of old Macromedia (just before they released Shockwave Flash) that should not be supported anymore, anywhere, in my opinion.&lt;/span&gt;&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;If you will try to get the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://get.adobe.com/shockwave"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;Shockwave Player from Adobe&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;, you will have a lame surprise. They don't offer it for Linux. There are only the Windows and Mac OS versions there.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;However, do not despair. There is a way to overcome this. It will only work on Firefox, but it's better than nothing. Here are the steps (the following takes place on my Ubuntu machines):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;0.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; If you haven't already, install Firefox.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; Install &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-size:small;"&gt;wine&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="font-family:courier new;"&gt;&lt;blockquote&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:'courier new';"&gt;sudo aptitude install wine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;2.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; Now download and install the &lt;/span&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;Windows&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; version of Firefox (from &lt;/span&gt;&lt;a href="http://www.mozilla.com/en-US/firefox/all.html"&gt;&lt;span style="font-size:small;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;); I am not kidding; you will be using &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-size:small;"&gt;wine&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt; for this purpose.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;3.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; Install &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-size:small;"&gt;mozplugger&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt; (a useful tool that allows you to "embed" other applications in your browser):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-size:small;"&gt;sudo aptitude install mozplugger&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;4.&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:small;"&gt; Launch the Windows version of Firefox (using &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span style="font-size:small;"&gt;wine&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:small;"&gt;) and access Adobe's Shockwave and Flash &lt;/span&gt;&lt;a href="http://www.adobe.com/shockwave/welcome"&gt;&lt;span style="font-size:small;"&gt;test page&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;. Install the missing Adobe Shockwave plug-in. When done, close the browser.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;5.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Edit the file &lt;/span&gt;&lt;/span&gt;&lt;span style=" white-space: pre-wrap;font-family:courier new, monospace;"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;/etc/mozpluggerrc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="white-space: pre-wrap;"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;– add these lines at the end:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style=" white-space: pre-wrap;"&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;application/x-director: dir,dcr,dxr,cst,cct,cxt,w3d,fgd,swa: Macromedia Director file&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;        swallow(firefox.exe) fill stream: wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe" -chrome "$file"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;If you have a recent Ubuntu (from 9.04 onwards) and a decent Firefox version (at least 3.0.14), you should be able to skip the following step; otherwise, do this:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;6.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Remove or rename the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;pluginreg.dat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; file in Firefox's profile directory:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;rm ~/.mozilla/firefox/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.default/pluginreg.dat&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;or &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;mv ~/.mozilla/firefox/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.default/pluginreg.dat ~/.mozilla/firefox/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="font-family:'courier new';"&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.default/pluginreg.dat.bck&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;There you go. Now stupid Shockwave content should at least load for you. If it doesn't, have fun at using your colorful vocabulary when referring to the stupid web developers that made use of Shockwave contents.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2749453733851603961?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2749453733851603961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/shockwave-content-on-linux.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2749453733851603961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2749453733851603961'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/shockwave-content-on-linux.html' title='Shockwave content on Linux'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-3600659387539742171</id><published>2009-11-02T14:05:00.003+02:00</published><updated>2009-11-29T05:23:10.263+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='numlock'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='numkey'/><category scheme='http://www.blogger.com/atom/ns#' term='numpad'/><category scheme='http://www.blogger.com/atom/ns#' term='kde'/><title type='text'>Keypad/Numpad gone mad in KDE4</title><content type='html'>&lt;span style="font-family:verdana;"&gt;I upgraded to KDE4 – Kubuntu Karmic Koala (9.10).&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;All was fine, excepting for the numerical keypad. My notebook's design includes this keypad which allows me to use the digits (when NumLock is on) and the other keys, respectively (Del, Home, End, Page Up, Page Down, Ins) – when the NumLock LED is off.&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;I found it impossible to get this basic behavior out-of-the-box: I tried for several hours messing up with System Settings &amp;gt; Regional and Language &amp;gt; Keyboard Layout &amp;gt; Advanced &amp;gt; all kinds of XkbOptions.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;Nothing seemed to work.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;So I finally decided to "remap" these keys as if they were the independent ones (Delete, Home, End, Page Up, Page Down, Insert) from a default keyboard.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;"xev" &lt;span style="font-family:verdana;"&gt;is a useful tool. For instance, pressing the "Home" key on the numpad when NumLock is off will make xev return the following information:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;"&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;KeyPress event, serial 34, synthetic NO, window 0x5200001,&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;    root 0x116, subw 0x0, time 49770457, (162,-8), root:(166,17),&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;    state 0x0, keycode 79 (keysym 0xff95, KP_Home), same_screen YES,&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;    XLookupString gives 0 bytes:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;    XmbLookupString gives 0 bytes:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;    XFilterEvent returns: False&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;Notice that all the keys that were troublesome (that wouldn't "do" anything) were the KP_something ones in this particular case.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My solution was to edit a &lt;span style="font-family:'courier new';"&gt;.Xmodmap&lt;/span&gt; file where I re-mapped the keys I was interested in. I then included this file in Xsession's routines:&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;$ vim ~/.Xmodmap&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 79 = Home KP_7 Home KP_7 Home KP_7&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 87 = End KP_1 End KP_1 End KP_1&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 81 = Prior KP_9 Prior KP_9 Prior KP_9&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 89 = Next KP_3 Next KP_3 Next KP_3&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 91 = Delete KP_Decimal Delete KP_Decimal&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;keycode 90 = Insert KP_0 Insert KP_0 Insert KP_0&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;To quickly check if you achieved the results you were aiming for, run:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="font-family:'courier new';"&gt;xmodmap ~/.Xmodmap&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;To make the changes permanent (i.e. have them loaded at each login), edit /etc/kde4/kdm/Xsession:&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;case $SHELL in&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;[... leave this unchanged ... ]&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;esac&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:'courier new';"&gt;if [ -f $HOME/.Xmodmap ] ; then&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:'courier new';"&gt;        /usr/bin/xmodmap $HOME/.Xmodmap&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style="font-family:'courier new';"&gt;fi&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;# invoke global X session script&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:'courier new';"&gt;. /etc/X11/Xsession&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Just add the above text (the one in bold) in your &lt;span style="font-family:'courier new';"&gt;/etc/kde4/kdm/Xsession&lt;/span&gt; file.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Logout and login again.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-3600659387539742171?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/3600659387539742171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/keypadnumpad-gone-mad-in-kde4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3600659387539742171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3600659387539742171'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/11/keypadnumpad-gone-mad-in-kde4.html' title='Keypad/Numpad gone mad in KDE4'/><author><name>Alexandra</name><uri>http://www.blogger.com/profile/07936817579635597668</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='29' src='http://4.bp.blogspot.com/_XQfF99wTevQ/SsrULutJLrI/AAAAAAAAAAM/vzaWGtbiVfQ/S220/catseye.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2390731510416869887</id><published>2009-09-06T13:54:00.003+03:00</published><updated>2010-06-11T23:11:48.587+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='color scheme'/><category scheme='http://www.blogger.com/atom/ns#' term='mc'/><category scheme='http://www.blogger.com/atom/ns#' term='transparency'/><title type='text'>Editing Midnight Commander's color scheme</title><content type='html'>&lt;span style="font-family: verdana;"&gt;In a &lt;/span&gt;&lt;a href="http://plug-and-pray.blogspot.com/2008/11/midnight-commander-transparent-color.html" style="font-family: verdana;"&gt;previous post&lt;/a&gt;&lt;span style="font-family: verdana;"&gt; I was sort of laying out a "formula" on how to transform your Midnight Commander default color scheme into a trasnparent skin, without talking too much about how you can change the other colors.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;To my great shame, I didn't pay too much attention to this blog or to the comments asking for further advice. I found Mateus' comment rather late (just now!) and decided to dig further, in order to find out how exactly to deal with more refined color changes, while still keeping the transparent background (in both in Midnight Commander and its editor).&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;So the first thing to know is which are the colors that Midnight Commander supports; the available colors are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;black&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;gray&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;lightgray&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;white&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;red&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brightred&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;green&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brightgreen&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;blue&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brightblue&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;magenta&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brightmagenta&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;cyan&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brightcyan&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;brown&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;yellow&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;default&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The "&lt;span style="font-family: 'courier new';"&gt;default&lt;/span&gt;" color is the one giving out the nice transparency.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now, there are certain "components" in Midnight Commander's display that can have their colors altered. Here they are:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color, normal, selected, marked, markselect, errors, menu, reverse, dnormal, dfocus, dhotnormal, dhotfocus, viewunderline, menuhot, menusel, menuhotsel, helpnormal, helpitalic, helpbold, helplink, helpslink, gauge, input, directory, executable, link, stalelink, device, core, special, editnormal, editbold, editmarked, errdhotnormal, errdhotfocus&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Each and every one of these "components" can have its own colors set accordingly to the user's wish. Each component is assigned a color pair and must be followed by a colon (':') in order to separate it from the color pair of the next component. Here's how this basic syntax must look like:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;component=foreground_color,background_color:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;When you start modifying the color scheme in your Midnight Commander configuration file (located at &lt;span style="font-family: 'courier new';"&gt;~/.mc/ini&lt;/span&gt;), you just have to add a section called "&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;" and proceed with enumerating the color pairs. So you'd have something like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;# the rest of your ~/.mc/ini file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;component1=foreground_color1,background_color1:...:componentN= foreground_colorN,background_colorN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;For increased readability, I will "truncate" that long line, adding a backslash ('\') to indicate that in fact what follows on the next line should be adjacent to the text on the previous line. This being said, the &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section could look like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;# the rest of your ~/.mc/ini file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;component1=foreground_color1,background_color1:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;component2=foreground_color2,background_color2:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;componentN=foreground_colorN,background_colorN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now that you've gotten the hang of this, let's see how the &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section looks like in the default Midnight Commander color scheme (you know, the "ugly" one, with blue and dull cyan):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana; font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;IMPORTANT NOTE:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: verdana; font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; For visual impact's sake and due to Blogspot breaking long lines, I wrote each color pair on a single row, followed by a backslash ('\'). Please note that this does &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;NOT&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; work in the &lt;/span&gt;&lt;span style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;~/.mc/ini&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; file, so the final &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new';"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;[Colors]&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; section in your Midnight Commander configuration file &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;MUST&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; be a &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;SINGLE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt; line with no spaces and with each color pair separated from the next one by a colon (':').&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;# the rest of your ~/.mc/ini file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color=lightgray,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;normal=lightgray,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;selected=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;marked=yellow,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errors=white,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menu=white,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;reverse=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dfocus=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotnormal=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotfocus=blue,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;viewunderline=brightred,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhot=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menusel=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhotsel=yellow,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpitalic=red,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpbold=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helplink=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpslink=yellow,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;gauge=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;directory=white,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;executable=brightgreen,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=lightgray,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;stalelink=brightred,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;device=brightmagenta,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;core=red,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;special=black,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editnormal=lightgray,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editbold=yellow,blue:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editmarked=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotnormal=yellow,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotfocus=yellow,lightgray&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now let's see. What you want to change first of all is most of the background of these "components", such that the display will be one with a neat looking transparent background. So first of all you might want to make a few changes to these color pairs by replacing the background color "blue" with "default". After doing these changes, your &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section will look a bit like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;# the rest of your ~/.mc/ini file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;normal=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;selected=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;marked=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errors=white,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menu=white,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;reverse=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dfocus=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotnormal=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotfocus=blue,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;viewunderline=brightred,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhot=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menusel=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhotsel=yellow,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpitalic=red,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpbold=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helplink=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpslink=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;gauge=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;directory=white,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;executable=brightgreen,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;stalelink=brightred,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;device=brightmagenta,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;core=red,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;special=black,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editnormal=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editbold=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editmarked=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotnormal=yellow,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotfocus=yellow,lightgray&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now you've got the basic "Midnight Commander transparent scheme" that was the result of &lt;/span&gt;&lt;a href="http://plug-and-pray.blogspot.com/2008/11/midnight-commander-transparent-color.html" style="font-family: verdana;"&gt;this post&lt;/a&gt;&lt;span style="font-family: verdana;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Proceeding to Mateus' question, regarding how to change the rest of the colors now, it's about the same as before. What he didn't like there (and as a matter of fact I don't quite like it, either) is the dull cyan that's still seen in the following places:&lt;/span&gt;&lt;br /&gt;&lt;ol style="font-family: verdana;"&gt;&lt;li&gt;the bottom line (the one displaying the F1...F10 function keys);&lt;/li&gt;&lt;li&gt;the line that signifies the current selection, the "prompt" which shows you on which file/directory you're "on" at a given moment;&lt;/li&gt;&lt;li&gt;the uppermost line (the "menu" line);&lt;/li&gt;&lt;li&gt;the menus themselves, once you open them.&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-family: verdana;"&gt;To "fix" issues 1, 2, and 3 it is sufficient to alter the value of the "&lt;span style="font-family: 'courier new';"&gt;selected&lt;/span&gt;" parameter. Notice how it is initially&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;selected=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;My personal choice is to replace the background cyan, which I don't really like, with green. To do this, I'll change this color pair to&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;selected=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;You can, of course, change the foreground color as well. For me, it's alright to keep the foreground (the text) "black". You can change it to whatever suits your taste.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;To "fix" issue number 4 in the list above, you need to change the "&lt;span style="font-family: 'courier new';"&gt;menu&lt;/span&gt;" parameter. To get it transparent, just change the "cyan" background to "default". Make other adjustments as you see fit. In other words, change&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new';"&gt;menu=white,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into, for instance,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menu=ligthgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;However, there are a few "leftovers" from the default color scheme.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;One of them is the parameter regarding the hotkeys in the menus (the "underlined" character on most of the menu options, showing you what key you can press in order to access that option faster than by moving to it with the arrow keys). This color pair is called "&lt;span style="font-family: 'courier new';"&gt;menuhot&lt;/span&gt;". I changed it from&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhot=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhot=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Another thing which might bother you is the color of the line in the panel you're in when you've "selected all" files (when you've pressed the "*" key). This parameter is called "&lt;span style="font-family: 'courier new';"&gt;markselect&lt;/span&gt;". I changed it from&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=yellow,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=white,green:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The color pair of the selected buttons in dialogs is called "&lt;span style="font-family: 'courier new';"&gt;dfocus&lt;/span&gt;". I changed mine from&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dfocus=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dfocus=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;In the "focused" buttons or options, the underlined character is called "&lt;span style="font-family: 'courier new';"&gt;dhotfocus&lt;/span&gt;". I changed mine from&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotfocus=blue,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotfocus=brightgreen,green:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;since the background color was already green, after I modified the "&lt;span style="font-family: 'courier new';"&gt;dfocus&lt;/span&gt;" color pair.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The other buttons or options in the dialogs which have hotkeys assigned to them, but which are not "focused" (the buttons/options that you're not located on at a given moment) are still displayed in blue on a light gray background. This color pair is referred to as "&lt;span style="font-family: 'courier new';"&gt;dhotnormal&lt;/span&gt;". Since the blue looks a bit odd there, I changed&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: 'courier new';"&gt;dhotnormal=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotnormal=brightgreen,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Well, this is nice, in window titles and on normal (unfocused) hotkeys I get the transparent background. The problem now is that the rest of the dialog window is still light gray. To change this (to make the window transparent as well), you only need to alter the "&lt;span style="font-family: 'courier new';"&gt;dnormal&lt;/span&gt;" color pair, such as changing it from&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dnormal=white,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;You may notice that the input fields stay cyan, as well; you find these fields in quite a lot of dialog boxes. To alter this, I changed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;One thing which I consider useful is to have symbolic links displayed in bright cyan (as in the colored listings in the terminal). So I just changed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;into&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=brightcyan,default:\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now, regarding the rest of the color pairs, I don't really know what they do. However, if at some point after using Midnight Commander more with this new, neat, transparent/green color scheme you'll notice unwanted leftovers, you can try out other changes in the color pairs values, one at a time, until you determine the troublesome one.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;After operating the changes above, my &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section in &lt;span style="font-family: 'courier new';"&gt;~/.mc/ini&lt;/span&gt; now looks like this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;normal=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;selected=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;marked=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=white,green:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errors=white,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menu=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;reverse=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dnormal=white,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dfocus=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotnormal=brightgreen,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;dhotfocus=brightgreen,green:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;viewunderline=brightred,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhot=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menusel=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhotsel=yellow,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpnormal=black,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpitalic=red,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpbold=blue,lightgray:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helplink=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helpslink=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;gauge=white,black:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=black,green:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;directory=white,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;executable=brightgreen,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=brightcyan,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;stalelink=brightred,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;device=brightmagenta,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;core=red,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;special=black,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editnormal=lightgray,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editbold=yellow,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;editmarked=black,cyan:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotnormal=yellow,red:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;errdhotfocus=yellow,lightgray&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;I need to direct you to the "&lt;span style="font-weight: bold;"&gt;IMPORTANT NOTE&lt;/span&gt;" above. The final &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section above is written like this - one pair on each row, followed by a backslash - for clarity's sake. The &lt;/span&gt;&lt;span style="font-family: verdana; font-style: italic;"&gt;actual&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; final &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt; section in your &lt;span style="font-family: 'courier new';"&gt;~/.mc/ini&lt;/span&gt; file will &lt;span style="font-style: italic;"&gt;have&lt;/span&gt; to be a one-liner, with no blanks and no backslashes. So it will probably look similar to this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color=lightgray,default:normal=lightgray,default:selected=black,green:marked=yellow,default:markselect=white,green:errors=white,red:menu=lightgray,default:reverse=black,lightgray:dnormal=white,default:dfocus=black,green:dhotnormal=brightgreen,default:dhotfocus=brightgreen,green:viewunderline=brightred,default:menuhot=yellow,default:menusel=white,black:menuhotsel=yellow,black:helpnormal=black,lightgray:helpitalic=red,lightgray:helpbold=blue,lightgray:helplink=black,cyan:helpslink=yellow,default:gauge=white,black:input=black,green:directory=white,default:executable=brightgreen,default:link=brightcyan,default:stalelink=brightred,default:device=brightmagenta,default:core=red,default:special=black,default:editnormal=lightgray,default:editbold=yellow,default:editmarked=black,cyan:errdhotnormal=yellow,red:errdhotfocus=yellow,lightgray&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now, the next time you start &lt;span style="font-family: 'courier new';"&gt;mc&lt;/span&gt;, the new color scheme will take effect.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;As a bonus, here's a picture of how my Midnight Commander looks like, with this new "skin" on:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_BrUsqnuWOXg/SqPN2_xYY1I/AAAAAAAAAMc/aSHgcw6uLfE/s1600-h/mc_transparent_green_color_scheme.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" style="font-family: verdana;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5378368724725687122" src="http://1.bp.blogspot.com/_BrUsqnuWOXg/SqPN2_xYY1I/AAAAAAAAAMc/aSHgcw6uLfE/s320/mc_transparent_green_color_scheme.png" style="cursor: pointer; display: block; height: 200px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2390731510416869887?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2390731510416869887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2390731510416869887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2390731510416869887'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html' title='Editing Midnight Commander&apos;s color scheme'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_BrUsqnuWOXg/SqPN2_xYY1I/AAAAAAAAAMc/aSHgcw6uLfE/s72-c/mc_transparent_green_color_scheme.png' height='72' width='72'/><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6556365455388092939</id><published>2009-09-04T15:04:00.002+03:00</published><updated>2009-11-29T05:25:47.375+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysctl'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='core'/><title type='text'>Core dumps</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Since I'm interested in examining core dumps (in order to submit them to the ones developing the application that crashed) I prefer to keep core dumping enabled at all times on my systems.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Here is a brief hands-on to core dumps management.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To check whether core dump is enabled, do this:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ulimit -c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;If the result is '0', the system isn't configured to dump cores. Other values specify how large the core file can get. If you need untruncated dumps, as I do, the best thing to do would be to run:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ulimit -c unlimited&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;However, this doesn't permanently solve the problem. It will only work under the current user and in the current terminal.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To have core dumping enabled at all times, for all users and on all ttys, you have to set this option in your &lt;span style="font-family:courier new;"&gt;/etc/security/limits.conf&lt;/span&gt; file. Add to the end of this file the following lines:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;* - core unlimited&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;root - core unlimited&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Now, the next thing to do is to establish a naming scheme for the cores and a location where you want to have them dumped. Suppose you want to have core dumps in &lt;span style="font-family:courier new;"&gt;/core&lt;/span&gt;; if so, create the directory and then change ownership accordingly (to give your normal, non-root user write permission in that directory):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# mkdir /core&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# chown joe:joe /core&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The only thing left to do now is to instruct your system to dump cores there and to name them according to your preferences. In order to do this, edit your &lt;span style="font-family:courier new;"&gt;/etc/sysctl.conf&lt;/span&gt; file and insert somewhere a line describing the "core pattern" that you want to use. The available format specifiers for core naming patterns are the following:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %%  A single % character&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %p  PID of dumped process&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %u  real UID of dumped process&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %g  real GID of dumped process&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %s  number of signal causing dump&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %t  time of dump (seconds since 0:00h, 1 Jan 1970)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %h  hostname (same as ’nodename’ returned by uname(2))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         %e  executable filename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Since I'm interested in my cores to contain information on the name and PID of the process which created them and on the specific signal which led to the core dump, the line that I'd insert in my &lt;span style="font-family:courier new;"&gt;/etc/sysctl.conf&lt;/span&gt; file would be:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;kernel.core_pattern = /core/core.%e.%s.%p&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To have these changes take effect, you'd have to log out and login again. This is because the file &lt;span style="font-family:courier new;"&gt;/etc/security/limits.conf&lt;/span&gt; has also been altered. If this wouldn't have been the case, in order to reload the new &lt;span style="font-family:courier new;"&gt;/etc/sysctl.conf&lt;/span&gt; file, you'd have only need to run:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sysctl -p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;which assumes the new settings are to be reloaded from the default &lt;span style="font-family:courier new;"&gt;/etc/sysctl.conf&lt;/span&gt;. Otherwise,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sysctl -p /path/to/sysctl.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;would have been needed.&lt;br /&gt;&lt;br /&gt;But since you &lt;span style="font-style: italic;"&gt;did&lt;/span&gt; change both &lt;span style="font-family:courier new;"&gt;/etc/sysctl.conf&lt;/span&gt; &lt;span style="font-style: italic;"&gt;and&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;/etc/security/limits.conf&lt;/span&gt;, you'll need to log out and login again in order for all changes to take effect.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6556365455388092939?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6556365455388092939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/09/core-dumps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6556365455388092939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6556365455388092939'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/09/core-dumps.html' title='Core dumps'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6115341814502659869</id><published>2009-07-02T08:40:00.002+03:00</published><updated>2009-11-29T05:27:28.553+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openssh'/><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='utf-8'/><title type='text'>SSH, backspace and UTF-8</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Just great. If you use UTF-8 characters encoded on more than 1 byte (such as Latin diacritics, Armenian, Japanese etc. characters) and you attempt to hit [backspace] through SSH to delete them, you might be surprised to find out that backspace in SSH only deletes the last byte.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;This can lead to a lot of unexpected results in your documents and it can generate a lot of confusion for any app you might be running via SSH.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Case study: the letter "ș" is encoded as "c8 99". On the host machine, backspace deletes both bytes. Via SSH, only the second one ("99") will get deleted.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Let's see what happens if you write "testș[backspace]test". &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt; endline (Ctrl+D) is encoded as "0a".&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:monospace;font-size:13px;"&gt;user@host:~$ cat &gt; test.txt&lt;br /&gt;testș[backspace&lt;wbr&gt;]test&lt;br /&gt;^d&lt;br /&gt;user@host:~$ hexdump -C test.txt&lt;br /&gt;00000000 74 65 73 74 74 65 73 74 0a |testtest.|&lt;br /&gt;00000009&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Great. Now try it via SSH. Just SSH as the same user on the same machine&lt;/span&gt; (ssh user@localhost)&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;span class="Apple-style-span"  style=" ;font-family:monospace;"&gt;user@host:~$ ssh user@localhost&lt;br /&gt;user@localhost's password:&lt;br /&gt;user@host:~$ cat &gt; test.txt&lt;br /&gt;testș[backspace&lt;wbr&gt;]test&lt;br /&gt;^d&lt;br /&gt;user@host:~$ hexdump -C test.txt&lt;br /&gt;00000000 74 65 73 74 c8 74 65 73 74 0a |test.test.|&lt;br /&gt;0000000a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Notice how&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;74 65 73 74 74 65 73 74 0a&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;turned into&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;74 65 73 74 c8 74 65 73 74 0a&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:monospace, serif;font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;I filed in a &lt;/span&gt;&lt;a href="https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/394570"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;bug report&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt; on launchpad. I am not yet sure whether I should take it to OpenSSH's bug list directly.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6115341814502659869?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6115341814502659869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/07/ssh-backspace-and-utf-8.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6115341814502659869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6115341814502659869'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/07/ssh-backspace-and-utf-8.html' title='SSH, backspace and UTF-8'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7681594684399182474</id><published>2009-06-07T01:49:00.002+03:00</published><updated>2009-11-29T05:28:04.829+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='firefly'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mt-daapd'/><title type='text'>mt-daapd / Firefly media server -- follow-up</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;A little while back I was talking very &lt;/span&gt;&lt;a href="http://plug-and-pray.blogspot.com/2009/05/mt-daapd-is-not-answer.html"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;angrily&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt; about &lt;/span&gt;&lt;a href="http://fireflymediaserver.org/"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;mt-daapd / Firefly media server&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;It just so happened that it was 1) crashing and 2) apparently scanning outside of the directories I told it to scan in.&lt;/span&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;I started a &lt;/span&gt;&lt;a href="http://forums.fireflymediaserver.org/viewtopic.php?f=2&amp;amp;t=10247"&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;thread&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt; on the Firefly forums.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;Taking down every issue one step at a time, it proved that I was in err and that mt-daapd was actually working OK.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;What happened was that in one of the directories it was scanning into I had an old backup of root's home directory that I've forgotten about. And there, in '/foo/backup/root/.wine', there was a naughty symbolic link pointing to '/'.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;lrwxrwxrwx 1 root root 1 2007-11-11 11:45 /media/sda9/backup/b4gg/root/.wine/dosdevices/z: -&gt; /&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana;"&gt;So, kids, my advice is that the next time you feel like starting swearing a software for "not doing what it's supposed to do", you double- and triple-check &lt;i&gt;your&lt;/i&gt; setup first; there's a big chance that &lt;i&gt;you&lt;/i&gt; were the one doing something stupid in the first place. :P&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana, fantasy;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:verdana, -webkit-fantasy;"&gt;So far, after discovering this... user fault, mt-daapd seems to be working nicely for me. I use the svn-1696 release.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7681594684399182474?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7681594684399182474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/06/mt-daapd-firefly-media-server-follow-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7681594684399182474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7681594684399182474'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/06/mt-daapd-firefly-media-server-follow-up.html' title='mt-daapd / Firefly media server -- follow-up'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7544555244026975802</id><published>2009-05-29T01:36:00.001+03:00</published><updated>2009-11-29T05:28:52.641+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='firefly'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mt-daapd'/><title type='text'>mt-daapd is not the answer</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Depending on how lucky you are, &lt;a href="http://fireflymediaserver.org/"&gt;mt-daapd / Firefly Media Server&lt;/a&gt; might or might not work for you.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The problem at hand is how to elegantly share media files in your LAN without resorting to NFS exports or Samba shares.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Simple! DAAP! "The best open-source media server, Firefly"! a.k.a. &lt;span style="font-style: italic;"&gt;mt-daapd&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Installing and configuring it is really simple:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo aptitude install mt-daapd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;It should be started already, once the install finishes. If it isn't, however, you can start it with&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo /etc/init.d/mt-daapd start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Then, the configuration is straight-forward. You can even avoid manually editing &lt;span style="font-family:courier new;"&gt;.conf&lt;/span&gt; files. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;For that, you'd just go to &lt;span style="font-style: italic;"&gt;http://hostname:3689&lt;/span&gt;, which is the default port it runs on.&lt;br /&gt;&lt;br /&gt;"&lt;span style="font-style: italic;"&gt;hostname&lt;/span&gt;" is, of course, the host name of the machine in your LAN that hosts this DAAP server. In other words, the host name of the machine you installed it on. Or its IP, whatever suits you better.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The default login name is "&lt;span style="font-weight: bold;"&gt;admin&lt;/span&gt;" with the password "&lt;span style="font-weight: bold;"&gt;mt-daapd&lt;/span&gt;".&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;From the web-based administration console of the Firefly server (mt-daapd) you'd just need to go to the "Configuration" tab and specify there a few things, the most important being the directories where you'd want Firefly to search for your music files, the extensions etc.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Then you'd be able to access the DAAP server using a client on the other machines in your LAN.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;One such client is Rhythmbox, the default music player in Gnome. In the left pane it would display a "Shares" drop-down (below "Library", "Stores" etc.) and you'd be able to browse the collection on the remote server and copy parts of it into your collection.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Simple, huh?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;...If only it mt-daapd &lt;a href="http://forums.fireflymediaserver.org/viewtopic.php?f=8&amp;amp;t=10246"&gt;wouldn't crash&lt;/a&gt; every time it finds a few thousand tracks in its scans!!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;...If only it &lt;a href="http://forums.fireflymediaserver.org/viewtopic.php?f=2&amp;amp;t=10247"&gt;wouldn't scan &lt;/a&gt;&lt;/span&gt;&lt;a href="http://forums.fireflymediaserver.org/viewtopic.php?f=2&amp;amp;t=10247"&gt;&lt;span style="font-family:verdana;"&gt;outside&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;a href="http://forums.fireflymediaserver.org/viewtopic.php?f=2&amp;amp;t=10247"&gt; of the directories&lt;/a&gt; I told it to scan!!!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;...If only the "most detailed log level" would show me something more useful than:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;blockquote style="font-family: courier new;"&gt;2009-05-29 01:53:02 (b6c1bb90): Received a message from daap server&lt;br /&gt;2009-05-29 01:53:02 (b6c1bb90): Rendezvous socket closed (daap server crashed?)  Aborting.&lt;br /&gt;2009-05-29 01:53:02: Aborting&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-family:verdana;"&gt;So, no, mt-daapd is not a solution to my problems.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I'll just go back to the Samba shares and NFS exports... &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;But it's all so lame.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Of course, there might be lots of defenders of mt-daapd who have 2,000 tracks in their collection. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I have 40,000 and that's barely a "big" number.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The irony of these advanced times... we now have storage devices that can hold terabytes of information. However, open-source applications scale to the 2000s information capacity. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Long live alternatives! :-/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;However, it seems I'm &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://ihatemtdaapd.blogspot.com/"&gt;not the only one&lt;/a&gt;&lt;span style="font-family:verdana;"&gt; who is frustrated in regards to mt-daapd.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7544555244026975802?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7544555244026975802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/mt-daapd-is-not-answer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7544555244026975802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7544555244026975802'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/mt-daapd-is-not-answer.html' title='mt-daapd is not the answer'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6677427340076230072</id><published>2009-05-13T00:31:00.001+03:00</published><updated>2009-11-29T05:29:33.023+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='annoyance'/><category scheme='http://www.blogger.com/atom/ns#' term='maildir'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kmail'/><category scheme='http://www.blogger.com/atom/ns#' term='evolution'/><category scheme='http://www.blogger.com/atom/ns#' term='mailbox'/><title type='text'>Migrating from KMail to Evolution</title><content type='html'>&lt;span style="font-family:verdana;"&gt;I've decided to give Gnome one more go (I've been a KDE user so far) so I installed Ubuntu 9.04 on my &lt;a href="http://plug-and-pray.blogspot.com/2009/05/asus-pro57vr-notebook-m51vr-and-linux.html"&gt;laptop&lt;/a&gt;. What's more is that I decided to use &lt;span style="font-style: italic;"&gt;only&lt;/span&gt; GTK applications, nothing Qt whatsoever. At least for a while, to see how it goes : )&lt;br /&gt;&lt;br /&gt;So far, nothing but confusion. What was notable though was the painful migration of my e-mails from KMail to Evolution.&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Evolution can import inboxes... but only in a few formats.&lt;br /&gt;&lt;br /&gt;In simple words, KMail uses the &lt;span style="font-style: italic;"&gt;maildir&lt;/span&gt; format (each e-mail is an individual file), whereas Evolution uses the &lt;span style="font-style: italic;"&gt;mailbox&lt;/span&gt; format (the inbox is one huge file where all e-mails are appended).&lt;br /&gt;&lt;br /&gt;So, in order to import the e-mails from KMail into Evolution, I first had to convert the maildir-ed e-mails to a big mailbox.&lt;br /&gt;&lt;br /&gt;First off, install &lt;span style="font-style: italic;"&gt;procmail&lt;/span&gt; -- it provides &lt;span style="font-style: italic;"&gt;formail&lt;/span&gt; (which is an e-mail (re)formatter):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo aptitude install procmail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, create the following simple script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# $1 is the file name (e-mail in maildir format);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# $2 is the name of the resulting mbox file.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo -n "."&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cat "$1" | formail -ds &gt;&gt; "$2"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Save it as &lt;span style="font-family:courier new;"&gt;mdir2mbox.sh&lt;/span&gt; and make it executable:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;chmod 755 mdir2mbox.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What the script does is it accepts a first parameter (which is the path and file name of an e-mail in maildir format) and a second one (which is the name of the resulted mailbox file); it creates a big &lt;span style="font-style: italic;"&gt;.mbox&lt;/span&gt; file.&lt;br /&gt;&lt;br /&gt;Next, KMail keeps the e-mails in &lt;span style="font-family:courier new;"&gt;/home/yourusername/.kde/share/apps/kmail/mail&lt;/span&gt;. Now, we want to create a mailbox for each of the folders you've had in KMail and you're interested in.&lt;br /&gt;&lt;br /&gt;Suppose we want to create 5 mailboxes (according to the folders from KMail that you need to import into Evolution): "tech", "announcements", "tasks", "meetings" and "offtopic".&lt;br /&gt;&lt;br /&gt;What you need to do is:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for email_folder in tech announcements tasks meetings offtopic ; do echo "=== $email_folder ===" ; find /home/yourusername/.kde/share/apps/kmail/mail/"$email_folder" -type f -exec ./mdir2mbox.sh "{}" "$email_folder.mbox" ";" ; echo ; done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If the above long line looks unreasonable to you, it's because I wrote it like that in order to allow a simple copy/paste in a console. If you feel more comfortable with a proper formatting, here's how it would look like as a script:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# You need to do 2 things here:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# 1. replace the list "tech announcements tasks meetings offtopic"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# with the list of folders in *your* KMail instance;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# 2. replace "/home/yourusername" with the location of your home&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# directory and the actual user name you have.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for email_folder in tech announcements tasks meetings offtopic&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo "=== $email_folder ==="&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;find /home/yourusername/.kde/share/apps/kmail/mail/"$email_folder" -type f -exec ./mdir2mbox.sh "{}" "$email_folder.mbox" ";" &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That's it. Now, go to Evolution: File &amp;gt;&amp;gt; Import... &amp;gt;&amp;gt; Forward &amp;gt;&amp;gt; select the "Import a single file" radio button &amp;gt;&amp;gt; Forward &amp;gt;&amp;gt; click on the "Filename" drop-down and navigate to the place you created your brand new .mbox files and select one of them &amp;gt;&amp;gt; if it's not already selected, select the "Berkeley Mailbox (mbox)" option from the "File type" drop-down &amp;gt;&amp;gt; Forward &amp;gt;&amp;gt; choose the destination folder (where the .mbox will be imported &amp;gt;&amp;gt; Forward &amp;gt;&amp;gt; click "Import".&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6677427340076230072?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6677427340076230072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/migrating-from-kmail-to-evolution.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6677427340076230072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6677427340076230072'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/migrating-from-kmail-to-evolution.html' title='Migrating from KMail to Evolution'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6716923531073412346</id><published>2009-05-11T00:25:00.002+03:00</published><updated>2010-02-12T13:42:34.680+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pro51v series'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='microphone'/><category scheme='http://www.blogger.com/atom/ns#' term='asus'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='pro51vr'/><category scheme='http://www.blogger.com/atom/ns#' term='m51vr'/><title type='text'>Asus Pro57Vr notebook (M51VR) and Linux</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh5.ggpht.com/_BrUsqnuWOXg/SgdWuHz5J7I/AAAAAAAAAHc/bBN3ZYLtWCE/asus_m51vr.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 425px; height: 402px;" src="http://lh5.ggpht.com/_BrUsqnuWOXg/SgdWuHz5J7I/AAAAAAAAAHc/bBN3ZYLtWCE/asus_m51vr.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I bought this &lt;a href="http://www.asus.com/product.aspx?P_ID=pzTyT383lwvGbXRZ"&gt;Asus Pro57Vr notebook&lt;/a&gt; (scroll and click "Specifications") about 10 days ago; it's reported as M51VR on Ubuntu.&lt;br /&gt;&lt;br /&gt;It's very nice, for its price. Plus, I've grown fond of Asus over the pas&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;t years, due to the great quality/price balance. &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;After I've stuffed my desktop system with a lot of Asus components, I thought I'd buy a laptop from them as well.&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;br /&gt;Operating system and drivers&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I was glad to find it at a local distributor with no operating system installed whatsoever.&lt;br /&gt;&lt;br /&gt;Asus recommend Vista for it and of course it forces this upon customers -- the CD with the drivers is for Vista (32b) only. Still, you can download the Windows (XP, 2000 etc.) drivers from their website.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I set it up as a dual boot between Windows 7 RC (which I was curious to try) and Ubuntu 9.04.&lt;br /&gt;&lt;br /&gt;I have to mention the fact that on Windows 7 RC I didn't need to install additional drivers - everything was handled by Windows *somehow* and when there were a few unrecognized devices left in "Device Manager", just as I began to wonder how to handle them, the operating system somehow automatically downloaded and installed them. Very nice.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:130%;" &gt;Things that didn't go as expected&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Two annoying things here:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. The ambient light sensor&lt;/span&gt; -- it's designed so stupidly -- it's probably meant for &lt;span style="font-style: italic;"&gt;outdoors&lt;/span&gt; situations (when you have more direct sunlight, the display will be bad so you'd need more brightness and, respectively, when it's not too sunny you can see the screen quite well so you don't need so much brightness).&lt;br /&gt;&lt;br /&gt;However, for &lt;span style="font-style: italic;"&gt;indoor&lt;/span&gt; use, this ambient light sensor behavior makes no sense -- it's quite the opposite! When the lights are turned off, I need more brightness and the other way around.&lt;br /&gt;&lt;br /&gt;The thing that is annoying from Asus' part is the fact that, while on Windows turning off the ambient light sensor is done easily ('Fn' key + 'a'), they didn't bother to draw any blue symbol on the "A" key to show you can use it in a "Fn" combination (whereas all other possible "Fn" options are drawn on the keyboard).&lt;br /&gt;&lt;br /&gt;On Linux however, surprise! this doesn't work. So you will have to do (as root):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;echo 0 &gt; /sys/devices/platform/asus_laptop/ls_switch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;in order to turn off the ambient light sensor.&lt;br /&gt;&lt;br /&gt;Obviously, this is necessary because as long as the stupid sensor is turned on, you can't adjust the brightness manually.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Built-in microphone.&lt;/span&gt; As of Ubuntu 9.04 and Alsa v. 1.0.18 (and 1.0.19, which I've also tried), the built-in microphone doesn't work.&lt;br /&gt;&lt;br /&gt;The problem is the Intel ICH9 device and the Realtek ALC663 codec.&lt;br /&gt;&lt;br /&gt;I've tried editing &lt;span style="font-family:courier new;"&gt;/etc/modprobe.d/alsa-base.conf&lt;/span&gt; and adding (among other things)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;options snd-hda-intel model=m51va&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;also changing the model to the ones available in Alsa's configuration (ALC662/663 section &lt;a href="http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt"&gt;here&lt;/a&gt;), but still no go. Also, everything in alsamixer is unmuted and properly volume-d.&lt;br /&gt;&lt;br /&gt;It simply won't work. Maybe... someday...&lt;br /&gt;&lt;br /&gt;Anyhow, I can always plug in an external microphone (from my headset) -- the jack controller is infallible. Still, this issue is annoying.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Pros&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Everything else : ) I really love this notebook. For its price, it does a lot of things.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6716923531073412346?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6716923531073412346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/asus-pro57vr-notebook-m51vr-and-linux.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6716923531073412346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6716923531073412346'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/05/asus-pro57vr-notebook-m51vr-and-linux.html' title='Asus Pro57Vr notebook (M51VR) and Linux'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_BrUsqnuWOXg/SgdWuHz5J7I/AAAAAAAAAHc/bBN3ZYLtWCE/s72-c/asus_m51vr.jpg' height='72' width='72'/><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-4533391123897441443</id><published>2009-03-26T23:52:00.001+02:00</published><updated>2009-11-29T05:31:14.366+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='last.fm'/><category scheme='http://www.blogger.com/atom/ns#' term='annoyance'/><title type='text'>Goodbye, last.fm!</title><content type='html'>&lt;span style="font-family:verdana;"&gt;After 2.5 years of using last.fm constantly and advocating for it, basically doing free advertising for it to all of my friends, the last.fm staff just took &lt;a href="http://blog.last.fm/2009/03/24/lastfm-radio-announcement"&gt;their worst decision ever&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It cost them a bunch of members, including myself.&lt;br /&gt;&lt;br /&gt;I used to be "LLRnR" on last.fm. Not any more.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:verdana;"&gt;In order to keep providing the best radio service on the web, we need to ask our listeners from countries other than &lt;/span&gt;&lt;span class="caps"  style="font-family:verdana;"&gt;USA&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;, UK and Germany to subscribe for €3.00 per month. In return you’ll get unlimited access to Last.fm Radio, and a promise that we’ll be hard at work improving the service for years to come.&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:verdana;"&gt;Yes, you guessed it right, I don't live in either of those 3 privileged and Arian places. So I got pissed off. NOT at the fact that I would be required to pay in order to use the radio stations feature, but at the way the author of this post, who is last.fm staff and who reflects last.fm's official views upon its user base, treats -- no, I mean &lt;span style="font-style: italic;"&gt;disregards&lt;/span&gt; -- people living in the "wrong countries".&lt;br /&gt;&lt;br /&gt;I'm not as absurd as some of the folks commenting on the blog entry proved to be -- I know that people in the "wrong countries" are not paying for the ones in the privileged places to listen to the radio stations. This supposition would turn out as false for anyone having the decency of taking a second look at the problem.&lt;br /&gt;&lt;br /&gt;My frustration emerges from many other "details":&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After being a loyal user who involuntarily beta tested the website and the player, now I'm getting a kick in the butt.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After being a loyal user who provided feedback, now I'm getting a kick in the butt.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After being a loyal user, I'm getting this announcement via a damned blog entry! Hellooooo last.fm staff! it's not as if I'd subscribe to the feed of any blog of any site I own an account on!&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After being a loyal user, I could have at least gotten this announcement on-site, in the user dashboard, not on the blog; or a private message; or an e-mail. They &lt;span style="font-style: italic;"&gt;can&lt;/span&gt; do that when they want to.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;The news was posted only 5 days before it is to take effect.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After helping out on the site -- improving wiki entries, submitting photos, adding videos etc. -- now I'm getting a kick in the butt.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;After allowing last.fm and audioscrobbler to gather my personal data -- listening habits, personal preferences, this kind of stuff --, after they've used me in order to improve their recommendations system and after I've contributed in my way to their building of a lot of radio stations, I'm now disregarded, getting a kick in the butt and being asked to pay for the things that &lt;span style="font-weight: bold;"&gt;I helped them build&lt;/span&gt;!!&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family:verdana;"&gt;On top of all that, I'm being basically asked to pay some sort of &lt;span style="font-style: italic;"&gt;penalty&lt;/span&gt; for the fact that I'm not Arian enough to be a user from a country which supports its streaming from ads income.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;So, if last.fm is mocking me, then my only option is to screw them and go elsewhere! I deleted my account. And it seems I was not the only one if I was to draw a conclusion from the comments on that article.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I agree no other similar service is as neat as last.fm was, but I can live with it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;As a user, I have my principles. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;I can listen to radio stations for free on &lt;a href="http://deezer.com/"&gt;Deezer&lt;/a&gt; or &lt;a href="http://grooveshark.com/"&gt;GrooveShark&lt;/a&gt;, to only name 2 such free services.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Anyhow, this was a huge disappointment.&lt;/span&gt;&lt;br /&gt;&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="down" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;span style="font-family:verdana;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_BrUsqnuWOXg/ScwKNgKDycI/AAAAAAAAAGo/lcgQMuieGyY/s1600-h/middle_finger_last.fm.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 230px; height: 320px;" src="http://4.bp.blogspot.com/_BrUsqnuWOXg/ScwKNgKDycI/AAAAAAAAAGo/lcgQMuieGyY/s320/middle_finger_last.fm.jpg" alt="" id="BLOGGER_PHOTO_ID_5317636487104416194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;As a final note&lt;/span&gt;, I know that my way of "protest" is ineffective. I'm sure they did their Maths right and they must have reached a conclusion along the lines of "Even if 95% of our users stop using last.fm and the remaining 5% will either renew their subscriptions, either purchase them, as we are asking, we will &lt;/span&gt;&lt;span style="font-weight: bold;font-family:verdana;"&gt;still &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;get our profits".&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;I'm sure they are actually relieved at the fact that they now have a user less - charts, recommendations a.s.o. to be generated for one less user since I deleted my account. However, it's the only position I can take because it's the only way I could have made my protest and my frustration visible.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;The only thing I can hope for is that all actual or former last.fm users who feel offended or who feel this crap management decision is not fair will somehow show solidarity and the last.fm guys will record the largest number of deleted accounts over a very short period.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;One thing they could have done was to at least provide a text field that was optional to fill in when pushing the "Delete my account!" button. But then again, they really don't give a shit on their users' feedback. So they don't need such a button.&lt;/span&gt;  &lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;The hell with you, last.fm! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=" font-style: italic; color: rgb(204, 204, 204);font-family:verdana;"&gt;Disclaimer: The hand in the image above is not mine, mkay? I just added the text on the pic. I googled for "middle finger" on images.google.com. &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-4533391123897441443?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/4533391123897441443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/03/goodbye-lastfm.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4533391123897441443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4533391123897441443'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/03/goodbye-lastfm.html' title='Goodbye, last.fm!'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_BrUsqnuWOXg/ScwKNgKDycI/AAAAAAAAAGo/lcgQMuieGyY/s72-c/middle_finger_last.fm.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8695844017647184384</id><published>2009-02-25T16:32:00.001+02:00</published><updated>2009-11-29T05:31:45.733+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='revision control'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>svn bad commit?</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Suppose you do a bad svn commit. Here is a quick hands-on.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Suppose you have the following revisions:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;- r532 - a good commit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;- r533 - a "bad" commit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;- r534 - another good commit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Now, you realize you shouldn't have svn-committed revision number r533.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;What to do? Well, "&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;svn revert&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;" will not be of much help here -- you use "&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;svn revert&lt;/span&gt;&lt;span style="font-family: verdana;"&gt;" just if you mess up a file locally and you want to get the correct one from the svn server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The answer is:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;* cd to the working branch, otherwise you'd get:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn: Cannot replace a directory from within&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;* from here, run:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn merge -r 534:532 file.sh&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;* next, you should see:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;U   file.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* after making sure the updated file.sh is fine, you should commit your changes and you will therefore have the new revision, r535:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;svn commit&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8695844017647184384?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8695844017647184384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/02/svn-bad-commit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8695844017647184384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8695844017647184384'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/02/svn-bad-commit.html' title='svn bad commit?'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-9191450491981716761</id><published>2009-02-19T17:24:00.001+02:00</published><updated>2009-11-29T05:32:06.271+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pidgin'/><title type='text'>Pidgin bug -- update</title><content type='html'>&lt;span style="font-family:verdana;"&gt;After &lt;span style="font-family:verdana;"&gt;&lt;a href="http://plug-and-pray.blogspot.com/2008/06/pidgin-bug.html"&gt;more than half of year&lt;/a&gt; after noticing the issue and getting frustrated with the &lt;a href="http://developer.pidgin.im/ticket/4795"&gt;"can't set new Yahoo! avatar in Pidgin"&lt;/a&gt; bug, it seems that things have finally gotten a move on!&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Testing whether the avatar updates for the Yahoo protocol in Pidgin 2.5.4 -- this finally works, with no other user intervention! Just go to Accounts &gt;&gt; Manage accounts and change the display picture.&lt;br /&gt;&lt;br /&gt;However, the previous version of Pidgin that I used, 2.4.1, didn't do that automatically. To sum it all up:&lt;br /&gt;&lt;br /&gt;The workaround for the avatar not updating for the Yahoo! protocol for Pidgin builds prior to version 2.5.3, was to:&lt;br /&gt;&lt;br /&gt;- quit pidgin;&lt;br /&gt;- edit &lt;span style="font-style: italic; font-weight: bold;"&gt;~/.pidgin/accounts.xml&lt;/span&gt;, where I removed the values attached to the Yahoo! account, for the following settings: &lt;span style="font-style: italic;"&gt;picture_url&lt;/span&gt;,&lt;span style="font-style: italic;"&gt; picture_checksum&lt;/span&gt;,&lt;span style="font-style: italic;"&gt; buddy_icon&lt;/span&gt;,&lt;span style="font-style: italic;"&gt; picture_expire&lt;/span&gt;, and&lt;span style="font-style: italic;"&gt; buddy_icon_timestamp&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The next time I ran it and set a picture, the values for the settings mentioned above were computed instantly and handled properly.&lt;br /&gt;&lt;br /&gt;Also, the picture displayed as the user avatar on the Yahoo! servers looked fine: &lt;a href="http://img.msg.yahoo.com/avatar.php?yids=Your_YM_ID_here"&gt;http://img.msg.yahoo.com/avatar.php?yids=Your_YM_ID_here&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-9191450491981716761?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/9191450491981716761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2009/02/pidgin-bug-update.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/9191450491981716761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/9191450491981716761'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2009/02/pidgin-bug-update.html' title='Pidgin bug -- update'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7687934430373292337</id><published>2008-11-17T16:42:00.002+02:00</published><updated>2010-06-11T23:00:29.606+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='color scheme'/><category scheme='http://www.blogger.com/atom/ns#' term='mc'/><category scheme='http://www.blogger.com/atom/ns#' term='transparency'/><title type='text'>Midnight Commander transparent color scheme</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Midnight Commander (or "mc") can have transparent panels instead of the ugly, dull default blue. So can "mcedit", its text editor.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Here's how to do it. Edit the file &lt;span style="font-family: 'courier new';"&gt;~/.mc/ini&lt;/span&gt; and add at the end the following:&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;base_color=normal=,default:selected=,:marked=,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;markselect=,:menu=,:menuhot=,:menusel=,:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;menuhotsel=,:dnormal=,:dfocus=,:dhotnormal=,:dhotfocus=,:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;input=,:reverse=,:executable=,default:directory=,default:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;link=,default:device=,default:special=,:core=,:helpnormal=,:\&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;helplink=,:helpslink=,:editnormal=,default:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note #1:&lt;/span&gt; In the above 'code' block, there is only one line below &lt;span style="font-family: 'courier new';"&gt;[Colors]&lt;/span&gt;. I truncated the line with the backslash because of blogspot rendering issues. You just write all that on one single line, without the "\" (backslash-es).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note #2:&lt;/span&gt; At the end of this line, the "&lt;span style="font-family: 'courier new';"&gt;editnormal,=default:&lt;/span&gt;" option means that mcedit will have transparent background in your console, as well.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;UPDATE:&lt;/span&gt; If you want to see a more in-depth look upon color customization in Midnight Commander, check out &lt;a href="http://plug-and-pray.blogspot.com/2009/09/editing-midnight-commanders-color.html"&gt;this post&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7687934430373292337?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7687934430373292337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/11/midnight-commander-transparent-color.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7687934430373292337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7687934430373292337'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/11/midnight-commander-transparent-color.html' title='Midnight Commander transparent color scheme'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6139990169981621588</id><published>2008-09-02T14:09:00.001+03:00</published><updated>2009-11-29T05:33:25.060+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='maildir'/><category scheme='http://www.blogger.com/atom/ns#' term='postfix'/><title type='text'>Postfix on FreeBSD - Maildir delivery</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Suppose you have a clean FreeBSD install and you want to get &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Postfix&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; as your MTA.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Current setup:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;OS: FreeBSD 7.0-RELEASE&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;SHELL: bash&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;no previously installed MTA present on the system&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;a name='more'&gt;&lt;/a&gt;Create a system user, say &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;test&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;. Then create the &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Maildir&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; for this user:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;# su test&lt;br /&gt;$ cd ~&lt;br /&gt;$ mkdir -p Maildir/{cur,new,tmp}&lt;br /&gt;$ chmod -R 700 Maildir&lt;br /&gt;$ exit&lt;br /&gt;#&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Then let's get on with the Postfix thing:&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;"&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;# pkg_add -rv postfix&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;If this line is not present in&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; /etc/rc.conf&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: courier new;"&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;# echo 'sendmail_enable="YES"' &gt;&gt; /etc/rc.conf&lt;br /&gt;# /usr/bin/newaliases&lt;br /&gt;# postconf -e home_mailbox="Maildir/"&lt;br /&gt;# postfix start&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;You're done. Now every mail sent to a user (who of course has his "&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Maildir/&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;" in place) will arrive in the &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/home/user/Maildir/new&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; directory.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6139990169981621588?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6139990169981621588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/09/postfix-on-freebsd-maildir-delivery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6139990169981621588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6139990169981621588'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/09/postfix-on-freebsd-maildir-delivery.html' title='Postfix on FreeBSD - Maildir delivery'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-3933431473045538618</id><published>2008-06-29T15:39:00.002+03:00</published><updated>2010-06-11T23:24:33.162+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='annoyance'/><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Triple boot pain</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Today I went at a friend's place to help him set up a triple boot system. The PC is brand new and bleeding edge (it will be used primarily as a gaming device), but the guy was still curious about Linux. So I told him about Linux in general and offered to install Ubuntu. He agreed and we went on with the partitioning scheme.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The HDD had 500 GB and we agreed to set up the partitions as follows:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;* primary partition - 50 GB - Vista Business x64&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;* primary partition - 50 GB - XP Professional x64&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;* primary partition - 25 GB - Kubuntu 8.04&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;* extended partition - ~375 GB&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;- 4 GB - Linux swap&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;- the rest - big storage partition&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;OK, so when all this was settled, I started the Vista install. It went OK, no troubles whatsoever. Then came Kubuntu - all went fine. I used GRUB in order to be able to choose between the two operation systems.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;After customizing the two operating systems, adding all the necessary applications etc. we thought we should finish the setup and have XP installed as well.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Surprise! Just after the reboot - after I chose the partition I was going to install XP unto and formatting it as NTFS and after the setup disk copied the necessary files and drivers on the HDD before the graphical installer could be launched - the PC came up with a gross error:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A disk read error has occurred. Press CTRL+ALT+DEL to restart.&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;"Whoa! And it didn't even get to the bootloader!" I said to myself with disdain.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;So, what to do? I googled for the error and came up with an &lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/919529"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;"explanatory" article on the Microsoft support website&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;. In short, you &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;are not supposed&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; to dare to attempt to install another Microsoft Windows operating system &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;after&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; you installed any version of Vista. Hah! What do you think about that?&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;What to do? I thought about the alternatives. My first go was to try to boot again from the XP install disk and attempt a repair (a "fixmbr" or "fixboot" something). Fired up the XP recovery console, chose the &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;right&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; partition (the one that had the XP GUI installer ready to start if I managed to boot of that HDD) and came to face a horror like surprise... the administrator password, which I &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;didn't&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; set, because I didn't have the chance to, was not blank. Under normal circumstances, I should have been faced with the opportunity to pick (and set) an administrator password after the first boot off the HDD (off the XP partition), but since this didn't happen, I thought the password shouldn't exist. Well, apparently it did. I'm not so much into Windows internals so if anyone has an explanation for this, please let me know (yes, I tried some "admin" and "administrator" variations but they didn't work).&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;So the XP recovery console repair solution was off the list... moving on.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;I was trying with all means necessary to follow Microsoft's indications and completely remove both operating systems and then only install XP (or the 'old' Windows version) and in the end Vista.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;So it only seemed natural to load the Kubuntu Live CD and restore GRUB. For this, you need to boot off the Live CD, wait until it loads, start a konsole or a terminal and then&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;$ sudo grub&lt;br /&gt;grub&amp;gt; find /boot/grub/stage1&lt;br /&gt;grub&amp;gt; root (hd?,?)&lt;br /&gt;grub&amp;gt; setup (hd?)&lt;br /&gt;grub&amp;gt; quit&lt;/span&gt; &lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;and then restart. (For more info on restoring GRUB after Windows overwrote the MBR using a Linux Live CD, check &lt;/span&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=224351"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;.)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Using the Live CD, I mounted the partition with the Kubuntu install and manually edited /boot/grub/menu.lst in order to add the XP entry there, too.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Then rebooted. Vista was fine, Kubuntu was fine, XP yielded a "NTLDR not found" error. Grrr.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Next off, booted Ubuntu, manually mounted the XP partition, insterted the XP install disk, copied  (disk)\i386&lt;/span&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;\ntldr&lt;/span&gt;&lt;/cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; and &lt;/span&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;(disk)&lt;/span&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;\i386\ntdetect.com&lt;/span&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; to the root of the XP filesystem, i.e. something like:&lt;br /&gt;&lt;/span&gt;  &lt;/cdrom&gt;&lt;cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;cp /media/cdrom0/i386/ntldr /media/xp&lt;br /&gt;cp /media/cdrom0/i386/ntdetect.com /media/xp&lt;/span&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;and then rebooted. Now XP didn't complain anymore about the missing NTLDR, but apparently it had no &lt;/span&gt; &lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;boot.ini&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; file. So I booted in Ubuntu once more, mounted the XP partition once more and wrote a &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;boot.ini&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; file that contained:&lt;br /&gt;&lt;/span&gt;  &lt;/cdrom&gt;&lt;cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;[boot loader]&lt;br /&gt;timeout=30&lt;br /&gt;default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS&lt;br /&gt;[operating systems]&lt;br /&gt;multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect&lt;/span&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;cdrom&gt;&lt;cdrom&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;The "partition(2)" part there was OK, since XP was installed on the 2nd partition of the HDD.&lt;br /&gt;&lt;br /&gt;This way, I finally managed to boot XP and the GUI installer started off the HDD. It all went fine from there on.&lt;br /&gt;&lt;br /&gt;Still, this was a challenging experience. Overall, in the end (and in the end solely!) I enjoyed a good laugh on the gay-ness of the whole "Windows Vista no longer starts after you install an earlier version of the Windows operating system in a dual-boot configuration" thing. Mwhaha!&lt;/span&gt;    &lt;/cdrom&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;/cdrom&gt;&lt;br /&gt;&lt;h1 class="title"&gt;&lt;br /&gt;&lt;/h1&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-3933431473045538618?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/3933431473045538618/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/triple-boot-pain.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3933431473045538618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3933431473045538618'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/triple-boot-pain.html' title='Triple boot pain'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-4966255981800889882</id><published>2008-06-26T18:52:00.001+03:00</published><updated>2009-11-29T05:35:25.082+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='packaging'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Manually modifying a .deb package</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;"&gt;From time to time, you might be facing a binary .deb package that you have to tweak for suiting your own needs or for testing purposes. By "a binary .deb package" I mean the final .deb, with a few configuration files and pre/post-inst/rm scripts and not the source files for the .deb themselves.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;So, what to do if you only want to change, say, the behavior of a &lt;em&gt;postinst&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; file and then have the .deb prepared for installation?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;First of all, the .deb itself is a kind of an archive. This is why you can browse its contents while in &lt;em&gt;mc&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;, for instance ("&lt;a href="http://www.ibiblio.org/mc/"&gt;Midnight Commander&lt;/a&gt;").&lt;/span&gt;&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 1.&lt;/span&gt; So, in order to operate upon the files contained within your .deb, you need to unpack it. Suppose your .deb package is called &lt;em&gt;your_package.deb&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;. You need to unpack it using the &lt;/span&gt;&lt;a href="http://sourceware.org/binutils/docs/binutils/ar.html"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;ar&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt; &lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;command, which is part of binutils.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;ar x your_package.deb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;This will result in 3 files: &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;debian-binary: ASCII text&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;control.tar.gz: gzip compressed data, from Unix&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;data.tar.gz: gzip compressed data, from Unix&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Now, a brief explanation on the two gzip files:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;data.tar.gz &lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;is the archive that contains the files that actually get installed (in &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/usr&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; or &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/opt&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; etc.), while &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;strong&gt;control.tar.gz&lt;em&gt; &lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;is an archive containing other important files. Usually, this latter archive has to contain:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;control: UTF-8 Unicode English text&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;md5sums: ASCII text&lt;/span&gt; (a text file that contains the md5 sum for every file contained within the &lt;em&gt;data.tar.gz&lt;/em&gt; archive)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;postinst: Bourne shell script text executable&lt;/span&gt; (a script that is to be executed after installing the package)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;postrm:   Bourne shell script text executable&lt;/span&gt; (a script that is to be executed after removing the package)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;preinst:  Bourne shell script text executable&lt;/span&gt; (a script that is to be executed before installing the package)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;prerm:    Bourne shell script text executable&lt;/span&gt; (a script that is to be executed before removing the package)&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Just a quick note: it's not necessary to have all of the &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;preinst&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;, &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;postinst&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;, &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;prerm&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; and &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;postrm&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; scripts (sometimes there's no need for some of them and they can be omitted).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 2.&lt;/span&gt; OK so now that you've gotten this straighted out, it's time to unpack one of the two archives and modify the file or files you need to customize. Suppose your file is one that actually gets 'installed', so it's in &lt;span style="font-style: italic;"&gt;data.tar.gz&lt;/span&gt;. To unpack this archive in a 'safe' way (to be able to easily re-pack it), execute:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;mkdir extras-data&lt;br /&gt;cd extras-data&lt;br /&gt;tar xfz ../data.tar.gz&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 3.&lt;/span&gt; Now go on and modify the file or files you need to change.&lt;/p&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 4.&lt;/span&gt; Remember, since you changed the contents of at least one file in the &lt;span style="font-style: italic;"&gt;data.tar.gz&lt;/span&gt; archive, its md5sums have changed as well. So it's time to update the &lt;span style="font-family:courier new;"&gt;md5sums&lt;/span&gt; file in &lt;span style="font-style: italic;"&gt;control.tar.gz&lt;/span&gt;.&lt;/span&gt;&lt;p style="font-family: courier new;font-family:courier new;" &gt;&lt;span style="font-family:courier new;"&gt;mkdir extras-control&lt;br /&gt;cd extras-control&lt;br /&gt;tar xfz ../control.tar.gz&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;Now, edit the file &lt;span style="font-family:courier new;"&gt;md5sums&lt;/span&gt;, carefully replacing each modified file's md5 sum with the new one.&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 5.&lt;/span&gt; Next, repack&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;control.tar.gz&lt;/span&gt;:&lt;/p&gt;&lt;p  style="font-family:courier new;"&gt;&lt;span style="font-family:courier new;"&gt;tar cfz control.tar.gz *&lt;br /&gt;mv control.tar.gz .. #&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; Warning: this will overwrite the original control.tar.gz archive&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 6.&lt;/span&gt; Next step is to repack the &lt;span style="font-style: italic;"&gt;data.tar.gz&lt;/span&gt; archive:&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-family:courier new;"&gt;cd ../extras-data&lt;br /&gt;tar cfz data.tar.gz *&lt;br /&gt;mv data.tar.gz .. &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;# Warning: this will overwrite the original data.tar.gz archive&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 7.&lt;/span&gt; Then clean up:&lt;/p&gt;&lt;p style="font-family: courier new;"&gt;&lt;span style="font-family:courier new;"&gt;cd ..&lt;br /&gt;rm -fr extras*&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Step 8.&lt;/span&gt; The final step is to actually rebuild your .deb package:&lt;/p&gt;&lt;p style="font-family: courier new;"&gt;&lt;span style="font-family:courier new;"&gt;ar r your_new_package.deb debian-binary control.tar.gz data.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p  style="font-family:verdana;"&gt;That's it, you're done. You will now have your custom .deb package, called &lt;span style="font-family:courier new;"&gt;your_new_package.de&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;b&lt;/span&gt;.&lt;/p&gt;&lt;span style="font-family:verdana;"&gt;Good luck.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;LATER EDIT: &lt;/span&gt;Be careful, when repackaging the &lt;span style="font-style: italic;"&gt;ar&lt;/span&gt; archive, always do it in the order specified above (i.e. 1) &lt;span style="font-style: italic;"&gt;debian-binary&lt;/span&gt;, 2) &lt;span style="font-style: italic;"&gt;control.tar.gz&lt;/span&gt; and 3) &lt;span style="font-style: italic;"&gt;data.tar.gz&lt;/span&gt;). Otherwise it won't work. I noticed the mistake when a colleague told me the resulted archive is not a valid Debian package if the 'instructions' were followed exactly.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-4966255981800889882?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/4966255981800889882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/manually-modifying-deb-package.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4966255981800889882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4966255981800889882'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/manually-modifying-deb-package.html' title='Manually modifying a .deb package'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8737341062084932821</id><published>2008-06-22T16:59:00.001+03:00</published><updated>2009-11-29T05:36:05.868+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='sata'/><title type='text'>Ubuntu 8.04 Live CD and weird SATA HDD</title><content type='html'>&lt;span style="font-family: verdana;"&gt;Today I went at a friend's to help her set up a new PC in a dual boot configuration (Windows XP, which was already installed, and Kubuntu 8.04).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;XP came preinstalled so I burned a CD with Kubuntu 8.04 and booted from it... just to find out that there was no normal way of detecting the HDD as device.&lt;a name='more'&gt;&lt;/a&gt; Indeed,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sudo fdisk -l &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;showed nothing at all. Also, in &lt;span style="font-style: italic;"&gt;dmesg&lt;/span&gt; there were some errors regarding an ATA port error. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;So I booted back in XP and saw the HDD model was a HD502IJ Samsung on SATA that just &lt;/span&gt;&lt;span style="font-style: italic; font-family: verdana;"&gt;might&lt;/span&gt; &lt;span style="font-family: verdana;"&gt;pose boot problems (not being detected).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;I managed to have the HDD detected only by specifying at the boot prompt the option&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;all_generic_ide&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;After this, the HDD was visible, its partitions were visible and I could operate on it normally.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8737341062084932821?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8737341062084932821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/ubuntu-804-live-cd-and-weird-sata-hdd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8737341062084932821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8737341062084932821'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/ubuntu-804-live-cd-and-weird-sata-hdd.html' title='Ubuntu 8.04 Live CD and weird SATA HDD'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-4819761390881798480</id><published>2008-06-10T08:22:00.002+03:00</published><updated>2010-06-11T23:23:44.182+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pidgin'/><category scheme='http://www.blogger.com/atom/ns#' term='monotone'/><title type='text'>Compiling Pidgin MTN</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This post explains how to compile Pidgin from source, but not the stable Pidgin releases available for download on the &lt;/span&gt;&lt;a href="http://pidgin.im/"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;website&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;; instead, I'm talking about the latest development Pidgin version (often called "Pidgin MTN"), available via &lt;/span&gt;&lt;a href="http://monotone.ca/"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Monotone&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; (a distributed version control system). See &lt;/span&gt;&lt;a href="http://plug-and-pray.blogspot.com/2008/06/compile-monotone-from-source.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;this post&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; regarding compiling Monotone from source.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 1.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; Install Monotone version 0.36 or newer. If this version is not already available in your distro repositories, you must &lt;/span&gt;&lt;a href="http://plug-and-pray.blogspot.com/2008/06/compile-monotone-from-source.html"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;compile it from source&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 2.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; Think of a place you'll save the Pidgin Monotone database in.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mkdir /root/mtn_dbs&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;cd /root/mtn_dbs&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 3.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; Fetch the Pidgin MTN database archive and unpack it.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;wget http://developer.pidgin.im/static/pidgin.mtn.bz2&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;bzip2 -d pidgin.mtn.bz2&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 4.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; MTN pull:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn pull -d pidgin.mtn --set-default pidgin.im "im.pidgin.*"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;If you get this message:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: misuse: database /root/mtn_dbs/pidgin.mtn is laid out according to an old schema&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: misuse: try 'mtn db migrate' to upgrade&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: misuse: (this is irreversible; you may want to make a backup copy first)&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;it means you need to "update" the scheme used by the Pidgin MTN database. Use this:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn -d pidgin.mtn db migrate&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn pull -d pidgin.mtn --set-default pidgin.im "im.pidgin.*"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;If everything was OK, you should see something very similar with:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: setting default server to pidgin.im&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: setting default branch include pattern to 'im.pidgin.*'&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: setting default branch exclude pattern to ''&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: doing anonymous pull; use -kKEYNAME if you need authentication&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: connecting to pidgin.im&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: finding items to synchronize:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: certificates | keys | revisions&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn:       75,738 |   52 |    25,104&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn:  bytes in | bytes out | certs in | revs in&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn:   199.8 k |   120.2 k |  137/137 |   34/34&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn: successful exchange with pidgin.im&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 5. &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;MTN checkout in order to fetch the latest branches:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;mtn -d pidgin.mtn co -b im.pidgin.pidgin _pidgin&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This will create a &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;_pidgin&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; directory in your&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; /root/mtn_dbs&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; one.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;cd _pidgin&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 6. &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;If you want full support for &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;ALL&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; features that Pidgin provides, you need to install the dependencies. I can't stress this enough. You won't probably need all of these, but it's just meant as an example. So, on a Debian / Ubuntu system, such as mine, which already has a few compilers and general build tools and &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;gettext&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; installed, the dependencies required to build &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;ALL&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; the Pidgin features will look like:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;aptitude install libxss-dev intltool libstartup-notification0-dev libgtkspell-dev libgstreamer0.10-dev libmeanwhile-dev libdbus-glib-1-dev network-manager-dev libperl-dev tcl8.4-dev tk8.4-dev &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 7. &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Time to compile Pidgin:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;./autogen.sh --enable-debug&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Normally, there shouldn't be any troubles if you hadn't missed anything from Step 6. out. (I usually build Pidgin with the "--enable-debug" switch.)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Step 8.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; If everything went OK in the compile stage, it's time to&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;make &amp;amp;&amp;amp; make install&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Your "Pidgin MTN" should now... work, unless you were really unlucky and fetched the sources just when a critical bug infiltrated in the developement process. :-) Good luck bug hunting!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-4819761390881798480?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/4819761390881798480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/compiling-pidgin-mtn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4819761390881798480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/4819761390881798480'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/compiling-pidgin-mtn.html' title='Compiling Pidgin MTN'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8478857002960965791</id><published>2008-06-10T00:06:00.001+03:00</published><updated>2009-11-29T05:37:30.121+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='monotone'/><title type='text'>Compile Monotone from source</title><content type='html'>&lt;span style="font-family:verdana;"&gt;The current version of &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://monotone.ca/"&gt;Monotone&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;, a distributed version control system, is 0.40. To compile it from source:&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;wget http://monotone.ca/downloads/0.40/monotone-0.40.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;tar xfz monotone-0.40.tar.gz&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;cd monotone-0.40&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;You'll need to install its dependencies before compiling it, i.e.:&lt;/span&gt;&lt;br /&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;autoconf&lt;/li&gt;&lt;li&gt;automake&lt;/li&gt;&lt;li&gt;gettext&lt;/li&gt;&lt;li&gt;g++ 3.2 or newer&lt;/li&gt;&lt;li&gt;boost 1.33.0 or newer&lt;/li&gt;&lt;li&gt;zlib 1.1.4 or newer&lt;/li&gt;&lt;li&gt;libiconv&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family:verdana;"&gt;On a Debian / Ubuntu system, you'll need to do:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo aptitude install autoconf automake gettext libboost-dev libz-dev g++&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Next, we're on to compile it:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;./configure &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Next... erm... learn how to use it?! Here's a comprehensive &lt;a href="http://monotone.ca/docs/index.html"&gt;Monotone manual&lt;/a&gt;. Enjoy... or not.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Later edit:&lt;/span&gt; Ah, finally, here's an "&lt;a href="http://www.venge.net/mtn-wiki/EssentialMonotone"&gt;Essential Monotone&lt;/a&gt;" page for foolish mortals.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8478857002960965791?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8478857002960965791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/compile-monotone-from-source.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8478857002960965791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8478857002960965791'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/compile-monotone-from-source.html' title='Compile Monotone from source'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6085983326933332179</id><published>2008-06-09T00:09:00.001+03:00</published><updated>2009-11-29T05:38:30.427+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gimp'/><category scheme='http://www.blogger.com/atom/ns#' term='photo editing'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>How to overlap two images using Gimp</title><content type='html'>&lt;a href="http://www.gimp.org/"&gt;Gimp&lt;/a&gt; - one of the greatest professional apps ever to be found out there... professional image manipulation software; and, of course, open source.&lt;br /&gt;&lt;br /&gt;Too bad there are a lot of idiots in this world - starting with myself - who don't have the slightest clue on how to use it. I mean, I always loved photography and as a kid I used to play with my grandfather's "borrowed" old &lt;a href="http://en.wikipedia.org/wiki/Zenit_%28camera%29"&gt;Zenit&lt;/a&gt; camera, but since photographic films were not cheap and I had no means of editing the photos, I quit. Since then, I've been planning... and planning to get a camera of my own, but since I don't want anything below a &lt;a href="http://en.wikipedia.org/wiki/Single-lens_reflex_camera"&gt;SLR&lt;/a&gt; - and a decent one is around 1,000 EUR - it'll have to wait. But that's another story...&lt;br /&gt;&lt;br /&gt;Getting back to Gimp. My concrete problem was how to get two images of exact size (after adjusting their size such that they "fitted" the dimensions) overlap with an amount of transparency. I'm aware this must be an extremely easy task for anyone just a little bit more photo editing savvy than myself, but anyways - I had no clue what to do so after googling and reading a little bit, I found out.&lt;br /&gt;&lt;br /&gt;I'm posting here the "short version", suitable for my concrete issue. (Such that I'll know next time where exactly to go to for instructions.)&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;Step 1.&lt;/span&gt; Get two images and, after making the suitable adjustments for each of them, be sure they have the same width and height. Have both of them opened in Gimp.&lt;br /&gt;&lt;br /&gt;In my case, here's where I started from:&lt;br /&gt;&lt;br /&gt;The first image:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_BrUsqnuWOXg/SExOsIM0DSI/AAAAAAAAAB8/v7UlmzGuSdc/s1600-h/matrix_cropped.jpg"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_BrUsqnuWOXg/SExOsIM0DSI/AAAAAAAAAB8/v7UlmzGuSdc/s320/matrix_cropped.jpg" alt="" id="BLOGGER_PHOTO_ID_5209625388983258402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and the second one:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExO4CTzA6I/AAAAAAAAACE/S31htzcan8g/s1600-h/beastie_green_ok.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExO4CTzA6I/AAAAAAAAACE/S31htzcan8g/s320/beastie_green_ok.png" alt="" id="BLOGGER_PHOTO_ID_5209625593560368034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2.&lt;/span&gt; Select the image that will be the "base" one, i.e. the one you want as, say, "background". (In my case, this was the "Matrix" picture.) Next, select "&lt;span style="font-weight: bold;"&gt;Layer&lt;/span&gt;" -&gt; "&lt;span style="font-weight: bold;"&gt;New Layer...&lt;/span&gt;", then give the new layer a name and select "&lt;span style="font-weight: bold;"&gt;Transparency&lt;/span&gt;" in the "&lt;span style="font-weight: bold;"&gt;Layer Fill Type&lt;/span&gt;" section.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExPdxJ089I/AAAAAAAAACM/MsG-4ChVpxo/s1600-h/add_overlap_layer.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExPdxJ089I/AAAAAAAAACM/MsG-4ChVpxo/s320/add_overlap_layer.png" alt="" id="BLOGGER_PHOTO_ID_5209626241790178258" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 3.&lt;/span&gt; Naturally, now that you've created the new layer on the base image, you want to paste onto it the overlapping photo. To do this, go to the second photo and copy it ("&lt;span style="font-weight: bold;"&gt;Edit&lt;/span&gt;" -&gt; "&lt;span style="font-weight: bold;"&gt;Copy&lt;/span&gt;") and then come back to the base image and paste it on the new layer ("&lt;span style="font-weight: bold;"&gt;Edit&lt;/span&gt;" -&gt; "&lt;span style="font-weight: bold;"&gt;Paste&lt;/span&gt;").&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 4. &lt;/span&gt;Now you've got the "top" photo over the "base" photo, in a separate layer. The problem is you can't do much on this second layer because, erm, well, it's "floating". You have to make it stay still :-) Go to the "&lt;span style="font-weight: bold;"&gt;Layer&lt;/span&gt;" menu and select "&lt;span style="font-weight: bold;"&gt;Anchor Layer&lt;/span&gt;" from there.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 5. &lt;/span&gt;Next, you need to add to your overlay ("top") layer what is known as a layer mask. To do this, select from the "&lt;span style="font-weight: bold;"&gt;Layer&lt;/span&gt;" menu "&lt;span style="font-weight: bold;"&gt;Mask&lt;/span&gt;" -&gt; "&lt;span style="font-weight: bold;"&gt;Add Layer Mask...&lt;/span&gt;" and from the options present there, pick "&lt;span style="font-weight: bold;"&gt;White (full opacity)&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExR7ikxMPI/AAAAAAAAACc/ZuRBdZ-OnaE/s1600-h/add_layer_mask.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_BrUsqnuWOXg/SExR7ikxMPI/AAAAAAAAACc/ZuRBdZ-OnaE/s320/add_layer_mask.png" alt="" id="BLOGGER_PHOTO_ID_5209628952295977202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 6.&lt;/span&gt; Next, you need a gradient on this layer mask in order to "make" the transition between the two images. From Gimp's main window, select from the toolbox the Gradient tool ("Blend tool"). For the purpose of &lt;span style="font-style: italic;"&gt;this&lt;/span&gt; particular blending, I chose a radial gradient, from light gray to an even lighter gray. The selected fill options are the same as in the image below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_BrUsqnuWOXg/SE2INmq_VKI/AAAAAAAAAC0/XJdohANz94k/s1600-h/gradient_options.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_BrUsqnuWOXg/SE2INmq_VKI/AAAAAAAAAC0/XJdohANz94k/s320/gradient_options.png" alt="" id="BLOGGER_PHOTO_ID_5209970111238067362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 7. &lt;/span&gt;Now it's time to actually apply the gradient on the mask layer. I chose to drag a diagonal line in order to apply the radial gradient (such that the radial gradient could cover all the picture). Just drag a line (with the gradient tool selected) on the mask layer, from, say, the upper left corner to the lower right corner.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 8.&lt;/span&gt; Voilà. The gradient is now applied and the two images should be present in a "blend". The result should be something similar to the picture below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_BrUsqnuWOXg/SE2JpSFSStI/AAAAAAAAAC8/0YH6_sBkO_Q/s1600-h/gradient_applied.png"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_BrUsqnuWOXg/SE2JpSFSStI/AAAAAAAAAC8/0YH6_sBkO_Q/s320/gradient_applied.png" alt="" id="BLOGGER_PHOTO_ID_5209971686259182290" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 9. &lt;/span&gt;If you're not satisfied with the results, you can tweak various parameters and repeat &lt;span style="font-weight: bold;"&gt;Step 6.&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Step 7.&lt;/span&gt; until you get to like the final result.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 10.&lt;/span&gt; In order to be able to save the resulted picture in an usable image format, you must have only one layer; that is, you need to "flatten the layers" present in the picture. From the &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;"&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Image&lt;/span&gt;" menu, pick "&lt;span style="font-weight: bold;"&gt;Flatten Image&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 11. &lt;/span&gt;Now you're ready to save your new picture. Choose "&lt;span style="font-weight: bold;"&gt;File&lt;/span&gt;" -&gt; "&lt;span style="font-weight: bold;"&gt;Save As...&lt;/span&gt;" and set a file name for your picture. (Just make sure you pick "&lt;span style="font-weight: bold;"&gt;Save As...&lt;/span&gt;" instead of "&lt;span style="font-weight: bold;"&gt;Save&lt;/span&gt;", otherwise you'd end up overwriting your original "base" image - in my case, the "Matrix" one.)&lt;br /&gt;&lt;br /&gt;I don't know if anyone might find this useful, but as for myself, it's certainly a good idea to keep a good account of new learned "skillz". :-)&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6085983326933332179?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6085983326933332179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/how-to-overlap-two-images-using-gimp.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6085983326933332179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6085983326933332179'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/how-to-overlap-two-images-using-gimp.html' title='How to overlap two images using Gimp'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_BrUsqnuWOXg/SExOsIM0DSI/AAAAAAAAAB8/v7UlmzGuSdc/s72-c/matrix_cropped.jpg' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8936746561243633805</id><published>2008-06-08T12:51:00.001+03:00</published><updated>2009-11-29T05:39:12.474+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='pidgin'/><title type='text'>Pidgin bug</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;"&gt;While I have to admit that &lt;/span&gt;&lt;a style="font-family: verdana;" href="http://pidgin.im/"&gt;Pidgin&lt;/a&gt;&lt;span style="font-family:verdana;"&gt; is generally speaking a great multi-protocol IM (instant messaging) client, it's got its flaws too... just like any software. And I'm  not talking here about the  &lt;a href="http://digg.com/software/Pidgin_fork_resulting_from_developer_userbase_skirmish"&gt;notorious developers / users scandal&lt;/a&gt;, resulting in a &lt;a href="http://funpidgin.sourceforge.net/"&gt;Pidgin fork&lt;/a&gt; because users just wanted a resizable text input field, while the developers said they don't care. I'm not even talking about the lack of voice and web cam support (there's a &lt;a href="http://developer.pidgin.im/ticket/34"&gt;ticket&lt;/a&gt; from the beginning of time there... prioritized as minor).&lt;/span&gt;&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;No, I'm talking about 'ordinary', 'daily life' bugs... such as the old, recurring "why can't I set / see my Yahoo avatar?" issue. While on Gaim I recall it worked with no problems, at a later point in Pidgin developement, users (including myself) got frustrated (well not really, but it's a functionality problem) that they couldn't get Windows Yahoo Messenger users to see their Yahoo avatar set with Pidgin. (Instead, Yahoo Messenger Windows users only saw a black square instead of the picture.)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;I searched through the Pidign tickets, saw some "hey, it works" remarks and thought it was a local problem of mine; then forgot about it, I didn't really need to use an avatar. A few days ago though I really meant to set one, and, surprise, the problem popped up again.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;I found the ticket again and decided to investigate further. The &lt;a href="http://developer.pidgin.im/ticket/4795"&gt;"Can't set Yahoo avatar" ticket is here&lt;/a&gt;, with a descriptive comment from me (&lt;em&gt;llrnr&lt;/em&gt;).&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;Soon after my comment, somebody took care of the issue and closed the ticket with the "Fixed" resolution... still waiting for the fix to be available through SVN, weee! :-D&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;In short, the problem resided in the way the checksum for the avatar was computed. My "on-the-fly-dumb-end-user-fix" was to look at what another IM client did after I got sure the Yahoo avatar was set OK and visible to any user. So I took a closer look at what &lt;a href="http://kopete.kde.org/"&gt;Kopete&lt;/a&gt; was doing.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;In &lt;em&gt;/home/user/.kde/share/config/kopeterc&lt;/em&gt;, there were two important variables regarding the Yahoo avatar: &lt;em&gt;iconRemoteUrl&lt;/em&gt; and &lt;em&gt;iconCheckSum&lt;/em&gt;. While keeping this in mind, I checked out the avatar-related settings for Pidgin, in &lt;em&gt;/home/user/.purple/accounts.xml&lt;/em&gt; and it turned out I just had to replace Pidgin's &lt;em&gt;picture_url&lt;/em&gt; string with the string I got in the Kopete &lt;em&gt;iconRemoteUrl&lt;/em&gt; string and Pidgin's &lt;em&gt;picture_checksum&lt;/em&gt; string with what Kopete stored in the &lt;em&gt;iconCheckSum&lt;/em&gt; string.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;"&gt;While I can't guarantee this works for everybody, it kind of worked for me... Now I'm waiting for the official fix while enjoying all the thrills and wonders of open source software.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8936746561243633805?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8936746561243633805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/pidgin-bug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8936746561243633805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8936746561243633805'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/06/pidgin-bug.html' title='Pidgin bug'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2302237546767166795</id><published>2008-04-09T06:40:00.003+03:00</published><updated>2010-02-07T19:50:34.185+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='flac'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Convert .flac files into .mp3</title><content type='html'>&lt;span style="font-family:verdana;" &gt;In order to convert &lt;span style="font-family: courier new"&gt;.flac&lt;/span&gt; to &lt;span style="font-family: courier new"&gt;.mp3&lt;/span&gt;, you'd need to do the following: first &lt;span style="font-family: courier new"&gt;cd&lt;/span&gt; into the directory with the &lt;span style="font-family: courier new"&gt;.flac&lt;/span&gt; files, then&lt;span style="font-family: courier new"&gt;&lt;blockquote&gt;for x in *.flac ; do OUTF=`echo "$x" | sed s/\.flac$/.mp3/g` ; flac -c -d "$x" | lame -m j -q 0 -V 0 -s 44.1 - "$OUTF" ; done&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2302237546767166795?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2302237546767166795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/04/convert-flac-files-into-mp3.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2302237546767166795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2302237546767166795'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/04/convert-flac-files-into-mp3.html' title='Convert .flac files into .mp3'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2740942445812605731</id><published>2008-02-29T20:54:00.005+02:00</published><updated>2010-06-12T09:36:47.520+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Default charset in apache (2)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Yep, so getting back... apparently I've missed some important hint:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;a href="http://www.apache.org/dist/httpd/CHANGES_2.2"&gt;http://www.apache.org/dist/httpd/CHANGES_2.2&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;This file contains a paragraph I missed:&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;*) mod_autoindex: Add in Type and Charset options to IndexOptions directive. This allows the admin to explicitly set the content-type and charset of the generated page and is therefore a viable workaround for buggy browsers affected by CVE-2007-4465&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;(cve.mitre.org). [Jim Jagielski]&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Not really obvious, but anyways... they did say something about it after all.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The really useful answer to this issue came from somebody on the httpd mailing lists - I &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;really &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;need to quote this, it's really straightforward:&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="font-style: italic;"&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;In earlier versions, mod_autoindex didn't set any charset at all. This meant that AddDefaultCharset, which only works when no other charset is specified, was picked up. But it also meant that no charset was sent at all if AddDefaultCharset wasn't present.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;To protect buggy browsers from cross-site scripting (XSS) attacks, all content originated from apache needs to have a charset assigned, so a change was made in 2.2.6 to assign a charset (utf-8 for windows and iso-8859-1 for everything else, if I recall correctly). The charset option was also added to IndexOptions for those who need to override it.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;So, yes, the current behavior is expected and correct and the old behavior is wrong. You should use IndexOptions charset= to change the mod_autoindex charset and not AddDefaultCharset.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2740942445812605731?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2740942445812605731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-charset-in-apache-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2740942445812605731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2740942445812605731'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-charset-in-apache-2.html' title='Default charset in apache (2)'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-7947055734698666344</id><published>2008-02-28T01:02:00.009+02:00</published><updated>2010-06-12T09:33:40.730+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Default charset in apache</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Darn! I finally got over my problem... so let's get back to the very beginning...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;I use apache 2.2.4. I've been using it without a problem for a long time. My needs for apache are very basic: I just need tons of directory listings (indexes) with the ability to follow symbolic links, and ~10 aliases. The files in the directory listings are on my local computer and they usually have "weird" encodings, so I needed to let apache know I need it to use UTF-8 as default charset/encoding. Simple to achieve... or so it seemed: I used to run apache installed via &lt;span style="font-family:courier new"&gt;aptitude&lt;/span&gt; under &lt;span style="font-family:courier new"&gt;/etc/apache2&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;In &lt;span style="font-family:courier new"&gt;/etc/apache2/apache2.conf&lt;/span&gt; there was a line:&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;Include /etc/apache2/conf.d/&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;And furthermore, of course,&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;cat /etc/apache2/conf.d/charset&lt;br /&gt;AddDefaultCharset UTF-8&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;All was fine until a while ago, when after the last apache2 package update, I realized the &lt;span style="font-family:courier new"&gt;AddDefaultCharset&lt;/span&gt; directive didn't take effect anymore – no matter what encoding I would have tried to use instead of UTF-8.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;First thing I did was go check with the apache &lt;a href="http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset"&gt;documentation&lt;/a&gt;... and God saw that it was right! No, wait...&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;I was playing according to the manual, but somehow things didn't work as expected. I even tried adding the &lt;span style="font-family:courier new"&gt;AddDefaultCharset&lt;/span&gt; line to &lt;span style="font-family:courier new"&gt;/etc/apache2/apache2.conf&lt;/span&gt; directly, but to no avail.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Then I looked for an answer in the apache httpd bugs section, on mailing lists, forums... still no result.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Finally, somehow I found the answer (after an hour of frustrated googling)... actually it's not an answer as in: an explanation for why the &lt;span style="font-family:courier new"&gt;AddDefaultCharset&lt;/span&gt; directive doesn't take effect anymore (this is why I'm labeling this post with "bugs" too), but it's at least a workaround for my problem at hand: my &lt;span style="font-family:courier new"&gt;/etc/apache2/apache2.conf&lt;/span&gt; needs to have the following line:&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;IndexOptions Charset=UTF-8&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;At least now "it works"... I have all directory listings displayed in the UTF-8 encoding, such that all non-Latin content on my server is displayed correctly.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;&lt;b&gt;Note #1:&lt;/b&gt; Somehow, trying the good ol' &lt;span style="font-family:courier new"&gt;AddDefaultCharset&lt;/span&gt; directive in apache 1.3 under FreeBSD yields the expected results.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;&lt;b&gt;Note #2:&lt;/b&gt; Somehow, trying the good ol' &lt;span style="font-family:courier new"&gt;AddDefaultCharset&lt;/span&gt; directive in apache 2.2.8 (the latest release as of now), compiled from source, still doesn't work.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-7947055734698666344?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/7947055734698666344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-charset-in-apache.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7947055734698666344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/7947055734698666344'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-charset-in-apache.html' title='Default charset in apache'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8035636714610701277</id><published>2008-02-27T07:04:00.002+02:00</published><updated>2010-06-11T23:27:00.530+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><title type='text'>Webmin in FreeBSD</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Webmin installation in FreeBSD is pretty straightforward:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family: 'courier new';"&gt;pkg_add -rv webmin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;echo 'webmin_enable="YES"' &amp;gt;&amp;gt; /etc/rc.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;/usr/local/lib/webmin/setup.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'courier new';"&gt;/usr/local/etc/rc.d/webmin start&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family: 'courier new';"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8035636714610701277?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8035636714610701277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/webmin-in-freebsd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8035636714610701277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8035636714610701277'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/webmin-in-freebsd.html' title='Webmin in FreeBSD'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-450065261417454878</id><published>2008-02-26T22:40:00.004+02:00</published><updated>2010-06-12T09:16:59.314+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Apache...</title><content type='html'>&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;For a wealth of apache documentation: &lt;a href="http://httpd.apache.org/docs/1.3/mod/core.html"&gt;apache.org httpd docs&lt;/a&gt;. (Just change '1.3' in the URL into '2.0' or '2.2' for different flavors.)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Note to self: RTFM.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-450065261417454878?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/450065261417454878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/450065261417454878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/450065261417454878'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/apache.html' title='Apache...'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-3567566307226634465</id><published>2008-02-26T21:53:00.003+02:00</published><updated>2010-06-12T09:12:46.867+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='locales'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Basic apache configuration in FreeBSD</title><content type='html'>&lt;span style="font-family:Verdana, sans-serif"&gt;So I decided to try out apache in FreeBSD...&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;pkg_add -rv apache&lt;br /&gt;vi /usr/local/etc/apache/httpd.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Added the lines:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;ServerName www&lt;br /&gt;BindAddress *&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Supposing my hostname is &lt;span style="font-family:courier new"&gt;dvorak&lt;/span&gt;, I need to edit&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;vi /etc/hosts&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;and add the line:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;127.0.0.1 dvorak&lt;/span&gt;&lt;/blockquote&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;And now&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;apachectl start&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;The &lt;span style="font-family:courier new"&gt;DocumentRoot&lt;/span&gt; is &lt;span style="font-family:courier new"&gt;/usr/local/www/data&lt;/span&gt; in this default configuration.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Great. Now it "works" but being given the default config, right now I can't enter non-Latin characters in files/filenames. I'd basically need UTF-8 exported as charset. The solution is to make use of &lt;span style="font-family:courier new"&gt;~/.login_conf&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;For a minimalistic &lt;span style="font-family:courier new"&gt;~/.login_conf&lt;/span&gt;, I need to do:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new"&gt;&lt;blockquote&gt;echo "me:\" &gt;&gt; ~/.login_conf&lt;br /&gt;echo ":charset=UTF-8:\" &gt;&gt; ~/.login_conf&lt;br /&gt;echo ":lang= en_US.UTF-8" &gt;&gt; ~/.login_conf&lt;/blockquote&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Wheee now I can enter stuff such as "şţăîâабкдеф" in the terminal!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;More on setting locales (via &lt;span style="font-family:courier new"&gt;~/.login_conf&lt;/span&gt;) in the &lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html" target="_blank"&gt;FreeBSD handbook&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Next on, I need to make apache know of UTF-8:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;echo "AddDefaultCharset utf-8" &gt;&gt; /usr/local/etc/apache/httpd.conf&lt;br /&gt;apachectl restart&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Voilà!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Just one more thing: in order to have apache started automatically at each boot, I need an entry in &lt;span style="font-family:courier new"&gt;/etc/rc.conf&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;echo 'apache_enable="YES"' &gt;&gt; /etc/rc.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-3567566307226634465?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/3567566307226634465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/basic-apache-configuration-in-freebsd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3567566307226634465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3567566307226634465'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/basic-apache-configuration-in-freebsd.html' title='Basic apache configuration in FreeBSD'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-5843771815993624662</id><published>2008-02-26T21:21:00.003+02:00</published><updated>2010-06-12T08:55:05.333+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='procfs'/><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><title type='text'>procfs and loadavg</title><content type='html'>&lt;span style="font-family:Verdana, sans"&gt;I think that one of the biggest problems somebody with a Linux background faces with FreeBSD is having gotten used to &lt;span style="font-family:courier new"&gt;procfs&lt;/span&gt;.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;Sure nobody is going to stop you from adding&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;proc /proc procfs rw 0 0&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans"&gt;to &lt;span style="font-family:courier new"&gt;/etc/fstab&lt;/span&gt; and then mount it:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;mount proc&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans"&gt;But all those useful things in &lt;span style="font-family:courier new"&gt;/proc&lt;/span&gt; are now elsewhere to be found.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;Many of my scripts need loadavg. Now I need to remember to get the 3 loadavg values like this:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;load01m=`sysctl vm.loadavg | awk -F{ '{print $2}' | awk '{print $1}'`&lt;br /&gt;load05m=`sysctl vm.loadavg | awk -F{ '{print $2}' | awk '{print $2}'`&lt;br /&gt;load15m=`sysctl vm.loadavg | awk -F{ '{print $2}' | awk '{print $3}'`&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-5843771815993624662?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/5843771815993624662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/procfs-and-loadavg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/5843771815993624662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/5843771815993624662'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/procfs-and-loadavg.html' title='procfs and loadavg'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-999100887797104268</id><published>2008-02-26T20:40:00.002+02:00</published><updated>2010-06-12T08:43:33.266+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='maildir'/><category scheme='http://www.blogger.com/atom/ns#' term='sendmail'/><title type='text'>Sendmail: Maildir format</title><content type='html'>&lt;span style="font-family:Verdana, sans-serif"&gt;Here's a quick one: on FreeBSD, how to configure &lt;span style="font-family:courier new"&gt;sendmail&lt;/span&gt; to deliver mail in Maildir format?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;...Using &lt;span style="font-family:courier new"&gt;procmail&lt;/span&gt; for this example.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Let's assume the user in question is called &lt;span style="font-family:courier new"&gt;test&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;&lt;b&gt;1.&lt;/b&gt; First, create a Maildir for the user:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;for x in cur new tmp ; do&lt;br /&gt;mkdir -p /home/test/Maildir/${x}&lt;br /&gt;done&lt;br /&gt;chown -R test:test /home/test/Maildir&lt;br /&gt;chmod -R 700 /home/test/Maildir&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;&lt;b&gt;2.&lt;/b&gt; Install &lt;span style="font-family:courier new"&gt;procmail&lt;/span&gt; and edit the user's &lt;span style="font-family:courier new"&gt;.procmailrc&lt;/span&gt; file:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;pkg_add -rv procmail&lt;br /&gt;echo ":0" &gt;&gt; /home/test/.procmailrc&lt;br /&gt;echo "/home/test/Maildir/" &gt;&gt; /home/test/.procmailrc&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;&lt;b&gt;3.&lt;/b&gt; Tell &lt;span style="font-family:courier new"&gt;sendmail&lt;/span&gt; to use &lt;span style="font-family:courier new"&gt;procmail&lt;/span&gt; as delivery agent (suppose my hostname is &lt;span style="font-family:courier new"&gt;dvorak&lt;/span&gt;):&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;cd /etc/mail&lt;br /&gt;vi dvorak.mc&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Add the line:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;FEATURE(local_procmail)dnl&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Save, quit; build the new &lt;span style="font-family:courier new"&gt;sendmail.cf&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;make &amp;&amp; make install &amp;&amp; make restart&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans-serif"&gt;Done. Now &lt;span style="font-family:courier new"&gt;sendmail&lt;/span&gt; will deliver all mail for &lt;span style="font-family:courier new"&gt;test@dvorak&lt;/span&gt; in &lt;span style="font-family:courier new"&gt;/home/test/Maildir(/new)&lt;/span&gt;.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-999100887797104268?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/999100887797104268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/sendmail-maildir-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/999100887797104268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/999100887797104268'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/sendmail-maildir-format.html' title='Sendmail: Maildir format'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8251018918693793278</id><published>2008-02-26T19:35:00.002+02:00</published><updated>2010-06-12T08:20:58.060+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><title type='text'>PACKAGESITE</title><content type='html'>&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, sans-serif;"&gt;Coming from my Linux background, I expected that after installing FreeBSD and choosing my geographical location – and, most importantly, choosing a local FTP mirror for the bootonly install CD –, somehow the system would "guess" that I'd want to keep the same location when doing further package installs - with &lt;span style="font-family:courier new"&gt;pkg_add&lt;/span&gt; for instance. Unfortunately, &lt;span style="font-family:courier new"&gt;pkg_add&lt;/span&gt; goes to the default &lt;i&gt;ftp://ftp.freebsd.org&lt;/i&gt; package location and it can take a long time to install a package with lots of dependencies.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans-serif"&gt;After fiddling around I found out there's an environment variable called &lt;span style="font-family:courier new"&gt;PACKAGESITE&lt;/span&gt; that instructs &lt;span style="font-family:courier new"&gt;pkg_add&lt;/span&gt; to go to a "package site" designated by the user.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The thing one needs to remember regarding &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;PACKAGESITE&lt;/span&gt; is that it needs to containt the full URL to the "Latest/" directory on that FTP mirror.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans"&gt;First of all you will need the list of &lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html" style="color: #099500; text-decoration: none;"&gt;FreeBSD mirrors&lt;/a&gt;. Just pick up your mirror and then proceed to...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans"&gt;&lt;i&gt;Exporting the variable.&lt;/i&gt; This depends of course on the shell you're using.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans"&gt;* If using the default &lt;b&gt;csh&lt;/b&gt; shell, you will need to &lt;span style="font-face:courier new"&gt;setenv&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;setenv PACKAGESITE "ftp://ftp1.ro.freebsd.org/pub/FreeBSD/ports/packages/Latest/"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans"&gt;(for instance – just remember not to limit yourself to "ftp://ftpwhatever.country.freebsd.org" because it won't be enough; you need to enter the full path, up to "Latest/", and to also include the trailing slash!)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans"&gt;You obviously don't want to setenv every time you install a package, so you'll need to enter that line in your &lt;span style="font-family:courier new"&gt;/root/.cshrc file&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new"&gt;echo 'setenv PACKAGESITE "ftp://ftp1.ro.freebsd.org/pub/FreeBSD/ports/packages/Latest/"' &amp;gt;&amp;gt; /root/.cshrc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana,sans"&gt;* If you're using &lt;b&gt;bash&lt;/b&gt;, you'll need to &lt;span style="font-family:courier new"&gt;export&lt;/span&gt; the variable:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new"&gt;export PACKAGESITE="ftp://ftp1.ro.freebsd.org/pub/FreeBSD/ports/packages/Latest/"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;Of course you don't want to do this every time you install a package, therefore you'll need to add this line in your &lt;span style="font-family:courier new"&gt;/root/.bash_profile&lt;/span&gt; file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new"&gt;echo 'export PACKAGESITE="ftp://ftp1.ro.freebsd.org/pub/FreeBSD/ports/packages/Latest/"' &amp;gt;&amp;gt; /root/.bash_profile&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8251018918693793278?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8251018918693793278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/packagesite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8251018918693793278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8251018918693793278'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/packagesite.html' title='PACKAGESITE'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-865343498649325853</id><published>2008-02-26T19:02:00.003+02:00</published><updated>2010-06-12T08:30:39.368+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='locales'/><title type='text'>dpkg-reconfigure locales...</title><content type='html'>&lt;span style="font-family:Verdana, sans"&gt;"Open source &lt;i&gt;features&lt;/i&gt;" take N+1 :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;On a Debian system,&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;sudo dpkg-reconfigure locales&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans"&gt;would prompt you with a nice menu allowing you to select new locales... Unfortunately, this is not the case with Ubuntu. You just get to generate or update the already selected locales. This is actually an Ubuntu bug, confirmed (with status: wishlist).&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;However, no need to despair - there's actually a fix for this (suitable for scripting automations too).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;In &lt;span style="font-family:courier new"&gt;/usr/share/i18n/SUPPORTED&lt;/span&gt; you get a list of available locales (the same list that on a Debian system comes at &lt;span style="font-family:courier new"&gt;sudo dpkg-reconfigure locales&lt;/span&gt; as a menu).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;You just need to add the lines from &lt;span style="font-family:courier new"&gt;/usr/share/i18n/SUPPORTED&lt;/span&gt; you're interested in in the file &lt;span style="font-family:courier new"&gt;/var/lib/locales/supported.d/local&lt;/span&gt; and then run &lt;span style="font-family:courier new"&gt;sudo dpkg-reconfigure locales&lt;/span&gt; to add the new locales.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, sans"&gt;As an example, if I'm interested to add all the available Romanian locales on my system I'd need to run as root:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new"&gt;grep ^ro /usr/share/i18n/SUPPORTED &gt;&gt; /var/lib/locales/supported.d/local&lt;br /&gt;dpkg-reconfigure locales&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana, sans"&gt;...So, there &lt;i&gt;is&lt;/i&gt; a way!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-865343498649325853?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/865343498649325853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/dpkg-reconfigure-locales.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/865343498649325853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/865343498649325853'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/dpkg-reconfigure-locales.html' title='dpkg-reconfigure locales...'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-3001392833739601032</id><published>2008-02-25T22:38:00.002+02:00</published><updated>2010-06-12T01:18:49.594+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugs'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='kde'/><title type='text'>Make Konqueror remember the default view</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;One of the 'features' of open-source is this phrase that&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&amp;nbsp;I'm sure you heard at least once: "Well now... that's not a bug, it's a *feature*!" -- yeah, right!&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;One of those "features" is the fact that Konqueror doesn't seem to remember the default view I set up in any profile. Namely, when I use Konqueror as a file manager and type something in the address bar, such as &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;~/tmp&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;, I really want it to display the contents of &lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;~/tmp&lt;/span&gt; in "Detailed List View", the way I chose it as default! But it doesn't.&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Apparently there's a workaround for this and it's actually a point-and-click solution.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Settings -&amp;gt; Configure Konqueror -&amp;gt; File Associations -&amp;gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;expand&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; "inode" -&amp;gt; select "directory" -&amp;gt; Embedding tab -&amp;gt; Services Preference Order -&amp;gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; click on the view you need ("Detailed List View" in my case) &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; click on "Move Up" until it reaches the top of the list -&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Apply -&amp;gt; OK&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Whew! That did it.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-3001392833739601032?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/3001392833739601032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/make-konqueror-remember-default-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3001392833739601032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/3001392833739601032'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/make-konqueror-remember-default-view.html' title='Make Konqueror remember the default view'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-313351877519676252</id><published>2008-02-25T22:31:00.005+02:00</published><updated>2010-02-07T19:49:55.644+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Convert .wma files into .mp3</title><content type='html'>&lt;span style="font-family: verdana"&gt;&lt;p&gt;Another thing that's been troubling me regarding audio files is those damn &lt;span style="font-family: courier new"&gt;.wma&lt;/span&gt;-s that cannot be played by my iPod. So it's time for a handy script that will convert &lt;span style="font-family: courier new"&gt;.wma&lt;/span&gt; into &lt;span style="font-family: courier new"&gt;.mp3&lt;/span&gt;:&lt;/p&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;for x in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$x" ; lame -m s audiodump.wav -o "${x%wma}mp3" ; rm audiodump.wav ; done&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;Pretty impressive – &lt;span style="font-family: courier new"&gt;lame&lt;/span&gt;'s manual page deserves a good read.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-313351877519676252?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/313351877519676252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/convert-wma-files-into-mp3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/313351877519676252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/313351877519676252'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/convert-wma-files-into-mp3.html' title='Convert .wma files into .mp3'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-1303300426102358392</id><published>2008-02-25T21:49:00.006+02:00</published><updated>2010-02-07T19:49:10.602+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mp3'/><category scheme='http://www.blogger.com/atom/ns#' term='convert'/><title type='text'>Convert .m4a files into .mp3</title><content type='html'>&lt;span style="font-family: verdana"&gt;&lt;p&gt;One of the things that's been troubling me lately has been the fact that on a standard Debian/Ubuntu system I can't seem to be able to edit the tags for the &lt;span style="font-family: courier new"&gt;.m4a&lt;/span&gt; files I have.&lt;/p&gt;&lt;p&gt;So, in order to edit the tags on the &lt;span style="font-family: courier new"&gt;.m4a&lt;/span&gt; files... I'd rather convert them into &lt;span style="font-family: courier new"&gt;.mp3&lt;/span&gt;-s. The way to do this is actually simple.&lt;/p&gt;&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: verdana"&gt;&lt;p&gt;The only prerequisites are the &lt;span style="font-family: courier new;"&gt;lame&lt;/span&gt; and &lt;span style="font-family: courier new;"&gt;faad&lt;/span&gt; packages, so better have them installed (in the examples that will follow throughout this blog I'll be assuming a Debian or Ubuntu system, featuring the all-mighty &lt;span style="font-style: italic;"&gt;aptitude&lt;/span&gt; or &lt;span style="font-style: italic;"&gt;apt-get&lt;/span&gt;):&lt;/p&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;sudo aptitude install lame faad&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;Next, use &lt;span style="font-family: courier new"&gt;faad&lt;/span&gt; and &lt;span style="font-family: courier new"&gt;lame&lt;/span&gt; for the conversion:&lt;/p&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;for x in *.m4a ; do faad -o - "$x" | lame -V 0 - "${x%m4a}mp3" ; done&lt;/blockquote&gt;&lt;/span&gt;&lt;p&gt;Et voilà! Finally you can remove the &lt;span style="font-family: courier new"&gt;.m4a&lt;/span&gt;-s if you no longer need them:&lt;/p&gt;&lt;span style="font-family:courier new;"&gt;&lt;blockquote&gt;rm *m4a&lt;/blockquote&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-1303300426102358392?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/1303300426102358392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/convert-m4a-files-into-mp3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/1303300426102358392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/1303300426102358392'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/convert-m4a-files-into-mp3.html' title='Convert .m4a files into .mp3'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-8407631349197788478</id><published>2008-02-25T08:30:00.004+02:00</published><updated>2010-06-12T00:51:57.545+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='lscolors'/><title type='text'>LSCOLORS</title><content type='html'>&lt;span style="font-family:Verdana,sans;"&gt;&lt;p&gt;As stated earlier, I came back to the problem of &lt;span style="font-family:courier new;"&gt;LSCOLORS.&lt;/span&gt;&lt;/p&gt;If using &lt;span style="font-family:courier new;"&gt;bash&lt;/span&gt;, in order to get colorful directory listings in FreeBSD the user needs to set the &lt;span style="font-family:courier new;"&gt;CLICOLOR&lt;/span&gt; environment variable to &lt;span style="font-family:courier new;"&gt;"YES"&lt;/span&gt; and export it and would also need to define (and export) the &lt;span style="font-family:courier new;"&gt;LSCOLORS&lt;/span&gt; variable, all inside &lt;span style="font-family:courier new;"&gt;~/.bash_profile.&lt;/span&gt;&lt;br /&gt;&lt;p&gt;So, how do we define &lt;span style="font-family:courier new;"&gt;LSCOLORS?&lt;/span&gt;&lt;/p&gt;&lt;a name='more'&gt;&lt;/a&gt;Here's a quick explanation: &lt;span style="font-family:courier new;"&gt;LSCOLORS&lt;/span&gt; is a string made up of 11 "FB" pairs, where F is the foreground color and B is the background color.&lt;br /&gt;&lt;br /&gt;The available color codes are:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;a -- black&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;b -- red&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;c -- green&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;d -- brown&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;e&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt; -- blue&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;f -- magenta&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;g -- cyan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;h -- light gray&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;A -- bold black, usually shows up as dark gray&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;B -- bold red&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;C -- bold green&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;D -- bold brown, usually shows up as yellow&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;E -- bold blue&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;F -- bold magenta&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;G -- bold cyan&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;H -- bold light gray; looks like bright white&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;x -- default foreground or background&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;So now that we've got the color codes, all we need to do is to come up with suitable color pairs for each file type; below is an example of such an association:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;DIR=Ex&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;SYM_LINK=Gx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;SOCKET=Fx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;PIPE=dx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;EXE=Cx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;BLOCK_SP=Dx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;CHAR_SP=Dx&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;EXE_SUID=hb&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;EXE_GUID=ad&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;DIR_STICKY=Ex&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;DIR_WO_STICKY=Ex&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Next, we want to assign the values above to the &lt;span style="font-family:courier new;"&gt;LSCOLORS&lt;/span&gt; variable and export it, therefore we need to specify:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;export LSCOLORS="$DIR$SYM_LINK$SOCKET$PIPE$EXE$BLOCK_SP\&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana,sans;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;$CHAR_SP$EXE_SUID$EXE_GUID$DIR_STICKY$DIR_WO_STICKY"&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;And this settles it! Just remember to have somewhere in your &lt;span style="font-family:courier new;"&gt;~/.bash_profile&lt;/span&gt; a line defining and exporting &lt;span style="font-family:courier new;"&gt;CLICOLOR&lt;/span&gt; as well:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new'; "&gt;export CLICOLOR="YES"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Logout, login again and you should be able to get your directory listings in color.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE: Above, in the line with export &lt;/b&gt;&lt;span style="font-family:courier new;"&gt;&lt;b&gt;LSCOLORS="..."&lt;/b&gt;&lt;/span&gt;&lt;b&gt;, I used an escape sequences ("\") in order to prevent the breaking of long lines. You, of course, should enter the whole line without ever using "\" and the [return] key.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-8407631349197788478?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/8407631349197788478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/lscolors.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8407631349197788478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/8407631349197788478'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/lscolors.html' title='LSCOLORS'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-6757437542129438818</id><published>2008-02-24T12:56:00.001+02:00</published><updated>2009-11-29T05:47:21.560+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><title type='text'>First customizations</title><content type='html'>&lt;p  style="font-family:verdana;"&gt;&lt;span style="font-family:verdana;"&gt;OK, first things first. For an 'experiment' with FreeBSD I first needed it installed somewhere... for the purpose of my own mental and psychical health, I choose to get FreeBSD running in a virtual machine first.&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:verdana;"&gt;Since I'm not eager to see it (...yet) as a viable fully fledged desktop system, I was not interested in the X part of this install so I chose a minimal install, by using the "boot only" CD.&lt;/span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;As the time of this post, I chose the latest stable release for my i386 architecture, namely the iso I got is &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;6.3-RELEASE-i386-bootonly.iso&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;. It can be found on any FreeBSD mirror. For a list of available FreeBSD mirrors, check &lt;/span&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html"&gt;&lt;span style="font-family:verdana;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Alright, I got the iso... then what? I needed a virtualisation environment... so after thinking about the bad things I've heard about QEMU and Xen I decided to go for one of the other two decent alternatives - &lt;/span&gt;&lt;a href="http://www.vmware.com/download/server/"&gt;&lt;span style="font-family:verdana;"&gt;VMware Server&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt; and &lt;/span&gt;&lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;&lt;span style="font-family:verdana;"&gt;VirtualBox&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;I used to use (!) VMware Server before, but I had a few hops with it. First of all, when I first found out about it and decided to give it a go, I had to download it like any foolish mortal would from VMware's website - it was a pretty big tar.gz, a little over 100 MB -, then unpack it and then run &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;vmware-config.pl&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; - their, uhm, "install" script. I always had troubles recompiling the vmmon module after a kernel update, and I also did a lot of system re-installs back then (you know, the old story, small hard disk with lots of partitions... that from time to time needed resizing and stuff). I always forgot to apply the damned &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;vmware-whatever-patch-any-any-update&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; patch (or something like this, anyway) so, being sick of all this stuff, decided to try something a little bit more lightweight and friendly, such as VirtualBox. Sure, VirtualBox was smooth and all... until I noticed some disadvantages. Here are two of them: if I ran some Linux distro inside a virtual machine in VirtualBox, I wasn't able to &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;ssh&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; to it from my own host OS "out-of-the-box" (of course it's possible, but you have to set up bridged networking and I just didn't have the mood then to do it) and the second issue is that... well, VirtualBox &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:verdana;"&gt;can't boot&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; FreeBSD 6.3-RELEASE. (The reason I don't want to use 6.2-RELEASE in VirtualBox is the fact that I can't get on a local FTP mirror the files for the 6.2 release, they only have the stuff for 6.3, so, since I don't want to use the 'multipurpose' FreeBSD FTPs - I need to speed things up, dammit! - it's just gonna have to wait).&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Long story short, when I eventually got back to VMware,&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; poof!&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; the magic had happened, I found it in the Ubuntu repos. (Yeah, I currently run Kubuntu 7.10.) So after a smooth vmware-server install it just... "works". NAT networking out of the box and stuff. No more headaches.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Alright, so much for the intro. So I finally had a minimal FreeBSD 6.3 install in a VMware virtual machine. Some of the first customizations:&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul  style="font-family:verdana;"&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;make sure SSH (and root login) is enabled in the FreeBSD virtual machine:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;vi /etc/ssh/sshd_config&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Find the line&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# PermitRootLogin no&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;and change it into&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;PermitRootLogin yes&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;vi /etc/rc.conf&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Add the line&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sshd_enable="YES"&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Finally,&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/etc/rc.d/sshd restart&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;ul  style="font-family:lucida grande;"&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;provide myself with a friendly login:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;vi /etc/rc.conf&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Find the line&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;hostname="whatever"&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;and change it into&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;hostname="dvorak" &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;# it's obviously just an example...&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Then in the guest OS, look in &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;ifconfig&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;'s output for a line looking like this one:&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;inet 192.168.40.129 netmask 0xffffff00 broadcast 192.168.40.255&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;OK, now I know the guest's address, i.e. 192.168.40.129. In the host OS, edit the &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;/etc/hosts&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; file in order to add the guest's &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;'&lt;/span&gt;&lt;ip&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;/ip&gt;&lt;span style="font-family:verdana;"&gt;'&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; set:&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;vi /etc/hosts&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;Under the line&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;127.0.0.1       localhost&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;add a new one:&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;192.168.40.129  dvorak&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;Perfect! Now I can simply&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;ssh root@dvorak&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:verdana;"&gt;anytime I need&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;ul  style="font-family:verdana;"&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;next, I'll want to get bash and add some color to the directory listings...&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;pkg_add -rv bash&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Next, get the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;$SHELL&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; to default to &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;bash&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;chsh -s /usr/local/bin/bash&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;vi ~/.bash_profile&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Add the following lines:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# First, define some useful aliases:&lt;br /&gt;alias ll='ls -l'&lt;br /&gt;alias lh='ls -lh'&lt;br /&gt;alias lA='ls -la'&lt;br /&gt;# Add some color:&lt;br /&gt;CLICOLOR="YES"&lt;br /&gt;export CLICOLOR&lt;br /&gt;LSCOLORS="ExGxFxdxCxDxDxhbadExEx"&lt;br /&gt;export LSCOLORS&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-family:verdana;"&gt;Notice how FreeBSD differs in this point from Linux, where:&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;- I only need &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;~/.bash_profile &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;to contain... stuff;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;- Apart from &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;LSCOLORS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;, I also need to set &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;CLICOLOR&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; to &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;YES&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; and export it as well.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;More info on &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;LSCOLORS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; in a future post.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;"&gt;next I'll need to get some stuff on my system since, well, at install time I only chose "Minimal" install:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Run (as root)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sysinstall&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and from&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sysinstall&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;'&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;s main menu -&gt; Configure -&gt; Distributions -&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; [ x ] base ; [ x ] man ; [ x ] ports&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;for a start; it's obviously a good idea to select from here&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;[ ] src&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and, from it,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;[ x ] base&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;[ x ] sys &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;- one can never know when kernel recompiling is needed.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;ul  style="font-family:verdana;"&gt;&lt;li&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;OK, suppose that at the previous step I didn't use sysinstall to install the ports collection as well. There is another method to get the ports collection. For this example, I'll use &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;cvsup&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;pkg_add -rv cvsup-without-gui&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Now, we need to edit the ports-supfile file... first, make a copy of it (and work on the copy):&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span&gt;cp /usr/share/examples/cvsup/ports-supfile /root&lt;br /&gt;vi /root/ports-supfile&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Find the line&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;*default host=CHANGE_THIS.FreeBSD.org&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and change it such that it will point to a &lt;/span&gt;&lt;/span&gt;&lt;a style="font-style: italic;" href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS"&gt;&lt;span style="font-family:verdana;"&gt;cvsup mirror&lt;/span&gt;&lt;/a&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; near you:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;*default host=cvsup1.ro.FreeBSD.org&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;Next you need to make up your mind - you either get all the ports - in this case save the file and exit - either you want to get just a part of them; if so, find the line&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;ports-all&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and comment it out:&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;# ports-all&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;and look below to the list of all the ports that make up &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;ports-all&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;; remove the comment '#' sign if front of the ports you do want to get (and leave the comment '&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;#'&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; sign if front of the ports you don't want), but you need to make sure you enable (i.e. remove &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;'#' &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;in front of) &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:verdana;"&gt;ports-base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;!&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Next, you need to run (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;-L&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; refers to the level of verbosity, and &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;2&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt; means 'high'):&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:courier new;"&gt;cvsup -L 2 /root/ports-supfile&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;And now go get a cup of tea or something...&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span&gt;&lt;span style="font-family:verdana;"&gt;More on ports in the &lt;/span&gt;&lt;a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html"&gt;&lt;span style="font-family:verdana;"&gt;FreeBSD handbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;"&gt;.&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-6757437542129438818?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/6757437542129438818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/first-customizations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6757437542129438818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/6757437542129438818'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/first-customizations.html' title='First customizations'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6337741957437560735.post-2357267412987717295</id><published>2008-02-22T22:58:00.004+02:00</published><updated>2010-06-11T23:34:59.320+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='intro'/><title type='text'>Default title for a 1st post (?)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;The next boring step after having finally edited my "Blogger profile" is the first post... so let's get this over with.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Q: Why am I here?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A: I just thought I'll make somebody really angry (sooner or later) for getting such a cool blogspot URL... &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A: &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;(The serious version)&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; I need to use FreeBSD at work. Or I try to recall what the procedure to do &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;foo&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt; thing on Linux was. So I started this blog as some sort of online "notebook". If it manages to stress or even help somebody else, that's fine by me.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Q: What's this gonna be all about?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A: As stated before, FreeBSD. No, wait. Linux. No, wait. I might occasionally post whatever crosses my head at the moment.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Q: What about the poor visitor, the one reading this crap?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;A: Sorry, bud, it wasn't me who landed here in the first place. (I "own" this.)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;One more thing: comments are not moderated at the moment. So enjoy it while this lasts, because it might change at some later point.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6337741957437560735-2357267412987717295?l=plug-and-pray.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://plug-and-pray.blogspot.com/feeds/2357267412987717295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-title-for-1st-post.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2357267412987717295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6337741957437560735/posts/default/2357267412987717295'/><link rel='alternate' type='text/html' href='http://plug-and-pray.blogspot.com/2008/02/default-title-for-1st-post.html' title='Default title for a 1st post (?)'/><author><name>Alexandra</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://1.bp.blogspot.com/_BrUsqnuWOXg/TBO81bXiwPI/AAAAAAAAANY/AncjAjDXCgM/S220/the-eye-of-sauron.jpg'/></author><thr:total>2</thr:total></entry></feed>
