<?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-8547845480464472138</id><updated>2012-01-30T21:18:17.227+01:00</updated><category term='WebBrowser'/><category term='Desktop'/><category term='General'/><category term='StorageHardware'/><category term='C'/><category term='MacOS'/><category term='Gnu/Linux'/><category term='Solaris'/><category term='ArtificialIntelligence'/><category term='Virtualization'/><category term='Java'/><category term='VersionControlSystems'/><category term='multimedia'/><category term='Optimization'/><category term='Programming'/><category term='Musics'/><category term='Administration'/><category term='GNU/Bash'/><title type='text'>Computer science Experience Knowledge SHAring (CEKSHA)</title><subtitle type='html'>sharing knowledge earned into design/development/technical delicate and/or difficult situations ...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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>98</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8547845480464472138.post-9152629018160852699</id><published>2012-01-30T21:12:00.001+01:00</published><updated>2012-01-30T21:14:05.998+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='VersionControlSystems'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Git - alias to get my last commits</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While working with &lt;a href="http://git-scm.com/"&gt;Git&lt;/a&gt;, there is lots of situation where it is interesting to give a quick list of &lt;a name='more'&gt;&lt;/a&gt;your last commits.&lt;br /&gt;For the current version you're working on, or for any other version.&lt;br /&gt;But usually, you are not alone to commit and so you need to filter result of git log (on author for instance).&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;This is a very simple GNU/Bash script allowing to list a short form of your last commits (for instance create a file /path/to/gitListMyLastCommits.sh and copy/paste):&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# Author: Bertrand BENOIT&amp;nbsp;&lt;projettwk@users.sourceforge.net&gt;&lt;/projettwk@users.sourceforge.net&gt;&lt;br /&gt;# Version: 1.1&lt;br /&gt;# Description: lists last commit of current author according to specified (optional) branch and count.&lt;br /&gt;&lt;br /&gt;# To use this script, create a git alias.&lt;br /&gt;# git config --global alias.mc '!/path/to/gitListMyLastCommits.sh'&lt;br /&gt;&lt;br /&gt;DEFAULT_COMMIT_COUNT=5&lt;br /&gt;export GIT_PAGER=cat&lt;br /&gt;&lt;br /&gt;# Manages command line options.&lt;br /&gt;#  - case 1: 2 specified arguments &lt;branch&gt; &lt;commit count=""&gt;&lt;br /&gt;#  - case 2: 1 specified argument [-]&lt;commit count=""&gt; (with optional negative sign)&lt;br /&gt;#  - case 3: no specified arguments -&amp;gt; work on current branch, with 5 last commits of author&lt;br /&gt;if [ $# -gt 2 ] || [ $( echo "$@" |grep -cwE "(-h|--help)" ) -gt 0 ]; then&lt;br /&gt;echo -e "usage: git &lt;your alias=""&gt; &lt;branch&gt; &lt;commit count=""&gt;"&lt;br /&gt;echo -e "The branch can be ommitted"&lt;br /&gt;echo -e "The commit count can be ommitted (default: $DEFAULT_COMMIT_COUNT will be shown)"&lt;br /&gt;echo -e "If only one argument is given, it is regarded as commit count, so you can NOT only specify a branch, without a commit count" &lt;br /&gt;exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Ensures there is a negative sign for last argument, if needed.&lt;br /&gt;if [ $# -eq 0 ]; then&lt;br /&gt;arguments="-$DEFAULT_COMMIT_COUNT"&lt;br /&gt;else&lt;br /&gt;arguments=$( echo "$@" |sed -e 's/^\([0-9][0-9]*\)$/-\1/;s/[ ]\([0-9][0-9]*\)$/ -\1/' )&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;authorInfo=$( git config --get user.email )&lt;br /&gt;[ -z "$authorInfo" ] &amp;amp;&amp;amp; echo "WARNING: unable to define author information, ensure you have configured user.email." &amp;gt;&amp;amp;2 &amp;amp;&amp;amp; exit 1&lt;br /&gt;&lt;br /&gt;echo -e "Looking last commits of author '$authorInfo', with arguments: $arguments"&lt;br /&gt;git log --format='%h - %cd - %s' --date=short --author="$authorInfo" $arguments&lt;br /&gt;&lt;br /&gt;echo -ne "\nOrdered commit short SHA1 chain (can be used with cherry-pick): "&lt;br /&gt;git log --format='%h - %cd - %s' --date=short --author="$authorInfo" $arguments |awk '{print $1}' |sed -e 's/$/ /g' |tac |tr -d '\n'&lt;br /&gt;echo ""&lt;br /&gt;&lt;/commit&gt;&lt;/branch&gt;&lt;/your&gt;&lt;/commit&gt;&lt;/commit&gt;&lt;/branch&gt;&lt;/blockquote&gt;&lt;/div&gt;At the end, it will give a one-line list of SHA1 corresponding to reversed order of your last commit; it can then be easily copy/paste to cherry-pick.&lt;br /&gt;&lt;br /&gt;You can add this script as a new Git alias:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git config --global alias.mc '!/path/to/gitListMyLastCommits.sh'&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Then to get your last 5 commits on current version:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git mc&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To get your 20 last commits on current version:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git mc 20&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;or&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git mc -20&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Finally to get 10 last commits of branch R1_0:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git mc&amp;nbsp;R1_0&amp;nbsp;20&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-9152629018160852699?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/9152629018160852699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2012/01/git-alias-to-get-my-last-commits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9152629018160852699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9152629018160852699'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2012/01/git-alias-to-get-my-last-commits.html' title='Git - alias to get my last commits'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7762846025300545350</id><published>2011-12-14T19:01:00.001+01:00</published><updated>2011-12-14T19:01:54.548+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='VersionControlSystems'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Migrate from SVN to Git</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;There is lots of article about migration from &lt;a href="http://subversion.apache.org/"&gt;SVN&lt;/a&gt; to &lt;a href="http://git-scm.com/"&gt;Git&lt;/a&gt; (&lt;a href="http://bertrandbenoit.blogspot.com/2011/12/git-powerful-distributed-version.html"&gt;a powerful distributed version control system&lt;/a&gt;), but I didn't find all needed information in only one.&lt;br /&gt;This is the aim of this article.&lt;br /&gt;&lt;div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Instead of blabla, I take the concrete example of the migration of my open-source project&amp;nbsp;&lt;a href="https://sourceforge.net/projects/hemerais"&gt;Hemera&lt;/a&gt;&amp;nbsp;:&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- create an author file linking information between commiter name, user name, and user e-mail:&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;&lt;edit&gt; /tmp/authors&lt;/edit&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;projettwk = Bertrand Benoit &lt;projettwk@users.sourceforge.net&gt;&lt;/projettwk@users.sourceforge.net&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- create a Git repository from SVN repository&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;git svn clone --no-metadata -s -A /tmp/authors https://hemerais.svn.sourceforge.net/svnroot/hemerais hemera&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- update Git repository metadata, removing SVN information (&lt;a href="http://maururu.net/2009/svn-to-git-take-2/"&gt;more information&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git fetch . refs/remotes/*:refs/heads/*&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git branch -rd 0.1 trunk&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git branch -d trunk&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git config --remove-section svn-remote.svn&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;rm .git/svn/ -Rf&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- create a bare Git repository metadata (more information: &lt;a href="http://www.albin.net/git/convert-subversion-to-git"&gt;here&lt;/a&gt;, and &lt;a href="http://book.git-scm.com/4_setting_up_a_private_repository.html"&gt;here&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git clone --bare /tmp/hemera/.git /tmp/hemera-bare.git&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;cd /tmp/hemera-bare.git&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git config --unset remote.origin.url&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- publish the fresh bare Git repository (&lt;a href="https://sourceforge.net/apps/trac/sourceforge/wiki/Git#Howtopushalocalrepository"&gt;more information&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git remote add origin ssh://XXX@hemerais.git.sourceforge.net/gitroot/hemerais/hemerais&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git config branch.master.remote origin&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git config branch.master.merge refs/heads/master&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git push --all&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- finally, get a local Git repository (with write access)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;git clone ssh://XXX@hemerais.git.sourceforge.net/gitroot/hemerais/hemerais&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7762846025300545350?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7762846025300545350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/migrate-from-svn-to-git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7762846025300545350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7762846025300545350'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/migrate-from-svn-to-git.html' title='Migrate from SVN to Git'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6968739775957190714</id><published>2011-12-14T18:30:00.002+01:00</published><updated>2011-12-14T18:43:18.815+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ArtificialIntelligence'/><title type='text'>Hemera v0.1.5 released</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Hemera is a Virtual Intelligent System aggregating some more advanced &lt;a href="http://en.wikipedia.org/wiki/Artificial_intelligence"&gt;Artificial Intelligence &lt;/a&gt;Technologies (&lt;a href="http://en.wikipedia.org/wiki/Speech_synthesis"&gt;speech synthesis&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Speech_recognition"&gt;speech recognition&lt;/a&gt;, form recognition, &lt;a href="http://en.wikipedia.org/wiki/Gesture_recognition"&gt;motion recognition&lt;/a&gt; ...); with applications in daily tasks, &lt;a href="http://en.wikipedia.org/wiki/Domotics"&gt;domotics&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Robotics"&gt;robotics&lt;/a&gt;.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Noteworthy changes in version 0.1.5:&lt;br /&gt;&amp;nbsp;* various great infrastructure updates for better flexibility and evolvability&lt;br /&gt;&amp;nbsp;* easy plugins system to add recognized commands&lt;br /&gt;&amp;nbsp;* new configuration auto-diagnosis system (optimal check)&lt;br /&gt;&amp;nbsp;* offline version of Hemera Book&lt;br /&gt;&amp;nbsp;* improved compatibility and robustness with RedHat-based and Debian-based distributions&lt;br /&gt;&amp;nbsp;* fixed all reported bugs in previous Hemera versions&lt;br /&gt;&lt;br /&gt;The &lt;a href="https://sourceforge.net/apps/mediawiki/hemerais/index.php"&gt;online documentation&lt;/a&gt;&amp;nbsp;has been completely revised for improving legibility and accessibility.&lt;br /&gt;&lt;br /&gt;To download release 0.1.5 of Hemera, information about upgrade from 0.1/0.1.1 to 0.1.5, or offline version of the Hemera book:&lt;br /&gt;&lt;a href="https://sourceforge.net/projects/hemerais/files/Hemera/0.1.x/"&gt;https://sourceforge.net/projects/hemerais/files/Hemera/0.1.x/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6968739775957190714?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6968739775957190714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/hemera-v015-released.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6968739775957190714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6968739775957190714'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/hemera-v015-released.html' title='Hemera v0.1.5 released'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2131186432735211111</id><published>2011-12-13T12:16:00.001+01:00</published><updated>2011-12-13T14:59:50.855+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='VersionControlSystems'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Git, a powerful Distributed Version Control System (DVCS)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;In last ten years, we've seen emergence of &lt;a href="http://en.wikipedia.org/wiki/Distributed_revision_control"&gt;Distributed Version Control Systems &lt;/a&gt;(DVCS).&lt;br /&gt;IMO, the noteworthy advantages of a Distributed Version Control System against a Centralized one are:&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;- each working copy can be regarded as a backup&lt;br /&gt;&amp;nbsp;- the most operations can be done offline&lt;br /&gt;&amp;nbsp;- common operations are thus very fast because there is no network overhead&lt;br /&gt;&amp;nbsp;- new kind of very powerful features&lt;br /&gt;&lt;br /&gt;You can read more with this &lt;a href="http://betterexplained.com/articles/intro-to-distributed-version-control-illustrated"&gt;illustrated introduction&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Today, the most used DVCS seems to be &lt;a href="http://git-scm.com/"&gt;Git&lt;/a&gt;, &lt;a href="http://mercurial.selenic.com/"&gt;Mercurial&lt;/a&gt; and &lt;a href="http://bazaar.canonical.com/"&gt;Bazaar&lt;/a&gt; (like &lt;a href="http://subversion.apache.org/"&gt;SVN&lt;/a&gt; which seems to be the mainly used Centralized one).&lt;br /&gt;There are lots arguments for or against a particular system; for instance &lt;a href="http://www.wikivs.com/wiki/Git_vs_Mercurial"&gt;there&lt;/a&gt;, &lt;a href="http://www.ericsink.com/entries/hg_denzel.html"&gt;there&lt;/a&gt;, or &lt;a href="http://gitvsmercurial.com/"&gt;there&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Each one will use the one matching the most his needs.&lt;br /&gt;I've chosen Git because it matches my free and open-source philosophy, it is very incredibly fast and efficient, documentation and samples are complete and of great quality and Git's team is hightly reactive.&lt;br /&gt;&lt;br /&gt;IMO, to 'begin' the necessary links are:&lt;br /&gt;&amp;nbsp;- &lt;a href="http://schacon.github.com/git/user-manual.html"&gt;User guide&lt;/a&gt;&lt;br /&gt;&amp;nbsp;- &lt;a href="http://gitref.org/"&gt;Git reference&lt;/a&gt;&lt;br /&gt;&amp;nbsp;- the &lt;a href="http://progit.org/book/"&gt;Pro Git Book&lt;/a&gt; which is a very complete documentation to deepen the knowledge of the system&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2131186432735211111?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2131186432735211111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/git-powerful-distributed-version.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2131186432735211111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2131186432735211111'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/12/git-powerful-distributed-version.html' title='Git, a powerful Distributed Version Control System (DVCS)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4226570227841791471</id><published>2011-09-14T21:19:00.000+02:00</published><updated>2011-09-14T21:19:06.672+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Activate logging for Mozilla applications (Firefox, Sunbird, Thunderbird ...).</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;There is many applications using &lt;a href="http://en.wikipedia.org/wiki/Netscape_Portable_Runtime"&gt;NSPR&lt;/a&gt;, including Mozilla ones (Firefox, Sunbird, Thunderbird ...).&lt;br /&gt;NSPR provides a set of logging functions which can be activated with &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;two global variables: &lt;b&gt;NSPR_LOG_MODULES&lt;/b&gt; and &lt;b&gt;NSPR_LOG_FILE&lt;/b&gt;.&lt;br /&gt;See &lt;a href="http://www.mozilla.org/projects/nspr/reference/html/prlog.html"&gt;NSPR Reference&lt;/a&gt; for further information.&lt;br /&gt;&lt;br /&gt;For Mozilla Thunderbird specific information, see this &lt;a href="http://kb.mozillazine.org/Session_logging_for_mail/news"&gt;KB&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It is not easy to find an exhaustive list of &lt;i&gt;[NS]PR module name&lt;/i&gt;, &lt;a href="http://xoatlicue.blogspot.com/2007/02/investigating-nspr-logging.html"&gt;this article&lt;/a&gt; is the more complete I've found.&lt;br /&gt;&lt;br /&gt;For instance, if you want to log &lt;b&gt;POP3&lt;/b&gt; and &lt;b&gt;SMTP&lt;/b&gt; warnings, you can define global variables:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;export NSPR_LOG_MODULES="POP3:3,SMTP:3"&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;export&amp;nbsp;NSPR_LOG_FILE="/tmp/nspr.log"&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Be aware that some applications use level &lt;b&gt;PR_LOG_ALWAYS&lt;/b&gt; for some logs, some whatever the level you define (but 0 for none), you will get those log.&lt;br /&gt;For instance, we can see such instruction in &lt;a href="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/"&gt;Thunderbird source code&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You can specify any module you want to activate logging of any applications based on NSPR you use.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4226570227841791471?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4226570227841791471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/09/activate-logging-for-mozilla.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4226570227841791471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4226570227841791471'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/09/activate-logging-for-mozilla.html' title='Activate logging for Mozilla applications (Firefox, Sunbird, Thunderbird ...).'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7247615257878302615</id><published>2011-09-14T20:55:00.002+02:00</published><updated>2011-09-14T21:44:33.568+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Change window behavior to prevent focus stealing (under KDE and Gnome)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Bored of programs stealing focus ?&lt;br /&gt;For instance, you launch an application which takes time to start, you switch to something else to work, and after some time the main window of your just launched program pops up and steals focus (including keyboad ...).&lt;br /&gt;&lt;br /&gt;This article gives instructions to change this behavior both under &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;a href="http://kde.org/"&gt;KDE&lt;/a&gt; and &lt;a href="http://www.gnome.org/"&gt;Gnome&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Under &lt;a href="http://kde.org/"&gt;KDE&lt;/a&gt;:&lt;br /&gt;&amp;nbsp;- open 'System Settings' application&lt;br /&gt;&amp;nbsp;- open 'Window Behavior' menu&lt;br /&gt;&amp;nbsp;- select 'Window Behavior' left panel&lt;br /&gt;&amp;nbsp;- select 'Focus' right panel&lt;br /&gt;&amp;nbsp;- update 'Focus stealing prevention level' and policy to your needs&lt;br /&gt;&lt;br /&gt;Under &lt;a href="http://www.gnome.org/"&gt;Gnome&lt;/a&gt;:&lt;br /&gt;&amp;nbsp;- check 'focus new windows' configuration (it is defined to 'smart' by default):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;gconftool-2 --get /apps/metacity/general/focus_new_windows&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;- change 'focus new windows' from 'smart' to 'strict':&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;gconftool-2 --set /apps/metacity/general/focus_new_windows --type string strict&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Under &lt;a href="http://www.gnome.org/gnome-3/"&gt;Gnome-Shell&lt;/a&gt;:&lt;br /&gt;In addition to previous instructions for Gnome, which don't seem enough for Gnome-Shell (Gnome 3), you can:&lt;br /&gt;&amp;nbsp; - check 'no focus windows' configuration (empty by default):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;gconftool-2 --get /apps/metacity/general/no_focus_windows&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;- change 'no focus windows' to fully disable focus for ANY windows:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;gconftool-2 --set /apps/metacity/general/no_focus_windows --type string "(not true)"&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You won't be annoyed anymore by windows stealing focus.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7247615257878302615?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7247615257878302615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/09/change-window-behavior-to-prevent-focus.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7247615257878302615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7247615257878302615'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/09/change-window-behavior-to-prevent-focus.html' title='Change window behavior to prevent focus stealing (under KDE and Gnome)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8436837725846455827</id><published>2011-07-17T16:20:00.000+02:00</published><updated>2011-07-17T16:20:55.294+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Create partition larger than 3TB under GNU/Linux</title><content type='html'>You may need to create partition larger than about 3TB under GNU/Linux, with recent Hard Disk Drives having great capacity, with &lt;a href="http://bertrandbenoit.blogspot.com/2011/07/manage-intel-raid-under-gnulinux-using.html"&gt;RAID configuration&lt;/a&gt; ...&lt;br /&gt;Usually to create/manage partition with command line under GNU/Linux, &lt;a href="http://en.wikipedia.org/wiki/Fdisk#Unix-like_systems"&gt;fdisk&lt;/a&gt; is very adapted and powerful, but it is unable to create partition greater than 2/3TB (according to version, and architecture ?), because it needs to manage &lt;a href="http://en.wikipedia.org/wiki/GUID_Partition_Table"&gt;GPT partition&lt;/a&gt; (not supported by fdisk).&lt;br /&gt;For that, you can use &lt;a href="http://en.wikipedia.org/wiki/Parted"&gt;GNU Parted&lt;/a&gt; which is another powerful tool.&lt;br /&gt;&lt;br /&gt;Instead of long explanation, this is a concrete example creating a 4TB partition on a RAID 10 (let's call it &lt;b&gt;&lt;i&gt;/dev/md16&lt;/i&gt;&lt;/b&gt;):&lt;br /&gt;To begin, activate the GPT:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;parted /dev/md126 mklabel gpt&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Then, create a primary partition with all spaces (4TB):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;parted /dev/md126 mkpart primary ext4 0 100%&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Finally, formats it (for instance with ext4 and default block size):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mkfs.ext4 -v /dev/md126p1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8436837725846455827?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8436837725846455827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/create-partition-larger-than-3tb-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8436837725846455827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8436837725846455827'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/create-partition-larger-than-3tb-under.html' title='Create partition larger than 3TB under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-723732117185471663</id><published>2011-07-17T16:00:00.001+02:00</published><updated>2011-08-29T21:22:58.151+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Manage Intel RAID under GNU/Linux using mdadm tool</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;You may be interesting to read some &lt;a href="http://bertrandbenoit.blogspot.com/2011/07/some-history-about-intel-raid-under.html"&gt;history about RAID&lt;/a&gt; first.&lt;br /&gt;This article is about managing &lt;a href="http://www.intel.com/p/en_US/support/highlights/chpsts/imsm/"&gt;Intel RAID&lt;/a&gt;, with &lt;a href="http://www.kernel.org/pub/linux/utils/raid/mdadm/"&gt;mdadm tool&lt;/a&gt;, but some information may apply to others kinds.&lt;br /&gt;To begin, you can find &lt;a href="https://raid.wiki.kernel.org/"&gt;lots of information about RAID under GNU/Linux&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;IMPORTANT&lt;/b&gt;: for &lt;a href="http://www.intel.com/p/en_US/support/highlights/chpsts/imsm/"&gt;Intel's IMSM&lt;/a&gt; support you need at least &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;a href="http://neil.brown.name/git?p=mdadm;a=blob;f=ANNOUNCE-3.2"&gt;version 3.2&lt;/a&gt; of &lt;a href="http://www.kernel.org/pub/linux/utils/raid/mdadm/"&gt;mdadm tool&lt;/a&gt;&amp;nbsp;(thanks to Iwan for this information).&lt;br /&gt;&lt;br /&gt;Usually, there is a container device (let's call it &lt;i&gt;/dev/md127&lt;/i&gt; in this article), and the &lt;a href="http://en.wikipedia.org/wiki/RAID"&gt;RAID&lt;/a&gt; device (let's call it &lt;i&gt;/dev/md126&lt;/i&gt; in this article).&lt;br /&gt;Instead of long blabla, this article will give some common commands to help manage Intel RAID with mdadm tool.&lt;br /&gt;&lt;br /&gt;To report the RAID information from the Option ROM (for instance "Intel(R) Matrix Storage Manager"):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mdadm --detail-platform&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To get general details:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mdadm -D /dev/md127&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To examine information (including members):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mdadm -E /dev/md127&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To assemble the RAID array inside the container, and/or to start it (the -e option declares the style of RAID metadata (superblock) to be used):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mdadm -I -e imsm /dev/md127&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To check the current state:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;cat /proc/mdstat&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Output sample (with a RAID 10 having 4 members):&lt;br /&gt;&lt;i&gt;Personalities : [raid10]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;md126 : active raid10 sda[3] sdb[2] sdc[1] sdd[0]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3907023872 blocks super external:/md127/0 64K chunks 2 near-copies [4/4] [UUUU]&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [=&amp;gt;...................] &amp;nbsp;resync = &amp;nbsp;6.6% (258923904/3907024128) finish=305.7min speed=198882K/sec&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;md127 : inactive sdb[3](S) sda[2](S) sdc[1](S) sdd[0](S)&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 9028 blocks super external:imsm&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;To add it to the configuration file (to be activated automagically at boot):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;mdadm --examine --scan &amp;gt;&amp;gt; /etc/mdadm.conf&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For advanced commands (including repairing), you should read &lt;a href="https://raid.wiki.kernel.org/"&gt;this&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-723732117185471663?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/723732117185471663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/manage-intel-raid-under-gnulinux-using.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/723732117185471663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/723732117185471663'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/manage-intel-raid-under-gnulinux-using.html' title='Manage Intel RAID under GNU/Linux using mdadm tool'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7066018664571128952</id><published>2011-07-17T15:42:00.000+02:00</published><updated>2011-07-17T15:42:17.983+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU/Bash'/><title type='text'>RAID 10 on Intel ICH10R under GNU/Linux (including HDD devices on Marvell 88SE9128)</title><content type='html'>After my experience to setup a &lt;a href="http://bertrandbenoit.blogspot.com/2011/04/raid-0-on-intel-ich10r-vs-marvell.html"&gt;RAID 0 on Intel ICH10R Vs Marvell 88SE9128&lt;/a&gt;; I've recently experienced the setup of &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;a RAID 10 on Intel ICH10R, using the &lt;a href="http://bertrandbenoit.blogspot.com/2011/07/some-history-about-intel-raid-under.html"&gt;mdadm tool&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;To begin, I've never succeeded to install a bootable Operating System directly on the RAID (tested with Fedora 12, Fedora 13, Fedora 14, Ubuntu 10.04 LTS and Mandriva 2010.1).&lt;br /&gt;So I added an additional HDD device dedicated to the OS, that I plugged on the Marvell 88SE9128 (at the moment, it was more easy with cables).&lt;br /&gt;This time, the OS was bootable, but asap there was more or less I/O stress on drives (OS or RAID ones), the system failed with lots of severe I/O errors, and eventually one of the RAID HDD was declared offline (although it was healthy).&lt;br /&gt;&lt;br /&gt;As soon as I plugged all the HDD devices on the Intel ICH10R controller (and after a last OS installation ...), everything became perfect : very efficient and very stable with absolutely no I/O error whatever the stress.&lt;br /&gt;For information, there is no problem with optical devices on the Marvell 88SE9128 controller.&lt;br /&gt;&lt;br /&gt;Like in my last article on this subject, I can only conclude that if ever there is a RAID configuration on a system, &lt;b&gt;no HDD devices should be plugged to the Marvell 88SE9128 controller&lt;/b&gt;; otherwise the system will be strongly instable and will eventually fail.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7066018664571128952?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7066018664571128952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/raid-10-on-intel-ich10r-under-gnulinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7066018664571128952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7066018664571128952'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/raid-10-on-intel-ich10r-under-gnulinux.html' title='RAID 10 on Intel ICH10R under GNU/Linux (including HDD devices on Marvell 88SE9128)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5147784697340903048</id><published>2011-07-17T15:22:00.000+02:00</published><updated>2011-07-17T15:22:33.517+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Some history about Intel RAID under GNU/Linux (dmraid/mdadm)</title><content type='html'>Although &lt;a href="http://en.wikipedia.org/wiki/RAID"&gt;RAID&lt;/a&gt; is supported under GNU/Linux since many years, it is not trivial either.&lt;br /&gt;This article is about &lt;a href="http://www.intel.com/support/chipsets/imsm/sb/cs-020663.htm"&gt;Intel RAID&lt;/a&gt;, but some information may apply to others kinds.&lt;br /&gt;&lt;br /&gt;There is at least two tools allowing to manage RAID devices:&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;- &lt;a href="http://people.redhat.com/heinzm/sw/dmraid"&gt;dmraid&lt;/a&gt; (Device-mapper RAID tool and library)&lt;br /&gt;&amp;nbsp;- &lt;a href="http://www.kernel.org/pub/linux/utils/raid/mdadm/"&gt;mdadm&lt;/a&gt; (controls Linux md devices - software RAID arrays)&lt;br /&gt;&lt;br /&gt;Intel RAID can be regarded as pseudo-Hardware-based RAID or &lt;a href="http://en.wikipedia.org/wiki/RAID#Software-based_RAID"&gt;Software-based RAID&lt;/a&gt;, so the 2 tools can be used.&lt;br /&gt;Anyway, mdadm is more commonly used with modern distribution (for instance &lt;a href="http://fedoraproject.org/wiki/Common_F12_bugs#Upgrading_from_F11_with_.2F_on_an_Intel_BIOS_RAID_array_results_in_an_unbootable_system"&gt;Fedora switched from dmraid to mdraid&lt;/a&gt; since version 12).&lt;br /&gt;&lt;br /&gt;Besides, if you ever have a problem after an OS upgrade, with an existing RAID that you manage with dmraid, you should use the kernel option "&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;noiswmd&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;" which will make the system use dmraid for Intel BIOS RAID instead of mdraid.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5147784697340903048?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5147784697340903048/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/some-history-about-intel-raid-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5147784697340903048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5147784697340903048'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/07/some-history-about-intel-raid-under.html' title='Some history about Intel RAID under GNU/Linux (dmraid/mdadm)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1893784687881221747</id><published>2011-06-09T14:28:00.001+02:00</published><updated>2011-06-09T14:28:51.702+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Get KDE4.6 applications smooth again !</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Since&amp;nbsp;&lt;a href="http://www.kde.org/announcements/4.6"&gt;KDE4.6&lt;/a&gt;, some of KDE applications can be very ...&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;very slow sometimes (kate, konqueror, dolphin).&lt;br /&gt;&lt;br /&gt;One of the workaround is too specify another Qt graphical system, for instance using &lt;a href="http://labs.qt.nokia.com/2009/12/18/qt-graphics-and-performance-the-raster-engine/"&gt;raster&lt;/a&gt;:&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;kate --graphicssystem raster&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;i&gt;dolphin --graphicssystem raster&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1893784687881221747?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1893784687881221747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/get-kde46-applications-smooth-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1893784687881221747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1893784687881221747'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/get-kde46-applications-smooth-again.html' title='Get KDE4.6 applications smooth again !'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3743028311740308562</id><published>2011-06-08T14:25:00.000+02:00</published><updated>2011-06-08T14:25:41.041+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='GNU/Bash'/><title type='text'>Configure easily themes of GTK+ applications, QT4 applications ...</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;It's not always immediate to configure Themes of &lt;a href="http://en.wikipedia.org/wiki/Desktop_environment"&gt;Desktop Environment&lt;/a&gt;, &lt;a href="http://www.gtk.org/"&gt;GTK+&lt;/a&gt; applications and &lt;a href="http://qt.nokia.com/"&gt;Qt4&lt;/a&gt; applications separately.&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;For&amp;nbsp;Desktop environment, there is usually&amp;nbsp;embedded tools.&lt;br /&gt;&lt;br /&gt;For GTK+ applications, we can use the&amp;nbsp;&lt;i&gt;&lt;b&gt;gtk-chtheme&lt;/b&gt;&lt;/i&gt; tool.&lt;br /&gt;Under RedHat-like GNU/Linux, it can be installed with the package of the same name:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;yum install&amp;nbsp;gtk-chtheme&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;Each user wanted to configure his GTK+ applications theme can then use this tool.&lt;br /&gt;&lt;br /&gt;For Qt4 applications, we can use the&amp;nbsp;&lt;b&gt;&lt;i&gt;qt-config&lt;/i&gt;&lt;/b&gt; tool.&lt;br /&gt;Under RedHat-like GNU/Linux, it can be installed like that:&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;yum install&amp;nbsp;qtconfig-qt4&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Each user wanted to configure his Qt4 applications theme can then use this tool.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Lots of themes can be found on &lt;a href="http://opendesktop.org/?xsection=art"&gt;OpenDesktop&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3743028311740308562?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3743028311740308562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/configure-easily-themes-of-gtk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3743028311740308562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3743028311740308562'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/configure-easily-themes-of-gtk.html' title='Configure easily themes of GTK+ applications, QT4 applications ...'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-531300714935519154</id><published>2011-06-03T16:48:00.002+02:00</published><updated>2011-06-03T21:36:29.428+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GNU/Bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Control your GNU/Bash Prompt</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;With&amp;nbsp;&lt;a href="http://www.gnu.org/software/bash/"&gt;GNU/Bash&lt;/a&gt;, it is easy to &lt;a href="http://www.gnu.org/software/bash/manual/bashref.html#Printing-a-Prompt"&gt;control your prompt&lt;/a&gt;, defining PS1 (and&amp;nbsp;optionally&amp;nbsp;PS2 to PS4) environment variable.&lt;br /&gt;&lt;br /&gt;For better legibility or whatever reason, you may want to &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;add further information or colors to prompt.&lt;br /&gt;For instance you can see &lt;a href="https://wiki.archlinux.org/index.php/Color_Bash_Prompt"&gt;this page&lt;/a&gt;, and &lt;a href="http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html"&gt;this one&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;But it is very important to escape special characters dedicated to colors.&lt;br /&gt;For instance, this prompt will NOT work:&lt;br /&gt;&lt;strike&gt;export PS1="\e[0;32m\t\e[0m \u@\h:\e[0;36m\W\e[0m$ "&lt;/strike&gt;&lt;br /&gt;&lt;br /&gt;With this prompt, GNU/Bash will NOT work properly while breaking lines (for instance if its length if greater than limit) or&amp;nbsp;while&amp;nbsp;moving to begin/end of them.&lt;br /&gt;To work, it is needed to add escaped bracket between each color escaped characters; this is a working prompt with colors (starting with date and time, and then usual information: user name, host and relative path):&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;export PS1="\[\e[0;32m\]\t\[\e[0m\] \u@\h:\[\e[0;36m\]\W\[\e[0m\]$ "&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To persist your GNU/Bash prompt, you can add this in a &lt;a href="http://www.gnu.org/software/bash/manual/bashref.html#Bash-Startup-Files"&gt;GNU/Bash startup file&lt;/a&gt; (e.g. &lt;i&gt;$HOME/.bashrc&lt;/i&gt;).&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-531300714935519154?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/531300714935519154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/control-your-gnubash-prompt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/531300714935519154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/531300714935519154'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/06/control-your-gnubash-prompt.html' title='Control your GNU/Bash Prompt'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5963221102679950107</id><published>2011-04-20T21:05:00.000+02:00</published><updated>2011-04-20T21:05:01.317+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><title type='text'>RAID 0 on Intel ICH10R Vs Marvell 88SE9128</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;I've recently setup a &lt;a href="http://en.wikipedia.org/wiki/RAID_0#RAID_0"&gt;RAID0&lt;/a&gt; of two &lt;a href="http://en.wikipedia.org/wiki/Serial_ATA#SATA_revision_3.0_.28SATA_6_Gbit.2Fs.29"&gt;SATA 3 (6Gb/s)&lt;/a&gt; HDD, on a Asus &lt;a href="http://www.asus.com/Motherboards/Intel_Socket_1366/P6X58DE/"&gt;P6X58D-E&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Hard_disk_drive"&gt;HDD&lt;/a&gt; can not reach theorical efficiencies of SATA 3 because of mechanical limits, but in RAID0 configuration,&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;such limit can be overriden.&lt;br /&gt;So there was 2 choices:&lt;br /&gt;&amp;nbsp;- 2 HDD in SATA 3 mode on &lt;a href="http://www.marvell.com/products/storage/storage_system_solutions/sata_controllers_pc_consumer/6_gbs_sata_raid_controller_88se91xx_product_brief.pdf"&gt;Marvell 88SE9128 controller&lt;/a&gt;&lt;br /&gt;&amp;nbsp;- 2 HDD in &lt;a href="http://en.wikipedia.org/wiki/Serial_ATA#SATA_revision_2.0_.28SATA_3_Gbit.2Fs.29"&gt;SATA 2&lt;/a&gt; mode on &lt;a href="http://www.intel.com/assets/pdf/datasheet/319973.pdf"&gt;Intel ICH10R controller&lt;/a&gt;&amp;nbsp;(&lt;a href="http://www.intel.com/Assets/PDF/specupdate/319974.pdf?wapkw=(ich10)"&gt;2011 specifications update&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;For the greatest efficiencies, the reflex is to use the Marvell 88SE9128 controller to benefit from SATA 3 mode.&lt;br /&gt;Despite 2 installation attempts, the system was instable, and performances were drastically variable (easily seen with various Benchmarks).&lt;br /&gt;In addition, it was impossible to get &lt;a href="http://en.wikipedia.org/wiki/S.M.A.R.T."&gt;SMART&lt;/a&gt; information on any of the HDD.&lt;br /&gt;Because all I've then read on Web was against Marvell, BIOS (1.0.0.1019), and drivers (1.0.0.1036) were up to date, I try Intel ICH10R.&lt;br /&gt;&lt;br /&gt;It's as quick and easy as to setup RAID0 on Intel ICH10R controller than on Marvell 88SE9128 controller; but that's where the comparison ends.&lt;br /&gt;&lt;br /&gt;The read/write efficiencies are greater with Intel ICH10R controller (despite in SATA 2 mode, instead of SATA 3) and very constant. System is as stable as it can be.&lt;br /&gt;The &lt;a href="http://www.intel.com/p/en_US/support/highlights/chpsts/imsm"&gt;Intel Rapid Storage&lt;/a&gt; is interesting to get quick Health information, and there is no problem to get SMART information for each HDD of the RAID.&lt;br /&gt;&lt;br /&gt;This is an &lt;a href="http://benchmarkreviews.com/index.php?option=com_content&amp;amp;task=view&amp;amp;id=708&amp;amp;Itemid=60&amp;amp;limit=1&amp;amp;limitstart=3"&gt;interesting article&lt;/a&gt; comparing these 2 controllers.&lt;br /&gt;&lt;br /&gt;For HDD, I think there is no hesitation to have, Intel ICH10R controller is far more better.&lt;br /&gt;Maybe for &lt;a href="http://en.wikipedia.org/wiki/SSD"&gt;SSD&lt;/a&gt;, for which it is possible to reach SATA 3 theorical limit, Marvell 88SE9128 controller can be better ?&lt;br /&gt;It is another story ...&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5963221102679950107?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5963221102679950107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/04/raid-0-on-intel-ich10r-vs-marvell.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5963221102679950107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5963221102679950107'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/04/raid-0-on-intel-ich10r-vs-marvell.html' title='RAID 0 on Intel ICH10R Vs Marvell 88SE9128'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8971371290818178382</id><published>2011-04-01T11:07:00.000+02:00</published><updated>2011-04-01T11:07:31.786+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Fix kind of "GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed" issue</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;When launching some applications (e.g.: emacs, gedit ...) as root user, you may have error message like:&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;It means root user doesn't have access to the session bus.&lt;br /&gt;To solve that, simply ensure having a login shell for your root user:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;su -&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8971371290818178382?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8971371290818178382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/04/fix-kind-of-glib-gioerrorgdbusconnectio.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8971371290818178382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8971371290818178382'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/04/fix-kind-of-glib-gioerrorgdbusconnectio.html' title='Fix kind of &quot;GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed&quot; issue'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5095770765726139059</id><published>2011-03-31T15:36:00.001+02:00</published><updated>2011-03-31T15:37:33.454+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Define google-chrome as default Web browser in Thunderbird</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To define &lt;a href="http://www.google.com/chrome"&gt;google-chrome&lt;/a&gt; as default Web browser in &lt;a href="http://www.mozillamessaging.com/en/thunderbird/"&gt;Thunderbird&lt;/a&gt;, there is two steps to follow.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;u&gt;Step 1 &lt;/u&gt;(may be enough):&lt;br /&gt;&amp;nbsp;- open advanced configuration editor (Edit-&amp;gt;Preferences-&amp;gt;Advanced-&amp;gt;Configuration &amp;nbsp;Editor)&lt;br /&gt;&amp;nbsp;- define following properties with&amp;nbsp;&lt;b&gt;&lt;i&gt;/usr/bin/google-chrome&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;network.protocol-handler.app.http&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;network.protocol-handler.app.https&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Step 2:&lt;/u&gt;&lt;br /&gt;Usually there is&amp;nbsp;embedded&amp;nbsp;configuration in&amp;nbsp;&lt;b&gt;&lt;i&gt;mimeTypes.rdf &lt;/i&gt;&lt;/b&gt;file of your Thunderbird profile. In this case, step 1 is not enough.&lt;br /&gt;&lt;br /&gt;To define default&amp;nbsp;Web browser:&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;- open advanced configuration editor (Edit-&amp;gt;Preferences-&amp;gt;Advanced-&amp;gt;Configuration &amp;nbsp;Editor)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;- define following properties with&amp;nbsp;&lt;b&gt;&lt;i&gt;true&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;network.protocol-handler.warn-external.http&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;network.protocol-handler.warn-external.https&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;- open a http link -&amp;gt; the first time there will be a popup, define&amp;nbsp;&lt;i style="font-weight: bold;"&gt;/usr/bin/google-chrome&lt;/i&gt;&amp;nbsp;as your default Web browser, and activate the check box for memorizing this configuration&lt;/div&gt;&lt;div&gt;&amp;nbsp;- open a https link -&amp;gt; and do the same&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You will see that&amp;nbsp;&lt;b style="font-style: italic;"&gt;mimeTypes.rdf&lt;/b&gt; file will have been edited.&lt;/div&gt;&lt;div&gt;This time, google-chrome will really be the default Web browser in Thunderbird.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5095770765726139059?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5095770765726139059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/define-google-chrome-as-default-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5095770765726139059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5095770765726139059'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/define-google-chrome-as-default-web.html' title='Define google-chrome as default Web browser in Thunderbird'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8658922506644334786</id><published>2011-03-31T15:09:00.000+02:00</published><updated>2011-03-31T15:09:08.369+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Fix google-chrome "error while loading shared libraries: libnss3.so.1d" issue</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;After GNU/Linux OS upgrade (at least with Fedora), &lt;a href="http://www.google.com/chrome"&gt;google-chrome&lt;/a&gt; may be broken, complaining about missing &lt;b&gt;&lt;i&gt;libnss3.so.1d&lt;/i&gt;&lt;/b&gt; library.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;To fix this issue:&lt;br /&gt;&amp;nbsp;- ensure you have installed &lt;b&gt;&lt;i&gt;nss v3.xx &lt;/i&gt;&lt;/b&gt;(corresponding to your architecture)&lt;br /&gt;&amp;nbsp;- create a symbolic link to corresponding library in the google-chrome main directory, usually:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;ln -s&amp;nbsp;/usr/lib64/libssl3.so&amp;nbsp;/opt/google/chrome/libssl3.so.1d&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;There is some other needed symbolic links; if you have same kind of issue for others libraries, you can fix them the same way.&lt;br /&gt;&lt;br /&gt;Anyway, at worse, if you don't want to fix it manually, you can reinstall google-chrome and reinstall it:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;yum remove google-chrome-stable&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;yum install google-chrome-stable&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8658922506644334786?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8658922506644334786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/fix-google-chrome-error-while-loading.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8658922506644334786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8658922506644334786'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/fix-google-chrome-error-while-loading.html' title='Fix google-chrome &quot;error while loading shared libraries: libnss3.so.1d&quot; issue'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7132961866723443056</id><published>2011-03-31T14:50:00.000+02:00</published><updated>2011-03-31T14:50:20.813+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade GNU/Linux Fedora from 10 to 11, 12, 13 and finally 14</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To upgrade GNU/Linux Fedora from 10 to 11, 12, 13 and finally 14, there is no problem.&lt;br /&gt;Although the way to upgrade is &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;the same for legacy End Of Life (EOF) Fedora versions (until 10 included), and for Fedora 11; it is easier from Fedora 12 with new yum options &lt;b&gt;&lt;i&gt;--releasever&lt;/i&gt;&lt;/b&gt; and &lt;b&gt;&lt;i&gt;distro-sync&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;The principle is globally the same when upgrading:&lt;br /&gt;- from Fedora core N to Fedora core N+1 (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html"&gt;this post&lt;/a&gt;)&lt;br /&gt;- from Fedora 8 to 9, then 10 (see &lt;a href="http://bertrandbenoit.blogspot.com/2009/01/upgrade-gnulinux-fedora-from-8-to-9.html"&gt;this post&lt;/a&gt;)&lt;br /&gt;- from Fedora core 6 to Fedora 7 then 8 (see &lt;a href="http://bertrandbenoit.blogspot.com/2008/02/upgrade-gnulinux-fedora-from-core-6-to.html"&gt;this post&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;In addition, the &lt;a href="http://fedoraproject.org/wiki/YumUpgradeFaq#head-95a2ac1207272256325354f5ebb0b9cc05511d7a"&gt;recommendations&lt;/a&gt; of &lt;a href="http://fedoraproject.org/"&gt;Fedora project&lt;/a&gt; have greatly evolved and are complete.&lt;br /&gt;&lt;br /&gt;Ensure there is no dependencies problem like explained into &lt;a href="http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html"&gt;this post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Then, you should perform a great configuration files merging campaign to ensure having the up to date functionalities while keeping your own specific configuration (globally the XXX.conf and XXX.conf.rpmnew files).&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7132961866723443056?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7132961866723443056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/upgrade-gnulinux-fedora-from-10-to-11.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7132961866723443056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7132961866723443056'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/upgrade-gnulinux-fedora-from-10-to-11.html' title='Upgrade GNU/Linux Fedora from 10 to 11, 12, 13 and finally 14'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3293953272795746639</id><published>2011-03-14T12:29:00.000+01:00</published><updated>2011-03-14T12:29:28.045+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Google Chrome - some more interesting extensions</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Looking for &lt;a href="http://www.google.com/chrome"&gt;Google Chrome&lt;/a&gt; &lt;a href="https://chrome.google.com/extensions"&gt;extensions&lt;/a&gt;, I've found some additional ones very interesting (equivalent may exist in other Web browsers but it is not the subject of this post).&lt;br /&gt;&lt;div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;To begin, the fact that extensions can be installed very quickly and without restarting the Web browser is something very appreciate.&lt;br /&gt;In addition, each extension usually adds a single little button in toolbar, which is very interesting to have quick access information/functionality, without reducing legibility of the whole Web browser, adding lots of tool bars every where ...&lt;br /&gt;&lt;br /&gt;To have some counters in toolbar:&lt;br /&gt;&amp;nbsp;- &lt;a href="https://chrome.google.com/extensions/search?q=Mail%20Checker%20for%20Google%20Mail"&gt;Mail Checker for Google Mail™&lt;/a&gt;&lt;br /&gt;&amp;nbsp;-&amp;nbsp;&lt;a href="https://chrome.google.com/extensions/search?q=Google%20Reader%20Notifier"&gt;Google Reader Notifier&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To manage (too) many tabs:&lt;br /&gt;&amp;nbsp;-&amp;nbsp;&lt;a href="https://chrome.google.com/extensions/search?q=TooManyTabs"&gt;TooManyTabs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Some others:&lt;br /&gt;&amp;nbsp;- &lt;a href="https://chrome.google.com/extensions/search?q=Google%20Dictionary"&gt;Google Dictionary&lt;/a&gt;&amp;nbsp;-&amp;gt; quick terms' definition as tooltip&lt;br /&gt;&amp;nbsp;- &lt;a href="https://chrome.google.com/extensions/search?q=Status-bar%20Calculator"&gt;Status-bar Calculator&lt;/a&gt;&amp;nbsp;-&amp;gt; small robust calculator&lt;br /&gt;&amp;nbsp;- &lt;a href="https://chrome.google.com/extensions/search?q=best%20price"&gt;The best price&lt;/a&gt; -&amp;gt; automatic price comparator&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3293953272795746639?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3293953272795746639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/google-chrome-some-more-interesting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3293953272795746639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3293953272795746639'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/google-chrome-some-more-interesting.html' title='Google Chrome - some more interesting extensions'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1933218663755054510</id><published>2011-03-14T12:14:00.000+01:00</published><updated>2011-03-14T12:14:02.050+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Comparing some default and additional functionalities of Firefox, Chrome and Opera</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Some months ago, I've posted "&lt;a href="http://bertrandbenoit.blogspot.com/2010/04/firefox-add-ons-providing-more-or-less.html"&gt;Firefox add-ons providing more or less same Opera functionalities&lt;/a&gt;"; this time, I'll compare &lt;a href="http://www.mozilla-europe.org/en/firefox/"&gt;Firefox&lt;/a&gt;,&amp;nbsp;Google&amp;nbsp;&lt;a href="http://www.google.com/chrome"&gt;Chrome&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://www.opera.com/"&gt;Opera&lt;/a&gt;&amp;nbsp;functionalities.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;The comparison is based on functionalities I find the most useful:&lt;br /&gt;&amp;nbsp; - reduce the GUI (hidden menu, not used buttons ...)&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Firefox: Add-on:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2324"&gt;Personal menu&lt;/a&gt;&amp;nbsp;add-on&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Google Chrome: default&lt;/div&gt;Opera: Configuration: Show (only) "icons", and "Use small icons" &lt;br /&gt;&lt;br /&gt;&amp;nbsp; - create nickname to bookmark and allow quick load&lt;br /&gt;Firefox:&amp;nbsp;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/8703"&gt;url_alias&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome:&amp;nbsp;&lt;a href="https://chrome.google.com/extensions/search?q=alias+links"&gt;Alias Links&lt;/a&gt; extension&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- sessions system (set of opened URL and/or Web Browser windows) - save/load; automatic session load when starting Web Browser&lt;br /&gt;Firefox:&amp;nbsp;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2324"&gt;Session Manager&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome: &lt;a href="https://chrome.google.com/extensions/search?q=session+manager"&gt;Session Manager&lt;/a&gt; extension&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;- dictionary system while editing&lt;br /&gt;Firefox: embedded&lt;br /&gt;Google Chrome: embedded&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- speed dial&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/4810"&gt;SpeedDial&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome: &lt;a href="https://chrome.google.com/extensions/search?q=speeddial"&gt;SpeedDial&lt;/a&gt; extension&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- "unwanted blocking system" (pop-ups, pubs, ...)&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/722"&gt;noscript&lt;/a&gt;&amp;nbsp;add-on&amp;nbsp;(very strict), &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1865"&gt;Adblock Plus&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome: &lt;a href="https://chrome.google.com/extensions/search?q=adblock"&gt;Adblock &amp;amp; Adblock Plus&lt;/a&gt; extensions&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- bookmarks synchronization&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2410"&gt;Xmarks Bookmark and Password Sync&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome: embedded&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- download to various folder according to file extension&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/4781"&gt;Automatic Save Folder&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;No equivalent found.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; - left multi-function panel (with the tiniest bar possible)&lt;br /&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1027"&gt;all-in-one_sidebar&lt;/a&gt;&amp;nbsp;add-on&lt;br /&gt;Google Chrome: no equivalent found yet&lt;br /&gt;Opera:&amp;nbsp;embedded&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;- attach Javascript code to a button or a menu&lt;/div&gt;&lt;div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Firefox:&amp;nbsp;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1027"&gt;all-in-one_sidebar&lt;/a&gt;&amp;nbsp;add-on&lt;/div&gt;Google Chrome: no equivalent found yet (may be Stylish extension)&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Opera:&amp;nbsp;embedded&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1933218663755054510?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1933218663755054510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/comparing-some-default-and-additional.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1933218663755054510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1933218663755054510'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/03/comparing-some-default-and-additional.html' title='Comparing some default and additional functionalities of Firefox, Chrome and Opera'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3091290128016065222</id><published>2011-02-06T10:25:00.001+01:00</published><updated>2011-02-06T11:04:34.772+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Migrate from one MySQL server to another</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Migration from one &lt;a href="http://www.mysql.fr/"&gt;MySQL server&lt;/a&gt; to another can be done in 3 steps; assuming your new server is ready.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 1 - your data:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Export all your databases (but &lt;i style="color: black;"&gt;&lt;b&gt;mysql&lt;/b&gt;&lt;/i&gt; and &lt;i style="color: black;"&gt;&lt;b&gt;test&lt;/b&gt;&lt;/i&gt;) and import them to your new server&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 2 - access definition:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Export &lt;i&gt;&lt;b&gt;user&lt;/b&gt;&lt;/i&gt; and &lt;i&gt;&lt;b&gt;db&lt;/b&gt;&lt;/i&gt; tables of &lt;i&gt;&lt;b&gt;mysql&lt;/b&gt;&lt;/i&gt; database, and import them to your new server&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 3 - flushing privileges:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Execute the following SQL command : &lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;flush privileges;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;Now, you can use your new server (data + access) exactly like the previous one.&lt;br /&gt;&lt;u&gt;Tips:&lt;/u&gt; do not forget to update the database host/port information of your third party applications using MySQL server.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3091290128016065222?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3091290128016065222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/02/migrate-from-one-mysql-server-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3091290128016065222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3091290128016065222'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2011/02/migrate-from-one-mysql-server-to.html' title='Migrate from one MySQL server to another'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7463696304139426924</id><published>2010-11-26T11:53:00.000+01:00</published><updated>2010-11-26T11:53:30.817+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='multimedia'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Get/probe audio/video codec/container information of a multimedia file</title><content type='html'>&lt;a href="http://www.ffmpeg.org/"&gt;FFmpeg&lt;/a&gt; is a very powerful product allowing to play, create or get information from supported multimedia files.&lt;br /&gt;Nevertheless, a light tool allowing to probe audio/video codec information can be very useful.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;a href="http://sourceforge.net/projects/ffprobe/"&gt;FFprobe&lt;/a&gt; is the perfect candidate, based on FFmpeg functionalities, it gives quick information about video and audio streams.&lt;br /&gt;&lt;br /&gt;If your GNU/Linux version does not provide it, you can compile it from source (see INSTALL file for requirements).&lt;br /&gt;It may be needed to specify ffmpeg include directories for configure to work (it was my case under GNU/Linux Fedora 10):&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;./configure CFLAGS="-I/usr/include/ffmpeg/"&lt;/b&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7463696304139426924?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7463696304139426924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/11/getprobe-audiovideo-codeccontainer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7463696304139426924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7463696304139426924'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/11/getprobe-audiovideo-codeccontainer.html' title='Get/probe audio/video codec/container information of a multimedia file'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4782522036149256250</id><published>2010-07-27T16:34:00.001+02:00</published><updated>2010-07-27T16:35:35.832+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Migrate Virtual Machines from VMware to VirtualBox</title><content type='html'>Even if you can add vmdk file as Hard Disks in the &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; Media Manager, you lost your Virtual Machines.&lt;br /&gt;The way giving the best compatibility to migrate your Virtual Machines from VMware to VirtualBox is to convert them in Open Virtualization Format (.ovf) first.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;To do so, &lt;a href="http://www.vmware.com/"&gt;VMWare&lt;/a&gt; provides an &lt;a href="http://communities.vmware.com/community/vmtn/vsphere/automationtools/ovf"&gt;OVF Tool&lt;/a&gt; (see &lt;a href="http://www.vmware.com/support/developer/ovf/ovf20/ovftool_201_userguide.pdf"&gt;User Guide&lt;/a&gt;) which is embedded in some recent versions of Workstation and Player.&lt;br /&gt;If you don't have such version, download the OVF Tool version corresponding to your host.&lt;br /&gt;&lt;br /&gt;For &lt;b&gt;better compatibility&lt;/b&gt;, according to the guest OS there is some instructions to &lt;b&gt;perform first&lt;/b&gt; (you may get more information reading &lt;a href="http://forums.virtualbox.org/viewtopic.php?f=1&amp;amp;t=23448"&gt;this forum&lt;/a&gt; or &lt;a href="http://www.sysprobs.com/export-vmware-virtual-machine-ovf-import-virtualbox"&gt;this article&lt;/a&gt;) like:&lt;br /&gt;&amp;nbsp;- uninstall vmware-tools&lt;br /&gt;&amp;nbsp;- &lt;i&gt;remove hardware&lt;/i&gt; like sound card(s), floppy drive(s), CD/DVD drive(s) (at least unmount iso file), additional IDE controller(s)&lt;br /&gt;&lt;br /&gt;Just &lt;b&gt;before converting&lt;/b&gt;, you should (otherwise you may get a generic error "Failed to open disk"):&lt;br /&gt;&amp;nbsp;- prepare a destination folder with enough free space&lt;br /&gt;&amp;nbsp;- ensure having rights to read source Virtual Machines, and to write in the destination folder&lt;br /&gt;&amp;nbsp;- switch off Virtual Machine to convert&lt;br /&gt;&amp;nbsp;- ensure there is no lock file/directory in the Virtual Machine directory (with .lck extension); otherwise restart it with VMware and stop it properly (at worst, delete the .lck file/directory)&lt;br /&gt;&lt;br /&gt;Then, you can &lt;b&gt;convert your Virtual Machine to Open Virtualization Format&lt;/b&gt;:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;ovftool /path/to/VMware/VM.vmx /path/to/VM.ovf&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;Finally, you can &lt;b&gt;import this "new" Virtual Machine in VirtualBox&lt;/b&gt;:&lt;br /&gt;&amp;nbsp;- check first you have configured the storage of Hard Disk Drives and Virtual Machines (see preferences) to ensure having enough free space (by default, they are stored under your home directory).&lt;br /&gt;&amp;nbsp;- configure the Virtual Machine: name, operating system, architecture, network mode; and finally &lt;i&gt;add every hardware you need&lt;/i&gt;.&lt;br /&gt;&amp;nbsp;- start the Virtual Machine under VirtualBox to ensure it works perfectly.&lt;br /&gt;&lt;br /&gt;If it is the case, you can delete the VMWare version and Open Virtualization Format version which are no more needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4782522036149256250?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4782522036149256250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/migrate-virtual-machines-from-vmware-to.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4782522036149256250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4782522036149256250'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/migrate-virtual-machines-from-vmware-to.html' title='Migrate Virtual Machines from VMware to VirtualBox'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8508024507842554064</id><published>2010-07-27T15:14:00.000+02:00</published><updated>2010-07-27T15:14:35.207+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>How to install VirtualBox under GNU/Linux</title><content type='html'>&lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; is now embedded in lots of package managers.&lt;br /&gt;For instance, from &lt;a href="http://fedoraproject.org/"&gt;Fedora&lt;/a&gt; 11, it is available in &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion repository&lt;/a&gt;.&lt;br /&gt;Such a way, to install the open-source edition:&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;you install VirtualBox-OSE&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;For older version, it may be available in some no-official yum repositories.&lt;br /&gt;&lt;br /&gt;Anyway, whatever your &lt;b&gt;GNU/Linux&lt;/b&gt; distribution version, you should find a &lt;a href="http://www.virtualbox.org/wiki/Linux_Downloads"&gt;binary version&lt;/a&gt; from the official site (they cover &lt;i&gt;Fedora&lt;/i&gt;, &lt;i&gt;Red Hat Entreprise Linux&lt;/i&gt;, &lt;i&gt;Mandrake&lt;/i&gt;, &lt;i&gt;Debian&lt;/i&gt;, &lt;i&gt;Ubuntu&lt;/i&gt;, &lt;i&gt;OpenSuse&lt;/i&gt; ...).&lt;br /&gt;&lt;br /&gt;After the installation, launch VirtualBox with your user (avoid launching it with root), and configure the storage of Hard Disk Drives and Virtual Machines (see preferences) to ensure having enough free space (by default, they are stored under your home directory).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8508024507842554064?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8508024507842554064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/how-to-install-virtualbox-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8508024507842554064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8508024507842554064'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/how-to-install-virtualbox-under.html' title='How to install VirtualBox under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4167852141797608960</id><published>2010-07-27T13:25:00.000+02:00</published><updated>2010-07-27T13:25:38.977+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Why choose VirtualBox as Virtualization product ?</title><content type='html'>Today, there is various &lt;a href="http://en.wikipedia.org/wiki/Virtualization"&gt;Virtualization&lt;/a&gt; Products like &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt;, VMware &lt;a href="http://www.vmware.com/products/server"&gt;Server&lt;/a&gt;/&lt;a href="http://www.vmware.com/products/player"&gt;Player&lt;/a&gt;/&lt;a href="http://www.vmware.com/products/workstation"&gt;Workstation&lt;/a&gt;, &lt;a href="http://www.parallels.com/"&gt;Parallels Workstation/Desktop&lt;/a&gt; and &lt;a href="http://www.parallels.com/"&gt;Windows Virtual PC&lt;/a&gt;.&lt;br /&gt;Choice is not always easy, taking consideration of reputation, age, price, press papers, enterprise policies ...&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;We can find some comparisons, &lt;a href="http://www.infoworld.com/d/virtualization/infoworld-review-desktop-virtualization-windows-and-linux-heats-500"&gt;this fresh one&lt;/a&gt; is interesting and complete.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VirtualBox&lt;/b&gt; has impressively evolved in recent years. In particular with version 2 (released in 2008), and more recently the version 3 (released in june of 2009), it has become an undisputed alternative to other solutions.&lt;br /&gt;Nowadays, we can read things like "&lt;i style="color: blue;"&gt;With support for up to 32 virtual CPUs per VM, VirtualBox is now the class leader in terms of raw virtualization muscle&lt;/i&gt;", and "&lt;span style="color: blue;"&gt;VirtualBox is now poised to challenge VMware and Microsoft in the datacenter&lt;/span&gt;" (&lt;a href="http://www.infoworld.com/d/virtualization/infoworld-review-desktop-virtualization-windows-and-linux-heats-500"&gt;source&lt;/a&gt;).&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Oracle_VM_VirtualBox"&gt;VirtualBox Wikipedia article&lt;/a&gt; is interesting too.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.virtualbox.org/wiki/VirtualBox"&gt;list of features&lt;/a&gt; is impressive, and the hyper-reactivity (see the &lt;a href="http://www.virtualbox.org/wiki/Changelog"&gt;changeLog&lt;/a&gt;) makes it a very powerful product.&lt;br /&gt;In addition, the integration to various GNU/Linux distribution like &lt;a href="http://fedoraproject.org/"&gt;Fedora&lt;/a&gt; is a very important point making it very easy to install and upgrade the product.&lt;br /&gt;For instance, for these two last points, that is not the case of the free version of VMWare server; its modules' source code has not evolved since months, so it must be patched to be used with newer kernel versions (see &lt;a href="http://bertrandbenoit.blogspot.com/2010/07/install-vmware-server-202-under-kernel.html"&gt;this article&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Today, with the maturity of the version 3 (features, powerfulness, hosts/guests support, integration), and in addition because it is an open-source product, and free of charge, &lt;b&gt;VirtualBox has become some kind of obvious choice&lt;/b&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4167852141797608960?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4167852141797608960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/why-choose-virtualbox-as-virtualization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4167852141797608960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4167852141797608960'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/why-choose-virtualbox-as-virtualization.html' title='Why choose VirtualBox as Virtualization product ?'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8149196327085553330</id><published>2010-07-19T17:28:00.000+02:00</published><updated>2010-07-19T17:28:38.158+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Fix Java Web Start UnsatisfiedLinkError</title><content type='html'>In some cases, mixing i386 and x86_64 architectures, Java Web Start can fall into such error:&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/local/java/jdk/jdk1.5.0_14/jre/lib/amd64/libdeploy.so &lt;/span&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;at java.lang.Runtime.load0(Runtime.java:770)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;at java.lang.System.load(System.java:1003)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;at com.sun.deploy.config.UnixConfig.loadLibDeploy(UnixConfig.java:41)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: xx-small;"&gt;at com.sun.deploy.config.UnixConfig.&lt;/span&gt;&lt;clinit&gt;&lt;span style="font-size: xx-small;"&gt;(UnixConfig.java:26)&lt;br /&gt;at com.sun.deploy.config.ConfigFactory.newInstance(ConfigFactory.java:11)&lt;br /&gt;at com.sun.deploy.config.Config.getInstance(Config.java:569)&lt;br /&gt;at com.sun.deploy.config.Config.&lt;/span&gt;&lt;clinit&gt;&lt;span style="font-size: xx-small;"&gt;(Config.java:585)&lt;br /&gt;at com.sun.javaws.Main.main(Main.java:82)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To resolve it, you can simply erase your deployment configuration file:&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;~/.java/deployment/deployment.properties&lt;/b&gt;&lt;/i&gt;&lt;/clinit&gt;&lt;/clinit&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8149196327085553330?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8149196327085553330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/fix-java-web-start-unsatisfiedlinkerror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8149196327085553330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8149196327085553330'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/fix-java-web-start-unsatisfiedlinkerror.html' title='Fix Java Web Start UnsatisfiedLinkError'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4489055632428967505</id><published>2010-07-16T11:33:00.001+02:00</published><updated>2010-07-16T11:35:01.345+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><title type='text'>Improving efficiencies of OCZ SSD Vertex under Windows Seven</title><content type='html'>Following my post about &lt;a href="http://bertrandbenoit.blogspot.com/2010/07/replacing-conventional-hdd-by-solid.html"&gt;SSD&lt;/a&gt;, this one is dedicated to &lt;a href="http://www.ocztechnology.com/"&gt;OCZ&lt;/a&gt; &lt;a href="http://www.ocztechnology.com/products/solid_state_drives/sata_2_5_solid_state_drives"&gt;SSD Vertex&lt;/a&gt; efficiencies optimization under Windows Seven.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;One of the latest improvements of SSD management was the addition of &lt;a href="http://en.wikipedia.org/wiki/TRIM_%28SSD_command%29"&gt;TRIM&lt;/a&gt; support. Interesting, but not enough&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comparing to various concurrents, OCZ is very active to improve their products, for instance offering Firmware upgrade regularly (about 3 in less than 1 year).&lt;br /&gt;From the &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?74986-1.10-1.3-and-1.4-are-now-removed-from-this-forum-if-you-now-require-them-you-need-to-talk-to-support-staff-via-email-or-via-support-ticket"&gt;Firmware 1.4&lt;/a&gt;, they added support to TRIM.&lt;br /&gt;But they have been much further from the &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?67815-Agility-Vertex-Turbo-and-also-EX-1.5-FW-Update"&gt;Firmware 1.5&lt;/a&gt;, including their &lt;a href="http://www.ocztechnology.com/aboutocz/news/151"&gt;Garbage Collection technology&lt;/a&gt; (in fact it was included to Firmware 1.4.1 too, but it was exclusive with TRIM support); improved with &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?73919-Agility-Vertex-Solid2-Onyx-Turbo-and-also-EX-1.6-FW-Update"&gt;Firmware 1.6&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;In my case, the Firmware 1.5 was an incredible solution, finally allowing my SSD to reach almost the theoretical efficiencies (230MB/s in read, and 130MB/s in write).&lt;br /&gt;&lt;br /&gt;However, there was still something to do.&lt;br /&gt;Because of all my tests for improving efficiencies, including those &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?72945-Advanced-User-Windows-7-Complete-Installation-Guide-For-SSD-s-%28for-normal-use-most-of-these-tweaks-are-NOT-needed"&gt;tuning instructions&lt;/a&gt;, older versions of my SSD Firmware created meta-data which were now useless.&lt;br /&gt;I don't know every available solution for this, but there is an absolute one which gives 100% success.&lt;br /&gt;It consists to fully remove all meta-data of the SSD (obviously all data are then lost), like it was just out of the box; this operation is called &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?69503-How-to-use-Sanitary-Erase"&gt;Sanitary Erase&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If there is already something on the SSD (which will usually be the case), you should use a disk/partition cloner to backup/restore; like &lt;a href="http://en.wikipedia.org/wiki/PING_%28Partimage_Is_Not_Ghost%29"&gt;PING&lt;/a&gt; (free), or &lt;a href="http://www.acronis.fr/"&gt;Acronis&lt;/a&gt; (proprietary).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4489055632428967505?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4489055632428967505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/improving-efficiencies-of-ocz-ssd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4489055632428967505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4489055632428967505'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/improving-efficiencies-of-ocz-ssd.html' title='Improving efficiencies of OCZ SSD Vertex under Windows Seven'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1385217857728031394</id><published>2010-07-16T10:44:00.001+02:00</published><updated>2010-07-16T10:48:24.018+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><title type='text'>Solid State Drive (SSD), advantages and disadvantages</title><content type='html'>Although the notion of Solid State Drive (&lt;a href="http://en.wikipedia.org/wiki/Solid-state_drive"&gt;SSD&lt;/a&gt;) exists for a long time, industries have made significant progress last few years.&lt;br /&gt;It has become more accessible, less expensive and offering very interesting efficiencies.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;Comparing to conventional Hard Disk Drive (&lt;a href="http://en.wikipedia.org/wiki/Hard_disk_drive"&gt;HDD&lt;/a&gt;), read/write performances can be increased by ten and sometimes even more.&lt;br /&gt;Because it is a very different technology, there is &lt;a href="http://en.wikipedia.org/wiki/Solid-state_drive#Advantages"&gt;advantages&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Solid-state_drive#Disadvantages"&gt;disadvantages&lt;/a&gt;.&lt;br /&gt;From my point of view, the greatest advantages are the performances, the silent operations, and lower power consumption, and the worst disadvantages are &lt;u&gt;&lt;b&gt;performance loss in function to available free space&lt;/b&gt;&lt;/u&gt;, lower lifetimes, and finally the prices of GB (SSD with lots of capacity are very very expensives).&lt;br /&gt;&lt;br /&gt;The performance degradation is a very delicate point.&lt;br /&gt;There is some articles (like &lt;a href="http://www.ocztechnologyforum.com/forum/showthread.php?72945-Advanced-User-Windows-7-Complete-Installation-Guide-For-SSD-s-%28for-normal-use-most-of-these-tweaks-are-NOT-needed"&gt;this one&lt;/a&gt; for &lt;a href="http://www.ocztechnology.com/"&gt;OCZ&lt;/a&gt;, and &lt;a href="http://forum.corsair.com/v3/showthread.php?t=85344"&gt;this one&lt;/a&gt; of &lt;a href="http://www.corsair.com/"&gt;Corsair&lt;/a&gt;) giving lots of tuning instructions but it is still a too young "science" and there is still lots of misunderstanding.&lt;br /&gt;It seems, some instructions are not really recommended for operating system (like Windows Seven), although it may be needed to improve SSD lifetimes. It is why it is a delicate subject.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1385217857728031394?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1385217857728031394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/replacing-conventional-hdd-by-solid.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1385217857728031394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1385217857728031394'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/replacing-conventional-hdd-by-solid.html' title='Solid State Drive (SSD), advantages and disadvantages'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3456448817717286032</id><published>2010-07-16T10:00:00.000+02:00</published><updated>2010-07-16T10:00:50.243+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Get Java Web Start Application error when console vanished</title><content type='html'>&lt;div class="searchable"&gt;Java Web Start technology allows activating either "&lt;i&gt;trace&lt;/i&gt;" or "&lt;i&gt;log&lt;/i&gt;" system (or the two of them).&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="searchable"&gt;To activate them:&lt;/div&gt;&lt;div class="searchable"&gt;&amp;nbsp;- launch the  (same version used when  launching &lt;b&gt;JNLP&lt;/b&gt; file of) Java Web Start viewer:&lt;/div&gt;&lt;div class="searchable" style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;/path/to/javaws -viewer &lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="searchable"&gt;&amp;nbsp;- close  the viewer main window&lt;/div&gt;&lt;div class="searchable"&gt;&amp;nbsp;- go to the &lt;b&gt;advanced&lt;/b&gt; panel and  switch on either "trace" or "log", or the two of them &lt;/div&gt;&lt;div class="searchable"&gt;&lt;/div&gt;&lt;div class="searchable"&gt;The next time you will use &lt;u&gt;the same version&lt;/u&gt; of Java Web Start, it will produce log files.&lt;/div&gt;&lt;div class="searchable"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="searchable"&gt;It is particularly needed when the console vanishes after showing error stack(s) (usually when the launched application fails startup).&lt;/div&gt;&lt;div class="searchable"&gt;You can get and analyse log/trace, looking under your home directory:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;~/.java/deployment/log/&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3456448817717286032?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3456448817717286032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/get-java-web-start-application-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3456448817717286032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3456448817717286032'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/get-java-web-start-application-error.html' title='Get Java Web Start Application error when console vanished'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6965468224512977262</id><published>2010-07-13T14:55:00.001+02:00</published><updated>2010-07-15T10:31:27.968+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Update Master Boot Record (MBR) replacing the System disk</title><content type='html'>Some times ago, I've written an article &lt;a href="http://bertrandbenoit.blogspot.com/2009/03/restore-master-boot-record-mbr-with.html"&gt;explaining how to restore MBR with grub&lt;/a&gt;. It works only if there is no disk change.&lt;br /&gt;&lt;br /&gt;Almost the same procedure can be used if the System disk change. &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;For instance you have your GNU/Linux on your first disk, and you add another disk (with better efficiencies ?) as System disk (getting the first index), but you want to restore this MBR instead of other (for instance if you install a Windows operating system on your new disk).&lt;br /&gt;&lt;br /&gt;The variables of this example are:&lt;br /&gt;- /dev/sda the new disk,&lt;br /&gt;- /dev/sdb the old system disk&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;/dev/sdbM&lt;/span&gt; the ext2/ext3/ext4 boot  partition (corresponds to &lt;span style="font-weight: bold;"&gt;hd1,M-1&lt;/span&gt;  for bootloader)&lt;br /&gt;- &lt;span style="font-style: italic; font-weight: bold;"&gt;grub&lt;/span&gt; as  bootloader&lt;br /&gt;&lt;br /&gt;Instructions:&lt;br /&gt;- boot with a GNU/Linux Rescue or Live CD of your choice&lt;br /&gt;- remove/rename the /boot folder of the launched GNU/Linux Rescue or  Live CD instance&lt;br /&gt;- mount your &lt;span style="font-weight: bold;"&gt;boot partition&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;mkdir /boot&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;mount -t ext3  /dev/sdaM /boot&lt;/span&gt;&lt;br /&gt;- update the grub configuration file (&lt;i style="color: blue;"&gt;&lt;u&gt;&lt;b&gt;/boot/grub/grub.conf&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;), replacing all &lt;i&gt;&lt;b&gt;hdN&lt;/b&gt;&lt;/i&gt; occurrence corresponding to partition of the old disk, by &lt;i&gt;&lt;b&gt;hdP&lt;/b&gt;&lt;/i&gt; (with P=N+1)&lt;br /&gt;- prefer using &lt;i style="color: blue;"&gt;&lt;b&gt;LABEL=XXX&lt;/b&gt;&lt;/i&gt; or &lt;i style="color: blue;"&gt;&lt;b&gt;UUID=YYY&lt;/b&gt;&lt;/i&gt; to indicate the root partition on the "kernel" line instead of &lt;b&gt;hdX&lt;/b&gt; information&lt;br /&gt;- update the grub device map (very important for old and new disk to be seen)&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;grub-install --recheck /dev/sdb&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;- update grub &lt;i&gt;&lt;b&gt;MBR&lt;/b&gt;&lt;/i&gt; information (the disk/partition information correspond to your /boot partition)&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;grub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;root (hd1,M-1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;setup  (hd1,M-1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;quit&lt;/span&gt;&lt;br /&gt;- update the &lt;i&gt;&lt;b&gt;MBR&lt;/b&gt;&lt;/i&gt; (the disk information corresponds to where the MBR must be installed - usually the first disk (your new one))&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;grub-install  /dev/sda&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6965468224512977262?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6965468224512977262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/update-master-boot-record-mbr-replacing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6965468224512977262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6965468224512977262'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/update-master-boot-record-mbr-replacing.html' title='Update Master Boot Record (MBR) replacing the System disk'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4273618048149768127</id><published>2010-07-12T12:17:00.005+02:00</published><updated>2010-07-15T10:37:23.155+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Restore lost partition with fdisk</title><content type='html'>Unfortunately, there is various situations where partition can "vanish" (bad manipulation, unwanted application behaviour, issue while using a partition manager ...).&lt;br /&gt;Some years ago, I've started using a very simple rule:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;u&gt;&lt;b&gt;Save the result of fdisk -l into a text file after each disk/partition management &lt;/b&gt;&lt;/u&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;It is very simple, it takes very few time and it can save many hours avoiding awful situations and some times data loss.&lt;br /&gt;&lt;br /&gt;If ever you lost a partition:&lt;br /&gt;&amp;nbsp;- start with a GNU/Linux &lt;a href="http://en.wikipedia.org/wiki/Live_CD"&gt;LiveCD&lt;/a&gt; (e.g. &lt;a href="https://fedoraproject.org/get-fedora"&gt;Fedora&lt;/a&gt;)&lt;br /&gt;&amp;nbsp;- retrieve your fdisk output (in particular first and last cylinders, indicated under "start" and "end" columns) &lt;br /&gt;&amp;nbsp;- launch fdisk in interactive mode on the regarded device (e.g. /dev/sda)&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;fdisk /dev/sda&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&amp;nbsp;- restore missing partition using first and last cylinder (typing '&lt;i style="color: blue;"&gt;&lt;b&gt;n&lt;/b&gt;&lt;/i&gt;' for new partition)&lt;br /&gt;&amp;nbsp;- if needed, update the type of partition (typing '&lt;i style="color: blue;"&gt;&lt;b&gt;t&lt;/b&gt;&lt;/i&gt;' for changing partition' system ID; then '&lt;i style="color: blue;"&gt;&lt;b&gt;L&lt;/b&gt;&lt;/i&gt;' to get the list of available codes)&lt;br /&gt;&amp;nbsp;- save changes (typing '&lt;i style="color: blue;"&gt;&lt;b&gt;w&lt;/b&gt;&lt;/i&gt;')&lt;br /&gt;&lt;br /&gt;If nothing has been written on the corresponding disk space, you will get back lost partition without data loss.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4273618048149768127?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4273618048149768127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/restore-lost-partition-hdd-ssd-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4273618048149768127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4273618048149768127'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/restore-lost-partition-hdd-ssd-with.html' title='Restore lost partition with fdisk'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4862355825477263103</id><published>2010-07-07T17:36:00.002+02:00</published><updated>2010-07-15T10:37:48.124+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Install VMware-server 2.0.2 under kernel 2.6.31, 2.6.32 or 2.6.33</title><content type='html'>The free &lt;a href="http://downloads.vmware.com/fr/d/info/datacenter_downloads/vmware_server/2_0"&gt;VMware-server&lt;/a&gt; has not evolved since end October of 2009 (v2.0.2), although fortunately Linux kernel keeps evolving.&lt;br /&gt;Such a way, there is a gap between VMware-server modules source code and awaited kernel source code.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;It is absolutely needed to patch VMware-server modules source code to install it with recent kernel versions; this post gives instruction to do so with kernel 2.6.31, 2.6.32 or 2.6.33.&lt;br /&gt;&lt;br /&gt;To begin, some header files have moved (you can read some information &lt;a href="http://spininfo.homelinux.com/news/VMware_Workstation_6.5/2010/01/12/Vmware_Workstation_7,_compiling_linux_kernel_modules_and_kernel_2.6.33"&gt;there&lt;/a&gt;), which can be fixed so:&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;cd /usr/src/kernels/$( uname -r )/include/linux&lt;br /&gt;ln -s ../generated/utsrelease.h&lt;br /&gt;ln -s ../generated/autoconf.h&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;Then to patch the VMware-server modules source code, it is needed to use &lt;a href="http://radu.cotescu.com/2009/10/30/how-to-install-vmware-server-2-0-x-on-ubuntu-9-10-karmic-koala/"&gt;this patch&lt;/a&gt;.&lt;br /&gt;If you have downloaded the &lt;b&gt;&lt;i&gt;gunzip version&lt;/i&gt;&lt;/b&gt;, you can follow the instructions given with the patch, it is ok.&lt;br /&gt;&lt;br /&gt;Otherwise, if you have downloaded the &lt;i&gt;&lt;b&gt;rpm version&lt;/b&gt;&lt;/i&gt;, those are some instructions to use this patch:&lt;br /&gt;&amp;nbsp;- install the rpm (do not launch the config script)&lt;br /&gt;&amp;nbsp;- backup source tar files (located under &lt;i&gt;&lt;b&gt;/usr/lib/vmware/modules/source&lt;/b&gt;&lt;/i&gt;), and then uncompress them&lt;br /&gt;&amp;nbsp;- create symbolic link (like if it was the tarball version)&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;mkdir -p /usr/lib/vmware/modules/source/a/lib/modules &amp;amp;&amp;amp; ln -s /usr/lib/vmware/modules/source /usr/lib/vmware/modules/source/a/lib/modules/source&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;- use the patch&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;patch -N -p1 --directory="/usr/lib/vmware/modules/source/a" -s &amp;lt; /path/to/source-update.patch&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;- [re]create the source tar files, with patched source code&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;cd /usr/lib/vmware/modules/source&lt;br /&gt;for tarFile in vmci vmmon vmnet vsock; do tar cf $tarFile".tar" "$tarFile"-only; done&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;- patch the config file&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;patch /usr/bin/vmware-config.pl &amp;lt; /path/to/config-file.patch&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;- launch the config file&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;vmware-config.pl&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Under &lt;b&gt;Fedora&lt;/b&gt; (and perhaps others distribution ?), it is needed to perform &lt;i&gt;&lt;b&gt;additional instructions&lt;/b&gt;&lt;/i&gt;:&lt;br /&gt;&amp;nbsp;- edit &lt;i&gt;&lt;b&gt;/etc/services&lt;/b&gt;&lt;/i&gt; and add an entry linking TCP/902 port and vmware-authd &lt;br /&gt;&amp;nbsp;- disable SELinux, editing the &lt;i&gt;&lt;b&gt;/etc/selinux/config&lt;/b&gt;&lt;/i&gt; file (&lt;i style="color: blue;"&gt;&lt;b&gt;setenforce 0 &lt;/b&gt;&lt;/i&gt;can be used at runtime)&lt;br /&gt;&amp;nbsp;- move the VMware-server service file for haldaemon to start before it&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;mv /etc/rc3.d/S24vmware /etc/rc3.d/S27vmware&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4862355825477263103?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4862355825477263103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/install-vmware-server-202-under-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4862355825477263103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4862355825477263103'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/07/install-vmware-server-202-under-kernel.html' title='Install VMware-server 2.0.2 under kernel 2.6.31, 2.6.32 or 2.6.33'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7672378684458049612</id><published>2010-05-30T12:13:00.002+02:00</published><updated>2010-07-15T10:38:12.648+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Check a File System</title><content type='html'>To check a file system you can use the &lt;a href="http://en.wikipedia.org/wiki/Fsck"&gt;fsck&lt;/a&gt; command.&lt;br /&gt;For detailed information checking GNU/Linux &lt;a href="http://en.wikipedia.org/wiki/Ext2"&gt;ext2&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/Ext3"&gt;ext3&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/Ext4"&gt;ext4&lt;/a&gt; file system, you should use &lt;i style="color: blue;"&gt;&lt;b&gt;e2fsck&lt;/b&gt;&lt;/i&gt;.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To perform a simple check (if needed):&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;e2fsck /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To force a check, with progress information (even if the file system is regarded as clean):&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;e2fsck -f -C 0 /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To force a check, with progress information (even if the file system is  regarded as clean), and to have the most debug and statistics information:&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;e2fsck -f -C 0 -t -t -v /dev/sdaN &lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;To perform a check with automatic repairing and exit in case the command discovers a problem which may require system administrator to take additional corrective action:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;e2fsck -p /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To perform a check with automatic repairing, assuming 'yes' to ALL questions (must be used &lt;b&gt;carefully&lt;/b&gt;): &lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;e2fsck -y /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;N.B.:&lt;br /&gt;&amp;nbsp;- replace &lt;i style="color: blue;"&gt;&lt;b&gt;/dev/sdaN&lt;/b&gt;&lt;/i&gt; by the device  path you want to check&lt;br /&gt;&amp;nbsp;- corresponding device must NOT be mounted&lt;br /&gt;&amp;nbsp;- you can combine the debug/statistics and auto-repairing options&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7672378684458049612?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7672378684458049612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/05/check-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7672378684458049612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7672378684458049612'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/05/check-file-system.html' title='Check a File System'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7932769010710837643</id><published>2010-05-30T11:51:00.003+02:00</published><updated>2010-07-15T10:38:28.129+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Check badblocks on a device</title><content type='html'>If error occurs, strange behaviour or if SMART error are reported (Cf. &lt;a href="http://bertrandbenoit.blogspot.com/2009/07/manage-smart-disks.html"&gt;instructions&lt;/a&gt; to get report), you should check file System (see next post), including bad blocks.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;To have a report as soon as possible, you could focus on checking bad blocks at first.&lt;br /&gt;&lt;br /&gt;To perform a quick read-only check:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;badblocks -s /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To perform a non-destructive read-write check:&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;badblocks -ns /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;To perform a write check (destructive):&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;i&gt;&lt;b&gt;badblocks -ws /dev/sdaN&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;N.B.:&lt;br /&gt;&amp;nbsp;- the -s option is interesting to be notified about check  progress&lt;br /&gt;&amp;nbsp;- replace &lt;i style="color: blue;"&gt;&lt;b&gt;/dev/sdaN&lt;/b&gt;&lt;/i&gt; by the device path you want to check&lt;br /&gt;&amp;nbsp;- corresponding device must NOT be mounted (do NOT use the -f option !)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7932769010710837643?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7932769010710837643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/05/check-badblocks-on-device.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7932769010710837643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7932769010710837643'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/05/check-badblocks-on-device.html' title='Check badblocks on a device'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1735851912393791860</id><published>2010-04-23T18:43:00.002+02:00</published><updated>2010-04-23T20:08:19.333+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Migrate you URL nicknames from Opera to Firefox</title><content type='html'>Follow those instructions: &lt;br /&gt;&amp;nbsp;- under &lt;b&gt;Opera&lt;/b&gt;, export your bookmarks (e.g. to &lt;i&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;/tmp/bookmarks.adr&lt;/span&gt;&lt;/b&gt;&lt;/i&gt; file)&lt;br /&gt;&amp;nbsp;- into a console, parse the file like that :&lt;br /&gt;&lt;i&gt;cat &lt;b&gt;&lt;span style="color: blue;"&gt;/tmp/bookmarks.adr&lt;/span&gt;&lt;/b&gt; |tr -d '\n' |sed -e 's/#/\n/g;' |grep "SHORT NAME" |sed -e 's/.*URL=\([^ \t]*\)[ \t].*SHORT[ ]NAME=\([^ \t]*\)[ \t].*$/\2\t\1/g;' &amp;gt;&lt;/i&gt; &lt;i&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;/tmp/urlAlias.txt&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&amp;nbsp;- under &lt;b&gt;Firefox&lt;/b&gt;, go to Preferences of Url Alias add-on&lt;br /&gt;&amp;nbsp;- copy/paste contents of &lt;i&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;/tmp/urlAlias.txt&lt;/span&gt;&lt;/b&gt;&lt;/i&gt; in "Configuration" panel&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1735851912393791860?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1735851912393791860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/migrate-you-url-nicknames-from-opera-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1735851912393791860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1735851912393791860'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/migrate-you-url-nicknames-from-opera-to.html' title='Migrate you URL nicknames from Opera to Firefox'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-535075582770911238</id><published>2010-04-23T15:50:00.001+02:00</published><updated>2010-07-15T10:39:30.364+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Firefox add-ons providing more or less same Opera functionalities</title><content type='html'>Those are Firefox add-ons which fit more or less some Opera functionalities I found the most useful:&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&amp;nbsp; - reduce the GUI (hidden menu, not used buttons ...)&lt;br /&gt;Configuration: Show (only) "icons", and "Use small icons" &lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2324"&gt;Personal menu&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; - create nickname to bookmark and allow quick load&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/8703"&gt;url_alias&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- sessions system (set of opened URL and/or Web Browser windows) - save/load; automatic session load when starting Web Browser&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2324"&gt;Session Manager&amp;nbsp;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;- dictionary system while editing&lt;br /&gt;Embedded&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- speed dial&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/4810"&gt;SpeedDial&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;- "unwanted blocking system" (pop-ups, pubs, ...)&lt;br /&gt;Add-ons: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/722"&gt;noscript&lt;/a&gt; (very strict), &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1865"&gt;Adblock Plus&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- bookmarks synchronization&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/2410"&gt;Xmarks Bookmark and Password Sync&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;- download to various folder according to file extension&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/4781"&gt;Automatic Save Folder&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; - left multi-function panel (with the tiniest bar possible)&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1027"&gt;all-in-one_sidebar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There is some functionalities for which I've not found equivalent yet&lt;br /&gt;&amp;nbsp;- synchronization of speed dial, url_alias, blocked elements ... (and configuration ?) to share with other computers (anyway, it'd never fully worked with Opera under GNU/Linux -&amp;gt; usually duplicate entries creation by the synchronization process itself)&lt;br /&gt;&amp;nbsp;- per-site configuration (charset encoding, cookies, language ...)&lt;br /&gt;&amp;nbsp;- attach Javascript code to a button or a menu&lt;br /&gt;&lt;br /&gt;To conclude:&lt;br /&gt;&amp;nbsp; - something very interesting as compromise to automatic synchronization of almost everything : Full profile backup/restore system&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/fr/firefox/addon/2109"&gt;FEBE&lt;/a&gt;&lt;br /&gt;&amp;nbsp; - improved download notification system&lt;br /&gt;Add-on: &lt;a href="https://addons.mozilla.org/fr/firefox/addon/26"&gt;Download status bar&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-535075582770911238?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/535075582770911238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/firefox-add-ons-providing-more-or-less.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/535075582770911238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/535075582770911238'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/firefox-add-ons-providing-more-or-less.html' title='Firefox add-ons providing more or less same Opera functionalities'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7964963675345566714</id><published>2010-04-20T17:33:00.002+02:00</published><updated>2010-07-15T10:39:58.351+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Goodbye Opera, Welcome back my Beloved Firefox Web Browser</title><content type='html'>I'd used &lt;a href="http://www.opera.com/"&gt;Opera&lt;/a&gt; from May of 2008 to March of 2010, against my strong philosophy of open-source software use.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;The 9.x versions come with lots of improvements of GNU/Linux version, and then with a greater plug-ins support.&lt;br /&gt;At the time, Opera had got the greater efficiencies, greater standard respect and better result in some tests like &lt;a href="http://acid3.acidtests.org/"&gt;ACID&lt;/a&gt;.&lt;br /&gt;After months of use, I'd faced some issue (usually little ones but boring), for each one I'd reported a richly detailed bug.&lt;br /&gt;&lt;br /&gt;After (almost) 2 years of use, I can observe that:&lt;br /&gt;&amp;nbsp;- the GNU/Linux version of Opera still needs some improvements to better fit the OS components,&lt;br /&gt;&amp;nbsp;- the greatest and the more boring is - sometimes - an important resources use for no obvious reason, dropping down the performance of the whole computer,&lt;br /&gt;&amp;nbsp;- there is absolutely no visibility of reported bugs,&lt;br /&gt;&amp;nbsp;- I've never received any return of my - at least 10 - reported bugs (never corrected, never referenced into Release Notes, never contacted for further information request ...)&lt;br /&gt;&amp;nbsp;- they are late of 2 versions for GNU/Linux (although the "10.50 available shortly" mention is specified for month(s))&lt;br /&gt;&amp;nbsp;- since creation of Unite, obviously - according to resources - there is less effort done on the "browser part" evolution&lt;br /&gt;&amp;nbsp;- there is still some incompatibilities with "important"/useful WebSites like various &lt;a href="http://www.google.com/"&gt;Google&lt;/a&gt; services (gmail, blogger, documents ...), Bloglines ...&lt;br /&gt;&lt;br /&gt;Because of the impressive richness of the Web Browser, it can't be replaced by everything.&lt;br /&gt;&lt;br /&gt;During last 2 years, &lt;a href="http://www.mozilla.com/en-US/firefox"&gt;Firefox&lt;/a&gt; too has greatly evolved and lots of plug-ins too.&lt;br /&gt;I'll post various information to switch from Opera to Firefox with some compromises (instead of loss).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7964963675345566714?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7964963675345566714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/goodbye-opera-welcome-back-my-beloved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7964963675345566714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7964963675345566714'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/goodbye-opera-welcome-back-my-beloved.html' title='Goodbye Opera, Welcome back my Beloved Firefox Web Browser'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-308863418069928545</id><published>2010-04-20T16:11:00.000+02:00</published><updated>2010-04-20T16:11:10.030+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Flush a queue of e-mails</title><content type='html'>For various reasons it's possible that some e-mails are queued (for instance because of issue into an element of a &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html"&gt;full and safe emails server&lt;/a&gt; - e.g. too old packages, broken anti-virus, broken anti-spam ...).&lt;br /&gt;&lt;br /&gt;After having fixed the issue, it's interesting to flush all queued e-mails, which can easily be done with the following command:&lt;br /&gt;&lt;i style="color: blue;"&gt;&lt;b&gt;postqueue -f&lt;/b&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-308863418069928545?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/308863418069928545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/flush-queue-of-e-mails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/308863418069928545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/308863418069928545'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2010/04/flush-queue-of-e-mails.html' title='Flush a queue of e-mails'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3409731145367114356</id><published>2009-10-25T19:12:00.003+01:00</published><updated>2010-07-15T10:40:13.488+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Stop updating packages as often</title><content type='html'>When managing computer administration, there is a big trap to avoid: update the packages as soon as they are available.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;Yes, there is often bug fix or security improvement and it's very important; but it can also be some new functionalities and potentially some unfortunate regression.&lt;br /&gt;When such regression strikes one software/tool, it can generally be fixed (at worst downgrading to the previous version); but when it strikes the operating system or the graphical system, it becomes very boring, frustrating and sometimes very difficult to fix.&lt;br /&gt;&lt;br /&gt;So instead of constantly updating packages, it seems better to be informed, see if we are concerned by fixed bug, security issues or if we need the new functionalities.&lt;br /&gt;This way, there is more chance the regarded computer will work better and longer with less service interrupt.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3409731145367114356?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3409731145367114356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/10/stop-updating-packages-as-often.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3409731145367114356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3409731145367114356'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/10/stop-updating-packages-as-often.html' title='Stop updating packages as often'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6838645971550329993</id><published>2009-10-25T18:50:00.003+01:00</published><updated>2010-07-15T10:41:17.085+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Stop polling for incoming e-mails</title><content type='html'>Unfortunately, it seems there are lots of us (computer users) polling for incoming e-mails very, very often; like if a very important thing might be received and to be answered almost immediately.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;It can be a very important efficiency loss, because the user cannot focus on his current task.&lt;br /&gt;Although that seems obvious, I've recently realized that it was also my case only after having read an interesting article about that.&lt;br /&gt;&lt;br /&gt;Since some weeks, I've seriously changed my way to manage incoming e-mails:&lt;br /&gt;- no more polling&lt;br /&gt;- I've disabled all kind of notification of my e-mailer (no more popup which can be disturbing)&lt;br /&gt;- I've disabled the automatic "read mark" to remove the pressure to answer as soon as possible when I finally check my e-mails.&lt;br /&gt;&lt;br /&gt;It's little things but at the end it gives interesting results.&lt;br /&gt;Yes, I answer e-mails later, but there is no dead, no fire, no tsunami,  no storm ... and among all others, it gives me more opportunity to focus on my work, and so to be more efficient.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6838645971550329993?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6838645971550329993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/10/stop-polling-for-incoming-e-mails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6838645971550329993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6838645971550329993'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/10/stop-polling-for-incoming-e-mails.html' title='Stop polling for incoming e-mails'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1822601084030039967</id><published>2009-09-18T10:07:00.004+02:00</published><updated>2010-07-15T10:41:49.492+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Help ! rpm or yum freezes</title><content type='html'>&lt;div style="text-align: justify;"&gt;Sometimes, &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;rpm&lt;/span&gt;, &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;yum&lt;/span&gt; or even other commands are freezing without message to understand why (e.g. for yum, just after the message "&lt;span style="font-style: italic;"&gt;Running Transaction Test&lt;/span&gt;").&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;Almost each time I've seen that, it was caused by broken mount (usually network ones, when the server at the other side has failed, or has restarted).&lt;br /&gt;&lt;/div&gt;To check it:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;mount&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;If you see some network mount points you do not need anymore, or you're not sure about, umount them.&lt;br /&gt;If they are broken or if the system wrongly thinks it is busy you can use the &lt;span style="font-style: italic;"&gt;-l&lt;/span&gt; option (for lazy) to ensure the umount - in fact the system won't fully perform the umount but it will clean the list of mounted point, such a way the launched commands won't freeze anymore.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;For instance, to umount (lazy) a broken mount point &lt;span style="font-style: italic;"&gt;/mnt/myMountPoint&lt;/span&gt;:&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;mount -l /mnt/myMountPoint&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1822601084030039967?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1822601084030039967/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/09/help-rpm-or-yum-freezes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1822601084030039967'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1822601084030039967'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/09/help-rpm-or-yum-freezes.html' title='Help ! rpm or yum freezes'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7217687053888981795</id><published>2009-07-28T09:41:00.009+02:00</published><updated>2010-07-15T10:42:22.905+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Compile LZO, TUN and OpenVPN under Solaris 64bits (revised)</title><content type='html'>(This post is a revision of &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/compile-openvpn-and-tun-under-solaris.html"&gt;this one&lt;/a&gt; for Solaris 64bits, and in accordance with new source code versions).&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It is possible to get LZO, OpenVPN and TUN under Solaris, compiling the source code.&lt;br /&gt;Because of some compatibility issues, it is not as easy as it can be thought.&lt;br /&gt;&lt;br /&gt;You can follow those steps to get openvpn executable under Solaris:&lt;br /&gt;- ensure GNU gcc and make are installed&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;pkg install SUNWgcc&lt;/span&gt;&lt;br /&gt;- download the &lt;a href="http://www.oberhumer.com/opensource/lzo/download/"&gt;LZO source code&lt;/a&gt; and uncompress it under &lt;span style="font-style: italic;"&gt;[LZO_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- download the &lt;a href="http://vtun.sourceforge.net/tun/"&gt;TUN source code&lt;/a&gt; and uncompress it under &lt;span style="font-style: italic;"&gt;[TUN_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- download the &lt;a href="http://openvpn.net/download.html"&gt;openVPN source code&lt;/a&gt; and uncompress it under &lt;span style="font-style: italic;"&gt;[OPENVPN_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- update the path for all needed tools (&lt;span style="font-style: italic;"&gt;gcc&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;gmake&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;install&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;ar ...&lt;/span&gt;) to be available&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;export PATH=/usr/sfw/bin:/usr/ucb/:/usr/ccs/bin:/usr/sbin:/usr/bin:$PATH&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- compile &lt;span style="font-weight: bold;"&gt;LZO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;cd  &lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;[LZO_DIRECTORY]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;./configure --libdir=/usr/local/lib&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;- configure &lt;span style="font-weight: bold;"&gt;TUN&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;&lt;br /&gt;cd [TUN_DIRECTORY]&lt;br /&gt;./configure&lt;br /&gt;&lt;/span&gt;- edit solaris/Makefile to add options as followed&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;CFLAGS = -m64 -mcmodel=kernel -mno-red-zone -ffreestanding $(DEFS) -O2 -Wall -D_KERNEL -I.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;- compile TUN (ignore the error "&lt;span style="font-style: italic;"&gt;Warning: 64-bit version of driver found at /usr/kernel/drv/tun&lt;/span&gt;")&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;make install&lt;/span&gt;&lt;br /&gt;- move the created &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;tun&lt;/span&gt; file (to be regarded as 64bits)&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;mv /usr/kernel/drv/tun /usr/kernel/drv/amd64/&lt;/span&gt;&lt;br /&gt;- load it&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;devfsadm -i tun&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;- compile &lt;span style="font-weight: bold;"&gt;OpenVPN&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold; font-style: italic;"&gt;cd [OPENVPN_DIRECTORY]&lt;br /&gt;./configure --with-lzo-lib=/usr/local/lib --with-lzo-headers=/usr/local/include --prefix=/usr&lt;br /&gt;make&lt;br /&gt;make install&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It is now possible to use LZO, OpenVPN and TUN under Solaris.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7217687053888981795?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7217687053888981795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/compile-lzo-openvpn-and-tun-under.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7217687053888981795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7217687053888981795'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/compile-lzo-openvpn-and-tun-under.html' title='Compile LZO, TUN and OpenVPN under Solaris 64bits (revised)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8547845480464472138.post-6829116409147216688</id><published>2009-07-19T14:45:00.004+02:00</published><updated>2010-07-15T10:42:47.896+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Master your installed tools</title><content type='html'>Sometimes, we use tools from so long time that we don't know/care/remember where it comes from.&lt;br /&gt;It is particularly true for system tools (e.g. mount, fsck, tune2fs, ls...).&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To get such information, installed RPM packages can be requested (like explained in &lt;a href="http://bertrandbenoit.blogspot.com/2008/02/request-rpm-packages-redhat-like.html"&gt;this article&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;For instance, to get information about the package providing the mount tool (under GNU/Bash):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -qfi $( which mount)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, to see what other tools are provided by this package, check the list of provided files:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -qfil $( which mount)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usually, using those instructions help &lt;span style="font-weight: bold;"&gt;master&lt;/span&gt;ing installed tools, and to discover some you don't use &lt;span style="font-weight: bold;"&gt;yet&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6829116409147216688?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6829116409147216688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/master-your-installed-tools.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6829116409147216688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6829116409147216688'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/master-your-installed-tools.html' title='Master your installed tools'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7853423936637960118</id><published>2009-07-19T14:37:00.004+02:00</published><updated>2010-07-15T10:43:10.667+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Create a specific user for MySQL Database backup</title><content type='html'>For security reasons, it is interesting to create a specific user for MySQL Database backup with the less privileges possible.&lt;br /&gt;In fact, only &lt;span style="font-weight: bold; font-style: italic;"&gt;LOCK TABLES&lt;/span&gt; and &lt;span style="font-weight: bold; font-style: italic;"&gt;SELECT&lt;/span&gt; privileges are requested to use mysqldump.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So it is enough to use the following SQL query:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;GRANT LOCK TABLES, SELECT ON XXX.* TO 'YYY'@'localhost' IDENTIFIED BY 'ZZZ';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;GRANT LOCK TABLES, SELECT ON XXX.* TO 'YYY'@'localhost.localdomain' IDENTIFIED BY 'ZZZ';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;FLUSH PRIVILEGES;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With variables:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;XXX&lt;/span&gt;: the database name&lt;br /&gt;&lt;span style="font-style: italic;"&gt;YYY&lt;/span&gt;: the specific backup user login&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ZZZ&lt;/span&gt;: the specific backup user password&lt;br /&gt;&lt;br /&gt;The following instruction allows full backup with this limited privileges user:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;mysqldump -u "YYY" --password="ZZZ" --all-databases &gt; /path/to/my/dump/file&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7853423936637960118?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7853423936637960118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/create-specific-user-for-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7853423936637960118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7853423936637960118'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/create-specific-user-for-mysql-database.html' title='Create a specific user for MySQL Database backup'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7090592355677245399</id><published>2009-07-14T15:34:00.003+02:00</published><updated>2009-07-14T16:13:50.249+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Manage SMART disks</title><content type='html'>Modern hard disks (from ATA-3 and SCSI-3) provide built-in system called &lt;a href="http://en.wikipedia.org/wiki/Self-Monitoring,_Analysis_and_Reporting_Technology"&gt;SMART&lt;/a&gt; (for Self-Monitoring, Analysis and Reporting Technology).&lt;br /&gt;&lt;br /&gt;&lt;a href="http://smartmontools.sourceforge.net/"&gt;smartmontools&lt;/a&gt; provides two utility programs (smartctl and smartd) to control and monitor storage systems using SMART.&lt;br /&gt;&lt;br /&gt;It can be installed in RedHat-like systems using yum (&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;yum install smartmontools&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;To get "general" &lt;span style="font-weight: bold;"&gt;Info&lt;/span&gt; like device model number, serial number, firmware version... (e.g. /dev/sda):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -i /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get &lt;span style="font-weight: bold;"&gt;Health Status&lt;/span&gt; of a device - for instance for predicting its own failure within the next 24  hours (e.g. /dev/sda):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -H /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get &lt;span style="font-weight: bold;"&gt;SMART Attributes&lt;/span&gt; of a device (e.g. /dev/sda):&lt;br /&gt; &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -A /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get &lt;span style="font-weight: bold;"&gt;SMART Capabilities&lt;/span&gt; of a device (e.g. /dev/sda):&lt;br /&gt;  &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -c /dev/sda&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;To get &lt;span style="font-weight: bold;"&gt;error information&lt;/span&gt; of a device (e.g. /dev/sda):&lt;br /&gt;   &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -l error /dev/sda&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To get all those information and even more about a device (e.g. /dev/sda):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -a /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-weight: bold; font-style: italic;"&gt;smartctl&lt;/span&gt; command allows launching some tests.&lt;br /&gt;For instance to launch a short test:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -t short /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get progress and result information:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;smartctl -l selftest /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://smartmontools.sourceforge.net/man/smartctl.8.html"&gt;smartctl MAN page&lt;/a&gt; for further information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7090592355677245399?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7090592355677245399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/manage-smart-disks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7090592355677245399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7090592355677245399'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/manage-smart-disks.html' title='Manage SMART disks'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2330449736402810750</id><published>2009-07-14T15:25:00.002+02:00</published><updated>2009-07-14T15:34:17.833+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Remount a read-only mounted partition</title><content type='html'>In some cases (kind of maintenance mode for instance), partitions can be read-only mounted, and the situation stays the same after operations (like fsck) and reboot.&lt;br /&gt;&lt;br /&gt;For instance, it can happen if the system is wrongly configured, forcing the fsch of unknown (or removed) devices.&lt;br /&gt;&lt;br /&gt;To leave such end-less situation, it is possible to remount a read-only mounted partition, which can not be umounted (like /), to update configuration and then get a working boot:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(102, 51, 255);"&gt;mount -n -o remount,rw /mountPoint&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The -n option allows to request the mount without attempting to write on the disk (which is obviously not possible on read-only mounted partition).&lt;br /&gt;The -o option allows updating mount options (same syntax than when mounting the partition the "first" time)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2330449736402810750?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2330449736402810750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/remount-read-only-mounted-partition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2330449736402810750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2330449736402810750'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/07/remount-read-only-mounted-partition.html' title='Remount a read-only mounted partition'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8428845950896649822</id><published>2009-04-06T11:09:00.005+02:00</published><updated>2010-07-16T10:01:15.608+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Install 64 bits Java plug-in for Opera 64 bits under GNU/Linux</title><content type='html'>Since &lt;a href="http://java.sun.com/"&gt;SUN jdk 6 update 10&lt;/a&gt;, a &lt;a href="http://java.sun.com/javase/6/6u10faq.jsp#NewPlugIn"&gt;new generation plug-in&lt;/a&gt; is provided.&lt;br /&gt;This is &lt;a href="https://jdk6.dev.java.net/plugin2"&gt;an article with&lt;/a&gt; giving lots of information.&lt;br /&gt;To install it under Opera 64 bit, add the &lt;span style="color: #3366ff; font-style: italic; font-weight: bold;"&gt;[jdk_installation_dir]/jre/lib/amd64/ &lt;/span&gt;under the plug-ins path definition (&lt;span style="font-style: italic;"&gt;Tools-&amp;gt; preferences-&amp;gt; advanced-&amp;gt; contents-&amp;gt; plug-ins options-&amp;gt; change path-&amp;gt; add&lt;/span&gt;). The corresponding library is &lt;span style="color: #3366ff; font-style: italic; font-weight: bold;"&gt;libnpjp2.so&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;You can check your installation with this &lt;a href="http://www.java.com/en/download/help/testvm.xml"&gt;site applet&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8428845950896649822?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8428845950896649822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/04/install-64-bits-java-plug-in-for-opera.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8428845950896649822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8428845950896649822'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/04/install-64-bits-java-plug-in-for-opera.html' title='Install 64 bits Java plug-in for Opera 64 bits under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4585552326163989651</id><published>2009-03-13T11:04:00.003+01:00</published><updated>2010-07-07T16:56:40.122+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Install VMWare-server v1.x under kernel 2.6.27 or 2.6.28</title><content type='html'>To install VMWare-server v1.x under kernel &lt;span style="font-weight: bold;"&gt;2.6.27&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;2.6.28&lt;/span&gt;, use the &lt;a href="http://www.insecure.ws/2008/10/20/vmware-specific-specific-55x-and-kernel-2627"&gt;following patch&lt;/a&gt; (the vmware-any-any-update115 does not work from this kernel version).&lt;br /&gt;&lt;br /&gt;For x86_64 architecture, there may be a lock problem while launching VMware-server, ending with following final error message:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;vmware: xcb_lock.c :77 : _XGetXCBBuffer:  L'assertion « ((int) ((xcb_req) - (dpy-&amp;gt;request)) &amp;gt;= 0) » a échoué.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To solve this issue, install the &lt;span style="font-style: italic; font-weight: bold;"&gt;gtk-nodoka-engine.i386&lt;/span&gt; package (and needed packages).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4585552326163989651?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4585552326163989651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/install-vmware-server-v1x-under-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4585552326163989651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4585552326163989651'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/install-vmware-server-v1x-under-kernel.html' title='Install VMWare-server v1.x under kernel 2.6.27 or 2.6.28'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8329876380274996235</id><published>2009-03-02T20:38:00.006+01:00</published><updated>2010-07-12T11:57:16.358+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Install Windows after GNU/Linux on the same hard disk</title><content type='html'>There can be various issues when attempting to install Windows on which is installed a GNU/Linux distribution.&lt;br /&gt;One of the more subtle is &lt;span style="font-style: italic; font-weight: bold;"&gt;hardware detection problem&lt;/span&gt; which can occur after the first second while Windows installation CD is booting (See this &lt;a href="http://forums.fedoraforum.org/showthread.php?t=167302"&gt;interesting post&lt;/a&gt; which gives some explanations in specific cases).&lt;br /&gt;&lt;br /&gt;It can be the case if there is a dedicated &lt;span style="font-weight: bold;"&gt;boot partition&lt;/span&gt; for GNU/Linux.&lt;br /&gt;The solution is to temporarily delete the partition, perform the Windows installation, restore the partition, and finally restore the &lt;span style="font-weight: bold;"&gt;MBR&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Those are some instructions to help you solving this issue.&lt;br /&gt;The variables of this example are:&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;/dev/sda&lt;/span&gt; the main hard disk,&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;/dev/sdaN&lt;/span&gt; the boot partition (ext3) &lt;span style="font-style: italic;"&gt;before deletion&lt;/span&gt; (corresponds to hd0,N-1 for bootloader)&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;CF&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;CL&lt;/span&gt; the first and last &lt;span style="font-style: italic; font-weight: bold;"&gt;cylinders&lt;/span&gt; of the /dev/sdaN partition (given by &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;fdisk -l&lt;/span&gt;)&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;/dev/sdaM&lt;/span&gt; the boot partition &lt;span style="font-style: italic;"&gt;after restore&lt;/span&gt; (corresponds to hd0,M-1 for bootloader)&lt;br /&gt;- grub as bootloader&lt;br /&gt;&lt;br /&gt;Instructions:&lt;br /&gt;- backup your /boot/grub/grub.conf&lt;br /&gt;- backup your boot partition into a file&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;dd if=/dev/sdaN of=/tmp/boot.bin&lt;/span&gt;&lt;br /&gt;- temporarily delete the partition&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;fdisk /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;d&lt;/span&gt; (to delete partition)&lt;br /&gt;select the partition number (&lt;span style="font-style: italic; font-weight: bold;"&gt;N&lt;/span&gt; in this instance)&lt;br /&gt;- perform the Windows installation&lt;br /&gt;- boot with a GNU/Linux Rescue or Live CD of your choice&lt;br /&gt;- restore the partition&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;fdisk /dev/sda&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;n&lt;/span&gt; (to add new partition)&lt;br /&gt;specify &lt;span style="font-weight: bold;"&gt;CF&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;CL&lt;/span&gt; as first and last &lt;span style="font-weight: bold;"&gt;cylinders&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- use &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;fdisk -l&lt;/span&gt; to identify the new partition number, in case it has changed (M in our case)&lt;br /&gt;- format it&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;mkfs.ext3 -L boot /dev/sdaM&lt;/span&gt;&lt;br /&gt;- restore your boot partition&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;dd if=/tmp/boot.bin of=/dev/sdaM&lt;/span&gt;&lt;br /&gt;- remove/rename the /boot folder of the launched GNU/Linux Rescue or Live CD instance&lt;br /&gt;- mount your boot partition&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;mkdir /boot&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;mount -t ext3 /dev/sdaM /boot&lt;/span&gt;&lt;br /&gt;- edit the /boot/grub/grub.conf file to replace &lt;span style="font-style: italic; font-weight: bold;"&gt;hd0,N-1&lt;/span&gt; by &lt;span style="font-style: italic; font-weight: bold;"&gt;hd0,M-1&lt;/span&gt;&lt;br /&gt;- &lt;a href="http://bertrandbenoit.blogspot.com/2009/03/restore-master-boot-record-mbr-with.html"&gt;restore the MBR&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8329876380274996235?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8329876380274996235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/install-windows-after-gnulinux-on-same.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8329876380274996235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8329876380274996235'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/install-windows-after-gnulinux-on-same.html' title='Install Windows after GNU/Linux on the same hard disk'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6838487853373924654</id><published>2009-03-02T19:02:00.009+01:00</published><updated>2010-07-12T12:22:53.010+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='StorageHardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Restore Master Boot Record (MBR) with grub</title><content type='html'>In case your MBR is broken, those are some instructions to help you restore it.&lt;br /&gt;&lt;br /&gt;The variables of this example are:&lt;br /&gt;- /dev/sda the master hard disk,&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;/dev/sdaM&lt;/span&gt; the ext3 boot partition (corresponds to &lt;span style="font-weight: bold;"&gt;hd0,M-1&lt;/span&gt; for bootloader)&lt;br /&gt;- &lt;span style="font-style: italic; font-weight: bold;"&gt;grub&lt;/span&gt; as bootloader&lt;br /&gt;&lt;br /&gt;Instructions:&lt;br /&gt;- boot with a GNU/Linux Rescue or Live CD of your choice&lt;br /&gt;- remove/rename the /boot folder of the launched GNU/Linux Rescue or Live CD instance&lt;br /&gt;- mount your &lt;span style="font-weight: bold;"&gt;boot partition&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;mkdir /boot&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;mount -t ext3 /dev/sdaM /boot&lt;/span&gt;&lt;br /&gt;- restore the MBR&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;grub&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;root (hd0,M-1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;setup (hd0,M-1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;quit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #3333ff; font-weight: bold;"&gt;grub-install /dev/sda&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6838487853373924654?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6838487853373924654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/restore-master-boot-record-mbr-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6838487853373924654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6838487853373924654'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/03/restore-master-boot-record-mbr-with.html' title='Restore Master Boot Record (MBR) with grub'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8724063000694937339</id><published>2009-01-24T18:27:00.003+01:00</published><updated>2009-03-02T18:59:17.524+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Make some of your log files rotate and compress</title><content type='html'>&lt;p&gt;&lt;strong&gt;logrotate&lt;/strong&gt; is a very useful and powerful tool.&lt;/p&gt;&lt;p&gt;To make some of your log files to be rotated and compressed, create a new configuration file into the logrotate "include" directory (usually &lt;em&gt;/etc/logrotate.d&lt;/em&gt;), and add the rotate/compress rule:&lt;br /&gt;&lt;/p&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;em&gt;&lt;strong&gt;/var/log/XXX.log {&lt;br /&gt;    rotate 3&lt;br /&gt;    weekly&lt;br /&gt;    compress&lt;br /&gt;    size 1M&lt;br /&gt;    create 0640 myUser myGroup&lt;br /&gt;}&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this example, the log will go through &lt;em&gt;three&lt;/em&gt; weekly rotations before being removed. There can be rotations if the size exceeds &lt;em&gt;1MB&lt;/em&gt;.&lt;br /&gt;Rotated files will be &lt;em&gt;compressed&lt;/em&gt;.&lt;br /&gt;New empty file (after rotation) will be created with "&lt;em&gt;0640&lt;/em&gt;" mode, and &lt;em&gt;myUser:myGroup&lt;/em&gt; ownership.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8724063000694937339?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8724063000694937339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/make-some-of-your-log-files-to-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8724063000694937339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8724063000694937339'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/make-some-of-your-log-files-to-be.html' title='Make some of your log files rotate and compress'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5743336655016639526</id><published>2009-01-18T12:37:00.008+01:00</published><updated>2009-01-18T14:07:10.015+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>Replace courier-imap by dovecot for emails server under GNU/Linux</title><content type='html'>The &lt;a href="http://www.courier-mta.org/"&gt;courier-imap&lt;/a&gt; package, and linked packages, have been replaced by &lt;a href="http://www.dovecot.org/"&gt;dovecot&lt;/a&gt; from Fedora 8 (or earlier).&lt;br /&gt;Anyway, it's still possible to maintain mailboxes part of your &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html"&gt;full and secured GNU/Linux emails server&lt;/a&gt;, compiling the source code of courier-imap.&lt;br /&gt;&lt;br /&gt;If you still want to benefit from up-to-date package, using &lt;a href="http://yum.baseurl.org/"&gt;yum&lt;/a&gt; or if you want a more secured system, you should migrate to &lt;span style="font-weight: bold;"&gt;dovecot&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To begin, there is a &lt;a href="http://wiki.dovecot.org/Migration/Courier"&gt;tool&lt;/a&gt; allowing to migrate "metadata" from &lt;span style="font-weight: bold;"&gt;courier-imap&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;dovecot&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;This is how to configure &lt;span style="font-weight: bold;"&gt;dovecot&lt;/span&gt; editing the &lt;span style="color: rgb(51, 51, 255); font-style: italic; font-weight: bold;"&gt;/etc/dovecot.conf&lt;/span&gt; file, according to the configuration of the &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html"&gt;full and secured GNU/Linux emails server&lt;/a&gt;:&lt;br /&gt;- define clearly what protocols you want to avoid wasting resources and potential security hole (See &lt;a href="http://bertrandbenoit.blogspot.com/2008/02/updating-courier-imap-configuration.html"&gt;this post&lt;/a&gt; for equivalent for courier)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;protocols = pop3 pop3s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- define the certificate and the key to use (can be the same of the smtp server)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_cert_file = /etc/postfix/smtpd.cert&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ssl_key_file = /etc/postfix/smtpd.key&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- define the mail location&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail_location = maildir:/home/vmail/%d/%n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- define the mail UID, GID and the privileged group:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail_uid = 5000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail_gid = 5000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail_privileged_group = vmail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- comment the imap or pop3 begin/end line according to your needs&lt;br /&gt;&lt;br /&gt;- specify pop3 UIDL format for it to be compatible with the existing courier metadat&lt;br /&gt;&lt;span style="font-style: italic;"&gt;pop3_uidl_format = %u-%v&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- specify the mechanisms into the &lt;span style="font-weight: bold; font-style: italic;"&gt;auth default&lt;/span&gt; part&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mechanisms = plain login&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- comment all lines corresponding to auth you do not want (like for pam for instance)&lt;br /&gt;&lt;br /&gt;- specify path of ONE specific file (you will create) to request the SQL database to get password and user information in the same request (optimization) (respect the order which is important, "userdb prefetch" must be before "userdb sq" part)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;passdb sql {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    args = /etc/dovecot-mysql.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;userdb prefetch {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;userdb sql {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;    args = /etc/dovecot-mysql.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;  }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- create a file with SQL query and connect information (/etc/dovecot-mysql.conf), replacing mail, admin and XXX with your corresponding databse name, privileged user login and password (&lt;span style="font-style: italic;"&gt;default_pass_scheme&lt;/span&gt; is very important and must be defined according to the function used when adding password to database; in this case it correspond to the &lt;span style="font-style: italic; font-weight: bold;"&gt;ENCRYPT&lt;/span&gt; function):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;## /etc/dovecot-mysql.conf contents ##&lt;/span&gt;&lt;br /&gt;driver = mysql&lt;br /&gt;default_pass_scheme = &lt;span style="font-weight: bold; font-style: italic;"&gt;CRYPT&lt;/span&gt;&lt;br /&gt;connect = host=localhost dbname=&lt;span style="font-weight: bold; font-style: italic;"&gt;mail&lt;/span&gt; user=&lt;span style="font-weight: bold; font-style: italic;"&gt;admin&lt;/span&gt; password=&lt;span style="font-weight: bold; font-style: italic;"&gt;XXX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# Extended request allowing to get password and all user information at same time.&lt;br /&gt;password_query = SELECT password, '/home/vmail/%d/%n' as userdb_home, 'maildir:/home/vmail/%d/%n' as userdb_mail, 5000 AS userdb_uid, 5000 AS userdb_gid, concat('dirsize:storage=',quota) AS userdb_quota FROM users WHERE email = '%u'&lt;br /&gt;&lt;br /&gt;# Used only for deliver (see LDA).&lt;br /&gt;user_query = SELECT '/home/vmail/%d/%n' as home, 'maildir:/home/vmail/%d/%n' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=',quota) AS quota FROM users WHERE email ='%u'&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;## /etc/dovecot-mysql.conf contents ##&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- (facultative) activate debug information in case something goes wrong&lt;br /&gt;&lt;span style="font-style: italic;"&gt;mail_debug = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auth_debug = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;auth_debug_passwords = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- restart the dovecot service&lt;br /&gt;&lt;span style="font-style: italic;"&gt;service dovecot restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- attempts to connect to your imap/pop server with your favorite email client, checking the log file (default is /var/log/maillog)&lt;br /&gt;&lt;br /&gt;- (facultative) disabled debug information if no more needed&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5743336655016639526?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5743336655016639526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/replace-courier-imap-by-dovecot-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5743336655016639526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5743336655016639526'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/replace-courier-imap-by-dovecot-for.html' title='Replace courier-imap by dovecot for emails server under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-727513084026778936</id><published>2009-01-18T12:18:00.002+01:00</published><updated>2009-01-18T12:30:36.071+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade GNU/Linux Fedora from 8 to 9, then 10</title><content type='html'>To upgrade GNU/Linux Fedora from 8 to 9, then 10, there is no problem.&lt;br /&gt;It is easier than previous upgrade, and there is less kind of issue.&lt;br /&gt;&lt;br /&gt;The principle is globally the same when upgrading from Fedora core N to Fedora core N+1 (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html"&gt;this post&lt;/a&gt;), from Fedora core 6 to Fedora 7 then 8 (see &lt;a href="http://bertrandbenoit.blogspot.com/2008/02/upgrade-gnulinux-fedora-from-core-6-to.html"&gt;this post&lt;/a&gt;), or from  Fedora 7 to Fedora 8 (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html"&gt;this post&lt;/a&gt;).&lt;br /&gt;In addition, the &lt;a href="http://fedoraproject.org/wiki/YumUpgradeFaq#head-95a2ac1207272256325354f5ebb0b9cc05511d7a"&gt;recommendations&lt;/a&gt; of &lt;a href="http://fedoraproject.org/"&gt;Fedora project&lt;/a&gt; have greatly evolved and seem now complete.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Upgrade from Fedora 8 to Fedora 9:&lt;/span&gt;&lt;br /&gt;- do not forget to clean all the yum metadata with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum clean all&lt;/span&gt;,&lt;br /&gt;- upgrade the Fedora release:&lt;br /&gt;&lt;code style="color: rgb(51, 102, 255); font-weight: bold; font-style: italic;"&gt;rpm -Uvh &lt;a href="ftp://download.fedora.redhat.com/pub/fedora/linux/updates/9/i386.newkey/fedora-release-*.noarch.rpm" class="external free" title="ftp://download.fedora.redhat.com/pub/fedora/linux/updates/9/i386.newkey/fedora-release-*.noarch.rpm"&gt;ftp://download.fedora.redhat.com/pub/fedora/linux/updates/9/i386.newkey/fedora-release-*.noarch.rpm&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;- upgrade your repository if needed (N.B.: livna has now merged into &lt;a href="http://rpmfusion.org/"&gt;RPM fusion&lt;/a&gt;)&lt;br /&gt;- remove and reinstall &lt;span style="font-style: italic; font-weight: bold;"&gt;thunderbird&lt;/span&gt; to avoid specific issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Upgrade from Fedora 9 to Fedora 10:&lt;/span&gt;&lt;br /&gt;- do not forget to clean all the yum metadata with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum clean all&lt;/span&gt;,&lt;br /&gt;- upgrade the Fedora release:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;rpm -Uvh &lt;/span&gt;&lt;code&gt; &lt;a href="ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-*.noarch.rpm" class="external free" title="ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-*.noarch.rpm"&gt;ftp://download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/i386/os/Packages/fedora-release-*.noarch.rpm&lt;/a&gt;&lt;/code&gt;&lt;br /&gt;- Be careful if you have RAID, there is an &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=476818"&gt;important issue&lt;/a&gt; which may prevent the OS from booting properly&lt;br /&gt;&lt;br /&gt;Ensure there is no dependencies problem like explained into &lt;a href="http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html"&gt;this post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Then, you should perform a great configuration files merging campaign to ensure having the up to date functionalities while keeping your own specific configuration (globally the XXX.conf and XXX.conf.rpmnew files).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-727513084026778936?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/727513084026778936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/upgrade-gnulinux-fedora-from-8-to-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/727513084026778936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/727513084026778936'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/upgrade-gnulinux-fedora-from-8-to-9.html' title='Upgrade GNU/Linux Fedora from 8 to 9, then 10'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-9022743711300116865</id><published>2009-01-18T11:37:00.003+01:00</published><updated>2009-01-18T12:08:39.899+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Have a quick look on installed packages providing services</title><content type='html'>Sometimes, it is interesting to have a quick look on installed packages providing services to check if there is possibility to &lt;span style="font-weight: bold;"&gt;clean unused packages&lt;/span&gt;, or to disable (temporary or not) services which are not used and which are so &lt;span style="font-weight: bold;"&gt;wasting resources&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To get information about installed packages providing services (excluding inet and xinet) which are NEVER started (and so may be removed):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;for service in $( chkconfig --list |grep "1:" |grep -v "on" |awk '{print $1}' ); do rpm -qi "$( rpm -qf /etc/init.d/$service )"; done |less&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important:&lt;br /&gt;- some packages provide several services so it can appear several times with this simple command&lt;br /&gt;- before removing such a package, it is important to ensure it is not providing something you need (libraries, tools, various files ...)&lt;br /&gt;- you may use something else than "&lt;span style="font-weight: bold; font-style: italic;"&gt;on&lt;/span&gt;" according to your OS language&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To get information about installed packages providing services (excluding inet and xinet) which are started (and so using resources):&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;for service in $( chkconfig --list |grep "5:on" |awk '{print $1}' ); do rpm -qi "$( rpm -qf /etc/init.d/$service )"; done |less&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important:&lt;br /&gt;- some packages provide several services so it can appear several times with this simple command&lt;br /&gt;- you can perform this check with every runlevel replacing "&lt;span style="font-weight: bold; font-style: italic;"&gt;5&lt;/span&gt;" by anything else&lt;br /&gt;- you may use something else than "&lt;span style="font-weight: bold; font-style: italic;"&gt;on&lt;/span&gt;" according to your OS language&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-9022743711300116865?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/9022743711300116865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/have-quick-look-on-installed-packages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9022743711300116865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9022743711300116865'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2009/01/have-quick-look-on-installed-packages.html' title='Have a quick look on installed packages providing services'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6826133255143623406</id><published>2008-05-31T13:37:00.003+02:00</published><updated>2008-05-31T13:46:44.449+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Musics'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Launch Jack Audio Connection Kit daemon with realtime scheduling</title><content type='html'>Today, it is very simple to launch the &lt;a href="http://www.jackaudio.org/"&gt;Jack Audio Connection Kit&lt;/a&gt; daemon with &lt;span style="font-weight: bold;"&gt;realtime&lt;/span&gt; scheduling, with a no-root user.&lt;br /&gt;When Jack Audio Connection Kit is installed, it adds specific "limit" to &lt;span style="font-weight: bold; font-style: italic;"&gt;jackuser&lt;/span&gt; group, into  &lt;a href="http://www.us.kernel.org/pub/linux/libs/pam/index.html"&gt;Pluggable Authentication Modules&lt;/a&gt; (pam).&lt;br /&gt;Cf. the &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/etc/security/limits.conf&lt;/span&gt; file.&lt;br /&gt;&lt;br /&gt;So the only need is to add the user which must need to launch the Jack Audio Connection Kit daemon with &lt;span style="font-weight: bold;"&gt;realtime&lt;/span&gt; scheduling into the  &lt;span style="font-weight: bold; font-style: italic;"&gt;jackuser&lt;/span&gt; group:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/usr/sbin/usermod -G jackuser "username"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, use the -R option when launching Jack Audio Connection Kit daemon:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;jackd -R ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;N.B.: those instructions have been performed (at least) under Fedora 8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6826133255143623406?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6826133255143623406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/launch-jack-audio-connection-kit-daemon.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6826133255143623406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6826133255143623406'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/launch-jack-audio-connection-kit-daemon.html' title='Launch Jack Audio Connection Kit daemon with realtime scheduling'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1287857692846820569</id><published>2008-05-31T13:26:00.007+02:00</published><updated>2008-05-31T13:48:26.935+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Musics'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Use MIDI software "soundfonts mapping"</title><content type='html'>This is a quick "how to", to use softwares installed like explained on &lt;a href="http://bertrandbenoit.blogspot.com/2008/05/install-midi-software-soundfonts.html"&gt;this post&lt;/a&gt;:&lt;br /&gt;- launch &lt;a href="http://www.jackaudio.org/"&gt;Jack Audio Connection Kit&lt;/a&gt; daemon with options according to your configuration (let's said you are using ALSA)&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;jackd -R -d alsa&lt;/span&gt;&lt;br /&gt;The -R option is used for "real-time", I explain it into &lt;a href="http://bertrandbenoit.blogspot.com/2008/05/launch-jack-audio-connection-kit-daemon.html"&gt;my next post&lt;/a&gt;.&lt;br /&gt;- launch a &lt;a href="http://www.fluidsynth.org/"&gt;fluidsynth&lt;/a&gt; GUI frontend&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;qsynth&lt;/span&gt;&lt;br /&gt;- setup the wished soundfonts (there we're using the path of the &lt;a href="http://fr.wikipedia.org/wiki/Soundfont#SoundFonts_gratuiteshttp://fr.wikipedia.org/wiki/Soundfont#SoundFonts_gratuites"&gt;fluid R3 soundfonts&lt;/a&gt;), &lt;span style="font-style: italic; font-weight: bold;"&gt;setup-&gt;Soundfonts-&gt;Open&lt;/span&gt; and selects the path &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;/usr/share/soundfonts/FluidR3_GM.SF2&lt;/span&gt; (under Fedora 8),&lt;br /&gt;- finally launch &lt;a href="http://www.rosegardenmusic.com/"&gt;Rosegarden&lt;/a&gt; and play MIDI files or Rosegarden Studio of your choice&lt;br /&gt;rosegarden&lt;br /&gt;- you may need to update configuration of the MIDI devices, Studio-&gt;Manage MIDI devices.&lt;br /&gt;&lt;br /&gt;N.B.: those instructions have been performed (at least) under Fedora 8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1287857692846820569?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1287857692846820569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/use-midi-software-soundfonts-mapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1287857692846820569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1287857692846820569'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/use-midi-software-soundfonts-mapping.html' title='Use MIDI software &quot;soundfonts mapping&quot;'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5048378045616228695</id><published>2008-05-31T13:02:00.010+02:00</published><updated>2008-05-31T13:47:08.707+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Musics'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Setup MIDI software "soundfonts mapping" (instead of hardware)</title><content type='html'>In &lt;a href="http://bertrandbenoit.blogspot.com/2008/05/play-midi-under-gnulinux-with-alsa.html"&gt;this post&lt;/a&gt;, I've (quickly) explained how to set up environment to play &lt;span style="font-weight: bold;"&gt;MIDI&lt;/span&gt; file, loading &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; into &lt;span style="font-style: italic;"&gt;wavetable&lt;/span&gt; of the sound card.&lt;br /&gt;Nevertheless, the &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; which can be loaded into the sound card is obviously limited to available memory and so compromise must be done between quality and size.&lt;br /&gt;&lt;br /&gt;Instead of this, it is possible to use software "&lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; mapping". Today, there is lots of very powerful and mature softwares although all must be set up with caution to avoid latency issue.&lt;br /&gt;There is various interesting explanations on the subject, for instance &lt;a href="http://ccrma.stanford.edu/planetccrma/software/"&gt;Planet CCRMA at home&lt;/a&gt;, and &lt;a href="http://www.linuxmao.org/"&gt;Linux MAO&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This is the software which an be used (prefixed by corresponding package name under &lt;span style="font-weight: bold;"&gt;Fedora&lt;/span&gt;):&lt;br /&gt;- &lt;a href="http://www.jackaudio.org/"&gt;jack&lt;/a&gt; (Jack Audio Connection Kit): a low-latency audio server,&lt;br /&gt;- &lt;a href="http://qjackctl.sourceforge.net/"&gt;qjackctl&lt;/a&gt;: a simple application to control the JACK sound server,&lt;br /&gt;- &lt;a href="http://www.fluidsynth.org/"&gt;fluidsynth&lt;/a&gt;: a real-time software synthesizer based on the SoundFont 2 specifications,&lt;br /&gt;- &lt;a href="http://qsynth.sourceforge.net/"&gt;qsynth&lt;/a&gt;: a fluidsynth GUI front-end application,&lt;br /&gt;- &lt;a href="http://fr.wikipedia.org/wiki/Soundfont#SoundFonts_gratuites"&gt;fluid-soundfont-R3&lt;/a&gt;: fluid R3 &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; of good quality,&lt;br /&gt;- &lt;a href="http://www.rosegardenmusic.com/"&gt;rosegarden4&lt;/a&gt;: a professional audio and MIDI sequencer, score editor, and general purpose music composition and editing environment.&lt;br /&gt;&lt;br /&gt;N.B.: those instructions have been performed (at least) under Fedora 8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5048378045616228695?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5048378045616228695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-midi-software-soundfonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5048378045616228695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5048378045616228695'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-midi-software-soundfonts.html' title='Setup MIDI software &quot;soundfonts mapping&quot; (instead of hardware)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6625099561936103116</id><published>2008-05-27T20:14:00.001+02:00</published><updated>2008-05-31T13:47:28.710+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Musics'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Prepare Fedora environment to become an audio plateform</title><content type='html'>After some search of interesting tools to play midi musics (with external devices) under &lt;span style="font-weight: bold;"&gt;GNU/Linux&lt;/span&gt;, I finally find an unbelievable project: &lt;a href="http://ccrma.stanford.edu/planetccrma/software/"&gt;Planet CCRMA at home&lt;/a&gt;.&lt;br /&gt;They provide all needed packages for updating an environment "to transform it into an audio workstation with a low-latency kernel".&lt;br /&gt;&lt;br /&gt;There is rich installation information on the &lt;a href="http://ccrma.stanford.edu/planetccrma/software/"&gt;official site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;My first aim is to discover the astonishing features of &lt;a href="http://www.rosegardenmusic.com/"&gt;Rosegarden&lt;/a&gt;.&lt;br /&gt;To get it fully installed, I have had to install some additional packages &lt;span style="font-weight: bold;"&gt;XML::Twig&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;LilyPond&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;yum install perl-XML-Twig lilypond&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Currently the real-time kernel does not boot on my computer, I'll surely post information about this later ...&lt;br /&gt;&lt;br /&gt;N.B.: those instructions have been performed (at least) under Fedora 8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6625099561936103116?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6625099561936103116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/prepare-fedora-environment-to-become.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6625099561936103116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6625099561936103116'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/prepare-fedora-environment-to-become.html' title='Prepare Fedora environment to become an audio plateform'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8311464031263560663</id><published>2008-05-27T18:55:00.005+02:00</published><updated>2008-05-29T08:21:27.525+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Musics'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Play MIDI under GNU/Linux with ALSA</title><content type='html'>There is lots of articles on the subject but it is not so trivial to get needed information to use &lt;a href="http://www.alsa-project.org/main/index.php/Main_Page"&gt;ALSA&lt;/a&gt; tools to play &lt;a href="http://fr.wikipedia.org/wiki/Musical_Instrument_Digital_Interface"&gt;MIDI&lt;/a&gt; files.&lt;br /&gt;&lt;br /&gt;This is some quick information:&lt;br /&gt;- the first is obviously to have a working &lt;span style="font-weight: bold;"&gt;ALSA&lt;/span&gt; installation,&lt;br /&gt;- if you have several sound cards, ensure the default is well the wanted one (for instance using &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;system-config-soundcard&lt;/span&gt; under Fedora),&lt;br /&gt;- then it is important to ensure not having mute channel(s), you can use &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;alsamixer&lt;/span&gt; for this,&lt;br /&gt;- then ensure to have a way to load &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; into the &lt;span style="font-style: italic;"&gt;wavetable&lt;/span&gt; of the sound card; for instance of sound card managed &lt;span style="font-weight: bold;"&gt;AWE32/Emu10k1&lt;/span&gt; sound driver, you can install the &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;awesfx&lt;/span&gt; package&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;yum install awesfx&lt;/span&gt;&lt;br /&gt;- get a &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt; to load, for instance &lt;a href="http://www.alsa-project.org/%7Ejames/sound-fonts/8MBGMSFX.SF2"&gt;this one&lt;/a&gt;,&lt;br /&gt;- at any moment, to check if there is a loaded &lt;span style="font-style: italic;"&gt;soundfonts&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;cat /proc/asound/card?/wavetableD?&lt;/span&gt;&lt;br /&gt;- you can clear currently loaded &lt;span style="font-style: italic;"&gt;soundfounts&lt;/span&gt; but you want to keep it:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/bin/asfxload -i&lt;/span&gt;&lt;br /&gt;- then load it:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/bin/asfxload "soundfonts file path"&lt;path&gt;&lt;/path&gt;&lt;/span&gt;&lt;br /&gt;- find the "addresses" into the "&lt;span style="font-weight: bold; font-style: italic;"&gt;/proc/asound/card?/wavetableD?&lt;/span&gt;" file (for instance: &lt;span style="font-weight: bold; font-style: italic;"&gt;17:0 17:1 17:2 17:3&lt;/span&gt;),&lt;br /&gt;- finally test installation using &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;aplaymidi&lt;/span&gt; to play a MIDI file&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;aplaymidi -p "&lt;addresses&gt;addresses"* "MIDI file path"&lt;midi&gt;&lt;/midi&gt;&lt;/addresses&gt;&lt;/span&gt;&lt;br /&gt;* addresses must be coma separated, 17:0,17:1,17:2,17:3 for instance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8311464031263560663?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8311464031263560663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/play-midi-under-gnulinux-with-alsa.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8311464031263560663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8311464031263560663'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/play-midi-under-gnulinux-with-alsa.html' title='Play MIDI under GNU/Linux with ALSA'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5539378963345249857</id><published>2008-05-13T20:30:00.003+02:00</published><updated>2008-05-13T20:34:39.842+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Define the different installed packages between GNU/Linux installations</title><content type='html'>Let's call one installation &lt;span style="font-weight: bold;"&gt;local&lt;/span&gt;, and the other &lt;span style="font-weight: bold;"&gt;remote&lt;/span&gt;.&lt;br /&gt;On the first one, use &lt;span style="font-weight: bold;"&gt;rpm&lt;/span&gt; to get the list of installed packages:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -qa --qf "%{NAME}.%{ARCH}\n" |sort &gt; /tmp/localInstallationInstalledPackages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Idem, on the second one:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -qa --qf "%{NAME}.%{ARCH}\n" |sort &gt; /tmp/remoteInstallationInstalledPackages&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, get the differences between each list using &lt;span style="font-weight: bold;"&gt;diff&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To see the package installed on the &lt;span style="font-weight: bold;"&gt;local&lt;/span&gt; installation, but not on the remote one:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;diff /tmp/localInstallationInstalledPackages /tmp/remoteInstallationInstalledPackages |grep "^&lt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To see the package installed on the &lt;span style="font-weight: bold;"&gt;remote&lt;/span&gt; installation, but not on the local one:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;diff /tmp/localInstallationInstalledPackages /tmp/remoteInstallationInstalledPackages |grep "^&gt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In the two cases, to get a list of regarded packages on one line, use the following instructions.&lt;br /&gt;For instance, for the local installation:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;diff /tmp/localInstallationInstalledPackages /tmp/remoteInstallationInstalledPackages |grep "^&lt;" |awk '{print $2}' |sed -e 's/$/ /' |tr -d '\n'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, you can use this list to [un]install corresponding packages on local or remote installation.&lt;br /&gt;&lt;br /&gt;In addition to &lt;a href="http://bertrandbenoit.blogspot.com/2008/05/install-same-packages-between-two.html"&gt;this post&lt;/a&gt;, those instructions allow to get exactly the same installed packages between GNU/Linux installations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5539378963345249857?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5539378963345249857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/define-different-installed-packages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5539378963345249857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5539378963345249857'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/define-different-installed-packages.html' title='Define the different installed packages between GNU/Linux installations'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-9173868179648863185</id><published>2008-05-13T18:16:00.011+02:00</published><updated>2010-07-07T16:57:33.564+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Install the same packages between two GNU/Linux installation, using yum</title><content type='html'>There is some cases where it is interesting to ensure having the same installed packages between two &lt;span style="font-weight: bold;"&gt;GNU/Linux&lt;/span&gt; installation.&lt;br /&gt;Those installations must be of &lt;span style="font-weight: bold;"&gt;same architecture&lt;/span&gt; and be as near as possible (ideally the same version), otherwise it is obvious it won't work. In addition, it is needed to have the same &lt;span style="font-weight: bold;"&gt;rpm&lt;/span&gt; packages sources (for instance the same repositories if using &lt;span style="font-weight: bold;"&gt;yum&lt;/span&gt;).&lt;br /&gt;For instance, it gives the ability to create a virtual machine with almost the same configuration, and then to perform lots of "tests" (upgradibility ...) without risk (but the one to get a "dead virtual machine") before performing the same instructions on the "original" installation.&lt;br /&gt;Personally, I've used this ability to test upgradibility between &lt;span style="font-weight: bold;"&gt;Fedora 8&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Fedora 9&lt;/span&gt;.&lt;br /&gt;To get the list of installed packages of an installation (including the architecture, which is particularly important there):&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;rpm -qa --qf "%{NAME}.%{ARCH} " &amp;gt; /tmp/allPackagesList&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then copy the file to the other installation.&lt;br /&gt;&lt;br /&gt;Finally, use &lt;span style="font-weight: bold;"&gt;yum&lt;/span&gt; (or something else), to install all those packages (for instance, under &lt;span style="font-weight: bold;"&gt;GNU/Bash&lt;/span&gt;):&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;yum install $( cat /tmp/allPackagesList )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Such a way, all the packages installed on the first installation, will be installed on the other one.&lt;br /&gt;Nevertheless, there may be other packages already installed on the second one, so the installed packages would not be exactly the same.&lt;br /&gt;I'll write another post to explain how to remove such packages.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-9173868179648863185?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/9173868179648863185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-same-packages-between-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9173868179648863185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/9173868179648863185'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-same-packages-between-two.html' title='Install the same packages between two GNU/Linux installation, using yum'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8769407751489087709</id><published>2008-05-13T18:10:00.002+02:00</published><updated>2008-05-13T18:16:04.254+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Personal Knowledge Base</title><content type='html'>I've recently used &lt;a href="http://trac.edgewall.org/"&gt;Trac&lt;/a&gt; to create a little &lt;a href="http://bsquare.no-ip.org/knowledgeBase"&gt;personal Knowledge Base&lt;/a&gt;.&lt;br /&gt;The only aim of this Knowledge Base is to centralize access to various quick information corresponding to specific computer science issues/situations.&lt;br /&gt;&lt;br /&gt;Initially, I've set up this system for personal purposes.&lt;br /&gt;Nevertheless, if you find current tickets (Knowledge Base elements) interesting and you wish to add some yourself, send me an email to admin[dot] knowledgeBase[at]bsquare[dot]no-ip[dot]org.&lt;br /&gt;&lt;br /&gt;There is currently very few tickets (lack of time), but as soon as possible, I'll add more.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8769407751489087709?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8769407751489087709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/personal-knowledge-base.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8769407751489087709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8769407751489087709'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/personal-knowledge-base.html' title='Personal Knowledge Base'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4380704513959019655</id><published>2008-05-12T20:35:00.003+02:00</published><updated>2010-04-23T15:53:02.582+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Get sound working with plugins for Firefox or Opera 9 under Fedora 8 (i386 and x86_64)</title><content type='html'>In addition to plug-ins installation (see &lt;a href="http://bertrandbenoit.blogspot.com/2008/05/install-multimedia-plugins-for-opera-9.html"&gt;this post&lt;/a&gt;), it is needed to ensure having an installed soundwrapper to get sound working under a Web Browser.&lt;br /&gt;Whatever the architecture of the OS, it seems absolutely needed to have a &lt;b&gt;i386&lt;/b&gt; installed soundwrapper.&lt;br /&gt;For instance, install the arts (KDE) soundwrapper:&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;span style="color: #3333ff;"&gt;yum install arts.i386&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4380704513959019655?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4380704513959019655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/get-working-sound-with-plugins-for.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4380704513959019655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4380704513959019655'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/get-working-sound-with-plugins-for.html' title='Get sound working with plugins for Firefox or Opera 9 under Fedora 8 (i386 and x86_64)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4620706939022608741</id><published>2008-05-08T23:17:00.007+02:00</published><updated>2010-04-23T15:52:44.287+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Install multimedia plugins for Opera 9 under Fedora 8 (i386 and x86_64)</title><content type='html'>There should be no problem to get multimedia plug-ins installed for &lt;span style="font-weight: bold;"&gt;Opera 9&lt;/span&gt; under &lt;span style="font-weight: bold;"&gt;Fedora&lt;/span&gt; with a "full" &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;x86_64&lt;/span&gt; architecture installation.&lt;br /&gt;In some cases, &lt;a href="http://bertrandbenoit.blogspot.com/2008/02/get-32bits-firefox-plugins-available.html"&gt;this post&lt;/a&gt; may help (Opera being "Mozilla compatible" as Firefox) with installation having &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;x86_64&lt;/span&gt; components.&lt;br /&gt;Nevertheless, other situations may still need additional instructions to be performed.&lt;br /&gt;&lt;br /&gt;It was my case with my installation: &lt;span style="font-weight: bold;"&gt;Opera 9.27&lt;/span&gt; (i386), under a &lt;span style="font-weight: bold;"&gt;Fedora 8 x86_64&lt;/span&gt; installation.&lt;br /&gt;In particular, the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;gecko-mediaplayer&lt;/span&gt; package (replacing the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;mplayerplug-in&lt;/span&gt; one) was available only in &lt;span style="font-weight: bold;"&gt;x86_64&lt;/span&gt; architecture. The &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;nspluginwrapper&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;method does not seem to work with Opera, so a &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; version of &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;gecko-mediaplayer&lt;/span&gt; package is needed.&lt;br /&gt;This is quick way to get it installed:&lt;br /&gt;- get a &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; version, for instance browsing the &lt;span style="color: #3333ff; font-weight: bold;"&gt;livna&lt;/span&gt; repository online, or using &lt;span style="color: #3333ff; font-weight: bold;"&gt;yumdownloader&lt;/span&gt; under a &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; installation,&lt;br /&gt;- install it using &lt;span style="color: #3333ff; font-weight: bold;"&gt;yum&lt;/span&gt; (it will install all the needed dependencies)&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic;"&gt;yum localinstall "gecko-mediaplayer-XXX.rpm"&lt;/span&gt;&lt;br /&gt;- the &lt;span style="font-weight: bold;"&gt;i386&lt;/span&gt; plug-ins might be installed under &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;/usr/lib/mozilla/plugins&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To enable plug-ins into Opera, follow the usual way:&lt;br /&gt;- Menu &lt;span style="font-style: italic;"&gt;Tools-&amp;gt;Preferences-&amp;gt;Advanced-&amp;gt;Content-&amp;gt;Plug-in options-&amp;gt;Change path&lt;/span&gt;&lt;br /&gt;- add the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;/usr/lib/mozilla/plugins&lt;/span&gt; path (or equivalent)&lt;br /&gt;- valid, and then click "&lt;span style="font-weight: bold;"&gt;Find new...&lt;/span&gt;" button.&lt;br /&gt;&lt;br /&gt;Close and launch again Opera.&lt;br /&gt;You may use the &lt;span style="color: #3333ff; font-weight: bold;"&gt;-debugplugin&lt;/span&gt; option to get debug information about plug-ins.&lt;br /&gt;&lt;br /&gt;Finally, under Opera, take a look to the "&lt;span style="font-weight: bold;"&gt;opera:plugins&lt;/span&gt;" information page to check if plug-ins are available.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4620706939022608741?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4620706939022608741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-multimedia-plugins-for-opera-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4620706939022608741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4620706939022608741'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-multimedia-plugins-for-opera-9.html' title='Install multimedia plugins for Opera 9 under Fedora 8 (i386 and x86_64)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5881005680990356567</id><published>2008-05-07T21:46:00.008+02:00</published><updated>2010-07-16T10:01:58.376+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Install Opera 9 under Fedora 8 (i386 and x86_64)</title><content type='html'>Those instructions might be interesting for other configuration too (for instance Fedora 7 and prior).&lt;br /&gt;The GNU/Linux Opera 9 package does not seem providing all needed dependencies information. Such a way, even if the rpm is well installed, there might be trouble to launch Opera.&lt;br /&gt;&lt;br /&gt;To begin, to install Opera:&lt;br /&gt;- download the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;rpm&lt;/span&gt; of the wished version, &lt;a href="http://opera.eurenet.net/linux/927/final/en/i386/shared/opera-9.27-20080331.6-shared-qt.i386-en.rpm"&gt;Opera 9.27&lt;/a&gt; being currently the latest stable one;&lt;br /&gt;- install it with &lt;span style="color: #3333ff; font-weight: bold;"&gt;yum&lt;/span&gt; to get the maximum (but not all) needed packages installed too:&lt;br /&gt;&lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;yum --nogpgcheck localinstall&lt;/span&gt; &lt;span style="color: #3333ff; font-weight: bold;"&gt;"opera-XXX.rpm"&lt;/span&gt;&lt;br /&gt;- ensure to have &lt;span style="color: #3333ff; font-weight: bold;"&gt;qt&lt;/span&gt; package installed (i386 for v9.27 and prior; x86_64 might be enough for newer version)&lt;br /&gt;- ensure to have a up to date Java installation to benefit from the maximum functionalities (again, i386 for v9.27 and prior; x86_64 might be enough for newer version)&lt;br /&gt;- it might be needed to update the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;LD_LIBRARY_PATH&lt;/span&gt; to specify where to find some libraries: &lt;span style="font-weight: bold;"&gt;libqt-mt.so&lt;/span&gt; (qt), &lt;span style="font-weight: bold;"&gt;libjvm.so&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;libawt.so&lt;/span&gt; (Java):&lt;br /&gt;For instance, if you have installed the i386 JDK 6u6 under /usr/share/java/jdk1.6.0_06.i386/&lt;br /&gt;export &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;LD_LIBRARY_PATH=/usr/lib64:/usr/lib/qt-3.3/:/usr/share/java/jdk1.6.0_06.i386/jre/lib/i386/client/:/usr/share/java/jdk1.6.0_06.i386/jre/lib/i386/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5881005680990356567?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5881005680990356567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-opera-9-under-fedora-8-i386-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5881005680990356567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5881005680990356567'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/install-opera-9-under-fedora-8-i386-and.html' title='Install Opera 9 under Fedora 8 (i386 and x86_64)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-42686770912865400</id><published>2008-05-07T15:12:00.005+02:00</published><updated>2010-07-07T16:56:16.723+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Virtualization'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Compile VMwareTools on Linux kernel 2.6.22</title><content type='html'>To compile the &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;vmhgfs VMwareTools&lt;/span&gt; on Linux kernel 2.6.22, it is needed to patch the source code, like explained &lt;a href="http://kamilkisiel.blogspot.com/2007/11/installing-vmware-tools-on-kernel-2622.html"&gt;there&lt;/a&gt;, from a tar.gz installation.&lt;br /&gt;The same fix works from rpm installation, although the VMwareTools source code directory may be different (&lt;span style="color: #3333ff; font-style: italic;"&gt;/usr/lib/vmware-tools/modules/source&lt;/span&gt; for me):&lt;br /&gt;- move to &lt;span style="color: #3333ff; font-style: italic;"&gt;/usr/lib/vmware-tools/modules/source/&lt;/span&gt;&lt;br /&gt;- untar &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;vmhgfs.tar&lt;/span&gt; and backup it&lt;br /&gt;- then follow the same instructions:&lt;br /&gt;"Now edit &lt;span style="font-weight: bold;"&gt;vmhgfs/driver.c&lt;/span&gt; and change lines 44 and 45 from&lt;br /&gt;#define INODE_SET_II_P(inode, info) do { (inode)-&amp;gt;u.generic_ip = (info); } while (0)&lt;br /&gt;#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)-&amp;gt;u.generic_ip)&lt;br /&gt;to&lt;br /&gt;#define INODE_SET_II_P(inode, info) do { (inode)-&amp;gt;&lt;span style="font-weight: bold;"&gt;i_private&lt;/span&gt; = (info); } while (0)&lt;br /&gt;#define INODE_GET_II_P(inode) ((HgfsInodeInfo *)(inode)-&amp;gt;&lt;span style="font-weight: bold;"&gt;i_private&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;Also, remove line 763: inode-&amp;gt;i_blksize = HGFS_BLOCKSIZE;&lt;br /&gt;"&lt;br /&gt;- create a new &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;vmhgfs.tar&lt;/span&gt; with patched source code&lt;br /&gt;- the compilation can now be fully performed -&amp;gt; launch &lt;span style="color: #3333ff; font-style: italic; font-weight: bold;"&gt;/usr/bin/vmware-config-tools.pl&lt;/span&gt; again&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-42686770912865400?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/42686770912865400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/compile-vmwaretools-on-linux-kernel.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/42686770912865400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/42686770912865400'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/05/compile-vmwaretools-on-linux-kernel.html' title='Compile VMwareTools on Linux kernel 2.6.22'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2162584536542438083</id><published>2008-04-30T18:23:00.003+02:00</published><updated>2008-04-30T18:47:40.969+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade manually an installed perl module</title><content type='html'>When an application requires a minimum perl module version which is not provided by installed RPM, it can be upgraded manually.&lt;br /&gt;For instance, it is the case of amavis (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html"&gt;create a full and secured emails server&lt;/a&gt;), when upgrading some perl rpm packages (perl-CPAN for instance).&lt;br /&gt;&lt;br /&gt;To upgrade CPAN perl module manually, opens a perl shell:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;perl -MCPAN -e shell&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then request the "install" of the newest available perl module version. For instance:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;install File::Temp&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2162584536542438083?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2162584536542438083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/upgrade-manually-installed-perl-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2162584536542438083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2162584536542438083'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/upgrade-manually-installed-perl-module.html' title='Upgrade manually an installed perl module'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7934644851882041151</id><published>2008-04-30T18:14:00.004+02:00</published><updated>2008-04-30T18:49:39.764+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Define the current version of a perl module</title><content type='html'>To get the current version of an installed perl module, the following command can be used:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;perl -le 'use MODULE_NAME; print MODULE_NAME-&gt;VERSION'&lt;/span&gt;&lt;br /&gt;With &lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;MODULE_NAME&lt;/span&gt; the name of the wished perl module.&lt;br /&gt;&lt;br /&gt;For instance with File::Temp it gives:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;perl -le 'use File::Temp; print File::Temp-&gt;VERSION'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7934644851882041151?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7934644851882041151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/define-current-version-of-perl-module.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7934644851882041151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7934644851882041151'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/define-current-version-of-perl-module.html' title='Define the current version of a perl module'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5549117811836325058</id><published>2008-04-25T19:11:00.004+02:00</published><updated>2008-05-13T18:34:54.397+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='MacOS'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Get the list of gcc defined macro after preprocessing</title><content type='html'>It various situation, it is very useful to get the list of all defined maco after &lt;a href="http://gcc.gnu.org/"&gt;gcc&lt;/a&gt; preprocessing.&lt;br /&gt;Particularly when porting C/C++ source code to another OS/Architecture to know what macro to use to identify it.&lt;br /&gt;&lt;br /&gt;A simple way is to use &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;gcc&lt;/span&gt; with the following options:&lt;br /&gt;-E to end after preprocessing step,&lt;br /&gt;-dM to print all defined macros.&lt;br /&gt;&lt;br /&gt;For instance to known the "default" macros, use those options with a simple source code file "test.c" defining a main function:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;gcc -E -dM test.c&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5549117811836325058?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5549117811836325058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/get-list-of-gcc-defined-macro-after.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5549117811836325058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5549117811836325058'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/04/get-list-of-gcc-defined-macro-after.html' title='Get the list of gcc defined macro after preprocessing'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5723125640041511300</id><published>2008-02-23T00:19:00.004+01:00</published><updated>2008-02-23T00:27:30.114+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Fix empty /var/log/boot.log file issue</title><content type='html'>The &lt;span style="font-style: italic;"&gt;local7&lt;/span&gt; facility is used to write into the &lt;span style="font-style: italic; font-weight: bold;"&gt;/var/log/boot.log&lt;/span&gt; file.&lt;br /&gt;But since the Fedora core 4, the system has been disabled waiting for a new generation system which does not seem to be available yet (see this &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=151238"&gt;bug report&lt;/a&gt; and this &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=163461"&gt;one&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;A quick way to fix the empty /var/log/boot.log file, is to edit the &lt;span style="font-weight: bold; font-style: italic;"&gt;/etc/rc.d/init.d/functions&lt;/span&gt; file.&lt;br /&gt;Into the &lt;span style="font-style: italic;"&gt;success&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;failure&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;passed&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;warning&lt;/span&gt; functions, you can add a line like the following, just before the return instruction:&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/usr/bin/logger -p local7.info "$1"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It works but each time the &lt;span style="font-style: italic;"&gt;initscripts&lt;/span&gt; package is updated, it is needed to edit the file ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5723125640041511300?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5723125640041511300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/fix-varlogbootlog-empty-file-issue.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5723125640041511300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5723125640041511300'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/fix-varlogbootlog-empty-file-issue.html' title='Fix empty /var/log/boot.log file issue'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8345132343132457755</id><published>2008-02-23T00:12:00.003+01:00</published><updated>2008-02-23T00:18:10.168+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Make Red Hat Graphical Boot detailed</title><content type='html'>There is unfortunately no configuration file allowing to switch on/off the details of Red Hat Graphical Boot.&lt;br /&gt;Anyway, for it to be detailed, the &lt;span style="font-weight: bold; font-style: italic;"&gt;/etc/rc.d/init.d/functions&lt;/span&gt; can be edited:&lt;br /&gt; - simply add &lt;span style="font-style: italic;"&gt;--details=yes&lt;/span&gt; into the &lt;span style="font-style: italic;"&gt;update_boot_stage&lt;/span&gt; function on the line using the &lt;span style="font-weight: bold; font-style: italic;"&gt;/usr/bin/rhgb-client&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;It works but each time the &lt;span style="font-style: italic;"&gt;initscripts&lt;/span&gt; package is updated, it is needed to edit the file ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8345132343132457755?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8345132343132457755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/make-red-hat-graphical-boot-detailed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8345132343132457755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8345132343132457755'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/make-red-hat-graphical-boot-detailed.html' title='Make Red Hat Graphical Boot detailed'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6620901570458815307</id><published>2008-02-22T23:40:00.003+01:00</published><updated>2008-02-22T23:51:40.770+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Updating courier-imap configuration</title><content type='html'>By default, the &lt;span style="font-style: italic; font-weight: bold;"&gt;courier-imap&lt;/span&gt; creates pop3 (110), pop3s (995), imap (143) and imaps (993) servers.&lt;br /&gt;Generally, they are not all needed, and for obvious security reasons, it is better to not start useless servers.&lt;br /&gt;&lt;br /&gt;Under GNU/Linux Fedora, the corresponding configuration files, which are under /usr/lib/courier-imap/etc/, are respectively pop3d, pop3d-ssl, imapd and imapd-ssl.&lt;br /&gt;Into each, there is a variable XXXSTART (with XXX corresponding to &lt;span style="font-weight: bold;"&gt;POP3D&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;POP3DSSL&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;IMAPD&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;IMAPDSSL&lt;/span&gt;) which can be &lt;span style="font-weight: bold;"&gt;YES&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;NO&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;To not start such a server, it is enough to replace corresponding &lt;span style="font-weight: bold;"&gt;YES&lt;/span&gt; by &lt;span style="font-weight: bold;"&gt;NO&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Finally, restart the &lt;span style="font-style: italic; font-weight: bold;"&gt;courier-imap&lt;/span&gt; service.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6620901570458815307?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6620901570458815307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/updating-courier-imap-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6620901570458815307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6620901570458815307'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/updating-courier-imap-configuration.html' title='Updating courier-imap configuration'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1886279843530823826</id><published>2008-02-22T20:31:00.006+01:00</published><updated>2008-02-23T11:14:02.072+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade GNU/Linux Fedora from core 6 to 7, then 8</title><content type='html'>To upgrade GNU/Linux Fedora from core 6 to 7, then 8, there is no [really] problem today.&lt;br /&gt;It was not the case when I've tried it as soon as Fedora 7 was available, but I've successfully performed such an upgrade without difficulties some days ago.&lt;br /&gt;&lt;br /&gt;The principle is globally the same when upgrading from Fedora core N to Fedora core N+1 (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html"&gt;this post&lt;/a&gt;), or from  Fedora 7 to Fedora 8 (see &lt;a href="http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html"&gt;this post&lt;/a&gt;).&lt;br /&gt;In addition, the &lt;a href="http://fedoraproject.org/wiki/YumUpgradeFaq#head-95a2ac1207272256325354f5ebb0b9cc05511d7a"&gt;recommendations&lt;/a&gt; of &lt;a href="http://fedoraproject.org/"&gt;Fedora project&lt;/a&gt; have greatly evolved and seem now complete.&lt;br /&gt;&lt;br /&gt;This is some additional instructions in case you have specific issues (like I had):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update your /etc/fstab file:&lt;/span&gt;&lt;br /&gt;It is very important to use label (&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;LABEL=&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;myLabel)&lt;/span&gt; to identity your device instead of path (&lt;span style="font-weight: bold; color: rgb(51, 51, 255); font-style: italic;"&gt;/dev/xxx&lt;/span&gt;). The identification has changed from Fedora core 6 to Fedora 7, generally from &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/dev/hdX&lt;/span&gt; to &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/dev/sdY&lt;/span&gt; BUT there is absolutely no certainties  that &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;X&lt;/span&gt; and &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;Y&lt;/span&gt; will equal between versions.&lt;br /&gt;&lt;br /&gt;Using labels ensure your mount points are always the same.&lt;br /&gt;Particularly it ensures your root partition (&lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;/&lt;/span&gt;) will be the good, and your computer will well boot after upgrade.&lt;br /&gt;To update the label of a device, you can use the &lt;span style="font-weight: bold; font-style: italic; color: rgb(51, 51, 255);"&gt;tune2fs&lt;/span&gt; command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Upgrade from Fedora core 6 to Fedora 7:&lt;/span&gt;&lt;br /&gt;- do not forget to clean all the yum metadata with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum clean all&lt;/span&gt;,&lt;br /&gt;- upgrade the Fedora release:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;rpm -Uhv ftp://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release*.noarch.rpm&lt;/span&gt;&lt;br /&gt;- upgrade your repository, for instance for livna:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -Uvh &lt;/span&gt;&lt;a style="font-style: italic; color: rgb(51, 51, 255);" class="moz-txt-link-freetext" href="http://rpm.livna.org/livna-release-7.rpm"&gt;http://rpm.livna.org/livna-release-7.rpm&lt;/a&gt;&lt;br /&gt;- remove and reinstall &lt;span style="font-style: italic; font-weight: bold;"&gt;authconfig&lt;/span&gt; to avoid specific issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Upgrade from Fedora 7 to Fedora 8:&lt;/span&gt;&lt;br /&gt;- do not forget to clean all the yum metadata with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum clean all&lt;/span&gt;,&lt;br /&gt;- upgrade the Fedora release:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Everything/i386/os/Packages/fedora-release-*.noarch.rpm&lt;/span&gt;&lt;br /&gt;- upgrade your repository, for instance for livna:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -Uvh &lt;/span&gt;&lt;a style="font-style: italic; color: rgb(51, 51, 255);" class="moz-txt-link-freetext" href="http://rpm.livna.org/livna-release-8.rpm"&gt;http://rpm.livna.org/livna-release-8.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ensure there is no dependencies problem like explained into &lt;a href="http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html"&gt;this post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Then, you should perform a great configuration files merging campaign to ensure having the up to date functionalities while keeping your own specific configuration (globally the XXX.conf and XXX.conf.rpmnew files).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1886279843530823826?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1886279843530823826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/upgrade-gnulinux-fedora-from-core-6-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1886279843530823826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1886279843530823826'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/upgrade-gnulinux-fedora-from-core-6-to.html' title='Upgrade GNU/Linux Fedora from core 6 to 7, then 8'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1079428678756327275</id><published>2008-02-22T16:50:00.004+01:00</published><updated>2008-02-22T17:12:37.135+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Clean useless packages under 64bits GNU/Linux</title><content type='html'>It seems there is some dependency "issues" when installing a 64bits GNU/Linux. It is, for instance, the case under Fedora.&lt;br /&gt;Although the architecture of the installed OS is 64bits, there is some i386 or i686 installed packages.&lt;br /&gt;Some are needed, but lots might be removed.&lt;br /&gt;&lt;br /&gt;To begin, to get a sorted list of such potential packages, you can use:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -qa --qf "%{NAME}.%{ARCH}\n" |grep -v x86_64 |grep -v noarch |grep -v "(none)" |sort&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, you can remove all packages you are sure you do not need, but be careful with the dependencies.&lt;br /&gt;To make it quicker, you can request the remove of package(s) you know it is needed by lots of others (like some libraries).&lt;br /&gt;&lt;br /&gt;After all of this, ensure there is no dependencies problem. For instance, with yum utilities:&lt;br /&gt; - ensure the database is up to date with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm --rebuilddb&lt;/span&gt;,&lt;br /&gt; - check if there is problem with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;package-cleanup --problems&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Finally, to complete the cleaning, you can use the &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;package-cleanup --leaves&lt;/span&gt; and ensure you need all those "independent" package(s), else remove them.&lt;br /&gt;&lt;br /&gt;Personally, I have removed about 150 packages like this.&lt;br /&gt;For information, there is some i386/i686 packages which are needed by x86_64 ones.&lt;br /&gt;It was the case for me with &lt;span style="font-weight: bold;"&gt;compat-libstdc++-33.i386&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;libgcc.i386&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;glibc.i686&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1079428678756327275?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1079428678756327275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/clean-useless-packages-under-64bits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1079428678756327275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1079428678756327275'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/clean-useless-packages-under-64bits.html' title='Clean useless packages under 64bits GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8545900844370276337</id><published>2008-02-18T13:18:00.005+01:00</published><updated>2010-04-23T15:53:30.962+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='WebBrowser'/><title type='text'>Get 32bits firefox plugins available under 64bits system</title><content type='html'>There is various article about this, but I have not found all needed information into only one.&lt;br /&gt;This is a quick method to get 32bits firefox plugins available under 64bits system:&lt;br /&gt;- install wished 64bits plugins,&lt;br /&gt;- install 32bits plugins if there is no 64bits version (like for macromedia flash),&lt;br /&gt;- install &lt;span style="font-style: italic;"&gt;nspluginwrapper&lt;/span&gt; 64 and 32 bits (important to have the two versions),&lt;br /&gt;- ensures 32bits plugins are available under /usr/lib/mozilla/plugins (or create symbolic links),&lt;br /&gt;- ensures 64bits plugins are available under /usr/lib64/mozilla/plugins (or create symbolic links),&lt;br /&gt;- according to your OS, it may then be enough to restart firefox (like under Fedora 8),&lt;br /&gt;- else, use the &lt;span style="color: #3333ff; font-style: italic;"&gt;mozilla-plugin-config -i &lt;/span&gt;command.&lt;br /&gt;&lt;br /&gt;It is possible to not create symbolic link, and to specify path of corresponding .so file with the &lt;span style="color: #3333ff; font-style: italic;"&gt;mozilla-plugin-config -i&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Each wrapped plugins should be under&lt;br /&gt;/usr/lib64/mozilla/plugins-wrapped (or maybe equivalent). If it is not the case, you can use the &lt;span style="color: #3333ff; font-style: italic;"&gt;-v&lt;/span&gt; option while using mozilla-plugin-config.&lt;br /&gt;&lt;br /&gt;Finally, under Firefox, you should see all available plugins under "&lt;span style="font-weight: bold;"&gt;about:plugins&lt;/span&gt;".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8545900844370276337?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8545900844370276337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/get-32bits-firefox-plugins-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8545900844370276337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8545900844370276337'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/get-32bits-firefox-plugins-available.html' title='Get 32bits firefox plugins available under 64bits system'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7610489397475641853</id><published>2008-02-11T13:13:00.000+01:00</published><updated>2008-02-11T13:19:25.038+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Reinstall packages from another source/Vendor without broking dependencies</title><content type='html'>There is various situations leading to the wish to reinstall packages from another source/Vendor without broking dependencies.&lt;br /&gt;It is not so easy when continuity of services is an important need.&lt;br /&gt;To avoid difficulties, try to make it with iterative manner, "package set" by "package set".&lt;br /&gt;&lt;br /&gt;This is the steps which can be followed for each iteration:&lt;br /&gt;- define with the greatest precision the packages which must be updated (&lt;a href="http://bertrandbenoit.blogspot.com/2008/01/define-installed-packages-of-specific.html"&gt;this post&lt;/a&gt; can help for this),&lt;br /&gt;- define the dependencies which might be broken while removing regarded packages (&lt;a href="http://bertrandbenoit.blogspot.com/2008/02/request-rpm-packages-redhat-like.html"&gt;this post&lt;/a&gt; can help for this),&lt;br /&gt;- ensure there is another source for each package which must be reinstalled, for instance with yum:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum search &lt;span style="font-weight: bold;"&gt;packageName1&lt;/span&gt; ... &lt;span style="font-weight: bold;"&gt;packageNameN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;- with great caution, remove the packages regardless to dependencies:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -e &lt;span style="font-weight: bold;"&gt;packageName1&lt;/span&gt; ... &lt;span style="font-weight: bold;"&gt;packageNameN&lt;/span&gt; --nodeps&lt;/span&gt;&lt;br /&gt;- finally, install the new version from wanted source, for instance with yum:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum --disablerepo=&lt;span style="font-weight: bold;"&gt;unwantedSource&lt;/span&gt; install &lt;span style="font-weight: bold;"&gt;packageName1&lt;/span&gt; ... &lt;span style="font-weight: bold;"&gt;packageNameN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;- ensure there is no problem, particularly about dependencies:&lt;br /&gt;  &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;package-cleanup --problems&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As final check, &lt;span style="font-weight: bold;"&gt;restart the services&lt;/span&gt; which may have been affected to ensure there is no warning/error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7610489397475641853?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7610489397475641853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/reinstall-packages-from-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7610489397475641853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7610489397475641853'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/reinstall-packages-from-another.html' title='Reinstall packages from another source/Vendor without broking dependencies'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-1087503689637826119</id><published>2008-02-11T13:08:00.000+01:00</published><updated>2008-02-11T13:11:49.705+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><title type='text'>Split a file into several ones with dd</title><content type='html'>To split quickly a file in several ones (for greatest management, better legibility ...), the &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;dd&lt;/span&gt; command can be used.&lt;br /&gt;&lt;br /&gt;To create the &lt;span style="font-style: italic; color: rgb(51, 51, 255); font-weight: bold;"&gt;/path/to/my/destination/file&lt;/span&gt; with the first &lt;span style="font-weight: bold;"&gt;N&lt;/span&gt; MBytes of the &lt;span style="font-style: italic; color: rgb(51, 51, 255); font-weight: bold;"&gt;/path/to/my/source/file:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt; dd if=&lt;span style="font-weight: bold;"&gt;/path/to/my/source/file&lt;/span&gt; of=&lt;span style="font-weight: bold;"&gt;/path/to/my/destination/file&lt;/span&gt; bs=1048576 count=&lt;span style="font-weight: bold;"&gt;N&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-1087503689637826119?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/1087503689637826119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/split-file-into-several-ones-with-dd.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1087503689637826119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/1087503689637826119'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/split-file-into-several-ones-with-dd.html' title='Split a file into several ones with dd'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4090979512744095360</id><published>2008-02-11T13:06:00.000+01:00</published><updated>2008-02-11T13:07:04.407+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Manage services under Solaris</title><content type='html'>A simple refresh of what can be done with &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcs&lt;/span&gt; and &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm&lt;/span&gt; tools.&lt;br /&gt;&lt;br /&gt;Get list of all services:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add a service:&lt;br /&gt;To begin, a manifest file is needed to define the service (&lt;a href="http://www.sun.com/bigadmin/content/selfheal/sdev_intro.html"&gt;some information there&lt;/a&gt;).&lt;br /&gt;Then, it is needed to ensure it is valid:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;xmllint --valid &lt;span style="font-weight: bold;"&gt;/path/to/my/service/manifest/file&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally, the service can be add:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svccfg import &lt;span style="font-weight: bold;"&gt;/path/to/my/service/manifest/file&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Activate a service (which has been priorly added):&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm enable &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/level(s)&gt;&lt;/span&gt;&lt;br /&gt;The -s option can be used to get focus only after the service is fully activated (or failed).&lt;br /&gt;&lt;br /&gt;Disable a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm disable &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/level(s)&gt;&lt;/span&gt;&lt;br /&gt;The -s option can be used to get focus only after the service has been disabled.&lt;br /&gt;&lt;br /&gt;Put a service under maintenance:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm mark &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/level(s)&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remove the "maintenance" status of a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm clear &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/level(s)&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Update the configuration of a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcadm refresh &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/level(s)&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the current status of a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;svcs -x &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; stop&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4090979512744095360?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4090979512744095360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/manage-services-under-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4090979512744095360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4090979512744095360'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/manage-services-under-solaris.html' title='Manage services under Solaris'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2939889332316774217</id><published>2008-02-11T12:57:00.001+01:00</published><updated>2008-02-11T12:57:51.462+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Manage services under GNU/Linux distributions providing service and chkconfig</title><content type='html'>A simple refresh of what can be done with &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service&lt;/span&gt; and &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig&lt;/span&gt; tools.&lt;br /&gt;&lt;br /&gt;Get list of all services and their state for each runlevel (including inet and/or xinet if available):&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get state for each runlevel of one service (including inet and/or xinet if available):&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --list &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Remove a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --del &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add a service (with state for each runlevel defined automatically according to the service definition file):&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --add &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add a service with specific state for some runlevels:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --level &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; on|off**&lt;/span&gt;&lt;br /&gt;* one or several runlevel(s) specified without separator&lt;br /&gt;** only "on" as sense there (to add/activate the service)&lt;br /&gt;&lt;br /&gt;Define the state for some runlevels of an installed service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;chkconfig --level &lt;level(s)&gt;* &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; on|off*&lt;/span&gt;&lt;br /&gt;* "on" to "activate" the service, "off" otherwise&lt;br /&gt;&lt;br /&gt;Get the current status of all services:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service --status-all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the current status of a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Stop a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Restart a service:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;service &lt;span style="font-weight: bold;"&gt;serviceName&lt;/span&gt; restart&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2939889332316774217?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2939889332316774217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/manage-services-under-gnulinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2939889332316774217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2939889332316774217'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/manage-services-under-gnulinux.html' title='Manage services under GNU/Linux distributions providing service and chkconfig'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4127087071150919412</id><published>2008-02-11T12:44:00.001+01:00</published><updated>2008-02-11T12:47:42.569+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Request DEB packages ("Debian-like" GNU/Linux distribution)</title><content type='html'>A simple refresh of what can be done with &lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg&lt;/span&gt; tool.&lt;br /&gt;&lt;br /&gt;All those commands query installed packages.&lt;br /&gt;&lt;br /&gt;Get the list of packages:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of packages matching a specific pattern:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -l &lt;span style="font-weight: bold;"&gt;pattern&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;For instance for libraries: dpkg -l lib*&lt;br /&gt;&lt;br /&gt;General information about a package:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -s &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of files of a package:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -L &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the package providing a specific file:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -S &lt;span style="font-weight: bold;"&gt;myFilePathOrPattern&lt;/span&gt;*&lt;/span&gt;&lt;br /&gt;*: absolute path or pattern&lt;br /&gt;&lt;br /&gt;To get the general information of the package providing a specific file (under GNU/Bash) with only one command line:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;dpkg -s $( dpkg -S &lt;span style="font-weight: bold;"&gt;myFilePath &lt;/span&gt;|awk '{print $1}' |sed -e 's/://g;' )&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4127087071150919412?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4127087071150919412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/request-deb-packages-debian-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4127087071150919412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4127087071150919412'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/request-deb-packages-debian-like.html' title='Request DEB packages (&quot;Debian-like&quot; GNU/Linux distribution)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-267646019206369259</id><published>2008-02-11T12:22:00.000+01:00</published><updated>2008-02-11T12:39:10.567+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Request RPM packages ("Redhat-like" GNU/Linux distribution)</title><content type='html'>Request RPM packages ("Redhat-like" GNU/Linux distribution)&lt;br /&gt;A simple refresh of what can be done with &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm&lt;/span&gt; tool.&lt;br /&gt;&lt;br /&gt;To begin, the -q option allow to select the RPM packages to request.&lt;br /&gt;The -a option allow to select all (potentially with a pattern to match).&lt;br /&gt;Name, pattern and even version can be specified for greatest precision in selection.&lt;br /&gt;&lt;br /&gt;All those commands query installed packages.&lt;br /&gt;&lt;br /&gt;Get the list of packages:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qa&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of packages matching a specific pattern:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qa &lt;span style="font-weight: bold;"&gt;pattern&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;For instance for X libraries: rpm -qa lib*X*&lt;br /&gt;&lt;br /&gt;General information about a package:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qi &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;For instance, for a specific kernel: rpm -qi kernel-2.6.20-1.2962.fc6&lt;br /&gt;&lt;br /&gt;Get the list of files of a package:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -ql &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get ChangeLog of a package:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -q --changelog &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of packages needed by another package:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qR &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of what provides a package:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -q --provides &lt;span style="font-weight: bold;"&gt;myPackageName&lt;/span&gt;[-&lt;span style="font-weight: bold;"&gt;myCompletePackageVersion&lt;/span&gt;]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Get the list of packages providing a specific functionality:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -q --whatprovides &lt;span style="font-weight: bold;"&gt;functionalityName&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;For instance, for the perl functionality "Authen::SASL": rpm -q --whatprovides "perl(Authen::SASL)"&lt;br /&gt;&lt;br /&gt;Get the package providing a specific file:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qf &lt;span style="font-weight: bold;"&gt;myFilePath&lt;/span&gt;*&lt;/span&gt;&lt;br /&gt;*: the path can be relative to current directory or absolute&lt;br /&gt;&lt;br /&gt;To get the general information of the package providing a specific file (under GNU/Bash) with only one command line:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-style: italic;"&gt;rpm -qi $( rpm -q --file &lt;span style="font-weight: bold;"&gt;myFilePath &lt;/span&gt;)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-267646019206369259?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/267646019206369259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/request-rpm-packages-redhat-like.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/267646019206369259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/267646019206369259'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/request-rpm-packages-redhat-like.html' title='Request RPM packages (&quot;Redhat-like&quot; GNU/Linux distribution)'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-3260912140876710968</id><published>2008-02-11T12:05:00.000+01:00</published><updated>2008-02-11T12:08:30.873+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Define what is the installed GNU/Linux distribution</title><content type='html'>The "release" part of the Linux Standard Base (LSB) allow answering this question.&lt;br /&gt;&lt;br /&gt;Tips:&lt;br /&gt;- to install it under GNU/Linux Fedora, use &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum install redhat-lsb&lt;/span&gt;&lt;br /&gt;- to install it under GNU/Linux Debian, use &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;apt-get install lsb-release&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then, simply use the command &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;lsb_release -i&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;This is output instances:&lt;br /&gt;- under GNU/Linux Fedora, it answers "Distributor ID: Fedora"&lt;br /&gt;- under GNU/Linux Debian, it answers "Distributor ID: Debian"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-3260912140876710968?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/3260912140876710968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/define-what-is-installed-gnulinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3260912140876710968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/3260912140876710968'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/02/define-what-is-installed-gnulinux.html' title='Define what is the installed GNU/Linux distribution'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-7927045406323527286</id><published>2008-01-27T18:07:00.000+01:00</published><updated>2008-01-27T18:12:39.274+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Define installed packages of specific Vendor</title><content type='html'>When lots of things are installed on a computer, it is sometimes difficult to define what are the installed packages of a specific vendor.&lt;br /&gt;This is a little command allowing to get such Information :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rpm -qa --qf "%-30{NAME}\t%{VENDOR}\n" |grep -i &lt;span style="font-weight: bold;"&gt;VENDOR_NAME&lt;/span&gt;&lt;/span&gt;&lt;vendor_name&gt;&lt;br /&gt;&lt;br /&gt;&lt;vendor_name&gt;&lt;/vendor_name&gt;&lt;/vendor_name&gt;&lt;span style="font-weight: bold;"&gt;VENDOR_NAME&lt;/span&gt; &lt;vendor_name&gt;&lt;vendor_name&gt;must be replaced by what you want ("Red Hat" for instance).&lt;br /&gt;&lt;br /&gt;The opposite can be done. To define what are the installed packages which are not provided by a specific vendor :&lt;br /&gt;&lt;span style="font-style: italic;"&gt;rpm -qa --qf "%-30{NAME}\t%{VENDOR}\n" |grep -v &lt;/span&gt;&lt;/vendor_name&gt;&lt;/vendor_name&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;VENDOR_NAME&lt;/span&gt;&lt;vendor_name&gt;&lt;vendor_name&gt; &lt;vendor_name&gt;&lt;/vendor_name&gt;&lt;/vendor_name&gt;&lt;/vendor_name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-7927045406323527286?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/7927045406323527286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/01/define-installed-packages-of-specific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7927045406323527286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/7927045406323527286'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2008/01/define-installed-packages-of-specific.html' title='Define installed packages of specific Vendor'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-570614882860394926</id><published>2007-11-18T15:38:00.000+01:00</published><updated>2008-01-27T17:25:11.988+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Fix setup of pulseaudio under GNU/Linux Fedora 8</title><content type='html'>It is important to ensure that &lt;span style="font-style: italic;"&gt;pulseaudio&lt;/span&gt; is well installed, and used as wished.&lt;br /&gt;After having installed the &lt;span style="font-style: italic;"&gt;kde-settings-pulseaudio&lt;/span&gt; package (and perhaps something else ?), I have had issue with sound support.&lt;br /&gt;There is lots of interesting information on the "&lt;a href="http://www.pulseaudio.org/wiki/PerfectSetup"&gt;The Perfect Setup&lt;/a&gt;" page of &lt;a href="http://www.pulseaudio.org/"&gt;official pulseaudio site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;According to my needs, I have followed the instructions about "ALSA Applications" and "KDE" (&lt;span style="font-style: italic;"&gt;mplayer&lt;/span&gt; and &lt;span style="font-style: italic;"&gt;xmms&lt;/span&gt; works well without the given instructions).&lt;br /&gt;&lt;br /&gt;Unfortunately, I have had still problems, and found that several other users have too.&lt;br /&gt;The solution can be found into &lt;a href="http://forums.fedora-fr.org/viewtopic.php?id=26296"&gt;this topic&lt;/a&gt;:&lt;br /&gt;- simply add the &lt;span style="font-style: italic;"&gt;MODE="0666"&lt;/span&gt; mention after some instructions of the &lt;span style="font-style: italic;"&gt;/etc/udev/rules.d/40-alsa.rules&lt;/span&gt; file,&lt;br /&gt;- ensure there is no more /tmp/pulse-XXX (with XXX username) directory with not rights enough.&lt;br /&gt;&lt;br /&gt;But it is not enough neither, additional information can be found on &lt;a href="https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=47527&amp;amp;forum=10&amp;amp;post_id=220408"&gt;this topic&lt;/a&gt;, it solves my problem one for good.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-570614882860394926?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/570614882860394926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/fix-setup-of-pulseaudio-under-gnufedora.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/570614882860394926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/570614882860394926'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/fix-setup-of-pulseaudio-under-gnufedora.html' title='Fix setup of pulseaudio under GNU/Linux Fedora 8'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4917731873825250248</id><published>2007-11-17T23:12:00.000+01:00</published><updated>2007-11-17T23:13:46.911+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Hang problems under GNU/Linux Fedora 8</title><content type='html'>It seems there is several situations leading to kernel hang under &lt;a href="http://docs.fedoraproject.org/release-notes/f8/iso/en_US/"&gt;GNU/Linux Fedora 8&lt;/a&gt;.&lt;br /&gt;The &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=283161"&gt;bug 283161 report&lt;/a&gt; gives lots of information about solution.&lt;br /&gt;For instance, this is kernel options which can be used (not all together):&lt;br /&gt; - &lt;span style="font-style: italic;"&gt;nohz=off highres=off&lt;/span&gt;&lt;br /&gt; - &lt;span style="font-style: italic;"&gt;clocksource=acpi_pm&lt;/span&gt;&lt;br /&gt; - &lt;span style="font-style: italic;"&gt;nolapic_timer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately, I have tests all "sets" but without success.&lt;br /&gt;Lots of tests and several discussions lead mind to potential graphical driver issue.&lt;br /&gt;As soon as I have replaced use of &lt;span style="font-style: italic;"&gt;radeon&lt;/span&gt; by &lt;span style="font-style: italic;"&gt;vesa&lt;/span&gt;, I had no more problem (but I have had no time enough to keep on testing).&lt;br /&gt;To benefit from my graphical card efficiencies, I have installed the last Fedora 7 &lt;span style="font-style: italic;"&gt;radeon&lt;/span&gt; drivers version and have still no more issue (after having switched back use of those &lt;span style="font-style: italic;"&gt;radeon&lt;/span&gt; drivers).&lt;br /&gt;&lt;br /&gt;This is only a temporarily fix until an official solution is given.&lt;br /&gt;I will report as soon as I would know about it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4917731873825250248?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4917731873825250248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/hang-problems-under-gnulinux-fedora-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4917731873825250248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4917731873825250248'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/hang-problems-under-gnulinux-fedora-8.html' title='Hang problems under GNU/Linux Fedora 8'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4891597668130981427</id><published>2007-11-17T22:37:00.000+01:00</published><updated>2007-11-17T23:00:03.645+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade GNU/Linux Fedora from 7 to 8</title><content type='html'>Upgrade from Fedora 7 to Fedora 8 can be done with the same method I have explained into &lt;a href="http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html"&gt;another post&lt;/a&gt;.&lt;br /&gt;In addition, there is &lt;a href="http://fedoraproject.org/wiki/YumUpgradeFaq#head-56b13936246769f517ac488a0098d193c7fc3600"&gt;recommendations&lt;/a&gt; of &lt;a href="http://fedoraproject.org/"&gt;Fedora project&lt;/a&gt;.&lt;br /&gt;Eventually, this is additional instructions allowing to find potential issues with installed packages (need &lt;span style="font-style: italic;"&gt;yum-utils&lt;/span&gt; package):&lt;br /&gt;&lt;span style="font-style: italic;"&gt;package-cleanup --problems&lt;/span&gt;&lt;br /&gt; to find problems&lt;br /&gt;&lt;span style="font-style: italic;"&gt;package-cleanup --orphans&lt;/span&gt;&lt;br /&gt; to list installed packages which are not available from currently configured repositories. It allows to find orphan installed packages which may be removed now.&lt;br /&gt;&lt;br /&gt;Personally, I have had hang problems after upgrade (independent from it).&lt;br /&gt;My next post will be linked to it, and known solutions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4891597668130981427?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4891597668130981427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4891597668130981427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4891597668130981427'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/11/upgrade-gnulinux-fedora-from-7-to-8.html' title='Upgrade GNU/Linux Fedora from 7 to 8'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2847289135666879747</id><published>2007-10-09T18:58:00.000+02:00</published><updated>2007-10-09T19:07:16.905+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Optimization'/><title type='text'>Make Microsoft Windows stops swapping</title><content type='html'>I've recently found something which should be very useful in various situation.&lt;br /&gt;A &lt;a href="http://technet2.microsoft.com/WindowsServer/en/library/3d3b3c16-c901-46de-8485-166a819af3ad1033.mspx?mfr=true"&gt;register key&lt;/a&gt; to update to disable the swap of drivers and system.&lt;br /&gt;It might be interesting after having minimized an application and let it during some times, for instance.&lt;br /&gt;In other words, a performance improvement VS some more memory use.&lt;br /&gt;&lt;br /&gt;I almost do not use Microsoft Windows anymore, so let me know if it does something for you ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2847289135666879747?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2847289135666879747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/10/make-microsoft-windows-stop-swapping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2847289135666879747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2847289135666879747'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/10/make-microsoft-windows-stop-swapping.html' title='Make Microsoft Windows stops swapping'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4711908853826190806</id><published>2007-09-23T01:25:00.001+02:00</published><updated>2007-09-23T02:13:42.384+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Remove network interface under Solaris</title><content type='html'>Under Solaris, it is very more easy to remove than to add. The network interface can be found thanks to the couple (name, inet address):&lt;br /&gt;N.B.: All checks have been removed for better legibility, but it is very important to check returned code after each request.&lt;br /&gt;&lt;br /&gt;// We consider the existence of the variables (unsigned char *) "networkInterfaceName", "inetAddress" which could be respectively "eth0" and "192.168.80.1" for instance.&lt;br /&gt;&lt;br /&gt;int socketDescriptor;&lt;br /&gt;struct sockaddr_in *addr;&lt;br /&gt;struct lifreq lifr;&lt;br /&gt;&lt;br /&gt;sd = socket(AF_INET, SOCK_DGRAM, 0);&lt;br /&gt;&lt;br /&gt;memset(&amp;amp;lifr, 0, sizeof(lifr));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(lifr.lifr_addr);&lt;br /&gt;strncpy(lifr.lifr_name, networkInterfaceName, sizeof(lifr.lifr_name));&lt;br /&gt;addr-&gt;sin_family = AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr = inet_addr(inetAddress);&lt;br /&gt;ioctl(socketDescriptor, SIOCLIFREMOVEIF, (caddr_t) &amp;amp;lifr)&lt;br /&gt;close(socketDescriptor);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4711908853826190806?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4711908853826190806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/remove-network-interface-under-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4711908853826190806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4711908853826190806'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/remove-network-interface-under-solaris.html' title='Remove network interface under Solaris'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-6422179600972447106</id><published>2007-09-23T01:18:00.000+02:00</published><updated>2007-09-23T02:13:49.632+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Remove network interface under GNU/Linux</title><content type='html'>It is enough to switch down the corresponding alias network interface:&lt;br /&gt;N.B.: All checks have been removed for better legibility, but it is very important to check returned code after each request.&lt;br /&gt;&lt;br /&gt;// We consider the existence of the variable (unsigned char *) "aliasInterfaceName" ("eth0:myAlias" for instance).&lt;br /&gt;int sd;&lt;br /&gt;struct ifreq ifr;&lt;br /&gt;&lt;br /&gt;sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));&lt;br /&gt;&lt;br /&gt;memset(&amp;amp;ifr, 0, sizeof(struct ifreq));&lt;br /&gt;strncpy(ifr.lifr_name, aliasInterfaceName, sizeof(ifr.ifr_name));&lt;br /&gt;ifr.ifr_flags = ~IFF_UP;&lt;br /&gt;ioctl(sd, SIOCSIFFLAGS, &amp;amp;ifr);&lt;br /&gt;close(sd);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-6422179600972447106?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/6422179600972447106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/remove-network-interface-under-gnulinux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6422179600972447106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/6422179600972447106'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/remove-network-interface-under-gnulinux.html' title='Remove network interface under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2069557365664700729</id><published>2007-09-23T01:13:00.000+02:00</published><updated>2007-09-23T02:13:56.714+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Add network interface under Solaris</title><content type='html'>Under Solairs, it is not trivial to add a network interface, there is no alias, and it seems to not be possible to specify the additional network interface name (so it must be got and kept).&lt;br /&gt;N.B.: All checks have been removed for better legibility, but it is very important to check returned code after each request.&lt;br /&gt;&lt;br /&gt;// We consider the existence of the variables (unsigned char *) "networkInterfaceName", "inetAddress", "broadcastAddress" and "netmaskAddress" which could be respectively "eth0", "192.168.80.1", "192.168.80.255" and "255.255.255.0" for instance.&lt;br /&gt;&lt;br /&gt;int sd;&lt;br /&gt;struct sockaddr_in *addr;&lt;br /&gt;struct lifreq lifr, lifrBroadcast, lifrNetmask, lifrFlags;&lt;br /&gt;const char *aliasName;&lt;br /&gt;&lt;br /&gt;// Resets structure.&lt;br /&gt;memset(&amp;amp;lifr, 0, sizeof(lifr));&lt;br /&gt;strncpy(lifr.lifr_name, networkInterfaceName, sizeof(lifr.lifr_name));&lt;br /&gt;&lt;br /&gt;sd = socket(AF_INET, SOCK_DGRAM, 0);&lt;br /&gt;ioctl(sd, SIOCLIFADDIF, (caddr_t) &amp;amp;lifr);&lt;br /&gt;&lt;br /&gt;// Very important to get the alias name to update network interface parameters.&lt;br /&gt;aliasName = lifr.lifr_name;&lt;br /&gt;&lt;br /&gt;// Manages broadcast.&lt;br /&gt;memset(&amp;amp;lifrBroadcast, 0, sizeof(lifrBroadcast));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(lifrBroadcast.lifr_broadaddr);&lt;br /&gt;strncpy(lifrBroadcast.lifr_name, aliasName, sizeof(lifrBroadcast.lifr_name));&lt;br /&gt;addr-&gt;sin_family = AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr = inet_addr(broadcastAddress);&lt;br /&gt;ioctl(sd, SIOCSLIFBRDADDR, (caddr_t) &amp;amp;lifrBroadcast);&lt;br /&gt;&lt;br /&gt;// Manages netmask.&lt;br /&gt;memset(&amp;amp;lifrNetmask, 0, sizeof(lifrNetmask));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(lifrNetmask.lifr_addr);&lt;br /&gt;strncpy(lifrNetmask.lifr_name, aliasName, sizeof(lifrNetmask.lifr_name));&lt;br /&gt;addr-&gt;sin_family = AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr = inet_addr(netmaskAddress);&lt;br /&gt;ioctl(sd, SIOCSLIFNETMASK, (caddr_t) &amp;amp;lifrNetmask);&lt;br /&gt;&lt;br /&gt;// Defines the address of the new interface.&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(lifr.lifr_addr);&lt;br /&gt;addr-&gt;sin_family = AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr = inet_addr(inetAddress);&lt;br /&gt;ioctl(sd, SIOCSLIFADDR, (caddr_t) &amp;amp;lifr);&lt;br /&gt;&lt;br /&gt;// Sets the new interface UP.&lt;br /&gt;memset(&amp;amp;lifrFlags, 0, sizeof(lifrFlags));&lt;br /&gt;strncpy(lifrFlags.lifr_name, aliasName, sizeof(lifrFlags.lifr_name));&lt;br /&gt;ioctl(sd, SIOCGLIFFLAGS, (caddr_t) &amp;amp;lifrFlags)&lt;br /&gt;lifrFlags.lifr_flags |= IFF_UP;&lt;br /&gt;ioctl(sd, SIOCSLIFFLAGS, (caddr_t) &amp;amp;lifrFlags);&lt;br /&gt;close(sd);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2069557365664700729?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2069557365664700729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/add-network-interface-under-solaris.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2069557365664700729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2069557365664700729'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/add-network-interface-under-solaris.html' title='Add network interface under Solaris'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-4004133536943067031</id><published>2007-09-23T01:07:00.000+02:00</published><updated>2007-09-23T02:14:05.349+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Add network interface under GNU/Linux</title><content type='html'>It is not so hard to perform it under GNU/Linux with alias.&lt;br /&gt;The aim, is to add an alias to an existing network interface with the wished inet, broadcast and netmask addresses:&lt;br /&gt;N.B.: All checks have been removed for better legibility, but it is very important to check returned code after each request.&lt;br /&gt;&lt;br /&gt;// We consider the existence of the variables (unsigned char *) "aliasInterfaceName", "inetAddress", "broadcastAddress" and "netmaskAddress" which could be respectively "eth0:myAlias"; "192.168.80.1", "192.168.80.255" and "255.255.255.0" for instance.&lt;br /&gt;&lt;br /&gt;int sd;&lt;br /&gt;struct sockaddr_in *addr;&lt;br /&gt;struct ifreq ifr, ifrBroadcast, ifrNetmask;&lt;br /&gt;&lt;br /&gt;sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));&lt;br /&gt;&lt;br /&gt;// Add alias.&lt;br /&gt;memset(&amp;amp;ifr, 0, sizeof(ifr));&lt;br /&gt;strncpy(ifr.lifr_name, aliasInterfaceName, sizeof(ifr.ifr_name));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(ifr.ifr_addr);&lt;br /&gt;addr-&gt;sin_family=AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr=inet_addr(inetAddress);&lt;br /&gt;ioctl(sd, SIOCSIFADDR, &amp;amp;ifr);&lt;br /&gt;&lt;br /&gt;// Manages broadcast.&lt;br /&gt;memset(&amp;amp;ifrBroadcast, 0, sizeof(ifrBroadcast));&lt;br /&gt;strncpy(ifrBroadcast.lifr_name, aliasInterfaceName, sizeof(ifrBroadcast.ifr_name));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(ifrBroadcast.ifr_addr);&lt;br /&gt;addr-&gt;sin_family=AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr=inet_addr(broadcastAddress);&lt;br /&gt;ioctl(sd, SIOCSIFBRDADDR, &amp;amp;ifrBroadcast)&lt;br /&gt;&lt;br /&gt;// Manages netmask.&lt;br /&gt;memset(&amp;amp;ifrNetmask, 0, sizeof(ifrNetmask));&lt;br /&gt;strncpy(ifrNetmask.lifr_name, aliasInterfaceName, sizeof(ifrNetmask.ifr_name));&lt;br /&gt;addr = (struct sockaddr_in *) &amp;amp;(ifrNetmask.ifr_addr);&lt;br /&gt;addr-&gt;sin_family=AF_INET;&lt;br /&gt;addr-&gt;sin_addr.s_addr=inet_addr(netmaskAddress);&lt;br /&gt;ioctl(sd, SIOCSIFNETMASK, &amp;amp;ifrNetmask);&lt;br /&gt;&lt;br /&gt;close(sd);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-4004133536943067031?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/4004133536943067031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/add-network-interface-under-gnulinux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4004133536943067031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/4004133536943067031'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/add-network-interface-under-gnulinux.html' title='Add network interface under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-5523298203087469637</id><published>2007-09-23T00:33:00.000+02:00</published><updated>2007-09-23T02:14:13.291+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Get MAC address under GNU/Linux or Solaris</title><content type='html'>This is a way to get MAC address of a network interface in C language.&lt;br /&gt;Under GNU/Linux it can be done thanks to a RAW socket:&lt;br /&gt;N.B.: All checks have been removed for better legibility, but it is very important to check returned code after each request.&lt;br /&gt;&lt;br /&gt;// Consider a variable "networkInterfaceName" of type char * is defined ("eth0" for instance).&lt;br /&gt;int sd;&lt;br /&gt;struct ifreq ifr;&lt;br /&gt;const unsigned char *hardwareAddress;&lt;br /&gt;&lt;br /&gt;sd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));&lt;br /&gt;memset(&amp;amp;ifr, 0, sizeof(ifr));&lt;br /&gt;setNameInIfreq(&amp;amp;ifr, networkInterfaceName);&lt;br /&gt;hardwareAddress = (unsigned char *) &amp;amp;ifr.ifr_hwaddr.sa_data;&lt;br /&gt;close(sd);&lt;br /&gt;&lt;br /&gt;Under Solaris, it begins to be less easy, we need to use &lt;a href="http://www.opengroup.org/onlinepubs/009618899/"&gt;DLPI&lt;/a&gt; code:&lt;br /&gt;// Consider a variable "devicePath" of type char * is defined ("/dev/eth0" for instance).&lt;br /&gt;int sd;&lt;br /&gt;dl_phys_addr_req_t dlpareq;&lt;br /&gt;dl_phys_addr_ack_t *dlpaack;&lt;br /&gt;struct strbuf msg;&lt;br /&gt;char buf[128];&lt;br /&gt;int flags = 0;&lt;br /&gt;const unsigned char *hardwareAddress;&lt;br /&gt;&lt;br /&gt;sd = open(devicePath, O_RDWR));&lt;br /&gt;dlpareq.dl_primitive = DL_PHYS_ADDR_REQ;&lt;br /&gt;dlpareq.dl_addr_type = DL_CURR_PHYS_ADDR;&lt;br /&gt;msg.buf = (char *)&amp;dlpareq;&lt;br /&gt;msg.len = DL_PHYS_ADDR_REQ_SIZE;&lt;br /&gt;putmsg(sd, &amp;amp;msg, NULL, 0);&lt;br /&gt;dlpaack = (dl_phys_addr_ack_t *)buf;&lt;br /&gt;msg.buf = (char *)buf;&lt;br /&gt;msg.len = 0;&lt;br /&gt;msg.maxlen = sizeof (buf);&lt;br /&gt;getmsg(sd, &amp;amp;msg, NULL, &amp;amp;flags);&lt;br /&gt;memcpy(hardwareAddress, &amp;amp;buf[dlpaack-&gt;dl_addr_offset], dlpaack-&gt;dl_addr_length);&lt;br /&gt;close(sd);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-5523298203087469637?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/5523298203087469637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/get-mac-address-under-gnulinux-or.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5523298203087469637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/5523298203087469637'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/get-mac-address-under-gnulinux-or.html' title='Get MAC address under GNU/Linux or Solaris'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-8055858224824006099</id><published>2007-09-22T00:29:00.000+02:00</published><updated>2007-09-22T00:30:46.333+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Computer science Experience Knowledge SHAring</title><content type='html'>For more understanding, the blog is now named "Computer science Experience Knowledge SHAring", which could be shortly called CEKSHA.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-8055858224824006099?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/8055858224824006099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/computer-science-experience-knowledge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8055858224824006099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/8055858224824006099'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/computer-science-experience-knowledge.html' title='Computer science Experience Knowledge SHAring'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-2961790801466984646</id><published>2007-09-15T00:26:00.000+02:00</published><updated>2007-09-23T02:10:10.349+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Upgrade GNU/Linux Fedora</title><content type='html'>Upgrade from &lt;a href="http://fedoraproject.org/"&gt;Fedora&lt;/a&gt; core N to Fedora core N+1 can be done thanks to &lt;a style="color: rgb(51, 51, 255);" href="http://linux.duke.edu/projects/yum/"&gt;yum&lt;/a&gt;, although it is not really recommended.&lt;br /&gt;I have successfully performed such upgrade from core 3 (perhaps core 2, I'm not sure), to core 4, then core 5 and finally core 6. Upgrade from Fedora core 6 to Fedora 7 fails with this way because of great distribution architecture update (core and extras merged).&lt;br /&gt;&lt;br /&gt;This is steps which can be followed to perform such upgrade:&lt;br /&gt;- open a terminal in run level 3,&lt;br /&gt;- temporary set default run level to 3 (edit &lt;span style="font-style: italic;"&gt;/etc/inittab&lt;/span&gt; file) to avoid potential problem with card detection or something else during next boot,&lt;br /&gt;- ensure to have the last version of yum thanks to &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum upgrade yum&lt;/span&gt;,&lt;br /&gt;- clean the yum meta-data to avoid some rare conflict &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum clean all&lt;/span&gt;,&lt;br /&gt;- upgrade the release thanks to fedora-release (and fedora-release-notes from Fedora core 6) package(s)&lt;br /&gt;For instance, from core 5 to core 6 : &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;rpm -Uvh &lt;/span&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-6-4.noarch.rpm"&gt;fedora-release&lt;/a&gt; &lt;a style="color: rgb(51, 51, 255);" href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/Fedora/RPMS/fedora-release-notes-6-3.noarch.rpm"&gt;fedora-release-notes&lt;/a&gt;&lt;br /&gt;- finally upgrade the full system, ensuring to keep information about all progress into a file, thanks to &lt;span style="font-style: italic; color: rgb(51, 51, 255);"&gt;yum upgrade 2&gt;&amp;amp;1 |tee /tmp/systemUpgrade.log&lt;/span&gt;&lt;br /&gt;- fix potential little problem like missing symbolic link (I had one about&lt;span style="font-style: italic;"&gt; i686-redhat-linux-gnu&lt;/span&gt; one time),&lt;br /&gt;- think to upgrade depositories if needed (livna, dries, dag ...),&lt;br /&gt;- update the &lt;span style="font-style: italic;"&gt;/etc/grub.conf&lt;/span&gt; or &lt;span style="font-style: italic;"&gt;/etc/lilo.conf&lt;/span&gt; file according to your environment if you want to ensure the default use of a kernel,&lt;br /&gt;- reboot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-2961790801466984646?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/2961790801466984646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2961790801466984646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/2961790801466984646'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/upgrade-gnulinux-fedora.html' title='Upgrade GNU/Linux Fedora'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-73612234253770248</id><published>2007-09-08T20:56:00.000+02:00</published><updated>2007-09-08T23:36:40.064+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><title type='text'>How to choose a *nix shell</title><content type='html'>Today, there is very lots of &lt;a href="http://en.wikipedia.org/wiki/Comparison_of_computer_shells"&gt;shells&lt;/a&gt; like &lt;a href="http://en.wikipedia.org/wiki/Bourne_shell"&gt;sh&lt;/a&gt;, &lt;a href="http://www.gnu.org/software/bash"&gt;bash&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/C_shell"&gt;csh&lt;/a&gt;, &lt;a href="http://www.tcsh.org/"&gt;tcsh&lt;/a&gt;, &lt;a href="http://www.kornshell.com/"&gt;ksh&lt;/a&gt;, &lt;a href="http://www.zsh.org/"&gt;zsh&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Almquist_shell"&gt;ash&lt;/a&gt; ...&lt;br /&gt;For various reasons, it makes sens to choose one, a time for all, although it is not so easy.&lt;br /&gt;Personally, I have first chosen &lt;span style="font-style: italic;"&gt;tcsh&lt;/span&gt; for its functionalities and its legibility very near the &lt;span style="font-style: italic;"&gt;C&lt;/span&gt; language. On the first hand, it was not a bad choice because thanks to it, I had done all I had needed, on the other hand I had faced two issues.&lt;br /&gt;The first was the fact that function does not exists under &lt;span style="font-style: italic;"&gt;tcsh&lt;/span&gt;, and that alias become dirty very quickly.&lt;br /&gt;The second, the more important, is this is not installed by default on all *nix operating systems.&lt;br /&gt;&lt;br /&gt;The wish to create something which can be used on lots of operating system, particularly on &lt;span style="font-style: italic;"&gt;GNU/Linux&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;Solaris&lt;/span&gt;, and &lt;span style="font-style: italic;"&gt;Cygwin&lt;/span&gt; which was my first shell multi-OS need, my second and definitive choice has been for &lt;span style="font-style: italic;"&gt;GNU/Bash&lt;/span&gt;. It resolves the two points and it perfectly fits my needs.&lt;br /&gt;&lt;br /&gt;To lead me on this choice, I have read lots of articles and Web Site, and I have concluded that &lt;a style="color: rgb(102, 51, 255);" href="http://www.gnu.org/software/bash"&gt;&lt;span style="font-style: italic;"&gt;GNU/Bash&lt;/span&gt;&lt;/a&gt; is now embedded as installation base on almost all operating systems. In the case it would not, it can be used as sh compatible.&lt;br /&gt;&lt;br /&gt;It is why, I think it is the best choice in most cases. If you have not made your choice, you might make this one too, it will be a guarantee of perenity and should answer to all your needs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-73612234253770248?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/73612234253770248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/how-to-choose-nix-shell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/73612234253770248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/73612234253770248'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/how-to-choose-nix-shell.html' title='How to choose a *nix shell'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-760939236014836327</id><published>2007-09-04T20:59:00.000+02:00</published><updated>2007-09-23T02:09:46.651+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>Compile OpenVPN and TUN under Solaris</title><content type='html'>I've recently worked on Solaris and need to compile the source code of openVPN and TUN.&lt;br /&gt;At first, it seemed easy but because of some compatibility issues, it was not.&lt;br /&gt;You can follow those steps to get openvpn executable under Solaris:&lt;br /&gt;- download the &lt;a href="http://openvpn.net/download.html"&gt;openVPN source code&lt;/a&gt; and uncompress it under &lt;span style="font-style: italic;"&gt;[OPENVPN_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- download the &lt;a href="http://vtun.sourceforge.net/tun/"&gt;TUN source code&lt;/a&gt; and uncompress it under &lt;span style="font-style: italic;"&gt;[TUNE_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- copy the &lt;span style="font-style: italic;"&gt;[TUNE_DIRECTORY]/solaris/if_tun.h&lt;/span&gt; file to &lt;span style="font-style: italic;"&gt;[OPENVPN_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- edit the [OPENVPN_DIRECTORY]/tun.c file and add the &lt;span style="color: rgb(102, 0, 204); font-style: italic;"&gt;#include "if_tun.h"&lt;/span&gt; line after the &lt;span style="color: rgb(102, 0, 204); font-style: italic;"&gt;#include "tun.h"&lt;/span&gt; one,&lt;br /&gt;- under &lt;span style="font-style: italic;"&gt;[OPENVPN_DIRECTORY]&lt;/span&gt;, execute &lt;span style="color: rgb(102, 0, 204); font-style: italic;"&gt;./configure --disable-lzo&lt;/span&gt;,&lt;br /&gt;- ensure there is a &lt;span style="font-style: italic;"&gt;make&lt;/span&gt; executable into your path, for instance create a symbolic link executing &lt;span style="font-style: italic; color: rgb(102, 0, 204);"&gt;ln -s /usr/sfw/bin/gmake /usr/bin/make&lt;/span&gt;,&lt;br /&gt;- then execute &lt;span style="color: rgb(102, 0, 204);"&gt;make&lt;/span&gt; under &lt;span style="font-style: italic;"&gt;[OPENVPN_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- finally the &lt;span style="font-style: italic;"&gt;openvpn&lt;/span&gt; executable is ready for Solaris.&lt;br /&gt;&lt;br /&gt;Then, you can follow those steps to get the tun functionality under Solaris:&lt;br /&gt;- create the subdirectory &lt;span style="font-style: italic;"&gt;[TUNE_DIRECTORY] /solaris/sys&lt;/span&gt;,&lt;br /&gt;- download the &lt;a href="http://cvs.opensolaris.org/source/raw/onnv/onnv-gate/usr/src/uts/common/sys/dditypes.h"&gt;dditypes.h&lt;/a&gt; file and put it under &lt;span style="font-style: italic;"&gt;[TUNE_DIRECTORY] /solaris/sys&lt;/span&gt; (it fixes an incompatibility issue),&lt;br /&gt;- ensure there is a &lt;span style="font-style: italic;"&gt;ld&lt;/span&gt; executable into your path, for instance create a symbolic link executing &lt;span style="font-style: italic; color: rgb(102, 0, 204);"&gt;ln -s /usr/sfw/bin/gld /usr/bin/ld&lt;/span&gt;,&lt;br /&gt;- execute &lt;span style="font-style: italic; color: rgb(102, 0, 204);"&gt;make install&lt;/span&gt; under &lt;span style="font-style: italic;"&gt;[TUNE_DIRECTORY]&lt;/span&gt;,&lt;br /&gt;- finally the &lt;span style="font-style: italic;"&gt;tun&lt;/span&gt; functionality is ready for Solaris.&lt;br /&gt;&lt;br /&gt;It is now possible to use openVPN and TUN under Solaris.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-760939236014836327?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/760939236014836327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/compile-openvpn-and-tun-under-solaris.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/760939236014836327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/760939236014836327'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/compile-openvpn-and-tun-under-solaris.html' title='Compile OpenVPN and TUN under Solaris'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-308409622113876174</id><published>2007-09-01T20:41:00.000+02:00</published><updated>2007-09-23T02:12:15.611+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnu/Linux'/><title type='text'>Create a full and safe emails server under GNU/Linux</title><content type='html'>Not so easy ? right.&lt;br /&gt;Anyway, almost one year ago, I've successfully followed a very interesting &lt;a href="http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier"&gt;How To Forge Tutorial&lt;/a&gt; which allows me to have such a fully functional emails server. Because it is for my own purpose, there is only few users using it, and I so don't know how must it is scalable.&lt;br /&gt;&lt;br /&gt;This emails server is very interesting thanks to its completeness and security. The system is compounded of :&lt;br /&gt;- &lt;a href="http://www.postfix.org/"&gt;postfix&lt;/a&gt; for the &lt;a href="http://fr.wikipedia.org/wiki/Mail_Transfer_Agent"&gt;MTA&lt;/a&gt; layer,&lt;br /&gt;- &lt;a href="http://www.courier-mta.org/"&gt;courier-imap&lt;/a&gt; for mailboxes,&lt;br /&gt;- &lt;a href="http://www.clamav.net/"&gt;clamAV&lt;/a&gt;, &lt;a href="http://www.openssl.org/"&gt;openssl&lt;/a&gt;, &lt;a href="http://www.openldap.org/"&gt;openldap&lt;/a&gt;, &lt;a href="http://asg.web.cmu.edu/sasl/sasl-library.html"&gt;cyrus-sasl&lt;/a&gt; and courier-authlib-mysql for authentication and anti-virus,&lt;br /&gt;- &lt;a href="http://www.mysql.com/"&gt;mysql&lt;/a&gt; for users configuration and administration,&lt;br /&gt;- &lt;a href="http://spamassassin.apache.org/"&gt;spamassassin&lt;/a&gt;, &lt;a href="http://www.rhyolite.com/anti-spam/dcc/"&gt;dcc&lt;/a&gt;, &lt;a href="http://razor.sourceforge.net/"&gt;razor&lt;/a&gt;, &lt;a href="http://pyzor.sourceforge.net/"&gt;pyzor&lt;/a&gt; and &lt;a href="http://www.ijs.si/software/amavisd"&gt;amavis-new&lt;/a&gt; for spamfilters.&lt;br /&gt;&lt;br /&gt;It works perfectly under Fedora core 5, and Fedora core 6 with my &lt;a href="http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier#comment-3039"&gt;additional instructions&lt;/a&gt;.&lt;br /&gt;During my documentation research in 2006, I have read articles enough to think that this system should work on several others GNU/Linux distributions, although packages name/configuration may differ.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-308409622113876174?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/308409622113876174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/308409622113876174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/308409622113876174'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/09/create-full-and-secured-emails-server.html' title='Create a full and safe emails server under GNU/Linux'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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-8547845480464472138.post-410162284190661546</id><published>2007-08-31T23:00:00.000+02:00</published><updated>2007-09-22T00:28:49.988+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Introduction</title><content type='html'>Hi everybody,&lt;br /&gt;&lt;br /&gt;The aim of this blog is simply to share knowledge earned into design/development/technical delicate and/or difficult situations in which loneliness takes all its meaning.&lt;br /&gt;Like lots of other people, in my personal and professional activities, I face such situations like very specific shell scripts needs, object oriented programming, native source code under GNU/Linux, Sun Solaris ...&lt;br /&gt;Documentation, source code and simply theories are sometimes so difficult to find that it would be a waste to not share acquired knowledge.&lt;br /&gt;I'll try to share such information as regularly as time will allow ...&lt;br /&gt;&lt;br /&gt;All the comments are welcomes. Do not hesitate to interact with me.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8547845480464472138-410162284190661546?l=bertrandbenoit.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bertrandbenoit.blogspot.com/feeds/410162284190661546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/08/introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/410162284190661546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8547845480464472138/posts/default/410162284190661546'/><link rel='alternate' type='text/html' href='http://bertrandbenoit.blogspot.com/2007/08/introduction.html' title='Introduction'/><author><name>Bertrand BENOIT</name><uri>http://www.blogger.com/profile/02926938448334038552</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>
