<?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-8977568433763795206</id><updated>2012-01-27T18:14:19.820+01:00</updated><category term='debug'/><category term='virtualization'/><category term='virtualbox'/><category term='torbutton'/><category term='javascript'/><category term='sysadmin'/><category term='synaptics'/><category term='mandriva'/><category term='web'/><category term='passphrase'/><category term='security'/><category term='development'/><category term='RAID'/><category term='openssl'/><category term='privacy'/><category term='fedora'/><category term='about'/><category term='tor'/><category term='oracle'/><category term='xorg'/><category term='privoxy'/><category term='SATA'/><category term='blackberry'/><category term='desktop'/><category term='majordomo'/><category term='shell'/><category term='microsoft'/><category term='IE'/><category term='freebsd'/><category term='x509'/><category term='kvm'/><category term='thunderbird'/><category term='extjs'/><category term='svn'/><category term='subversion'/><category term='Centos'/><title type='text'>riaschissl</title><subtitle type='html'>weird stuff for a weird world</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8384333833826716310</id><published>2012-01-26T14:33:00.001+01:00</published><updated>2012-01-27T17:53:08.875+01:00</updated><title type='text'>Canon + Scanning: stoneage stupidity</title><content type='html'>After my good approx. 6 years old Samsung CLP-550 printer refused to cooperate with me (mechanical troubles), I decided that it was time to buy a new printer.&lt;br /&gt;Now that semi-professional multifunction printers become more and more affordable, I decided to go hunting for such a device and eventually&amp;nbsp;got myself a &lt;a href="http://www.canon.at/For_Home/Product_Finder/Multifunctionals/Laser/i-SENSYS_MF8330Cdn/"&gt;Canon i-SENSYS MF8330cdn&lt;/a&gt; multi-function color laser printer for the decent amount of ca € 400,-&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-GvgVKy2CCDI/TyFT7cIx2jI/AAAAAAAABVw/j8eh2dwRRGM/s1600/mf8330cdn.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; padding-right: 10px;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-GvgVKy2CCDI/TyFT7cIx2jI/AAAAAAAABVw/j8eh2dwRRGM/s1600/mf8330cdn.jpg" /&gt;&lt;/a&gt;Its features looked promising:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;~20ppm in B/W and in color&amp;nbsp;&lt;/li&gt;&lt;li&gt;duplexer unit&lt;/li&gt;&lt;li&gt;ADF&amp;nbsp;&lt;/li&gt;&lt;li&gt;copier function&amp;nbsp;&lt;/li&gt;&lt;li&gt;Ethernet connection&lt;/li&gt;&lt;li&gt;"network scanning" feature.&lt;/li&gt;&lt;li&gt;Linux support&lt;/li&gt;&lt;/ul&gt;So far so good. Printing is excellent indeed (both in quality and speed terms), the copier is fine as well.&lt;br /&gt;&lt;br /&gt;Only scanning seems to be a very weird thing when it comes to interconnectivity with non-Windows systems. Just imagine, the device is a "networking" device yet lacks any possibility to scan neither to a network share nor an FTP or email account.&lt;br /&gt;&lt;br /&gt;Even under Windows you have to use an obscure "Computer registration" tool that "registers" this computer with the MF8330cdn, then allowing to choose this computer as a scanning target.&lt;br /&gt;&lt;br /&gt;I mean, hey Canon: &lt;b&gt;&lt;i&gt;we have 2012 and the device even has a web interface - what drives you to cripple such a nice device with such a crappy scanning functionality??&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Even if only scanning to a network share was possible, that would allow operating the scanner with any "reasonable" operating system at zero cost for Canon because all the required code for accessing network shares (or an FTP or an Email account) is open source these days.&lt;br /&gt;&lt;br /&gt;This way, the scanner is just completely useless (and no, I don't want to use "scan to USB stick" on a networking printer, just imagine).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8384333833826716310?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8384333833826716310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2012/01/canon-scanning-stoneage-stupidity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8384333833826716310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8384333833826716310'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2012/01/canon-scanning-stoneage-stupidity.html' title='Canon + Scanning: stoneage stupidity'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-GvgVKy2CCDI/TyFT7cIx2jI/AAAAAAAABVw/j8eh2dwRRGM/s72-c/mf8330cdn.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-5581225949439116492</id><published>2011-12-02T11:35:00.001+01:00</published><updated>2011-12-02T12:11:27.893+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora'/><title type='text'>why fedora rules: they provide the best explanations for updates</title><content type='html'>Well, I occasionally read the details of updates for packages installed on my fedora 16 box and from time to time they can be quite entertaining.&lt;br /&gt;&lt;br /&gt;Yet, the update information given to the users for the latest ql2500-firmware package is just too unique to remain hidden within the depths of fedoras update manager.&lt;br /&gt;&lt;br /&gt;So, here comes the best explanation I have ever heard why I should update the ql2500-firmware package:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife.&lt;br /&gt;&lt;br /&gt;However little known the feelings or views of such a man may be on his first entering a neighbourhood, this truth is so well fixed in the minds of the surrounding families, that he is considered the rightful property of some one or other of their daughters.&lt;br /&gt;&lt;br /&gt;"My dear Mr. ql2500-firmware," said his lady to him one day, "have you heard that Beefy Miracle is chosen at last?"&lt;br /&gt;&lt;br /&gt;Mr. ql2500-firmware replied that he had not.&lt;br /&gt;&lt;br /&gt;"But it is," returned she; "for Mrs. Bergeron has just been here, and she told me all about it."&lt;br /&gt;&lt;br /&gt;Mr. ql2500-firmware made no answer.&lt;br /&gt;&lt;br /&gt;"Do you not want to know which release has taken it?" cried his wife impatiently.&lt;br /&gt;&lt;br /&gt;"You want to tell me, and I have no objection to hearing it."&lt;br /&gt;&lt;br /&gt;This was invitation enough.&lt;br /&gt;&lt;br /&gt;"Why, my dear, you must know, Mrs. Bergeron says that ql2500-firmware is taken by a young distribution of large fortune from the north of England; that he came down on Monday in a chaise and four to see the name, and was so much delighted with it, that he agreed with Mr. Smith immediately; that he is to take possession before Michaelmas, and some of his servants are to be branded with the logo by the end of next week."&lt;br /&gt;&lt;br /&gt;"What is his name?"&lt;br /&gt;&lt;br /&gt;"[CENSORED]."&lt;br /&gt;&lt;br /&gt;"Is he married or single?"&lt;br /&gt;&lt;br /&gt;"Oh! Single, my dear, to be sure! A single component of large fortune; four or five thousand changes a year. What a fine thing for our users!"&lt;br /&gt;&lt;br /&gt;"How so? How can it affect them?"&lt;br /&gt;&lt;br /&gt;"My dear Mr. ql2500-firmware," replied his wife, "how can you be so tiresome! You must know that I am thinking of his marrying one of them."&lt;br /&gt;&lt;br /&gt;"Is that his design in making the update?"&lt;br /&gt;&lt;br /&gt;"Design! Nonsense, how can you talk so! But it is very likely that he may fall in love with one of them, and therefore you must visit him as soon as he comes."&lt;br /&gt;&lt;br /&gt;"I see no occasion for that. You and the girls may go, or you may send them by themselves, which perhaps will be still better, for as you are as handsome as any of them, Mr. Pangolin may like you the best of the party."&lt;br /&gt;&lt;br /&gt;"My dear, you flatter me. I certainly have had my share of beauty, but I do not pretend to be anything extraordinary now. When a woman has five grown-up daughters, she ought to give over thinking of her own beauty."&lt;br /&gt;&lt;br /&gt;"In such cases, a woman has not often much beauty to think of."&lt;br /&gt;&lt;br /&gt;"But, my dear, you must indeed go and see Mr. Pangolin when he comes into the neighbourhood."&lt;br /&gt;&lt;br /&gt;"It is more than I engage for, I assure you."&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;A little hint for the interested reader: it happens to be an adoption of the first chapter of Jane Austen's "Pride &amp; Prejudice" :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-5581225949439116492?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/5581225949439116492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2011/12/why-fedora-rules-they-provide-best.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5581225949439116492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5581225949439116492'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2011/12/why-fedora-rules-they-provide-best.html' title='why fedora rules: they provide the best explanations for updates'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-7966882999074968095</id><published>2010-10-01T14:47:00.006+02:00</published><updated>2010-10-01T15:31:05.620+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='freebsd'/><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>"BSD vs. Linux" or "what to do when your favourite Linux distro falls appart"</title><content type='html'>I am quite frustrated about the things that have been going on around Mandriva in those last weeks and days.&lt;br /&gt;&lt;br /&gt;After Mandriva fired most of its' active and vital developers, a major part of the Mandriva community has decided to fork the distribution and restart under the new name "Mageia" [1].&lt;br /&gt;&lt;br /&gt;Originally coming from a SuSE friendly company, I've been quite happy using Mandriva for the past 10 years, for many reasons. Now, apparently, Mandriva simply falls apart - for whatever reasons. &lt;br /&gt;&lt;br /&gt;For us this means a huge workload on the horizon, because we have deployed quite a lot of Mandriva based servers and desktops, and unfortunately I am not quite sure about the eventual outcome of the new "Mageia" project. Well, I just don't want to base our companies' IT strategy on it.&lt;br /&gt;&lt;br /&gt;So, what alternatives are there? &lt;br /&gt;&lt;br /&gt;SuSE is simply a no-go, just remembering the devastating effects that "suseconfig" has had so many times on our productions systems makes me shiver even ten years later.&lt;br /&gt;&lt;br /&gt;RedHat/Fedora ... yes, we will give it a try, certainly. From my POV its only and major drawback simply is that it is so very US centric.&lt;br /&gt;&lt;br /&gt;And then of course there is Debian. I think about half the servers we have deployed are Debian based and indeed I like it very much. Desktop however is another story, many of our test runs have miserably failed due to unsupported graphic cards, malfunctioning wireless support and so on.&lt;br /&gt;&lt;br /&gt;Ubuntu tries to make Debian more desktop friendly, but manually changing configuration files broke the desktop tools far too often to give us a supportable desktop system (yes, we like to edit config files manually).&lt;br /&gt;&lt;br /&gt;Of course, there are a lot of other linux distributions around, but all of them require quite a lot of changes in our infrastructure and commercial support is limited quite often.&lt;br /&gt;&lt;br /&gt;So, I think it's a perfect time to look a bit over one's nose and give something new a try.&lt;br /&gt;&lt;br /&gt;My first experience with "UNIX" type operating systems has been i386BSD, delivered on a huge number of 5,25" floppy discs and so I think evaluating the existing *BSD variants will be a funny thing to do.&lt;br /&gt;&lt;br /&gt;I will start with FreeBSD [2], continue with the very interesting PC-BSD [3] and finish with OpenBSD [4].&lt;br /&gt;&lt;br /&gt;A very good primer covering the academical differences between BSD vs. Linux in general can be found here [5], so be prepared for some brainwashing to come :-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.mageia.org"&gt;http://www.mageia.org&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.freebsd.org"&gt;http://www.freebsd.org&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.pcbsd.org/"&gt;http://www.pcbsd.org/&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="http://www.openbsd.org/"&gt;http://www.openbsd.org/&lt;/a&gt;&lt;br /&gt;[5] &lt;a href="http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php"&gt;http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-7966882999074968095?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/7966882999074968095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/10/bsd-vs-linux-or-what-to-do-when-your.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7966882999074968095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7966882999074968095'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/10/bsd-vs-linux-or-what-to-do-when-your.html' title='&quot;BSD vs. Linux&quot; or &quot;what to do when your favourite Linux distro falls appart&quot;'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1230479952876353736</id><published>2010-07-05T12:17:00.004+02:00</published><updated>2010-07-05T20:04:32.386+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>oracle: unexpire and unlock accounts</title><content type='html'>Some of our customers' applications are built around Oracle, so we have to fight the beast from time to time. Unfortunately, some of the surprizes the beast has to offer are quite random and rare, and due to this we tend to simply forget how we fixed and/or circumvented the issues previously.&lt;br /&gt;&lt;br /&gt;As usual, google is your friend and one of the most valuable resources on the net we've found is &lt;a href="http://www.orafaq.com"&gt;www.orafaq.com&lt;/a&gt; and most notably its &lt;a href="http://www.orafaq.com/wiki/Oracle_database_Security_FAQ"&gt;security FAQs [1]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So this is just an attempt of a small cheat sheat to help our overloaded brains :-)&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;expired and locked accounts - the basics&lt;/b&gt;&lt;br /&gt;Now, as of version 11g, Oracle has enabled account expiration per default for many vital accounts (such as SYSMAN, SYS, ...). Quite a weird idea in my view, but who knows what hyper security things some wise engineer had in mind when doing so.&lt;br /&gt;&lt;br /&gt;Beware that we run Oracle under various Linux flavours, so things might be different for you.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;become database admin&lt;/i&gt;&lt;br /&gt;First log into your host running oracle and become the oracle user.&lt;br /&gt;&lt;tt&gt;% sqlplus /nolog&lt;br /&gt;SQL&gt; connect / as SYSDBA&lt;br /&gt;Connected&lt;br /&gt;SQL&gt;&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;find out which accounts are expired&lt;/i&gt;&lt;br /&gt;&lt;tt&gt;select username, account_status from dba_users where ACCOUNT_STATUS LIKE '%EXPIRED%';&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;unexpire an account&lt;/i&gt;&lt;br /&gt;once an account has been expired, it can only be revived by assigning it a new password:&lt;br /&gt;&lt;tt&gt;ALTER USER scott IDENTIFIED BY password;&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;unlock an account&lt;/i&gt;&lt;br /&gt;&lt;tt&gt;ALTER USER scott ACCOUNT UNLOCK;&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;i&gt;disable default password expiry &lt;a href="http://www.odi.ch/weblog/posting.php?posting=520"&gt;[2]&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;this all depends on the profile a user belongs to, to disable password expiry for all users assigned the default user profile do this:&lt;br /&gt;&lt;tt&gt;ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;li&gt;&lt;b&gt;Enterprise Manager: unable to connect to instance&lt;/b&gt;&lt;br /&gt;One of the worst things that can happen in that course is if Enterprise Manager reports "&lt;tt&gt;Failed to connect to database instance: ORA-28001: the password has expired (DBD ERROR: OCISessionBegin)&lt;/tt&gt;" and then simply rejects to work with the database. &lt;br /&gt;&lt;br /&gt;So far, we've found two accounts to be potential culprits for the problem: &lt;tt&gt;SYSMAN&lt;/tt&gt; and &lt;tt&gt;DBSNMP&lt;/tt&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;unexpire &lt;tt&gt;SYSMAN&lt;/tt&gt; [3]&lt;/i&gt;&lt;br /&gt;Quite tricky, because you have to change things on two sides: First unexpire the account as explained above. And now tweak oracle configuration. &lt;br /&gt;As oracle user:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;unexpire and unlock the account as explained above&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;tt&gt;% emctl stop dbconsole&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;change into &lt;br /&gt;&lt;tt&gt;ORACLE_HOME/&amp;lt;HostName_SID&amp;gt;/sysman/config&lt;/tt&gt;, for us this would be for example:&lt;br /&gt;&lt;tt&gt;% cd /opt/oracle/111/klotho_ABSDEV/sysman/config&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;edit the &lt;tt&gt;emoms.properties&lt;/tt&gt; file&lt;br /&gt;and change the &lt;tt&gt;oracle.sysman.eml.mntr.emdRepPwd&lt;/tt&gt; property to the new password you gave the SYSMAN user.&lt;br /&gt;Then change the &lt;tt&gt;oracle.sysman.eml.mntr.emdRepPwdEncrypted&lt;/tt&gt; property from &lt;tt&gt;TRUE&lt;/tt&gt; to &lt;tt&gt;FALSE&lt;/tt&gt; (sidenote: Oracle will revert to TRUE automagically once it is restarted).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;change into&lt;br /&gt;&lt;tt&gt;ORACLE_HOME/&amp;lt;HostName_SID&amp;gt;/sysman/emd&lt;/tt&gt;, for us this would be for example:&lt;br /&gt;&lt;tt&gt;% cd /opt/oracle/111/klotho_ABSDEV/sysman/emd&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;edit the &lt;tt&gt;target.xml&lt;/tt&gt; file&lt;br /&gt;and edit those two properties:&lt;br /&gt;&lt;tt&gt;&amp;lt;Property NAME="UserName" VALUE="SYSMAN" ENCRYPTED="FALSE"/&amp;gt;&lt;br /&gt;&amp;lt;Property NAME="password" VALUE="TheNewPassword" ENCRYPTED="FALSE"/&amp;gt;&lt;/tt&gt;  &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;tt&gt;% emctl start dbconsole&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;under "normal" circumstances, everything should be fine now :-)&lt;/li&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;br /&gt;So, as said above this is just a "small" cheat sheet for some annoyances we have met with the great oracle, of course there is much much more to know about the beast ;-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.orafaq.com/wiki/Oracle_database_Security_FAQ"&gt;http://www.orafaq.com/wiki/Oracle_database_Security_FAQ&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.odi.ch/weblog/posting.php?posting=520"&gt;http://www.odi.ch/weblog/posting.php?posting=520&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.articles.freemegazone.com/oracle-sysman-account-locked.php?ref=2"&gt;http://www.articles.freemegazone.com/oracle-sysman-account-locked.php?ref=2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1230479952876353736?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1230479952876353736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/07/oracle-unexpire-and-unlock-accounts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1230479952876353736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1230479952876353736'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/07/oracle-unexpire-and-unlock-accounts.html' title='oracle: unexpire and unlock accounts'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-6171723254797009539</id><published>2010-06-24T12:17:00.002+02:00</published><updated>2010-06-24T14:20:41.827+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x509'/><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>google-chrome or chromium and SSL client certificates</title><content type='html'>Many of our restricted services rely on client authentication based on X.509 SSL certificates. And some of the better (say user friendly :-) ones' are accessible using a web interface.&lt;br /&gt;&lt;br /&gt;So, with Firefox certificate based authentication is relatively easy to implement, yet when using google-chrome or chromium I was quite lost on how to manage my certificates.&lt;br /&gt;&lt;br /&gt;Apparently, both google-chrom and chromium lack a GUI feature allowing to manage one's certificates (at least under linux) because &lt;span style="font-style: italic;"&gt;"rather than reinvent the wheel and create another certificate  configuration tool, we are going to wait for a system certificate  configuration utility to be created and launch that"&lt;/span&gt;, see [1].&lt;br /&gt;&lt;br /&gt;However, it is not too difficult to manage the certificates on the commandline. The process is also described on the same page, some pitfalls exist, however.&lt;br /&gt;&lt;br /&gt;Under Mandriva, the required tools are "normally" installed already, you don't need an extra nss-tools or nss-util package, the &lt;tt&gt;nss&lt;/tt&gt; package already provides the required essential &lt;tt&gt;certutil&lt;/tt&gt; binary.&lt;br /&gt;&lt;br /&gt;Some examples:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Listing one's certificates:&lt;br /&gt;&lt;tt&gt;% certutil -d sql:$HOME/.pki/nssdb -L&lt;/tt&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;adding a trusted root CA:&lt;br /&gt;&lt;tt&gt;% certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n &lt;span style="font-style:italic;"&gt;certificate nickname&lt;/span&gt; -i &lt;span style="font-style:italic;"&gt;certificate filename&lt;/span&gt;&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;the &lt;tt&gt;-t "C,,"&lt;/tt&gt; actually determines which kind of certificate one wants to import, "C" means a CA certificate good for issuing SSL server certificates. See [2] for a listing of potential other flags.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;add a client certificate for authentication:&lt;br /&gt;pk12util -d sql:$HOME/.pki/nssdb -i &lt;span style="font-style:italic;"&gt;yourClientCertFile.p12&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Further usage examples can be found in &lt;a href="http://code.google.com/p/chromium/wiki/LinuxCertManagement"&gt;[1]&lt;/a&gt; and &lt;a href="http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#Examples"&gt;[3]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And finally, before google-chrome or chromium actually uses the client certificates in the store, you have to manually tell it using a command line switch:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;% google-chrome --auto-ssl-client-auth &lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;% chromium --auto-ssl-client-auth&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;I did all this using Mandriva 2010.1, so things may be different for other distros.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://code.google.com/p/chromium/wiki/LinuxCertManagement"&gt;http://code.google.com/p/chromium/wiki/LinuxCertManagement&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#1034193"&gt;http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#1034193&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#Examples"&gt;http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html#Examples&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-6171723254797009539?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/6171723254797009539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/06/google-chrome-or-chromium-and-ssl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6171723254797009539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6171723254797009539'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/06/google-chrome-or-chromium-and-ssl.html' title='google-chrome or chromium and SSL client certificates'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-952832100987053866</id><published>2010-05-16T23:16:00.005+02:00</published><updated>2010-05-17T00:18:52.038+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>an unwanted honeypot for hackers: "y2kupdate"</title><content type='html'>Lazyness combined with too much work often causes very bad sideeffects ... The following story happened due to my very own lazyness (or maybe even call it crazyness ...):&lt;br /&gt;&lt;br /&gt;After setting up a Debian Lenny KVM guest on one of our servers, I had to do some tests on it before making it available to the very public (or in other words: before I assigned it a public IP address).&lt;br /&gt;&lt;br /&gt;So I added a dedicated user named "test" with again a very dedicated password named "test" ... and from now on you know how the story continues: After provisioning the server, I simply forgot to remove the "test" user. And without surprize it didn't take long until some funny people found out about my error and tried to hijack the server by installing some interesting pieces of software.&lt;br /&gt;&lt;br /&gt;Obviously they were almost as lazy as I was because they left many traces on the server and in the end they did not come very far in hijaking the server.&lt;br /&gt;&lt;br /&gt;Soon after I provisioned the server, I found weird log entries like these:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;May 13 06:40:01 ahost /USR/SBIN/CRON[13837]: (test) CMD (/tmp/lib/y2kupdate &gt;/dev/null 2&gt;&amp;amp;1)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now as a matter of fact I do read log entries and these entries soon got my attention.&lt;br /&gt;&lt;br /&gt;Investigating the files in the /tmp/lib folder I quickly found out that the server had become a member of an IRC based bot net (or in fact, a number of IRC based bot nets), probably designated to flood remote victims with useless traffic.&lt;br /&gt;&lt;br /&gt;It has been a long time since a hacker successfully broke our security barriers and so I find it quite amusing to dissect the applications found in /tmp/lib and also quite interesting reading the (now deleted) test user's .bash_history file ...&lt;br /&gt;&lt;br /&gt;Luckily for me the hackers either did not come too far with hijacking the server or simply were not overly interested in the box, so reverting the changes they made seems doable, but let's see how the story continues :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-952832100987053866?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/952832100987053866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/05/unwanted-honeypot-for-hackers-y2kupdate.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/952832100987053866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/952832100987053866'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/05/unwanted-honeypot-for-hackers-y2kupdate.html' title='an unwanted honeypot for hackers: &quot;y2kupdate&quot;'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8054401594344673592</id><published>2010-03-12T15:01:00.002+01:00</published><updated>2010-03-12T16:39:48.931+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='thunderbird'/><title type='text'>thunderbird's "lightning" plugin and 64bit = ignorance</title><content type='html'>For some months now I became quite use to using the "lightning" calendaring plugin for Mozilla Thunderbird in conjunction with our eGroupWare installation. Not all things were perfect, but in general things worked quite well.&lt;br /&gt;&lt;br /&gt;Now, at least for the public the lightning project had been quite silent for several months and so I was positively surpized to find a new version available in January.&lt;br /&gt;&lt;br /&gt;Disappointment followed shortly after because obviously the lightning developers appear to be quite ignorant when it comes to 64bit versions of their plugin.&lt;br /&gt;&lt;br /&gt;The .xpi file offered from the official Mozilla addons page [1] just doesn't work for 64bit Thunderbirds: "Lightning could not be installed because it is not compatible with your  Thunderbird build type (Linux_x86_64-gcc3)." Very funny, indeed.&lt;br /&gt;&lt;br /&gt;Except very old installations, I don't know any recent Linux installation that is not 64bit these days. 64bit versions of the major distributions have been around for many many years now ...&lt;br /&gt;&lt;br /&gt;Even after searching the web I am still not able to find a &lt;span style="font-style: italic;"&gt;working &lt;/span&gt;64bit version of the plugin.&lt;br /&gt;&lt;br /&gt;Considering that sunbird, lightning's "big sister" is available for 64bit, this is extremely weird and to some extend also very annoying ...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;[Update]&lt;/span&gt; well, I finally found a working 64bit version of the plugin &lt;a href="http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b1/contrib/linux-x86_64/"&gt;here [2]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="https://addons.mozilla.org/en-US/thunderbird/addon/2313"&gt;https://addons.mozilla.org/en-US/thunderbird/addon/2313&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b1/contrib/linux-x86_64/"&gt;http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b1/contrib/linux-x86_64/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8054401594344673592?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8054401594344673592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/03/thunderbirds-lightning-plugin-and-64bit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8054401594344673592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8054401594344673592'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/03/thunderbirds-lightning-plugin-and-64bit.html' title='thunderbird&apos;s &quot;lightning&quot; plugin and 64bit = ignorance'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-123011291098744256</id><published>2010-02-22T11:15:00.003+01:00</published><updated>2010-02-22T15:10:18.345+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='kvm'/><category scheme='http://www.blogger.com/atom/ns#' term='Centos'/><title type='text'>Mandriva 2010.0 + KVM + Centos 5.x guest = troubles with the clock</title><content type='html'>We are just in the process of completely reinventing our data center and thus are rolling out a number of Mandriva 2010.0 based servers for various tasks. One of those tasks is virtualization, of course.&lt;br /&gt;&lt;br /&gt;Now, basically, there is nothing special about virtualization and Mandriva 2010.0 (maybe except &lt;a href="https://qa.mandriva.com/show_bug.cgi?id=55909"&gt;this bug&lt;/a&gt; [1] that prevents it from giving more than 2G of RAM to KVM guests).&lt;br /&gt;&lt;br /&gt;The only trouble I really ran into was with Centos 5.4 and its veryvery old 2.6.18 kernel (despite the fact that many things have been backported). With Centos 5.x getting a stable clocksource is very difficult.&lt;br /&gt;&lt;br /&gt;To be honest, perviously I've never thought much about the clocksource, because things have just always worked right out of the box. Now I understand that a stable clocksource is really vital for many applications.&lt;br /&gt;&lt;br /&gt;Yet with Centos 5.x the clock became so unstable, that some applications simply crashed, most notably dovecot, dying with a weird "Time has moved backwards by 4398 seconds" message. There is even a &lt;a href="http://wiki.dovecot.org/TimeMovedBackwards"&gt;dedicated page&lt;/a&gt; on the dovecot wiki for this problem [2].&lt;br /&gt;&lt;br /&gt;In order to circumvent the problem, the following is essential &lt;span style="font-weight: bold;"&gt;on the Centos guest&lt;/span&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;do not use ntp&lt;br /&gt;running ntp on virtual hosts is a very bad idea, see &lt;a href="http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.2"&gt;[3]&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;do not use kvm-clock as a clock source&lt;br /&gt;use acpi_pm instead&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;For the latter, using acpi_pm, check the following:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% cat /sys/devices/system/clocksource/clocksource0/available_clocksource&lt;br /&gt;kvm-clock&lt;br /&gt;acpi_pm&lt;br /&gt;kvm-clock&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This lists you the available clocksources.&lt;br /&gt;&lt;br /&gt;Setting the clocksoure is done by adding a kernel boot parameter. Typically, this can be done either in /boot/grub/menu.lst or in /etc/lilo.conf, depending on which bootloader you have.&lt;br /&gt;&lt;br /&gt;There, add &lt;span style="font-family: courier new; font-weight: bold;"&gt;clocksource=acpi_pm&lt;/span&gt; to the existing kernel parameters and reboot the box. That should be it.&lt;br /&gt;&lt;br /&gt;As a reference, I found the following sites on the internet quite useful for debugging the problem:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://forums.fedoraforum.org/showthread.php?t=211100"&gt;http://forums.fedoraforum.org/showthread.php?t=211100&lt;/a&gt;&lt;br /&gt;&lt;a href="http://kb.vmware.com/kb/1006427"&gt;http://kb.vmware.com/kb/1006427&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="https://qa.mandriva.com/show_bug.cgi?id=55909"&gt;https://qa.mandriva.com/show_bug.cgi?id=55909&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://wiki.dovecot.org/TimeMovedBackwards"&gt;http://wiki.dovecot.org/TimeMovedBackwards&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.2"&gt;http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-123011291098744256?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/123011291098744256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/02/mandriva-20100-kvm-centos-5x-guest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/123011291098744256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/123011291098744256'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/02/mandriva-20100-kvm-centos-5x-guest.html' title='Mandriva 2010.0 + KVM + Centos 5.x guest = troubles with the clock'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-4132103917237601987</id><published>2010-02-05T15:58:00.002+01:00</published><updated>2010-02-05T16:35:14.677+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>shell stuff: highlight matches within files</title><content type='html'>Sometimes one has to deal with a number of log files where you want to see all the logging lines as they occur, but also highlight certain arbitrary strings within those files.&lt;br /&gt;&lt;br /&gt;Say for example, you want to (almost) realtime monitor the following log files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/var/log/daemon.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/var/log/auth.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/var/log/secure.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The easiest way to monitor those files is to use tail:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;% tail -f /var/log/daemon.log /var/log/auth.log /var/log/fooapp.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now imagine that you want to highlight certain important keyword as they occur in one of those files. &lt;span style="font-weight: bold;font-family:courier new;" &gt;grep&lt;/span&gt; will not work in that case because it only displays the lines containing found matches and omits the rest.&lt;br /&gt;&lt;br /&gt;So, if you want to see all lines as they appear in the logs and highlight the matches for arbitrary patterns, you can use the small &lt;span style="font-weight: bold;font-family:courier new;" &gt;ack&lt;/span&gt; tool. Depending on your distribution the tool may have various names, for the distributions used here (Mandriva, debian) installation is simple:&lt;br /&gt;&lt;br /&gt;for Mandriva: &lt;span style="font-family:courier new;"&gt;% urpmi ack&lt;/span&gt;&lt;br /&gt;for debian: &lt;span style="font-family:courier new;"&gt;% apt-get install ack-grep&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To highlight something, you can use the --passthru parameter:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;% tail -f /var/log/daemon.log /var/log/auth.log /var/log/fooapp.log &lt;span style="font-weight: bold;"&gt;| ack --passthru attack&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;==&gt; /var/log/daemon.log &lt;== &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: starting up&lt;br /&gt;Feb  5 15:08:27 artio dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:10:14 artio fooapp: &lt;span style="font-weight: bold; background-color: rgb(255, 153, 0);"&gt;attack&lt;/span&gt; in progress, blocking access&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;==&gt; /var/log/auth.log &lt;== &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio sshd: pam_tcp: login successfull&lt;br /&gt;Feb  5 15:09:36 artio su: pam_tcb(su:auth): Authentication passed for root from fred(uid=500)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:10:14 artio fooapp: pam_iris: &lt;span style="background-color: rgb(255, 153, 0); font-weight: bold;"&gt;attack&lt;/span&gt; detected&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;==&gt; /var/log/fooapp.log &lt;== &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: FooApp Version 1.27b initializing&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: starting up&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: loaded the following modules:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: * mod_&lt;span style="font-weight: bold; background-color: rgb(255, 153, 0);"&gt;attack&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: * mod_strike&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: * mod_block&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:08:14 artio fooapp: up and running&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Feb   5 15:10:14 artio fooapp: &lt;span style="font-weight: bold; background-color: rgb(255, 153, 0);"&gt;attack&lt;/span&gt; in progress, blocking access&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Other than that, ack is quite similar to "ordinary" grep.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-4132103917237601987?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/4132103917237601987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2010/02/shell-stuff-highlight-matches-within.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4132103917237601987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4132103917237601987'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2010/02/shell-stuff-highlight-matches-within.html' title='shell stuff: highlight matches within files'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-3127845786910784766</id><published>2009-10-14T14:59:00.008+02:00</published><updated>2009-10-14T17:12:01.510+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='RAID'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>IBM ServRAID tools and Mandriva Linux 2010.0</title><content type='html'>We recently purchased a couple of Lenovo RD120 servers (exellent quality!) coming with an IBM ServRAID-8k SAS/SATA controller.&lt;br /&gt;&lt;br /&gt;This RAID controller is well known from the IBM x35xx series and features RAID levels 0,1,5,6,10 and 1e (whateever level '1e' may be :-), 256MB of RAM and a backup battery to finish write operations once power goes down. So in general, a truly excellent controller.&lt;br /&gt;&lt;br /&gt;The only thing that proves to be somewhat tricky is to get the fitting tools up and running that allow you for example to hotswap drives (that is, take one drive offline, take another one online and synchronize it).&lt;br /&gt;&lt;br /&gt;So, the first thing to do is to download the latest "IBM ServRAID Application CD" from &lt;a href="http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-61707&amp;brandind=5000020"&gt;here&lt;/a&gt; [1]. What you get from here is a +400Mb ISO, containing the tools for various operating systems, among them is linux and linux-x86_64.&lt;br /&gt;&lt;br /&gt;Once you have downloaded it, copy linux_x86_64/cmdline/arcconf and linux_x86_64/manager/RaidMan-9.00.x86_64.rpm to the server.&lt;br /&gt;&lt;br /&gt;The arcconf tool first needs to be made executable (chmod +x arcconf), then you can invoke it without parameters and it will list you all possible options. For example, this gives you more information about the raid controller:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;% arcconf GETCONFIG 1 AD&lt;br /&gt;Controllers found: 1&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;Controller information&lt;br /&gt;---------------------------------------------------------------&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Controller &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: Okay&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Channel &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: SAS/SATA&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Controller &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: IBM ServeRAID 8k&lt;br /&gt;[..]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In general, if you prefer command line tools like myself, arcconf allows you to do anything with the raid controller, that you like (decommission defect drives/commissison new ones, ...).&lt;br /&gt;&lt;br /&gt;But of course, sometimes GUI applications are not so bad, after all :-)&lt;br /&gt;&lt;br /&gt;Installing the manager application proves to be somewhat more tricky, because Mandriva is not officially supported by IBM. However, it is not too difficult:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;% urpmi RaidMan-9.00.x86_64.rpm libxp6 libxt6 libxtst6 libstdc++5 libx11-common&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The extra packages are required for java to operate correctly and to allow startup of the manager GUI.&lt;br /&gt;&lt;br /&gt;Now, finally, you can invoke&lt;br /&gt;&lt;br /&gt;&lt;code&gt;% /usr/RaidMan/RaidMan.sh&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You will get a couple of errors about "/usr/lib/libstdc++.so.5" not being preloadable, but as far as I found out, you can safely ignore them.&lt;br /&gt;&lt;br /&gt;The only thing yet missing is to allow remote access to the raid agent. So far I was not able to connect to the raid agents on the servers for reasons unknown.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-61707&amp;brandind=5000020"&gt;http://www-304.ibm.com/jct01004c/systems/support/supportsite.wss/docdisplay?lndocid=MIGR-61707&amp;brandind=5000020&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-3127845786910784766?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/3127845786910784766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/10/ibm-servraid-tools-and-mandriva-linux.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3127845786910784766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3127845786910784766'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/10/ibm-servraid-tools-and-mandriva-linux.html' title='IBM ServRAID tools and Mandriva Linux 2010.0'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-6964615936383134014</id><published>2009-09-25T19:00:00.005+02:00</published><updated>2009-09-25T19:33:07.167+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>accessing the CLI of Cisco "Small Business" Switches</title><content type='html'>Preface: Cisco's "Small Business" network equipment is based on hardware formerly manufactured by Linksys. When Cisco bought Linksys, they incorporated the Linksys hardware as "Cisco Small Business" equipment.&lt;br /&gt;&lt;br /&gt;Now, at first glance that doesn't sound too bad. Cisco, being the major player when it comes to network equipment, is well known for its very well designed and quite well supported devices.&lt;br /&gt;&lt;br /&gt;However, when the story comes to the formerly Linksys products, Cisco looses everything it has to loose, both in terms of support and also in terms of design.&lt;br /&gt;&lt;br /&gt;One example for that failure is documented &lt;a href="http://www.dslreports.com/forum/r22733060-RVS-4000-Support-email-to-Cisco"&gt;here&lt;/a&gt; [1] for example.&lt;br /&gt;&lt;br /&gt;Another story is the completely unuseable web interface of the former managed Linksys switches, like the SRW224G4 [2] for example.&lt;br /&gt;&lt;br /&gt;We are unfortunate enough to purchase a couple of those devices, in the hope that the web based management facilities would be useful to some degree.&lt;br /&gt;&lt;br /&gt;The truth however is, that the web UI is completely unuseable if you use any other browser than IE6. Neither IE7, IE8, FF2, FF3 or Opera can be used to access the Web UI ...&lt;br /&gt;&lt;br /&gt;There are many people complaining about this situation (for example &lt;a href="http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken"&gt;here&lt;/a&gt; [3], but obviously - once more - Cisco's support is completely ignorant.&lt;br /&gt;&lt;br /&gt;The only thing you can do is to use the command line interface of those switches. In order to do so, you must access the switch like this (taken from &lt;a href="http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken#comment-393"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;- Telnet to the switch &amp; login&lt;br /&gt;- Once you get to the menu, hit ctrl+z, you should now see a "&gt;" (type ? to all available commands from this point on)&lt;br /&gt;- Type lcli, hit enter, and put the user name in again (admin usually)&lt;br /&gt;- now you should see "console#"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;How you can configure your script in a similar way known from Cisco's IOS.&lt;br /&gt;&lt;br /&gt;A good starting point of how the CLI works can be found &lt;a href="http://lcli.wikidot.com/"&gt;here&lt;/a&gt; [5].&lt;br /&gt;&lt;br /&gt;And what remains for the bottom line is that: just don't buy Cisco's "Small Business" products until they are ready to give real support for them. After all: even those products are business products!&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.dslreports.com/forum/r22733060-RVS-4000-Support-email-to-Cisco"&gt;http://www.dslreports.com/forum/r22733060-RVS-4000-Support-email-to-Cisco&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.cisco.com/en/US/products/ps9987/index.html"&gt;http://www.cisco.com/en/US/products/ps9987/index.html&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken"&gt;http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken#comment-393"&gt;http://davehall.com.au/blog/dave/2007/12/04/linksys-srw224g4-webgui-broken#comment-393&lt;/a&gt;&lt;br /&gt;[5] &lt;a href="http://lcli.wikidot.com/"&gt;http://lcli.wikidot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-6964615936383134014?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/6964615936383134014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/09/accessing-cli-of-cisco-small-business.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6964615936383134014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6964615936383134014'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/09/accessing-cli-of-cisco-small-business.html' title='accessing the CLI of Cisco &quot;Small Business&quot; Switches'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8152185738905907091</id><published>2009-09-01T15:27:00.007+02:00</published><updated>2009-09-18T19:52:30.054+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x509'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>SVN authentication with client SSL X.509 certificates and apache 2.2</title><content type='html'>We recently moved our subversion repository to a new, now dedicated server. In that course I found it reasonable to streamline our old configuration how authentication and authorization against the repository is done.&lt;br /&gt;&lt;br /&gt;Previously, our users were primarily authorized to access the repository using their X.509 certificates. After authorization took place, they were authenticated and thus being asked for their usernames and passwords.&lt;br /&gt;&lt;br /&gt;The goal now was to get rid of the second step, allowing authentication and authorization based purely on the certificates.&lt;br /&gt;&lt;br /&gt;To be true, the solution was not so easy to find, because apache's mod_ssl module is not really designed for authentication purposes. It has a pretty useless "FakeBasicAuth" option requiring to manually store each user in a htpasswd style file, containing the hardcoded 'password' string as each users password. Pretty ugly, IMHO.&lt;br /&gt;&lt;br /&gt;However, I finally managed to get to a resonable result.&lt;br /&gt;&lt;br /&gt;Before doing anything else, ensure that you have mod_ssl and mod_dav_svn up and running. I won't go deeper into those basics.&lt;br /&gt;&lt;br /&gt;After the modules are ready, put the following in your apache's config for the relevant (virtual)host:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;Location /theLocationOfYourRepository&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;SSLVerifyClient require&lt;br /&gt;&amp;nbsp;&amp;nbsp;SSLRequireSSL&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;SSLOptions +StdEnvVars&lt;br /&gt;&amp;nbsp;&amp;nbsp;SSLUserName SSL_CLIENT_S_DN_Email&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;DAV svn&lt;br /&gt;&amp;nbsp;&amp;nbsp;SVNPath /the/absolute/filesystem/path/of/your/repository&lt;br /&gt;&amp;nbsp;&amp;nbsp;SVNListParentPath on&lt;br /&gt;&amp;nbsp;&amp;nbsp;AuthzSVNAccessFile /etc/subversion/apache-acl-file&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;In my case, the emailAdress attribute of the certificate's subject DN is used to make up the username ("SSLUserName SSL_CLIENT_S_DN_Email"), useable in the AuthzSVNAccessFile, for example:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;[/project1]&lt;br /&gt;fred.flintstone@example.com = rw&lt;br /&gt;wilma.flintstone@example.com = r&lt;br /&gt;&lt;br /&gt;[/project2]&lt;br /&gt;wilma.flintstone@example.com = rw&lt;br /&gt;&lt;br /&gt;# locking out everybody else&lt;br /&gt;[/]&lt;br /&gt;* =&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Instead of the emailAddress attribute, you can choose from a number of alternatives, see &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#envvars"&gt;here [1]&lt;/a&gt; and &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequire"&gt;here [2]&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;For now, I am quite satisfied how it works. &lt;br /&gt;&lt;br /&gt;The only thing to be done in the future will be to map those email addresses against LDAP entries and have the usernames retrieved from the DIT based on the matches. And eventually I want the AuthzSVNAccessFile also being served from our LDAP server, of course. But that will probably be a hard fight.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#envvars"&gt;http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#envvars&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequire"&gt;http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslrequire&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8152185738905907091?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8152185738905907091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/09/svn-authentication-with-client-ssl-x509.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8152185738905907091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8152185738905907091'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/09/svn-authentication-with-client-ssl-x509.html' title='SVN authentication with client SSL X.509 certificates and apache 2.2'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-2041824934717304259</id><published>2009-08-26T11:58:00.003+02:00</published><updated>2009-08-26T17:35:09.887+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>capturing videos from your linux desktop</title><content type='html'>I recently had to produce some screencasts from my linux desktop and wasn't able to find a "quick" solution for this "problem". Of course, google is your friend, so here are two reasonable possibilities I found:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;recordMyDesktop [1]&lt;br /&gt;The most powerful utility I found, coming as a commandline tool and with qt and gtk frontends as well. Furthermore you can also record audio. Its only limitation (if you call this a limitation) is that it can only produce ogg theora for video and ogg vorbis for audio, so no direct mpeg support (but converting theora to whatever is trivial).&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;XvidCap [2]&lt;br /&gt;An "older" utility (last update is from 2006). Besides capturing as a video including audio, it can also produce a series of jpegs instead. It produces mpeg videos.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;So for now I am quite happy with recordDesktop :-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://recordmydesktop.sourceforge.net/"&gt;http://recordmydesktop.sourceforge.net/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://xvidcap.sourceforge.net/"&gt;http://xvidcap.sourceforge.net/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-2041824934717304259?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/2041824934717304259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/08/capturing-videos-from-your-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2041824934717304259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2041824934717304259'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/08/capturing-videos-from-your-linux.html' title='capturing videos from your linux desktop'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8449481045968607632</id><published>2009-08-24T17:03:00.005+02:00</published><updated>2009-08-24T20:06:18.799+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='SATA'/><title type='text'>rescanning the connected SATA/SCSI devices</title><content type='html'>Once in a while I stumble upon the problem where I have to attach a SATA or SCSI device to a running Linux box and for some reasons (ie. the device or the interface is not hot plugging capable) it doesn't get recognoized by the system.&lt;br /&gt;&lt;br /&gt;Now the solution is very simple, just tell the kernel to rescan the SATA/SCSI bus:&lt;br /&gt;&lt;br /&gt;first find out how many SATA/SCSI busses you have:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% ls -l /sys/class/scsi_host/&lt;br /&gt;drwxr-xr-x 2 root root 0 2009-08-24 15:05 host0&lt;br /&gt;drwxr-xr-x 2 root root 0 2009-08-24 15:05 host1&lt;br /&gt;drwxr-xr-x 2 root root 0 2009-08-24 16:26 host2&lt;br /&gt;drwxr-xr-x 2 root root 0 2009-08-24 16:26 host3&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So that means 4 host interfaces to query for. Querying or rescanning is very easy:&lt;br /&gt;&lt;br /&gt;Find out which hard disks are currently recognoized by the kernel:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% cat /sys/class/scsi_disk/*/device/model&lt;br /&gt;WDC WD1600YS-01S&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;In other words, a Western Digital WD1600YS hard drive is connected and recognoized by the computer.&lt;br /&gt;&lt;br /&gt;Now, if you want the SATA/SCSI bus to rescan all host interfaces for new devices, do this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% echo "- - -" &gt; /sys/class/scsi_host/*/scan&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To theck if any previously unrecognized hard disks have been detected, refetch the list of hard disks:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% cat /sys/class/scsi_disk/*/device/model&lt;br /&gt;WDC WD1600YS-01S&lt;br /&gt;Seagate FreeAgen&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;So as you see, a new "Seagate FreeAgen" hard disk has been detected.&lt;br /&gt;&lt;br /&gt;The procedure is essentially the same for all other types of SATA/SCSI devices such as scanners, tape drives, ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8449481045968607632?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8449481045968607632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/08/rescanning-connected-satascsi-devices.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8449481045968607632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8449481045968607632'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/08/rescanning-connected-satascsi-devices.html' title='rescanning the connected SATA/SCSI devices'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-6589352378195774024</id><published>2009-08-17T12:36:00.002+02:00</published><updated>2009-08-17T12:49:01.242+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>Linksys/Cisco RVS4000: support madness</title><content type='html'>Trying to find further information about some problems we are facing with our Linksys/Cisco RVS4000 router, I stumbled upon this blog entry:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dslreports.com/forum/r22733060-RVS-4000-Support-email-to-Cisco"&gt;http://www.dslreports.com/forum/r22733060-RVS-4000-Support-email-to-Cisco&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The poor guy tells his nightmare with Cisco/Linksys support regarding some problems with his RVS4000 router. Among other things, we are seeing exactly the same problems here as well, but obviously contacting Cisco's support seems to be a waste of time.&lt;br /&gt;&lt;br /&gt;I can hardly remember a company with such a support reputation to loose fail so miserably ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-6589352378195774024?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/6589352378195774024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/08/linksyscisco-rvs4000-support-madness.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6589352378195774024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/6589352378195774024'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/08/linksyscisco-rvs4000-support-madness.html' title='Linksys/Cisco RVS4000: support madness'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-4426544606548934868</id><published>2009-08-10T16:47:00.008+02:00</published><updated>2009-08-10T18:02:26.294+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='kvm'/><title type='text'>Debian+KVM: proxy_arp for individual ip adresses</title><content type='html'>In one of my &lt;a href="http://riaschissl.blogspot.com/2009/06/port-security-proxying-kvm-mac.html"&gt;older posts&lt;/a&gt; [1] I described how you can hide the MAC addresses of KVM virtualized guests living in a dedicated, externally reachable subnet.&lt;br /&gt;&lt;br /&gt;If however you don't have a dedicated subnet from your hosting provider but only got only a small number of maybe segmented IP addresses instead of an entire subnet, the solution is much simpler.&lt;br /&gt;&lt;br /&gt;So, let's say this is what you want:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;a host&lt;/span&gt;&lt;br /&gt;living under &lt;span style="font-weight: bold;"&gt;192.168.10.10&lt;/span&gt; with a netmask of 255.255.255.0&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;a KVM guest&lt;/span&gt;&lt;br /&gt;designated to live under &lt;span style="font-weight: bold;"&gt;192.168.10.20&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;another KVM guest&lt;/span&gt;&lt;br /&gt;designated to live under &lt;span style="font-weight: bold;"&gt;192.168.10.30&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Due to port security, each of the guests must not reveal their (virtual) MAC addresses to any external communication partner.&lt;br /&gt;&lt;br /&gt;For a Debian lenny host, the following prerequisites are required&lt;br /&gt;&lt;ul&gt;&lt;li&gt;install &lt;span style="font-weight: bold;font-family:courier new;" &gt;iproute&lt;/span&gt;&lt;/li&gt;&lt;li&gt;install &lt;span style="font-weight: bold;font-family:courier new;" &gt;uml-utilities&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Using uml-utilities (uml = user mode linux), you can setup virtual network interfaces useable by the KVM guests.&lt;br /&gt;&lt;br /&gt;In order to get things going, add the following lines to &lt;span style="font-weight: bold;"&gt;&lt;span style="font-family: courier new;"&gt;/etc/network/interfaces&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;[...]&lt;br /&gt;auto tap0&lt;br /&gt;iface tap0 inet manual&lt;br /&gt;&amp;nbsp;&amp;nbsp;tunctl_user root&lt;br /&gt;&amp;nbsp;&amp;nbsp;uml_proxy_arp 192.168.10.20&lt;br /&gt;&amp;nbsp;&amp;nbsp;uml_proxy_ether eth0&lt;br /&gt;&amp;nbsp;&amp;nbsp;up ip link set tap0 up&lt;br /&gt;&amp;nbsp;&amp;nbsp;post-up sysctl -w net.ipv4.ip_forward=1&lt;br /&gt;&amp;nbsp;&amp;nbsp;post-up sysctl -w net.ipv4.conf.tap0.proxy_arp=1&lt;br /&gt;&amp;nbsp;&amp;nbsp;pre-down sysctl -w net.ipv4.ip_forward=0&lt;br /&gt;&amp;nbsp;&amp;nbsp;down ip link set tap0 down&lt;br /&gt;&lt;br /&gt;auto tap1&lt;br /&gt;iface tap1 inet manual&lt;br /&gt;&amp;nbsp;&amp;nbsp;tunctl_user root&lt;br /&gt;&amp;nbsp;&amp;nbsp;uml_proxy_arp 192.168.10.30&lt;br /&gt;&amp;nbsp;&amp;nbsp;uml_proxy_ether eth0&lt;br /&gt;&amp;nbsp;&amp;nbsp;up ip link set tap1 up&lt;br /&gt;&amp;nbsp;&amp;nbsp;post-up sysctl -w net.ipv4.conf.tap1.proxy_arp=1&lt;br /&gt;&amp;nbsp;&amp;nbsp;down ip link set tap1 down&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The lines above create two to called "tap" devices tap0 and tap1, using the utilites provided by user mode linux (somewhat like an alternative to KVM, vmware, ...). Due to severe Debian magic, the lines also enable proxy_arp for the new devices and tell the kernel to use the MAC address of eth0 instead: &lt;br /&gt;&lt;br /&gt;&lt;code&gt;% ifup tap0&lt;br /&gt;[...]&lt;br /&gt;% arp -an&lt;br /&gt;[...]&lt;br /&gt;? (192.168.10.20) at &lt;from_interface&gt; PERM PUB on eth0&lt;br /&gt;% cat /proc/sys/net/ipv4/conf/tap0/proxy_arp&lt;br /&gt;1&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;And still better, even a specific device route is created:&lt;br /&gt;&lt;pre&gt;% route -n&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags Metric Ref    Use Iface&lt;br /&gt;192.168.10.20   0.0.0.0         255.255.255.255 UH    0      0        0 tap0&lt;br /&gt;192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0&lt;br /&gt;0.0.0.0         192.168.10.254  0.0.0.0         UG    0      0        0 eth0&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;If you ifup tap1 as well, you will see further entries like the ones above.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[sidenote]:&lt;/span&gt; User mode linux is quite a funny thing to play with, a good starting point for further reading is &lt;a href="http://user-mode-linux.sourceforge.net/old/UserModeLinux-HOWTO.html"&gt;this link &lt;/a&gt;[2].&lt;br /&gt;&lt;br /&gt;The only thing remaining for you is to instruct your KVM guests to use their new, dedicated devices. You can do so manually by ensuring that the guests are started with the following options set:&lt;br /&gt;&lt;code&gt;% kvm \&lt;br /&gt;[...] \&lt;br /&gt;-net nic \&lt;br /&gt;-net tap,ifname=tap0,script=no \&lt;br /&gt;[...]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;and for the other guest&lt;br /&gt;&lt;code&gt;% kvm \&lt;br /&gt;[...] \&lt;br /&gt;-net nic \&lt;br /&gt;-net tap,ifname=tap1,script=no\&lt;br /&gt;[...]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If you use the libvirt daemon, you can alternatively update the guest's xml definition like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;interface type='ethernet'&amp;gt;&lt;br /&gt;  &amp;lt;target dev='tap0'/&amp;gt;&lt;br /&gt;&amp;lt;/interface&amp;gt;&lt;br /&gt;[...]&lt;br /&gt;&lt;/pre&gt;and for the other guest of course:&lt;pre&gt;&lt;br /&gt;[...]&lt;br /&gt;&amp;lt;interface type='ethernet'&amp;gt;&lt;br /&gt;  &amp;lt;target dev='tap1'/&amp;gt;&lt;br /&gt;&amp;lt;/interface&amp;gt;&lt;br /&gt;[...]&lt;br /&gt;&lt;/pre&gt;If you now configure your guests to use once 192.168.10.20 and once 192.168.10.30, you should be able to ping other hosts without revealing the guest's virtual mac addresses. That can be tested using arp again on the targeted hosts, eg.&lt;br /&gt;&lt;br /&gt;In the first guest with an ip address of 192.168.10.20, start a ping against 192.168.10.254:&lt;br /&gt;&lt;code&gt;% ping 192.168.10.254&lt;br /&gt;PING 192.168.10.254 (192.168.10.254) 56(84) bytes of data.&lt;br /&gt;64 bytes from 192.168.10.254: icmp_seq=1 ttl=64 time=1.76 ms&lt;br /&gt;[...]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then log into 192.168.10.254 and use arp to verify the mac address used:&lt;br /&gt;&lt;code&gt;% arp -an&lt;br /&gt;[...]&lt;br /&gt;? (192.168.10.20) at ac:00:00:00:01 [ether] on eth0&lt;br /&gt;[...]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The mac address found (AC:00:00:00:01) should be the same as the KVM hosts physical network card.&lt;br /&gt;&lt;br /&gt;Beware once more, that any "proxy_arp" style solution one major drawback: you cannot use DHCP to configure your virtual guests, because a DHCP server has no way to determine their (virtual) mac address.&lt;br /&gt;&lt;br /&gt;Happy hacking again :-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://riaschissl.blogspot.com/2009/06/port-security-proxying-kvm-mac.html"&gt;http://riaschissl.blogspot.com/2009/06/port-security-proxying-kvm-mac.html&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://user-mode-linux.sourceforge.net/old/UserModeLinux-HOWTO.html"&gt;http://user-mode-linux.sourceforge.net/old/UserModeLinux-HOWTO.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-4426544606548934868?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/4426544606548934868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/08/debiankvm-proxyarp-for-individual-ip.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4426544606548934868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4426544606548934868'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/08/debiankvm-proxyarp-for-individual-ip.html' title='Debian+KVM: proxy_arp for individual ip adresses'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-2851813708602722699</id><published>2009-07-16T23:50:00.005+02:00</published><updated>2009-08-12T17:43:44.944+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>getting even more information about installed RAM</title><content type='html'>In a &lt;a href="http://riaschissl.blogspot.com/2009/06/finding-out-details-about-installed-ram.html"&gt;previous post&lt;/a&gt; [1] I wrote that the linux tool to find out details about RAM is dmideocde.&lt;br /&gt;&lt;br /&gt;I have, however, just learned that that is not always correct because it effectively relies on BIOS information that may be incorrect (buggy BIOSes are not too uncommon).&lt;br /&gt;&lt;br /&gt;So, as a plan B, if you don't get all the information you need (especially information about speed settings), there is the "lm-sensors" package [2]. Every distro I am aware of has it, for Mandriva it is probably already preinstalled, if not, just install it like this:&lt;br /&gt;&lt;code&gt;% urpmi lm_sensors&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In Debian &gt;= Lenny you need to install the &lt;span style="font-weight: bold; font-family: courier new;"&gt;i2c-tools&lt;/span&gt; package instead.&lt;br /&gt;&lt;br /&gt;The lm-sensors package usually also contains a nice script called "decode-dimms.pl" (or similar, depending on your distro again).&lt;br /&gt;&lt;br /&gt;If you invoke it as root, it may carp like this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;% decode-dimms.pl&lt;br /&gt;[...]&lt;br /&gt;No EEPROM found, are you sure the eeprom module is loaded?&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You can circumvent this problem by loading the eeprom module into memory:&lt;br /&gt;&lt;code&gt;% modprobe eeprom&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;After that, you should get really everything you ever wanted to know about the memory being used, for example on a ASRock G31M-S mainboard with a 2GB Kingston DDR2/800 memory:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Decoding EEPROM: /sys/bus/i2c/drivers/eeprom/1-0050&lt;br /&gt;Guessing DIMM is in                             bank 1&lt;br /&gt;&lt;br /&gt;---=== SPD EEPROM Information ===---&lt;br /&gt;EEPROM Checksum of bytes 0-62                   OK (0x7D)&lt;br /&gt;# of bytes written to SDRAM EEPROM              128&lt;br /&gt;Total number of bytes in EEPROM                 256&lt;br /&gt;Fundamental Memory type                         DDR2 SDRAM&lt;br /&gt;SPD Revision                                    1.2&lt;br /&gt;&lt;br /&gt;---=== Memory Characteristics ===---&lt;br /&gt;Maximum module speed                            800MHz (PC2-6400)&lt;br /&gt;Size                                            2048 MB&lt;br /&gt;tCL-tRCD-tRP-tRAS                               6-6-6-18&lt;br /&gt;Supported CAS Latencies                         6, 5, 4&lt;br /&gt;Minimum Cycle Time (CAS 6)                      2.5 ns&lt;br /&gt;Maximum Access Time (CAS 6)                     0.4 ns&lt;br /&gt;Minimum Cycle Time (CAS 5)                      3 ns&lt;br /&gt;Maximum Access Time (CAS 5)                     0.45 ns&lt;br /&gt;Minimum Cycle Time (CAS 4)                      3.75 ns&lt;br /&gt;Maximum Access Time (CAS 4)                     0.5 ns&lt;br /&gt;&lt;br /&gt;---=== Manufacturing Information ===---&lt;br /&gt;mManufacturer                                    Kingston&lt;br /&gt;Manufacturing Location Code                     0x03&lt;br /&gt;Part Number                                                      &lt;br /&gt;Manufacturing Date                              2009-W09&lt;br /&gt;Assembly Serial Number                          0x9DCCAD2D&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://riaschissl.blogspot.com/2009/06/finding-out-details-about-installed-ram.html"&gt;http://riaschissl.blogspot.com/2009/06/finding-out-details-about-installed-ram.html&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.lm-sensors.org/"&gt;http://www.lm-sensors.org&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-2851813708602722699?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/2851813708602722699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/07/getting-detailled-information-about.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2851813708602722699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2851813708602722699'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/07/getting-detailled-information-about.html' title='getting even more information about installed RAM'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8232195623930646766</id><published>2009-07-10T12:14:00.004+02:00</published><updated>2009-07-10T12:32:27.413+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>getting refund for your preinstalled Windows</title><content type='html'>As we all know, it can be quite difficult to purchase a computer without a preinstalled version of Microsoft Windows.&lt;br /&gt;&lt;br /&gt;However, if for whatever reason you don't want to use the preinstalled software (Windows, Office, Works, ...), you are eligible for a refund as defined in the end users licence agreement that comes with products from Microsoft.&lt;br /&gt;&lt;br /&gt;The first thing to do is to check the contents of the actual license. You can do so on &lt;a href="http://www.microsoft.com/about/legal/useterms/default.aspx"&gt;this website from microsoft&lt;/a&gt; [1].&lt;br /&gt;&lt;br /&gt;So for example, the first page of the English Windows Vista Business EULA contains this paragraph in bold:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;By using the software, you accept these terms. If you do not accept them, do not use the software. Instead, contact the manufacturer or installer to determine their return policy for a refund or credit.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;In other words, you have to contact the manufacturer of your computer and query them about how to get a refund or credit for the unused license.&lt;br /&gt;&lt;br /&gt;Typically this should be done as soon as possible after your purchase. How good or how well this works mostly depends on the manufacturer, use google to read some experiences ("windows refund") or read &lt;a href="http://en.wikipedia.org/wiki/Windows_refund"&gt;this article&lt;/a&gt; on wikipedia [2]. But in general you can expect to get something around EUR 100,- for a preinstalled Windows, so this is certainly worth some effort.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.microsoft.com/about/legal/useterms/default.aspx"&gt;http://www.microsoft.com/about/legal/useterms/default.aspx&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://en.wikipedia.org/wiki/Windows_refund"&gt;http://en.wikipedia.org/wiki/Windows_refund&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8232195623930646766?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8232195623930646766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/07/getting-refund-for-your-preinstalled.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8232195623930646766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8232195623930646766'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/07/getting-refund-for-your-preinstalled.html' title='getting refund for your preinstalled Windows'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-2519241909757068312</id><published>2009-06-18T12:45:00.008+02:00</published><updated>2009-07-06T15:53:24.593+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='kvm'/><title type='text'>the not so easy migration from VMWare server to KVM for Windows guests</title><content type='html'>As previously written [1], we are currently migrating our existing VMWare Server 2.0 guests to KVM, running on Debian sid [2] installations (yes, sid indeed, for the sake of a KVM installation as up2date as possible).&lt;br /&gt;&lt;br /&gt;While things have been really extremely flawless for linux guests, the migration of our Windows guests has more been the cause of an headache:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;BEFORE anything else, prepare your any of your Windows guests:&lt;br /&gt;remove VMWare Tools&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;BEFORE anything else, prepare your &lt;span style="font-weight: bold;"&gt;Windows &amp;gt;= XP&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt; guests:&lt;br /&gt;fix your registry as documented here: &lt;a href="http://support.microsoft.com/kb/314082/en-us"&gt;http://support.microsoft.com/kb/314082/en-us&lt;/a&gt; (load the mergeide.reg found on the page into the registry).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;migration of split virtual harddisks:&lt;br /&gt;If you find your virtual hard disks to be split into chunks of files (typically 2GB big), you need to merge the pieces into one big file as written &lt;a href="http://blog.bodhizazen.net/linux/convert-vmware-vmdk-to-kvm-qcow2-or-virtualbox-vdi/"&gt;here&lt;/a&gt; [3]. It boils down to this AFTER shutting down your guests:&lt;br /&gt;&lt;code&gt;% vmware-vdiskmanager -r "Windows XP Professional.vmdk" -t 0 $THE_NAME_OF_THE_BIG_FAT_FILE.vmdk&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;further troubles you might see:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Windows 2000&lt;/span&gt; does not start but displays a message about ntoskrnl.exe&lt;br /&gt;see my &lt;a href="http://riaschissl.blogspot.com/2009/06/kvm-windows-2000-does-not-boot-because.html"&gt;previous post&lt;/a&gt; [1]&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Windows XP, Part 1&lt;/span&gt;: it starts to boot but reboots during the boot process:&lt;br /&gt;First ensure that you have &lt;span style="font-weight: bold;font-family:courier new;" &gt;acpi&lt;/span&gt; enabled for the guest (the kvm process &lt;span style="font-weight: bold;"&gt;must not&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt; have the &lt;span style="font-weight: bold;font-family:courier new;" &gt;-no-acpi&lt;/span&gt; parameter). If it has and you are using libvirtd to control your guests, open the guest XML file and ensure that the &amp;lt;features&amp;gt; element contains acpi and apic subelements:&lt;br /&gt;&lt;code&gt;&amp;lt;features&amp;gt;&lt;br /&gt;  &amp;lt;acpi/&amp;gt;&lt;br /&gt;  &amp;lt;apic/&amp;gt;&lt;br /&gt;&amp;lt;/features&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Windows XP, Part 2:&lt;/span&gt; it starts to boot but reboots during the boot process:&lt;br /&gt;If it still doesn't boot, ensure that you have performed step#2 from above&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Windows XP, Part 3:&lt;/span&gt; it starts to boot but reboots during the boot process:&lt;br /&gt;And if it still doesn't boot, try to boot into safe mode and find out the last driver windows tries to load. If that happens to be agp440.sys, then you are not alone, see this &lt;a href="http://support.microsoft.com/kb/324764"&gt;microsoft kb article&lt;/a&gt; [4]. You may go with the solution described in here or even delete/rename it like suggested in this &lt;a href="http://www.virtualbox.org/wiki/Migrate_Windows"&gt;FAQ for VirtualBox&lt;/a&gt; [5] &lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Follwing these steps allowed us to migrate most of our installations, some WXP migrations failed however.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://riaschissl.blogspot.com/2009/06/kvm-windows-2000-does-not-boot-because.html"&gt;http://riaschissl.blogspot.com/2009/06/kvm-windows-2000-does-not-boot-because.html&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.debian.org/releases/unstable/"&gt;http://www.debian.org/releases/unstable/&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://blog.bodhizazen.net/linux/convert-vmware-vmdk-to-kvm-qcow2-or-virtualbox-vdi/"&gt;http://blog.bodhizazen.net/linux/convert-vmware-vmdk-to-kvm-qcow2-or-virtualbox-vdi/&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="http://support.microsoft.com/kb/324764"&gt;http://support.microsoft.com/kb/324764&lt;/a&gt;&lt;br /&gt;[5] &lt;a href="http://www.virtualbox.org/wiki/Migrate_Windows"&gt;http://www.virtualbox.org/wiki/Migrate_Windows&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-2519241909757068312?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/2519241909757068312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/06/not-so-easy-migration-from-vmware.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2519241909757068312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2519241909757068312'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/06/not-so-easy-migration-from-vmware.html' title='the not so easy migration from VMWare server to KVM for Windows guests'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-555902223195613579</id><published>2009-06-17T16:20:00.006+02:00</published><updated>2009-07-06T15:53:46.166+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='kvm'/><title type='text'>kvm: windows 2000 does not boot because ntoskrnl.exe is missing or corrupt</title><content type='html'>We are currently in the process of migrating all our VMWare virtual hosts to KVM [1]. Sometimes this can be quite difficult because KVM apparently has some issues with older guest OS such was Windows 2000.&lt;br /&gt;&lt;br /&gt;So, if you try to boot Windows 2000, you might fail like this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Disk I/o error: Status = 00000001&lt;br /&gt;Disk I/o error: Status = 00000001&lt;br /&gt;Disk I/o error: Status = 00000001&lt;br /&gt;&lt;br /&gt;Windows 2000 could not start because the following file is missing or corrupt:&lt;br /&gt;&lt;br /&gt;&amp;lt;windows 2000 root&amp;gt;\system32\ntoskrnl.exe.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The workaround [2] for that problem is &lt;span style="font-weight:bold;"&gt;not to mark&lt;/span&gt; the primary harddisk as the boot device but the CD-ROM device instead. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Update:&lt;/span&gt;&lt;br /&gt;The workaround does not work as expected, unfortunately. It only works until you leave a bootable CD in the CD-ROM drive but don't actually boot from it. However, Windows installation CDs have the feature to tell you "press any key to boot from CD" before the actually boot from the CD, otherwise they continue with the other potential boot devices.&lt;br /&gt;&lt;br /&gt;So for the time being, I have created an ISO image of the installation disk, attached it to the guest as a CD-ROM drive and boot from it :-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.linux-kvm.org/"&gt;http://www.linux-kvm.org/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.mail-archive.com/kvm@vger.kernel.org/msg04157.html"&gt;http://www.mail-archive.com/kvm@vger.kernel.org/msg04157.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-555902223195613579?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/555902223195613579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/06/kvm-windows-2000-does-not-boot-because.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/555902223195613579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/555902223195613579'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/06/kvm-windows-2000-does-not-boot-because.html' title='kvm: windows 2000 does not boot because ntoskrnl.exe is missing or corrupt'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1768620355081900110</id><published>2009-06-16T16:15:00.004+02:00</published><updated>2009-07-17T00:06:07.638+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>finding out details about installed RAM on a Linux box</title><content type='html'>The tool of choice for getting detailled technical hardware information in Linux these days is &lt;span style="font-family: courier new; font-weight: bold;"&gt;dmidecode&lt;/span&gt; [1].&lt;br /&gt;&lt;br /&gt;If you have a compatible BIOS that follows theSMBIOS/DMI [2] and [3] standard (very likely for any modern computer), you can use it to retrieve information about memory, processor, connectors on the mainboard and much more.&lt;br /&gt;&lt;br /&gt;Usage is simple:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;display information about the available memory slots:&lt;br /&gt;&lt;code&gt;dmidecode -t memory&lt;/code&gt;&lt;/li&gt;&lt;li&gt;display information about the processor and its features:&lt;br /&gt;&lt;code&gt;dmidecode -t processor&lt;/code&gt;&lt;/li&gt;&lt;li&gt;list the possible types of information:&lt;br /&gt;&lt;code&gt;dmidecode -t&lt;/code&gt;&lt;/li&gt;&lt;li&gt;extract specific information (useful for automated processing in shell scripts):&lt;br /&gt;&lt;code&gt;dmidecode -s&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;but as usual: &lt;span style="font-weight: bold;font-family:courier new;" &gt;man dmidecode&lt;/span&gt; is your friend :-)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE]:&lt;/span&gt; there is a follow up article &lt;a href="http://riaschissl.blogspot.com/2009/07/getting-detailled-information-about.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.nongnu.org/dmidecode/"&gt;http://www.nongnu.org/dmidecode/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.dmtf.org/standards/smbios/"&gt;http://www.dmtf.org/standards/smbios/&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.dmtf.org/standards/dmi/"&gt;http://www.dmtf.org/standards/dmi/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1768620355081900110?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1768620355081900110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/06/finding-out-details-about-installed-ram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1768620355081900110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1768620355081900110'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/06/finding-out-details-about-installed-ram.html' title='finding out details about installed RAM on a Linux box'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1195676100731757705</id><published>2009-06-08T14:00:00.015+02:00</published><updated>2009-08-10T20:47:56.009+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='kvm'/><title type='text'>port security: proxying KVM MAC addresses with Debian Lenny</title><content type='html'>Following the desaster that occurred when we tried to install a virtual server on a dedicated Hetzner.com root server [1], we had to find a workaround for the problem.&lt;br /&gt;&lt;br /&gt;The problem itself was that the KVM instance would use it's own MAC address and thus port security [2] struck us hard, leaving the physical server offline for (too) many hours.&lt;br /&gt;&lt;br /&gt;Essentially there are two types of workarounds to get things working in such a scenario:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;use the physical server as a NAT gateway for the virtual server(s)&lt;br /&gt;the main disadvantage here is that NAT has certain problems with certain protocols (FTP or SIP for example)&lt;/li&gt;&lt;li&gt;have the physical server act as a proxy for the MAC addresses of the virtual server(s)&lt;br /&gt;the only drawback I am aware of is that you cannot use DHCP for configuring the network interfaces of the guest systems&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;So here comes a walkthrough for boxes running at least kernel &gt;= 2.4  (I actually tried with a 2.6.26):&lt;br /&gt;&lt;br /&gt;The scenario to build up will be a physical server with one network interface, containing two virtual KVM instances. Each of the KVM instances shall get an externally reachable IP address coming from a dedicated subnet and without revealing their "new" MAC addresses to anyone else but the KVM host system.&lt;br /&gt;&lt;br /&gt;If you don't have an entire subnet but only a couple of possibly even segmented individual IP addresses instead, skip this article and proceed to &lt;a href="http://riaschissl.blogspot.com/2009/08/debiankvm-proxyarp-for-individual-ip.html"&gt;this followup article&lt;/a&gt;, dealing with individual IP addresses.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_DAOMOTcp2Zk/SjJHFqeVARI/AAAAAAAAAAU/QVFIomsfSgw/s1600-h/vps.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 168px;" src="http://4.bp.blogspot.com/_DAOMOTcp2Zk/SjJHFqeVARI/AAAAAAAAAAU/QVFIomsfSgw/s400/vps.png" alt="" id="BLOGGER_PHOTO_ID_5346413870268612882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Prerequisites:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;install &lt;span style="font-weight: bold;font-family:courier new;" &gt;iproute&lt;/span&gt;&lt;/li&gt;&lt;li&gt;install &lt;span style="font-weight: bold;font-family:courier new;" &gt;bridge-utils&lt;/span&gt;&lt;/li&gt;&lt;li&gt;install &lt;span style="font-weight: bold;font-family:courier new;" &gt;iputils-arping&lt;/span&gt;&lt;br /&gt;not actually a requirement, but very useful when testing if everything is ok&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-style: italic;"&gt;Beware&lt;/span&gt;&lt;/span&gt; that going on now might cause terrible sideeffects, (ie. rendering your KVM host being unreachable over the network), but if you do everything as explained, you should be safe :-)&lt;br /&gt;&lt;br /&gt;so, if you like, action time:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;reconfigure your &lt;span style="font-weight: bold;"&gt;host&lt;/span&gt; system's network:&lt;br /&gt;open &lt;span style="font-family:courier new;"&gt;&lt;span style="font-weight: bold;"&gt;/etc/network/interfaces&lt;/span&gt; &lt;/span&gt;and add a br0 section like this:&lt;br /&gt;&lt;pre&gt;[...]&lt;br /&gt;auto br0&lt;br /&gt;iface br0 inet static&lt;br /&gt;  address 192.168.80.254&lt;br /&gt;  network 192.168.80.0&lt;br /&gt;  netmask 255.255.255.0&lt;br /&gt;  bridge_ports none&lt;br /&gt;  post-up sysctl -w net.ipv4.conf.br0.proxy_arp=1&lt;br /&gt;  post-up sysctl -w net.ipv4.ip_forward=1&lt;br /&gt;  pre-down sysctl -w net.ipv4.conf.br0.proxy_arp=0&lt;br /&gt;  pre-down sysctl -w net.ipv4.ip_forward=0&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;apply settings&lt;br /&gt;&lt;code&gt;ifup br0&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;check your settings:&lt;br /&gt;&lt;pre&gt;% ifconfig&lt;br /&gt;br0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00&lt;br /&gt;          inet addr:192.168.80.254  Bcast:192.168.80.255  Mask:255.255.255.0&lt;br /&gt;          inet6 addr: fe80::21c:c4ff:fedb:f3eb/64 Scope:Link&lt;br /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;[...]&lt;br /&gt;&lt;br /&gt;eth0      Link encap:Ethernet  HWaddr ac:00:00:00:01&lt;br /&gt;          inet addr:192.168.70.1  Bcast:192.168.70.255  Mask:255.255.255.0&lt;br /&gt;          inet6 addr: fe80::21c:c4ff:fedb:f3eb/64 Scope:Link&lt;br /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;[...]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Yes, scary, a "network card" with a 00:00:00:00:00 MAC address, but don't be afraid, more is to come ;-)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;add the virtual devices that the two virtual guests will use, add them to the bridge and make them available:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tunctl -b -u root -t vnet0&lt;br /&gt;tunctl -b -u root -t vnet1&lt;br /&gt;&lt;br /&gt;brctl addif br0 vnet0&lt;br /&gt;brctl addif br0 vnet1&lt;br /&gt;&lt;br /&gt;ifconfig vnet0 up&lt;br /&gt;ifconfig vnet1 up&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;These are manual steps, in case you have created your virtual machines using libvirtd, modify the guest configuration file in &lt;span style="font-weight: bold;font-family:courier new;" &gt;/etc/libvirt/qemu/$NAME_OF_THE_GUEST.xml&lt;/span&gt; and ensure that there the "bridge" interface references our &lt;span style="font-weight: bold;font-family:courier new;" &gt;br0&lt;/span&gt; bridge:&lt;br /&gt;&lt;pre&gt;[...]&lt;br /&gt;&amp;lt;interface type='bridge'&amp;gt;&lt;br /&gt;  &amp;lt;source bridge='br0'/&amp;gt;&lt;br /&gt;&amp;lt;/interface&amp;gt;&lt;br /&gt;[...]&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;start up your virtual guests:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% kvm \&lt;br /&gt;-boot c \&lt;br /&gt;-drive file=/location/of/virtual/hdu/vhost0.qcow2,if=virtio,index=0,boot=on \&lt;br /&gt;-net nic \&lt;br /&gt;-net tap,ifname=vnet0,script=no&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;and for the second one:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% kvm \&lt;br /&gt;-boot c \&lt;br /&gt;-drive file=/location/of/virtual/hdu/vhost1.qcow2,if=virtio,index=0,boot=on \&lt;br /&gt;-net nic \&lt;br /&gt;-net tap,ifname=vnet1,script=no&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;and once more, if you use &lt;span style="font-weight: bold;font-family:courier new;" &gt;libvirtd&lt;/span&gt;, you might also use &lt;span style="font-weight: bold;font-family:courier new;" &gt;virsh&lt;/span&gt; or &lt;span style="font-weight: bold;font-family:courier new;" &gt;virt-manager&lt;/span&gt; to start up the two virtual guests.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;configure the network of your guests:&lt;br /&gt;If your guests are Debian based again, open /etc/network/interfaces for each guest and configure it, for the first one:&lt;br /&gt;&lt;pre&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;  address 192.168.80.1&lt;br /&gt;  network 192.168.80.0&lt;br /&gt;  netmask 255.255.255.0&lt;br /&gt;  # the gateway is the IP of the br0 bridge on the KVM host&lt;br /&gt;  gateway 192.168.80.254&lt;br /&gt;&lt;/pre&gt;and for the second one:&lt;br /&gt;&lt;pre&gt;auto eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;  address 192.168.80.2&lt;br /&gt;  network 192.168.80.0&lt;br /&gt;  netmask 255.255.255.0&lt;br /&gt;  # the gateway is the IP of the br0 bridge on the KVM host&lt;br /&gt;  gateway 192.168.80.254&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;That should be it. Not exactly "extremely simple", but still not too complicated either :-)&lt;br /&gt;&lt;br /&gt;You can test your configuration by pinging around on the guest systems. You should be able to ping 192.168.80.254 (the br0), 192.168.70.1 (eth0 on the host). If however you ping other machines, say 192.168.1.123, you would need a route back from it to the 192.168.80.0 subnet. The "router" for that subnet is 192.168.80.254 then. But typically this is handled by your "real" routers (and is beyond the scope of this already far too long posting :-)&lt;br /&gt;&lt;br /&gt;Happy hacking!&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://riaschissl.blogspot.com/2009/06/scary-and-incompetent-support-at.html"&gt;http://riaschissl.blogspot.com/2009/06/scary-and-incompetent-support-at.html&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://lartc.org/howto/lartc.bridging.proxy-arp.html"&gt;http://lartc.org/howto/lartc.bridging.proxy-arp.html&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="http://www.sjdjweis.com/linux/proxyarp/"&gt;http://www.sjdjweis.com/linux/proxyarp/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1195676100731757705?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1195676100731757705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/06/port-security-proxying-kvm-mac.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1195676100731757705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1195676100731757705'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/06/port-security-proxying-kvm-mac.html' title='port security: proxying KVM MAC addresses with Debian Lenny'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_DAOMOTcp2Zk/SjJHFqeVARI/AAAAAAAAAAU/QVFIomsfSgw/s72-c/vps.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1619425548041900484</id><published>2009-06-05T14:12:00.004+02:00</published><updated>2009-06-05T18:30:59.328+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>scary and incompetent support at hetzner.com</title><content type='html'>Yesterday we had to install a KVM [1] instance on one of our customers' server hosted at hetzner.com&lt;br /&gt;&lt;br /&gt;What seemed to be easy and trivial prooved to be extremely annoying because after activating the KVM instance, the support people at hetzner.com "deactivated the server due to illegal activities".&lt;br /&gt;&lt;br /&gt;The entire story goes like this:&lt;br /&gt;&lt;br /&gt;A couple of days ago we ordered an additional subnet allowing VPS usage for the server in question and eventually received two emails:&lt;br /&gt;&lt;br /&gt;One in the morning, containing one additional IP address within the same subnet that the server was already in and then, on midday, a second email containing information about an entire additional subnet.&lt;br /&gt;&lt;br /&gt;Now after receiving the first email in the morning, we started configuring the KVM instance to use it. For that purpose we followed the &lt;a href="http://wiki.hetzner.de/index.php/KVM"&gt;guide&lt;/a&gt; [2] (in German) available on hetzner's wiki.&lt;br /&gt;&lt;br /&gt;Then, after starting the KVM instance, it worked for a couple of minutes without problems - until we received an Email from the support at hetzner telling us that we had used an illegal IP address and therefore the entire server had been deactivated. &lt;br /&gt;&lt;br /&gt;Bummer! The &lt;span style="font-style:italic;"&gt;entire server&lt;/span&gt; had been taken offline, leaving our customers very commercial platform completely unaccessible ...&lt;br /&gt;&lt;br /&gt;After a first moment of panic we contacted the hetzner support. After sending emails back and forth between their support and us for five hours and finally even sending a FAX to them, the server went online again after being offline for more than five hours.&lt;br /&gt;&lt;br /&gt;Now the weird thing is that it seems to be impossible to get reasonable information on what exactly went wrong and how to circumvent it.&lt;br /&gt;&lt;br /&gt;So, be warned to perform a KVM installation on hetzner root servers, you will be locked out without reasonable explanations ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.linux-kvm.org/"&gt;http://www.linux-kvm.org/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://wiki.hetzner.de/index.php/KVM"&gt;http://wiki.hetzner.de/index.php/KVM&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1619425548041900484?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1619425548041900484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/06/scary-and-incompetent-support-at.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1619425548041900484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1619425548041900484'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/06/scary-and-incompetent-support-at.html' title='scary and incompetent support at hetzner.com'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8751783431470649035</id><published>2009-05-27T19:01:00.009+02:00</published><updated>2009-05-27T19:30:42.232+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='majordomo'/><title type='text'>unsubscribing from majordomo mailinglists</title><content type='html'>If you are like me subscribed to a variety of mailing lists, it can be quite an annoyance when unsubscription information is neither contained in the mail headers nor can be found on the web page you originally subscribed on (or exactly this page is broken).&lt;br /&gt;&lt;br /&gt;Fortunately this does not happen too often, but if it happens, I always have forgotten how it worked last time, so here's a little cheat sheet about how to unsubscribe from majordomo mailing lists w/o using a webpage:&lt;br /&gt;&lt;br /&gt;Say you have subscribed to &lt;span style="font-weight: bold; font-family: courier new;"&gt;very.important.list@example.com&lt;/span&gt; and know that it is controlled by a &lt;a href="http://www.greatcircle.com/majordomo/"&gt;majordomo&lt;/a&gt; [1] installation, you have a few "hidden" features that a typically configured majordomo server supports.&lt;br /&gt;&lt;br /&gt;In the example above, it is very likely that the majordomo server is reachable by the &lt;span style="font-family: courier new; font-weight: bold;"&gt;majordomo@example.com&lt;/span&gt; or &lt;span style="font-weight: bold; font-family: courier new;"&gt;majordomo-owner@example.com&lt;/span&gt; email adresses.&lt;br /&gt;&lt;br /&gt;Reachable means that you can send commands to it using an ordinary plain text email. So if you send an email containing the lines below without any (digital) signatures in plain text to the majordomo server, you can do the following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;show information about the list you subscribed:&lt;br /&gt;&lt;code&gt;INFO very.important.list&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;list all accessible mailing lists:&lt;br /&gt;&lt;code&gt;LISTS&lt;/code&gt;&lt;/li&gt;&lt;li&gt;subscribe to one of those mailing lists:&lt;br /&gt;&lt;code&gt;SUBSCRIBE very.important.list your.email.adress@example.com&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;unsubscribe from a mailing list:&lt;br /&gt;&lt;code&gt;UNSUBSCRIBE very.important.list&lt;/code&gt;&lt;br /&gt;some majordomo installations might also require you to add your email address:&lt;br /&gt;&lt;code&gt;UNSUBSCRIBE very.important.list your.email.adress@example.com&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;unsubscribe from all mailing lists hosted on the same majordomo server:&lt;br /&gt;&lt;code&gt;UNSUBSCRIBE *&lt;/code&gt;&lt;br /&gt;some majordomo installations might also require you to add your email address:&lt;br /&gt;&lt;code&gt;UNSUBSCRIBE * your.email.adress@example.com&lt;/code&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;get some help:&lt;br /&gt;&lt;code&gt;HELP&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Depending on the majordomo version and settings, plain text is mandatory.&lt;br /&gt;&lt;br /&gt;And finally, it is important of course that you use exactly the same email address for unsubscription that you used for subscription :-)&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.greatcircle.com/majordomo/"&gt;http://www.greatcircle.com/majordomo/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8751783431470649035?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8751783431470649035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/05/unsubscribing-from-majordomo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8751783431470649035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8751783431470649035'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/05/unsubscribing-from-majordomo.html' title='unsubscribing from majordomo mailinglists'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-2974943664100596439</id><published>2009-05-07T23:57:00.008+02:00</published><updated>2009-05-08T12:41:22.976+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>real time encrypted directories in Mandriva 2009.1</title><content type='html'>Data encryption is no obscure thing only secret agents and computer experts should know about but instead be a fundamental precausion against theft of the storage medium or even the entire computer you have stored your personal data upon.&lt;br /&gt;&lt;br /&gt;The choices are many in Linux, ranging from creating dedicated partions to encrypted directories and finally single files.&lt;br /&gt;&lt;br /&gt;I won't go too deep into the technical alternatives you have (ranging from special file systems to "simple" commandline encrypting/decrypting tools), instead I will focus on &lt;span style="font-weight: bold;"&gt;LUKS&lt;/span&gt; &lt;span style="font-style: italic;"&gt;("Linux Unified Key Storage")&lt;/span&gt; [1] and [2], that is the current state of the art in Linux these days.&lt;br /&gt;&lt;br /&gt;So what I want to do is to create a new encrypted &lt;span style="font-family:courier new;"&gt;/encrypted&lt;/span&gt; directory that can either mounted manually and optionally also automagically during boot:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As root, ...&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;create a huge file, as big as you want your directory ever to become:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;dd if=/dev/urandom of=/secure bs=1M count=4096&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;That gives you a 4GB large file named /secure. Beware that the creation of the file will take a couple of minutes (fast SATA disks come in handy here :-)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;setup an ordinary loop device pointing to the new file:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;losetup /dev/loop0 /secure&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;load some kernel modules&lt;br /&gt;&lt;code&gt;&lt;br /&gt;modprobe dm-mod&lt;br /&gt;modprobe dm-crypt&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;create an encrypted filesystem on the device:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cryptsetup luksFormat /dev/loop0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The password you enter here is crucial for you to continue, so use a resonably "save" one and be sure not to forget it :-)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;test if everything is fine&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cryptsetup luksOpen /dev/loop0 secure&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If the command succeeds, you should have a newly created block device named &lt;span style="font-family:courier new;"&gt;/dev/mapper/secure&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;format the new device&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mkfs.ext3 /dev/mapper/secure&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;mount the new device&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mount /dev/mapper/secure /encrypted&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;closing the encrypted directory&lt;br /&gt;If you are finished working with your encrypted data, you need to umount the directory and close the crypto channel for it:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;umount /encrypted&lt;br /&gt;cryptsetup luksClose /dev/mapper/secure&lt;br /&gt;losetup -d /dev/loop0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Now that wasn't too difficult. Optionally, you might also want to have the directory mounted automagically at boot time, but that will have to wait a bit :-)&lt;br /&gt;&lt;br /&gt;Caveat:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;performance&lt;br /&gt;without surprize, encryption comes with a prize: both read and write access to your encrypted directory are slower of course (you can expect about half the performance compared to an unencrypted directory). But the performance hit is heavly influenced by the CPU &amp;amp; OS architecture you have (64bit noticibly beats 32bit).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;disk/file corruption&lt;br /&gt;If your hard disk fails or - for whatever reason - your image file becomes corrupt (bad RAM modules, buggy I/O controllers, ...), then the chances you end up with a complete data loss increase if the problem occurs in the "sensitive" parts of your image file (or let it even be a seperate partition). So encrypting your data increases the need to backup your data!&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;[1] &lt;a href="http://luks.endorphin.org/"&gt;http://luks.endorphin.org/&lt;/a&gt;, seems to be dead right now&lt;br /&gt;[2] &lt;a href="http://www.saout.de/tikiwiki/tiki-index.php?page=LUKS"&gt;http://www.saout.de/tikiwiki/tiki-index.php?page=LUKS&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-2974943664100596439?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/2974943664100596439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/05/real-time-encrypted-directories-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2974943664100596439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2974943664100596439'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/05/real-time-encrypted-directories-in.html' title='real time encrypted directories in Mandriva 2009.1'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-2308423034624013950</id><published>2009-05-01T11:08:00.007+02:00</published><updated>2009-05-01T14:26:57.721+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='tor'/><title type='text'>"net anonymity" vs. "fight against child pornography"</title><content type='html'>IT security is my daily business and so, amongst other things, I am very interested in state of the art technologies applicable also for the "greater" public.&lt;br /&gt;&lt;br /&gt;The torproject [1] provides not only "security for the masses" but also "anonymity for the masses". Anybody using the tor network infrastructure is "safe against eavesdropping", given todays state of technology.&lt;br /&gt;&lt;br /&gt;Now as much as I support everybody's right of anonymity and really see it as a very basic human right, as much imporant to me is the protection of children against being sexually abused.&lt;br /&gt;&lt;br /&gt;As it seems, the tor network has become a "save heaven" for really the lowest of lowest of lowest kinds of crappy pedophiles.&lt;br /&gt;&lt;br /&gt;I mean, I really believe that "the authorities" should not have the general right to interfere with privacy, but it must be possible for them to interfere in case of major criminal actions, when an independent judge or similar has approved it.&lt;br /&gt;&lt;br /&gt;The conflict between protecting internet users from countries that have no independent jurisdiction (dictatorships ...) on the one hand and between tracking down people raping children on the other hand should always be resolved in favour of the weaker party, in that case the really innocent, badly hurt children.&lt;br /&gt;&lt;br /&gt;I know that the fight against child pornography as well as the fight against terrorism can be a "killer argument" against any kind of anonymity and that it has indeed been misused more than once in the past by many countries around the world, but what is the alternative? Letting pedophiles continue to destroy children and call this "the price of our free societies". No no no, just no.&lt;br /&gt;&lt;br /&gt;One might argue that the actual abuse is not done by those sites but by the people physically hurting the children and closing down those sites won't save the children from being hurt. That may be true at first glance, yet it is a known fact that the child pornography industry is huge (see [2] or [3]). And on the other hand, removing the audience for "private" molesters will make it less attractive for them and reduce the stimulus for other potential molesters.&lt;br /&gt;&lt;br /&gt;So eventually, I believe that anonymity is no absolute, untouchable right. Every technology not allowing lawfull interception should be banned, with the keyword being &lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;lawfull&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.torproject.org/"&gt;http://www.torproject.org/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.crime-research.org/news/22.03.2004/146/"&gt;http://www.crime-research.org/news/22.03.2004/146/&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.nytimes.com/2006/04/05/washington/05porn.html?ex=1301889600&amp;amp;en=3be2262e97e48a40&amp;amp;ei=5090&amp;amp;partner=rssuserland&amp;amp;emc=rss"&gt;New York Times article on child pornography&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-2308423034624013950?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/2308423034624013950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/05/net-anonymity-vs-fight-against-child.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2308423034624013950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/2308423034624013950'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/05/net-anonymity-vs-fight-against-child.html' title='&quot;net anonymity&quot; vs. &quot;fight against child pornography&quot;'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-5995312027294363736</id><published>2009-04-17T12:41:00.004+02:00</published><updated>2009-04-17T14:12:53.743+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><category scheme='http://www.blogger.com/atom/ns#' term='privacy'/><title type='text'>ThePirateBay convicted</title><content type='html'>what a weird decision ...&lt;br /&gt;&lt;br /&gt;So indeed a court in Sweden found the guys from The Pirate Bay guilty for "support for copyright-infringement" and other absurd things.&lt;br /&gt;&lt;br /&gt;Besides the court's obvious ignorance of how search engines work and what they do, this is a slap into the face for a whole generation of young people.&lt;br /&gt;&lt;br /&gt;How many people of the - I don't know - "below 30 generation" haven't used The Pirate bay at least once? Even I myself, soon hitting the 40 barrier, use it regularly, like I use google.&lt;br /&gt;&lt;br /&gt;This entire trial is about the criminalization of an entire generation, about how "bad" todays young people are compared to previous generations. The good thing though is that dinosaurs have died off as well, so there is still hope.&lt;br /&gt;&lt;br /&gt;Previous "young generations" had their revolutions about free love and against the stark and stiff societies they lived in, so this revolution is about digital freedom.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-5995312027294363736?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/5995312027294363736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/04/thepiratebay-convicted.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5995312027294363736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5995312027294363736'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/04/thepiratebay-convicted.html' title='ThePirateBay convicted'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1071067326170234586</id><published>2009-04-14T15:37:00.003+02:00</published><updated>2009-04-14T16:28:03.688+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='extjs'/><title type='text'>databinding in ExtJS sucks</title><content type='html'>For some of our Web2.0 projects we are using ExtJS [1] as the client side "framework".&lt;br /&gt;&lt;br /&gt;ExtJS applications look very nice, but if you check what's going on below the surface, one is has some doubts about its "enterprise grade".&lt;br /&gt;&lt;br /&gt;One of ExtJS's major problems is that most of the time data binding is only one way (from server to the browser) but not the way back.&lt;br /&gt;&lt;br /&gt;Usually data binding consists of a number of steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;both server and client have to agree on a common "language" that describes the data they want to exchange (typically XML along with XSD or just plain JSON)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the client (=ExtJS) calls some service on the server&lt;br /&gt;&lt;/li&gt;&lt;li&gt;the server sends the data in the predefined format&lt;/li&gt;&lt;li&gt;the client typically puts the received data into so called "Stores". Such a store contains records, each of them representing something like a "row" as found in "traditional" relational databases&lt;/li&gt;&lt;li&gt;the client displays certain UI elements (a textfield, dropdowns, ...) that are linked to the data received previously&lt;/li&gt;&lt;li&gt;if the user now changes some of the data displayed, it would seem logical that the data in the store is updated according to the users changes - but that is not so. There is no (easy) way back into the store, where the original data is located.&lt;/li&gt;&lt;/ol&gt;That is one of the reasons, why we are not developing new applications using ExtJS anymore but smartclient [2] instead, but that's another story :-)&lt;br /&gt;&lt;br /&gt;However, for existing applications we still need to find new and "fascinating" workarounds to achieve what we need ...&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.extjs.com/"&gt;http://www.extjs.com/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.smartclient.com/"&gt;http://www.smartclient.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1071067326170234586?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1071067326170234586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/04/databinding-in-extjs-sucks.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1071067326170234586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1071067326170234586'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/04/databinding-in-extjs-sucks.html' title='databinding in ExtJS sucks'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-7337325679584996240</id><published>2009-04-08T21:12:00.006+02:00</published><updated>2009-04-08T22:05:22.434+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>minimizing Javascript code</title><content type='html'>When using Web 2.0 technologies for creating those wonderful, allmighty browser applications that every customer can be made happy with, the Javascript code on the browser side can easily become thousands of lines.&lt;br /&gt;&lt;br /&gt;Newer browers (FF&gt;=3, IE=&gt;7) deal quite nicely with huge Javascript files, but older ones have a hard time dealing with it. Load times ten times longer compared to newer browsers are not seldom.&lt;br /&gt;&lt;br /&gt;One way to improve initialization time on those browsers is to crunch the Javascript code to be as small as possible. One easy way for example would be to remove all unnecessary line breaks and white spaces.&lt;br /&gt;&lt;br /&gt;However, this is by no means the optimum and removed line breaks and white spaces would render the code almost unreadable for yourself.&lt;br /&gt;&lt;br /&gt;The solution is to use one of the many Javascript crunchers, minifiers, packers or whatever they are called.&lt;br /&gt;&lt;br /&gt;So here come of the open source crunchers I've tried so far:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;JSMin - the JavaScript Minifier&lt;/b&gt; [1]&lt;br /&gt;The major drawback I found here is that it is not unlikely to break your code (it broke mine :-) and that the optimization is quite simplistic. Furthermore it is "quite" old (2003).&lt;br /&gt;&lt;br /&gt;On the other hand, there is even an apache module making the crunshing process completely transparent [2]&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;pack:tag&lt;/b&gt; [3]&lt;br /&gt;Used as a JSP-Taglib, one can easily have it dynamically crunch JavaScript and CSS files on the fly. It can even configured to combine many files into one and deliver that one to the clients.&lt;br /&gt;&lt;br /&gt;Major drawback here is that it is limited to JSP and that it has no commandline interface at all (but one could argue if it requires one of course :-)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;jawr&lt;/b&gt; [4]&lt;br /&gt;A Servlet oriented approach with many interfaces for the "default" frameworks such as Spring or Struts. One nice feature is that you can split your JS files into human digestable parts and have jawr combine (and crunch and optimize) them for deployment.&lt;br /&gt;&lt;br /&gt;The major drawback here is that it is limited to the Java world and once more that it lacks a commandline interface.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Yahoo YUI Compressor&lt;/b&gt; [5]&lt;br /&gt;This is one of the first crunchers I've played with - and it is still the one I like most.&lt;br /&gt;&lt;br /&gt;It works with both JS and CSS files, can be easily configured on what to optimize using commandline switches (yes, I admit: I like commandline tools :-)&lt;br /&gt;&lt;br /&gt;Due to its commandline nature, it can easily be integrated into any deployment process, making it available for any type of project at least I have to deal with.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;If you want to compare both resulting size and crunching time of some prominent compression tools, there is a nice comparison service at &lt;a href="http://compressorrater.thruhere.net/"&gt;http://compressorrater.thruhere.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://crockford.com/javascript/jsmin"&gt;http://crockford.com/javascript/jsmin&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://code.google.com/p/modjsmin/"&gt;http://code.google.com/p/modjsmin/&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.galan.de/projects/packtag"&gt;http://www.galan.de/projects/packtag&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="https://jawr.dev.java.net/"&gt;https://jawr.dev.java.net/&lt;/a&gt;&lt;br /&gt;[5] &lt;a href="http://developer.yahoo.com/yui/compressor/"&gt;http://developer.yahoo.com/yui/compressor/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-7337325679584996240?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/7337325679584996240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/04/minimizing-javascript-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7337325679584996240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7337325679584996240'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/04/minimizing-javascript-code.html' title='minimizing Javascript code'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-110198010731533068</id><published>2009-04-06T17:08:00.003+02:00</published><updated>2009-04-06T18:05:20.404+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='x509'/><category scheme='http://www.blogger.com/atom/ns#' term='passphrase'/><category scheme='http://www.blogger.com/atom/ns#' term='openssl'/><title type='text'>removing a passphrase from a X.509 certificate</title><content type='html'>If you are running services relying on certificates (mostly encryted onces, like TLS or SSL based ones), you normally don't want to enter any kind of password each time the service starts (like with an externally reachable HTTPS server that is supposed to come up without any user interaction).&lt;br /&gt;&lt;br /&gt;Instead what you need after getting a fitting X.509 certificate is to remove the passphrase from the private key.&lt;br /&gt;&lt;br /&gt;So in order to do so, you can remove the key using the following simple openssl commands on your certificate file:&lt;br /&gt;&lt;br /&gt;&lt;pre class="programlisting"&gt;openssl rsa -in mycert.pem -out newcert.pem&lt;br /&gt;openssl x509 -in mycert.pem &gt;&gt;newcert.pem&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Found on &lt;a href="http://madboa.com/geek/openssl/#key-removepass"&gt;http://madboa.com/geek/openssl/#key-removepass&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-110198010731533068?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/110198010731533068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/04/removing-passphrase-from-x509.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/110198010731533068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/110198010731533068'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/04/removing-passphrase-from-x509.html' title='removing a passphrase from a X.509 certificate'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-1677766880865868685</id><published>2009-03-17T16:46:00.006+01:00</published><updated>2009-03-18T21:48:00.629+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Linksys RVS4000 telnet madness</title><content type='html'>Our company's network access is implemented by an ordinary DMZ style configuration, with one firewall being directly at the outside and one internal firewall shielding the internal net from the DMZ.&lt;br /&gt;&lt;br /&gt;For various reasons we had to replace our internal firewall and decided to go with the (affordable) Linksys RVS4000 [1], mostly because it runs Linux and equally imporant it offers QoS and gigabit ethernet.&lt;br /&gt;&lt;br /&gt;Due to some problems with getting QoS doing what I wanted, I decided to look for options to directly access the box using telnet or even better ssh.&lt;br /&gt;&lt;br /&gt;Telnet access can be easily activated by browsing to&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;http://$ROUTER_IP/Hidden_telnet.htm&lt;/span&gt; but guess what happens after activating it ...&lt;br /&gt;&lt;br /&gt;It allows you to log into the box as root &lt;span style="font-weight: bold;"&gt;without any password&lt;/span&gt; and the worst part of all, it even opens the telnet port &lt;span style="font-weight: bold;"&gt;to the WAN side&lt;/span&gt;, leaving the box completely open for any kind of attack - if could be even regarded as an attack then ...&lt;br /&gt;&lt;br /&gt;Using some kind of firewall trick you can at least reroute WAN access to nirvana, but having a passwordless telnet running even on the internal side is unacceptable. Absolutely weird for a "business" device.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www-at.linksys.com/servlet/Satellite?c=L_Product_C2&amp;amp;childpagename=AT%2FLayout&amp;amp;cid=1174609010863&amp;amp;pagename=Linksys%2FCommon%2FVisitorWrapper&amp;amp;lid=1086318843B01"&gt;http://www-at.linksys.com/servlet/Satellite?c=L_Product_C2&amp;amp;childpagename=AT%2FLayout&amp;amp;cid=1174609010863&amp;amp;pagename=Linksys%2FCommon%2FVisitorWrapper&amp;amp;lid=1086318843B01&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-1677766880865868685?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/1677766880865868685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/linksys-rvs4000-telnet-madness.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1677766880865868685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/1677766880865868685'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/linksys-rvs4000-telnet-madness.html' title='Linksys RVS4000 telnet madness'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-3873353099586359204</id><published>2009-03-12T20:50:00.004+01:00</published><updated>2009-03-13T13:44:02.289+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='thunderbird'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>mail notification in Thunderbird only for some accounts</title><content type='html'>Thunderbird already comes with a reasonable mail notification popup that tells you when new mail has arrived.&lt;br /&gt;&lt;br /&gt;However, if you happen to have more than one email account like me, the default mail notifier by Thunderbird quickly becomes annoying, because I don't want the mail notifier popup each time a mail arrives in any of the accounts but only one particular one.&lt;br /&gt;&lt;br /&gt;A good alternative to Thunderbirds notifier is the &lt;a href="https://addons.mozilla.org/en-US/thunderbird/addon/2610"&gt;"Mail Alert" addon&lt;/a&gt; [1]. It allows you to trigger changes on any arbitrary mailbox folders and thus is exactly or even better than what I was looking for.&lt;br /&gt;&lt;br /&gt;One final hint: you can craft the contents of the popup message by using variables such as sender, subject, ... You can get a listing of those variables by opening the Mail Alert help.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="https://addons.mozilla.org/en-US/thunderbird/addon/2610"&gt;https://addons.mozilla.org/en-US/thunderbird/addon/2610&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-3873353099586359204?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/3873353099586359204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/mail-notification-in-thunderbird-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3873353099586359204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3873353099586359204'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/mail-notification-in-thunderbird-only.html' title='mail notification in Thunderbird only for some accounts'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-5598010755427638035</id><published>2009-03-11T22:06:00.009+01:00</published><updated>2009-07-10T22:06:13.209+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='xorg'/><category scheme='http://www.blogger.com/atom/ns#' term='synaptics'/><title type='text'>improving synaptics touchpad tapping behaviour</title><content type='html'>&lt;span style="font-weight:bold;"&gt;[UPDATE]:&lt;/span&gt; this post is not entirely correct, because under some cirumstances the synaptics configuration in xorg.conf is completely ignored and thus syndaemon will simply not do what it should. A followup article will come soon.&lt;br /&gt;&lt;br /&gt;Occasionally I have to work without having a real mouse and thus am relying on my laptops very ordinary Synaptics touchpad. Now one of the most anoying sideffects of working with the touchpad only is that I permanently seem to unintentionally move around the mouse pointer with some parts of my hands while typing ...&lt;br /&gt;&lt;br /&gt;But - there is hope and countermeasures :-) What I want to have is the touchpad being deactivated while I type something and reactivated in a "resonable" time.&lt;br /&gt;&lt;br /&gt;Preface: the steps below are valid for Mandriva 2009.1, but are probably not much different for other distributions.&lt;br /&gt;&lt;br /&gt;First ensure that SHMConfig has been activated in &lt;span style="font-family:courier new;"&gt;xorg.conf&lt;/span&gt;, eg like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Section "InputDevice"&lt;br /&gt;  Identifier "SynapticsMouse1"&lt;br /&gt;  Driver "synaptics"&lt;br /&gt;  Option "SHMConfig" "on"&lt;br /&gt;EndSection&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The synaptics man page says that you should be aware that enabling SHMConfig poses some kind of security risk, because enabling it gives any user on your box access to your touchpad's configuration ... well, that seems to be a risk worth taking :-)&lt;br /&gt;&lt;br /&gt;Having turned on SHMConfig, you are now able to control your touchpads behaviour using synclient and syndaemon. Both have reasonable man pages, if you want further information.&lt;br /&gt;&lt;br /&gt;The next step is to tell syndaemon to deactivate the touchpad while typing and reactivate it afterwards. And, because this is such a nice feature, it should also be available to any user on the system.&lt;br /&gt;&lt;br /&gt;As root, create &lt;span style="font-family: courier new;"&gt;/etc/X11/xinit.d/99syndaemon&lt;/span&gt; with any editor of your choice (very likely it does not exist already) and insert the lines below:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;syndaemon_is_running=`pidof -c syndaemon`&lt;br /&gt;if [ $? -eq 0 ] ; then&lt;br /&gt;   if [ -f "/usr/bin/syndaemon" ] ; then&lt;br /&gt;       /usr/bin/syndaemon -d -t -i 2 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;   fi&lt;br /&gt;fi&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And finally make the new file executeable:&lt;br /&gt;&lt;code&gt;% chmod 755 /etc/X11/xinit.d/99syndaemon&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Log out and in again and that should be it.&lt;br /&gt;&lt;br /&gt;Of course there are many ways to have an application autostart upon X11 login, but I personally perfer the xinit style.&lt;br /&gt;&lt;br /&gt;All the settings of your touchpad can be queried using the synclient command:&lt;br /&gt;&lt;code&gt;% synclient -l&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-5598010755427638035?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/5598010755427638035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/improving-synaptics-touchpad-tapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5598010755427638035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5598010755427638035'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/improving-synaptics-touchpad-tapping.html' title='improving synaptics touchpad tapping behaviour'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-5279000784819270085</id><published>2009-03-11T13:06:00.008+01:00</published><updated>2009-03-12T19:02:31.588+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='torbutton'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='tor'/><category scheme='http://www.blogger.com/atom/ns#' term='privoxy'/><category scheme='http://www.blogger.com/atom/ns#' term='privacy'/><title type='text'>Installing Torbutton on Mandriva 2009.1</title><content type='html'>As it seems we are all about 2 be surveillanced to an extend where it really starts to hurt even me as an "ordinary" user. So one of the possibilities one has is to use &lt;a href="https://www.torproject.org/"&gt;Tor&lt;/a&gt; [1]. Tor essentially allows you to browse the internet without others eavesdropping you and tracking, what sites you accessed (or at least, it makes it extremely difficult, if not impossible).&lt;br /&gt;&lt;br /&gt;The steps to have it up and running on my Mandriva 2009.1 installation are straight forward:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;install Tor [1]&lt;br /&gt;&lt;code&gt;% urpmi tor&lt;/code&gt;&lt;br /&gt;and then start it&lt;br /&gt;&lt;code&gt;%/etc/init.d/tor start&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;install &lt;a href="http://www.privoxy.org/"&gt;Privoxy&lt;/a&gt; [2]:&lt;br /&gt;Privoxy is a transparent SOCKS proxy that eventually connects your Firefox with the Tor infrastructure. Basic installation is easy again with urpmi:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% urpmi privoxy&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;configure Privoxy:&lt;br /&gt;That is a bit "more" tricky, because the default configuration coming with Mandriva's Privoxy is - without suprize - not really suitable for Tor usage. So the easiest way to get things going replacte the contents in &lt;span style="font-family:courier new;"&gt;/etc/privoxy/config&lt;/span&gt; with the following lines of magic, coming mostly from [3]&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# Tor listens as a SOCKS4a proxy here:&lt;br /&gt;forward-socks4a / 127.0.0.1:9050 .&lt;br /&gt;confdir /etc/privoxy&lt;br /&gt;logdir /var/log/privoxy&lt;br /&gt;actionsfile standard.action&lt;br /&gt;actionsfile default.action&lt;br /&gt;actionsfile user.action&lt;br /&gt;filterfile default.filter&lt;br /&gt;&lt;br /&gt;# Don't log interesting things, only startup messages, warnings and errors&lt;br /&gt;#logfile logfile&lt;br /&gt;#jarfile jarfile&lt;br /&gt;#debug   0    # show each GET/POST/CONNECT request&lt;br /&gt;#debug   4096 # Startup banner and warnings&lt;br /&gt;debug   8192 # Errors - *we highly recommended enabling this*&lt;br /&gt;&lt;br /&gt;user-manual /usr/share/doc/privoxy/user-manual&lt;br /&gt;listen-address  127.0.0.1:8118&lt;br /&gt;toggle  1&lt;br /&gt;enable-remote-toggle 0&lt;br /&gt;enable-edit-actions 0&lt;br /&gt;enable-remote-http-toggle 0&lt;br /&gt;buffer-limit 4096&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then start privoxy:&lt;br /&gt;&lt;code&gt;% /etc/init.d/privoxy start&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;grab &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2275"&gt;Torbutton&lt;/a&gt; [4]:&lt;br /&gt;What I ideally wanted was a simple tool integrating nicely and easily with my Firefox 3.x, and Torbutton is exactly that. Installation directly from &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2275"&gt;[4]&lt;/a&gt; is hasslefree.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;test drive:&lt;br /&gt;Right-Click on the red "&lt;span style="color: rgb(255, 0, 0);"&gt;Tor Disabled&lt;/span&gt;" message in the right bottom of the FF statusbar, choose "Preferences" and in the "Proxy Settings" panel left click "Test Settings". The test may take a while, for me it was 1 minute or so, so be patient.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;engage:&lt;br /&gt;If the test from above was successfull, you may turn on Tor by left clicking on the red "&lt;span style="color: rgb(255, 0, 0);"&gt;Tor Disabled&lt;/span&gt;" message in the right bottom of the statusbar and try to access some sites.&lt;br /&gt;&lt;br /&gt;If you feel happy enough to use Tor permantently, you should of course not forget to permantently enable the Tor and privoxy services (eg. using &lt;span style="font-family:courier new;"&gt;chkconfig&lt;/span&gt;).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Not too complicated to do, but a huge security improvement.&lt;br /&gt;&lt;br /&gt;The major drawback however is that the connection speed is ... "slow" to say at least, but maybe there are still problems on my side.&lt;br /&gt;&lt;br /&gt;Next step will be further optimizations and maybe even setting up a Tor relay, but let's see first how things are going.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="https://www.torproject.org/"&gt;https://www.torproject.org/&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://www.privoxy.org/"&gt;http://www.privoxy.org/&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="https://wiki.torproject.org/noreply/TheOnionRouter/PrivoxyConfig"&gt;https://wiki.torproject.org/noreply/TheOnionRouter/PrivoxyConfig&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2275"&gt;https://addons.mozilla.org/en-US/firefox/addon/2275&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-5279000784819270085?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/5279000784819270085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/installing-torbutton-on-mandriva-20091.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5279000784819270085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5279000784819270085'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/installing-torbutton-on-mandriva-20091.html' title='Installing Torbutton on Mandriva 2009.1'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-5499348625605693676</id><published>2009-03-04T19:47:00.008+01:00</published><updated>2009-04-20T10:23:08.195+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='IE'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='debug'/><category scheme='http://www.blogger.com/atom/ns#' term='web'/><title type='text'>Debugging JS problems in IE6 and IE7</title><content type='html'>There are again a lot of sites dealing with this crappy piece of browser lacking any reasonable way to debug JavaScript errors on it's own.&lt;br /&gt;&lt;br /&gt;The options you have are quite a lot:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;use the &lt;span style="font-weight: bold;"&gt;"Microsoft Script Debugger" &lt;/span&gt;[1]&lt;br /&gt;the oldest and worst possibility, causing instability for Windows as a whole, making your IE crash and many many more bad sideffects. IMHO - just don't use it, it is absolutely not worth it.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;use the &lt;span style="font-weight: bold;"&gt;"Microsoft Script Editor"&lt;/span&gt;&lt;br /&gt;This piece of software comes &lt;span style="font-style: italic;"&gt;only &lt;/span&gt;with Office 2003, no other office version has it. From what I've read, it is supposed to be quite nice, but ... who has Office 2k3 around - I don't have it.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;use &lt;span style="font-weight: bold;"&gt;"Firebug lite"&lt;/span&gt; [2]&lt;br /&gt;At first glance, it looks completely like its big brother, but only at first glance. If you try to debug JavaScript error messages, firebug lite is not able to give you more information that IE itself sparks out. So it is quite useless in that regard, unfortunately :-(&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;use &lt;span style="font-weight: bold;"&gt;"Visual Web Developer 2008 Express Edition"&lt;/span&gt; [3]&lt;br /&gt;The free version of Visual Studio comes with everything you need to debug JS errors like one is used to in FireFox. The only and main disadvantage here is that you have to install a fully bloated IDE including useful components like MS SQL Server Express ... well, I just wanted to debug JavaScript errors in IE and have to install MS SQL Server, quite weird, IMHO ...&lt;br /&gt;&lt;br /&gt;But once you have completed the installation procedure, you can indeed debug JS errors.&lt;br /&gt;&lt;br /&gt;The easiest way to do so is by creating a new website, clicking on the "start debugging" icon in the icon bar that opens the default browser (that must be set to IE in that special case). Entering any URL then let's you debug problems on that URL.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;use &lt;span style="font-weight: bold;"&gt;"Companion.JS"&lt;/span&gt; [4] - my favourite :-)&lt;br /&gt;At first and second glance this looks quite promising. Prequisite for that piece of software is to install the (crappy) "Microsoft Script Debugger" from above, but the rest seems to be quite OK. JS errors are displayed with the correct filename, the line numbers however are not 100% correct (ie. showing me errors at line 1 where the file comment header starts ...). But certainly the easiest way to get JS debugging.&lt;br /&gt;The only thing I don't seem to find is licensing information for that software.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;So quite a long story for such a trivial task as debugging JS in IE ...&lt;br /&gt;&lt;br /&gt;Btw, IE8 is "supposed" to improve this situation, coming with a JavaScript console sparking out reasonable error messages, but I haven't tried so far.&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&amp;amp;displaylang=en&lt;/a&gt;&lt;br /&gt;[2] &lt;a href="http://getfirebug.com/lite.html"&gt;http://getfirebug.com/lite.html&lt;/a&gt;&lt;br /&gt;[3] &lt;a href="http://www.microsoft.com/express/download/#webInstall"&gt;http://www.microsoft.com/express/download/#webInstall&lt;/a&gt;&lt;br /&gt;[4] &lt;a href="http://www.my-debugbar.com/wiki/CompanionJS/HomePage"&gt;http://www.my-debugbar.com/wiki/CompanionJS/HomePage&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-5499348625605693676?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/5499348625605693676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/debugging-js-problems-in-ie6-and-ie7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5499348625605693676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/5499348625605693676'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/debugging-js-problems-in-ie6-and-ie7.html' title='Debugging JS problems in IE6 and IE7'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-7653618228800048787</id><published>2009-03-03T19:55:00.006+01:00</published><updated>2009-06-13T01:05:36.092+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><title type='text'>VirtualBox: booting from an existing "raw" partition</title><content type='html'>The problem when trying to run a guest OS inside VirtualBox that can also be booted physically using grub is that grub will refuse to cooperate if you try to invoke it from within VirtualBox.&lt;br /&gt;&lt;br /&gt;There are quite a lot of HOWTOs on the net dealing with this issue, but none made me really happy. So here's my setup:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;one HDU /dev/sda&lt;/li&gt;&lt;li&gt;Mandriva 2009.1 on /dev/sda2&lt;/li&gt;&lt;li&gt;Windows XP on /dev/sda1&lt;/li&gt;&lt;li&gt;grub as a boot loader&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;So what I wanted to do was to have VirtualBox boot my existing Windows installation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;BEFORE&lt;/b&gt; you start, boot natively into your Windows installation and create a hardware profile reflecting the native hardware components (Control panel-&gt;System-&gt;Hardware profiles). That allows you always have a working hardware configuration, not matter if you boot natively or using VirtualBox.&lt;br /&gt;&lt;br /&gt;The steps to achieve this are simple:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;install syslinux&lt;/li&gt;&lt;br /&gt;&lt;li&gt;create a dedicated boot loader (as root):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% dd if=/dev/zero of=dummy.img bs=1M count=50&lt;br /&gt;% losetup /dev/loop0 dummy.img&lt;br /&gt;% dd if=/usr/lib/syslinux/mbr.bin of=/dev/loop0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;extract the boot loader (as root):&lt;br /&gt;&lt;code&gt;% dd if=/dev/loop0 of=wxp.mbr bs=512 count=1&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;create a virtual disk pointing to the existing partition (as ordinary user):&lt;br /&gt;&lt;code&gt;% VBoxManage internalcommands createrawvmdk -filename ./wxp.vmdk -rawdisk /dev/sda -partitions 1 -mbr ./wxp.mbr -register&lt;/code&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;create a new VM using the VirtualBox GUI&lt;/li&gt;&lt;br /&gt;&lt;li&gt;choose "existing" in the "virtual hard disk" page&lt;br /&gt;&lt;br /&gt;and add the &lt;span style="font-family:courier new;"&gt;wxp.vmdk&lt;/span&gt; file to the list of known hard disks&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Complete the creation process and finally boot your WXP installation - that should be it :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-7653618228800048787?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/7653618228800048787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/virtualbox-booting-from-existing-raw.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7653618228800048787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/7653618228800048787'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/virtualbox-booting-from-existing-raw.html' title='VirtualBox: booting from an existing &quot;raw&quot; partition'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-3647193453012015121</id><published>2009-03-03T12:13:00.003+01:00</published><updated>2009-03-03T12:32:38.215+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blackberry'/><title type='text'>BES activation with BIS active</title><content type='html'>This is driving me almost insane. I am trying to activate a Bold 9000 with the newly installed BES installation, but no matter what I try, the device always quits the activation process with a "server not responding" message.&lt;br /&gt;&lt;br /&gt;Whereas BES installation was relatively trivial, BES activation seems to be absolutely weird ...&lt;br /&gt;&lt;br /&gt;I've read about the many possibilities why this can fail, starting from the order that the BES components are started [1] to a bug entry for zimbra [2]&lt;br /&gt;&lt;br /&gt;All in all this seems to be the point where once more the disadvantages of closed source, proprietary protocols come to light, because the documentation is "limited" so say at most ...&lt;br /&gt;&lt;br /&gt;[1] http://thebackroomtech.com/2008/03/05/the-correct-order-to-stop-and-start-bes-services/&lt;br /&gt;[2] http://bugzilla.zimbra.com/show_bug.cgi?id=20668&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-3647193453012015121?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/3647193453012015121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/03/bes-activation-with-bis-active.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3647193453012015121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/3647193453012015121'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/03/bes-activation-with-bis-active.html' title='BES activation with BIS active'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-4945637640123094261</id><published>2009-02-28T01:13:00.004+01:00</published><updated>2009-02-28T01:37:43.559+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blackberry'/><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin'/><title type='text'>installing Blackberry Professional Software on Windows XP</title><content type='html'>One of our customers wanted to have BPS installed and due to the fact that our company is very OpenSource &amp;amp; linux centric, we did not want to have a full fledged W2Kx server deployed for that purpose but rather utilize an ordinary (old) WXP installation, fitting better into the existing Samba based infrastructure.&lt;br /&gt;&lt;br /&gt;Various posts out in the wild indicate that it "should" be possible, but nothing that really shows the winding path needed to get it up and running.&lt;br /&gt;&lt;br /&gt;For some time the installer drove me mad because it refused to install with a "enter a valid password" popup. Yet in the end, there isn't much about it except a couple of things to keep in mind:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;create a seperate login user for the BPS/BES services&lt;/li&gt;&lt;li&gt;that user must be in the local &lt;span style="font-weight: bold;"&gt;Administrators&lt;/span&gt; group&lt;/li&gt;&lt;li&gt;that user must have the right to &lt;span style="font-weight: bold;"&gt;run services&lt;/span&gt; (check local security policies)&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;file sharing&lt;/span&gt; must be enabled on the WXP box so that BES/BPS can authenticate the user during install (and later on)&lt;/li&gt;&lt;/ul&gt;The rest ist quite exactly as laid out in the excellent &lt;a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe?func=ll&amp;amp;objId=1382176&amp;amp;objAction=browse&amp;amp;sort=name"&gt;installation manuals&lt;/a&gt; provided by RIM [1]&lt;br /&gt;&lt;br /&gt;[1] &lt;a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe?func=ll&amp;amp;objId=1382176&amp;amp;objAction=browse&amp;amp;sort=name"&gt;http://www.blackberry.com/knowledgecenterpublic/livelink.exe?func=ll&amp;amp;objId=1382176&amp;amp;objAction=browse&amp;amp;sort=name&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-4945637640123094261?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/4945637640123094261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/02/installing-blackberry-professional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4945637640123094261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/4945637640123094261'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/02/installing-blackberry-professional.html' title='installing Blackberry Professional Software on Windows XP'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8977568433763795206.post-8416161493451288213</id><published>2009-02-28T01:06:00.004+01:00</published><updated>2009-02-28T01:38:15.936+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about'/><title type='text'>what this will be</title><content type='html'>so once more a tiny fragment for the world's information waste. In reality I actually don't have the insatible desire to add do this waste, so may the force be with me that it won't all be waste only :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8977568433763795206-8416161493451288213?l=riaschissl.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://riaschissl.blogspot.com/feeds/8416161493451288213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://riaschissl.blogspot.com/2009/02/what-this-will-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8416161493451288213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8977568433763795206/posts/default/8416161493451288213'/><link rel='alternate' type='text/html' href='http://riaschissl.blogspot.com/2009/02/what-this-will-be.html' title='what this will be'/><author><name>thesel</name><uri>http://www.blogger.com/profile/03691722569865809234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
