<?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-18671665</id><updated>2012-02-16T02:12:36.353-08:00</updated><category term='install'/><category term='flash'/><category term='selinux'/><category term='javascript'/><category term='fedora14'/><category term='latex'/><category term='postfix'/><category term='jira'/><category term='skype'/><category term='http'/><category term='fedora10'/><category term='firefox'/><category term='fedora9'/><category term='pgp'/><category term='fisheye'/><category term='yum'/><category term='fedora13'/><category term='tls'/><category term='git'/><category term='fedora16'/><category term='cruisecontrol'/><category term='windows'/><category term='pam'/><category term='bugtracking'/><category term='eclipse'/><category term='confluence'/><category term='comments'/><category term='hedgwars'/><category term='backup'/><category term='fedora8'/><category term='gnupg'/><category term='i18n'/><category term='virtualbox'/><category term='centos'/><category term='java'/><category term='mysql'/><category term='php'/><category term='vmware'/><category term='security'/><category term='jsunit'/><category term='luks'/><category term='nagios'/><category term='fedora12'/><category term='ssh'/><category term='faq'/><category term='games'/><category term='monitoring'/><category term='crucible'/><category term='sasl'/><category term='pdf'/><category term='trac'/><category term='gvim'/><category term='galileo'/><category term='fedora15'/><category term='kernel'/><category term='mailx'/><category term='jboss'/><category term='fedora11'/><category term='network'/><category term='vx1000'/><category term='jbossas'/><category term='nail'/><category term='gmail'/><category term='xinetd'/><category term='svn'/><category term='subversion'/><title type='text'>The penguin and I</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>78</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-18671665.post-1526199133776212678</id><published>2011-11-26T15:07:00.000-08:00</published><updated>2011-11-26T15:09:11.203-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora16'/><title type='text'>My Fedora 16 road map</title><content type='html'>- If you have had problems with automatically mounting LUKS partition, see my post addressing the issue &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;non-free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.adobe.com/"&gt;Adobe&lt;/a&gt; (&lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Flash plugin, AdobeAIR and AcrobatReader&lt;/a&gt;) 32 bits:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;-- Adobe Flash for 64bits:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm &lt;br /&gt;#---&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://code.google.com/chromium/"&gt;Chromium&lt;/a&gt; (for Fedora &lt;a href="http://fedoraproject.org/wiki/Chromium"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;wget http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-chromium-stable.repo -O /etc/yum.repos.d/fedora-chromium.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Setting up a not-so-restricting SELinux: &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem* \&lt;br /&gt;brasero*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;&lt;br /&gt;-- Chromium:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;chromium&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-freeworld&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because Adobe Reader is usually very slow to download, I keep it separated and leave it to be last installed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;AdobeReader_enu&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell-de \&lt;br /&gt;hunspell-es \&lt;br /&gt;hunspell-pt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Audacious (XMMS is not that great anymore):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;audacious \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;audacious-plugin-fc \&lt;br /&gt;audacious-plugins-amidi \&lt;br /&gt;audacious-plugins-exotic \&lt;br /&gt;audacious-plugins-freeworld-aac \&lt;br /&gt;audacious-plugins-freeworld-ffaudio \&lt;br /&gt;audacious-plugins-freeworld-mms \&lt;br /&gt;audacious-plugins-freeworld-mp3 \&lt;br /&gt;audacious-plugins-freeworld \&lt;br /&gt;audacious-plugins-jack \&lt;br /&gt;audacious-plugins-sid \&lt;br /&gt;audacious-plugins \&lt;br /&gt;audacious-plugin-xmp&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;pidgin-gfire \&lt;br /&gt;pidgin-musictracker \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-facebookchat \&lt;br /&gt;purple-microblog \&lt;br /&gt;pidgin-sipe \&lt;br /&gt;purple-msn-pecan&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- If you use LaTeX you may find this plugin appealing:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin-latex&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For 64bit or old processors (non-PAE)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;dkms \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;&lt;br /&gt;--- Backups with Back In Time:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;backintime-common \&lt;br /&gt;backintime-gnome&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ImageMagick \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;gnuplot \&lt;br /&gt;inkscape&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;ctags \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;telnet \&lt;br /&gt;lsof \&lt;br /&gt;nmap \&lt;br /&gt;nc \&lt;br /&gt;traceroute \&lt;br /&gt;mc \&lt;br /&gt;AcetoneISO2 \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Very nice "must-have" admin programs:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;keepassx \ &lt;br /&gt;system-config-display \ &lt;br /&gt;gnome-password-generator &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For WLAN Cracking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aircrack-ng \&lt;br /&gt;airsnort&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;akmod-nvidia \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Section "Device"&lt;br /&gt;Identifier  "Videocard0"&lt;br /&gt;#Driver      "nouveau"&lt;br /&gt;Driver      "nvidia"&lt;br /&gt;Option     "AddARGBGLXVisuals" "True"&lt;br /&gt;Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- Some helper programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Debug related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gdb \&lt;br /&gt;gcc \&lt;br /&gt;strace \&lt;br /&gt;ltrace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For GIT support:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;git-all&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/products/player/overview.html"&gt;VMware Player&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://netbeans.org/downloads/index.html"&gt;NetBeans&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;-- Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;-- Skype may need some extra configuration (see link for 64bits) and some SELinux relaxation (see link for SELinux).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;- &lt;a href="http://shahrier.blogspot.com/2010/06/how-to-install-skype-in-fedora-13-x64.html"&gt;Installing Skype in 64bits (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;Mounting former LUKS partition&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2011/11/my-fedora-15-road-map.html"&gt;Road map for Fedora 15&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html"&gt;Adding security to SSH&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/06/backups-with-back-in-time.html"&gt;Backups with Back In Time&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-1526199133776212678?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/1526199133776212678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=1526199133776212678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1526199133776212678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1526199133776212678'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2011/11/my-fedora-16-road-map.html' title='My Fedora 16 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3230376168080904537</id><published>2011-11-10T04:59:00.000-08:00</published><updated>2011-11-10T05:02:34.732-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora15'/><title type='text'>My Fedora 15 road map</title><content type='html'>- If you have had problems with automatically mounting LUKS partition, see my post addressing the issue &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;non-free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.adobe.com/"&gt;Adobe&lt;/a&gt; (&lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Flash plugin, AdobeAIR and AcrobatReader&lt;/a&gt;) 32 bits:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;-- Adobe Flash for 64bits:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm &lt;br /&gt;#---&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://code.google.com/chromium/"&gt;Chromium&lt;/a&gt; (for Fedora &lt;a href="http://fedoraproject.org/wiki/Chromium"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;wget http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-chromium-stable.repo -O /etc/yum.repos.d/fedora-chromium.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Setting up a not-so-restricting SELinux: &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem* \&lt;br /&gt;brasero*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;&lt;br /&gt;-- Chromium:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;chromium&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;alsa-tools \&lt;br /&gt;alsamixergui \  &lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;adobeair \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-freeworld&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because Adobe Reader is usually very slow to download, I keep it separated and leave it to be last installed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;AdobeReader_enu&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell-de \&lt;br /&gt;hunspell-es \&lt;br /&gt;hunspell-pt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Audacious (XMMS is not that great anymore):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;audacious \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;audacious-plugin-fc \&lt;br /&gt;audacious-plugins-amidi \&lt;br /&gt;audacious-plugins-exotic \&lt;br /&gt;audacious-plugins-freeworld-aac \rpmfusion-free-updates&lt;br /&gt;audacious-plugins-freeworld-ffaudio \&lt;br /&gt;audacious-plugins-freeworld-mms. \&lt;br /&gt;audacious-plugins-freeworld-mp3 \&lt;br /&gt;audacious-plugins-freeworld \&lt;br /&gt;audacious-plugins-jack \&lt;br /&gt;audacious-plugins-sid \&lt;br /&gt;audacious-plugins \&lt;br /&gt;audacious-plugin-xmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;pidgin-gfire \&lt;br /&gt;pidgin-musictracker \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms \&lt;br /&gt;purple-facebookchat \&lt;br /&gt;purple-microblog \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;pidgin-sipe \&lt;br /&gt;purple-msn-pecan&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- If you use LaTeX you may find this plugin appealing:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin-latex&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For 64bit or old processors (non-PAE)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;dkms \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;&lt;br /&gt;--- Backups with Back In Time:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;backintime-common \&lt;br /&gt;backintime-gnome&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ImageMagick \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;gnuplot \&lt;br /&gt;inkscape&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;ctags \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;telnet \&lt;br /&gt;lsof \&lt;br /&gt;nmap \&lt;br /&gt;nc \&lt;br /&gt;traceroute \&lt;br /&gt;mc \&lt;br /&gt;tsclient \&lt;br /&gt;AcetoneISO2 \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Very nice "must-have" admin programs:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;keepassx \ &lt;br /&gt;system-config-display \ &lt;br /&gt;gnome-password-generator &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For WLAN Cracking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aircrack-ng \&lt;br /&gt;airsnort&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;akmod-nvidia \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Section "Device"&lt;br /&gt;Identifier  "Videocard0"&lt;br /&gt;#Driver      "nouveau"&lt;br /&gt;Driver      "nvidia"&lt;br /&gt;Option     "AddARGBGLXVisuals" "True"&lt;br /&gt;Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- Some helper programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Debug related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gdb \&lt;br /&gt;gcc \&lt;br /&gt;strace \&lt;br /&gt;ltrace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For GIT support:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;git-all&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/products/player/overview.html"&gt;VMware Player&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://netbeans.org/downloads/index.html"&gt;NetBeans&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;-- Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;-- Skype may need some extra configuration (see link for 64bits) and some SELinux relaxation (see link for SELinux).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;- &lt;a href="http://shahrier.blogspot.com/2010/06/how-to-install-skype-in-fedora-13-x64.html"&gt;Installing Skype in 64bits (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;Mounting former LUKS partition&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/my-fedora-13-road-map.html"&gt;Road map for Fedora 13&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html"&gt;Adding security to SSH&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/06/backups-with-back-in-time.html"&gt;Backups with Back In Time&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3230376168080904537?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3230376168080904537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3230376168080904537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3230376168080904537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3230376168080904537'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2011/11/my-fedora-15-road-map.html' title='My Fedora 15 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6252229206693075168</id><published>2011-05-30T15:40:00.000-07:00</published><updated>2011-05-30T15:40:59.534-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='comments'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora15'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora14'/><title type='text'>Back to Fedora14</title><content type='html'>Ok, I'm now back to Fedora 14, as I write I'm updating my freshly installed Fedora 14. The last drop was: "yum -y upgrade" and then NetworkManager wont start any more. Sorry, there is not the slightest chance that I can work without Internet. So, good buy Fedora 15 and welcome back Fedora 14.&lt;br /&gt;&lt;br /&gt;Maybe is time to try out Ubuntu once again.&lt;br /&gt;&lt;br /&gt;That is it for today.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6252229206693075168?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6252229206693075168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6252229206693075168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6252229206693075168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6252229206693075168'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2011/05/back-to-fedora14.html' title='Back to Fedora14'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6097083882216493003</id><published>2011-05-28T09:04:00.000-07:00</published><updated>2011-05-28T09:04:26.919-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='comments'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora15'/><title type='text'>A word about Fedora 15: DO NOT UPGRADE</title><content type='html'>Ok, I'm using Fedora 15 now for about 3 days and I just got around to make nouveau accept my side-kick monitor and make it work more or less seamlessly.&lt;br /&gt;&lt;br /&gt;Before you even think about upgrading to Fedora 15 please read this critique first (if had read it before installing I wouldn't): &lt;a href="http://ranjith.zfs.in/g/"&gt;http://ranjith.zfs.in/g/&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So, which are my current issues with it (mainly Gnome 3 and video drivers)?&lt;br /&gt;&lt;br /&gt;- No right-click on Gnome 3 (this is correct, right-click is disabled or ignored).&lt;br /&gt;- Nouveau does not support GLX (read, no 3D acceleration) my video card properly: &lt;i&gt;nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)&lt;/i&gt;&lt;br /&gt;- nVidia proprietary driver does NOT work with external monitor and does NOT work at all with regular monitor (it is like you can move the mouse cursor and click around but no visual feedback). I tried the akmod version (270.41.06-1.fc15) and the &lt;a href="http://www.nvidia.com/object/linux-display-ia32-270.41.19-driver.html"&gt;nVidia&lt;/a&gt; version (270.41.19), none worked.&lt;br /&gt;- Currently there is no updated issue of the &lt;a href="http://rpmfusion.org/"&gt;RPMFusion&lt;/a&gt; repository for Fedora 15 (you need to install the rawhide version).&lt;br /&gt;&lt;br /&gt;This means that my next issue of the Fedora road map will wait until I can manage to work those issues around (I'm seriously thinking about a downgrade to Fedora 14). This really brings not so fond RedHat 8.0 memories (for those of you long enough on the road to remember that nightmare).&lt;br /&gt;&lt;br /&gt;Anyway, the current road map works almost ok (except that you need to install the rawhide version of RPMFusion):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6097083882216493003?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6097083882216493003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6097083882216493003' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6097083882216493003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6097083882216493003'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2011/05/word-about-fedora-15-do-not-upgrade.html' title='A word about Fedora 15: DO NOT UPGRADE'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3691331045543112600</id><published>2011-03-20T15:12:00.000-07:00</published><updated>2011-03-20T15:13:07.326-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='git'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='xinetd'/><title type='text'>Git server on CentOS 5.5</title><content type='html'>This post is adapted from: &lt;a href="http://www.davegardner.me.uk/blog/2010/01/29/setting-up-git-on-centos-5-server/"&gt;http://www.davegardner.me.uk/blog/2010/01/29/setting-up-git-on-centos-5-server/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A. Yum Repositories:&lt;br /&gt;&lt;br /&gt;You will need EPEL repository:&lt;br /&gt;&lt;a href=" http://fedoraproject.org/wiki/EPEL"&gt;&lt;br /&gt;http://fedoraproject.org/wiki/EPEL&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uivh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;B. Getting git installed:&lt;br /&gt;&lt;br /&gt;1. Install Git and XinetD daemon:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;git \&lt;br /&gt;git-daemon&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;All your repositories are under [&lt;i&gt;/var/lib/git&lt;/i&gt;]. &lt;br /&gt;&lt;br /&gt;To change that just follow these instructions (I rather not change it):&lt;br /&gt;&lt;br /&gt;1.1. Changing Git root dir&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;MY_GIT_ROOT_DIR=&amp;gt;where will all git projects be&amp;lt;&lt;br /&gt;mkdir -p ${MY_GIT_ROOT_DIR}&lt;br /&gt;chmod 755 ${MY_GIT_ROOT_DIR}&lt;br /&gt;chown root:root ${MY_GIT_ROOT_DIR}&lt;br /&gt;#---&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;1.2. Adjust the daemon xinetd setup to use the new directory: &lt;i&gt;/etc/xinetd.d/git&lt;/i&gt;&lt;br /&gt;&lt;i&gt;...&lt;br /&gt;server_args     = --base-path=&lt;b&gt;&amp;gt;where will all git projects be&amp;lt;&lt;/b&gt; ...&lt;br /&gt;...&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Put XinetD to run:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;service xinetd restart&lt;br /&gt;chkconfig --level 345 xinetd on&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3. Creating a project:&lt;br /&gt;&lt;br /&gt;After that you just need to follow the instructions given on the link below:&lt;br /&gt;&lt;a href=" http://thelucid.com/2008/12/02/git-setting-up-a-remote-repository-and-doing-an-initial-push/"&gt;&lt;br /&gt;http://thelucid.com/2008/12/02/git-setting-up-a-remote-repository-and-doing-an-initial-push/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3691331045543112600?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3691331045543112600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3691331045543112600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3691331045543112600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3691331045543112600'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2011/03/git-server-on-centos-55.html' title='Git server on CentOS 5.5'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8417209462090949983</id><published>2010-12-04T08:35:00.000-08:00</published><updated>2011-03-20T17:41:40.282-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='selinux'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='trac'/><category scheme='http://www.blogger.com/atom/ns#' term='bugtracking'/><title type='text'>Bugtracking using Trac</title><content type='html'>This documentation is aimed at version 0.12&lt;br /&gt;&lt;br /&gt;&lt;a href="http://trac.edgewall.org/"&gt;http://trac.edgewall.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This documentation heavily based on the official documentation, so if you are unsure about something address it:&lt;br /&gt;&lt;a href="http://trac.edgewall.org/wiki/TracInstall"&gt;http://trac.edgewall.org/wiki/TracInstall&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A. Prerequisites:&lt;br /&gt;&lt;br /&gt;1. Database&lt;br /&gt;&lt;br /&gt;I will use a MySQL database, but you could also use PostgreSQL or a local DB file (through Sqlite). So first you install the Server, if do not have one, and create the database according to the documentation, that I reproduce here.&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;yum -y install \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mysql-server \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mysql \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;MySQL-python&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I need "root" access for the following steps. (If have some "root" related problems please address to my corresponding post.)&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2010/03/mysql-root-password-reset.html"&gt;http://gka-linux.blogspot.com/2010/03/mysql-root-password-reset.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1.2. Start the server (if necessary):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;service mysqld restart&lt;/b&gt;&lt;br /&gt;&lt;b&gt;chkconfig --level 345 mysqld on&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1.3. Get "root" MySQL shell:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;## skip this part if you already have a working MySQL server&lt;/b&gt;&lt;br /&gt;&lt;b&gt;## mysql_secure_installation&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mysql -u root -p&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1.4. Create the database (on the shell):&lt;br /&gt;&lt;i&gt;CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; &lt;/i&gt;&lt;br /&gt;&lt;i&gt;USE trac;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;GRANT ALL ON trac.* TO tracuser@localhost IDENTIFIED BY '&amp;lt;plain text root password for trac&amp;gt;';&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Your connection string will be (remember it): &lt;i&gt;mysql://tracuser:&amp;lt;plain text root password for trac&amp;gt;@localhost/trac&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Version Control System:&lt;br /&gt;&lt;br /&gt;For this example Subversion (SVN) which I already documented here:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html"&gt;http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html&lt;/a&gt;&lt;br /&gt;Or Git:&amp;nbsp; &lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2011/03/git-server-on-centos-55.html"&gt;http://gka-linux.blogspot.com/2011/03/git-server-on-centos-55.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Apache&lt;br /&gt;&lt;br /&gt;I assume that you already have an Apache server and want to put Trac along with other pages you may have.&lt;br /&gt;&lt;br /&gt;3.1. Additional packages:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;yum -y install \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mod_fcgid \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mod_python \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mod_wsgi&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;B. The Trac:&lt;br /&gt;&lt;br /&gt;OBS.: For CentOS boxes, you need RPMForge repository (or else you are bound to the version 0.10):&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm&lt;/b&gt;&lt;br /&gt;&lt;b&gt;rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Installing things:&lt;br /&gt;&lt;br /&gt;1.1. Fedora:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;yum -y install \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-git-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-mercurial-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-iniadmin-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-accountmanager-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-customfieldadmin-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-peerreview-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-privateticketsplugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-ticketdelete-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-spamfilter-plugin&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1.2. CentOS:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;yum -y install \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-git-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-mercurial-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-iniadmin-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-peerreview-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-ticketdelete-plugin \&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-spamfilter-plugin&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1.2.1 MySQL-python:&lt;br /&gt;&lt;br /&gt;Because CentOS comes with MySql-python 1.2.1 (and this version does NOT work with Trac) you need to upgrade this manually:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;wget http://dev.centos.org/centos/5/testing/x86_64/RPMS/MySQL-python-1.2.2-3.el5s2.x86_64.rpm&lt;/b&gt;&lt;br /&gt;&lt;b&gt;rpm -Uvh MySQL-python-1.2.2-3.el5s2.x86_64.rpm&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Start the setup process:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;PRJ_NAME="&amp;lt;project name&amp;gt;"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;PRJ_DIR=`echo $PRJ_NAME | tr [A-Z] [a-z] | sed -e "s/[^[:alnum:]]/\./g"`&lt;/b&gt;&lt;br /&gt;&lt;b&gt;DB_CONN="mysql://tracuser:&amp;lt;plain text root password for trac&amp;gt;@localhost/trac"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#DB_CONN="sqlite:db/trac.db"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;REPOS_TYPE="git" # could be one of: "git", "mercurie" or "svn"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;REPOS_DIR="/var/lib/git/${PRJ_NAME}.git"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;TRAC_DIR="/var/local/trac"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;TRAC_PRJS_DIR="${TRAC_DIR}/projects"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;TRAC_PRJ_DIR="${TRAC_PRJS_DIR}/${PRJ_DIR}"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mkdir -p ${TRAC_PRJ_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-admin ${TRAC_PRJ_DIR} initenv "${PRJ_NAME}" "${DB_CONN}" "${REPOS_TYPE}" "${REPOS_DIR}"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;NOTE: If something goes wrong and you want to do it again just remove the directory (but be aware that the Trac content will be lost):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;rm -rf ${TRAC_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;2.1. CentOS:&lt;br /&gt;Currently there is an open issue with GitPlugin and Trac working together on CentOS:&lt;br /&gt;&lt;a href="http://trac-hacks.org/ticket/3757"&gt;http://trac-hacks.org/ticket/3757&lt;/a&gt;&lt;br /&gt;&lt;a href="http://trac-hacks.org/ticket/8102"&gt;http://trac-hacks.org/ticket/8102&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2.2. Git Repository setup:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;cat &amp;gt;&amp;gt; ${TRAC_PRJ_DIR}/conf/trac.ini &amp;lt;&amp;lt; __END__&lt;br /&gt;[git]&lt;br /&gt;cached_repository = false&lt;br /&gt;git_bin = /usr/bin/git&lt;br /&gt;persistent_cache = false&lt;br /&gt;shortrev_len = 7&lt;br /&gt;&lt;br /&gt;[components]&lt;br /&gt;tracext.git.* = enabled&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Setting up the Apache server:&lt;br /&gt;&lt;br /&gt;I prefer this more complicated option because the odds are that you do not need yet another server running. Another assumption is that you will have several projects that also need separated tracking "spaces". For instance, you may start using technology "X" and latter on decide to migrate everything to technology "Y", so you probably do not want to mix bugs from "X" with "Y". This is, of course, obvious if you have software factory.&lt;br /&gt;&lt;br /&gt;3.1. Create Web content (per project):&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;TMP_DIR=`mktemp -d`&lt;/b&gt;&lt;br /&gt;&lt;b&gt;rm -rf ${TMP_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;trac-admin ${TRAC_PRJ_DIR} deploy ${TMP_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mv ${TMP_DIR}/* ${TRAC_PRJ_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;rm -rf ${TMP_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.2. Global configuration file (&lt;i&gt;/etc/httpd/conf.d/trac.conf&lt;/i&gt;):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;cat &amp;gt; /etc/httpd/conf.d/trac.conf &amp;lt;&amp;lt; __END__&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#Global environment for Trac's CGI&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;LocationMatch /cgi-bin/trac\.f?cgi&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;SetEnv TRAC_ENV_PARENT_DIR "${TRAC_PRJS_DIR}"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#Special environment for Trac's FastCGI CGI&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;IfModule mod_fastcgi.c&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;LocationMatch /cgi-bin/trac\.fcgi&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;FCGIDDefaultInitEnv TRAC_ENV_PARENT_DIR ${TRAC_PRJS_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/IfModule&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#Python environment&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;IfModule mod_python.c&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;LocationMatch "/trac/[^/]+/cgi-bin/trac.cgi&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;SetHandler mod_python&lt;/b&gt;&lt;br /&gt;&lt;b&gt;PythonHandler trac.web.modpython_frontend&lt;/b&gt;&lt;br /&gt;&lt;b&gt;PythonOption TracEnvParentDir ${TRAC_PRJS_DIR}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/IfModule&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;##&lt;/b&gt;&lt;br /&gt;&lt;b&gt;# Authentication @ ${TRAC_DIR}/trac.htpasswd&lt;/b&gt;&lt;br /&gt;&lt;b&gt;# To add a new user:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;# htpasswd ${TRAC_DIR}/trac.htpasswd &amp;lt;username&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#&lt;/b&gt;&lt;br /&gt;&lt;b&gt;##&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;LocationMatch "/trac/[^/]+/login"&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;AuthType Basic&lt;/b&gt;&lt;br /&gt;&lt;b&gt;AuthName "Trac"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;AuthUserFile ${TRAC_DIR}/trac.htpasswd&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Require valid-user&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/LocationMatch&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;__END__&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.3. Project specific configuration file (&lt;i&gt;/etc/httpd/conf.d/trac-"&amp;lt;project name&amp;gt;".conf&lt;/i&gt;):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;cat &amp;gt; /etc/httpd/conf.d/trac-${PRJ_DIR}.conf &amp;lt;&amp;lt; __END__&lt;/b&gt;&lt;br /&gt;&lt;b&gt;### Regular CGI&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#ScriptAlias /trac/${PRJ_DIR} ${TRAC_PRJ_DIR}/cgi-bin/trac.cgi&lt;/b&gt;&lt;br /&gt;&lt;b&gt;### Fast CGI (default)&lt;/b&gt;&lt;br /&gt;&lt;b&gt;ScriptAlias /trac/${PRJ_DIR} ${TRAC_PRJ_DIR}/cgi-bin/trac.fcgi&lt;/b&gt;&lt;br /&gt;&lt;b&gt;__END__&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.4. Authentication (via password file):&lt;br /&gt;&lt;br /&gt;3.4.1. Creating the file AND admin user (JUST this ONE time):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;htpasswd -c ${TRAC_DIR}/trac.htpasswd admin&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.4.2. Creating a regular user (notice the lack of '-c' parameter):&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;htpasswd ${TRAC_DIR}/trac.htpasswd &amp;lt;username&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.4.3. Or use a generic safe single line:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;PASSFILE="${TRAC_DIR}/trac.htpasswd"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;htpasswd `([[ -f ${PASSFILE} ]] &amp;amp;&amp;amp;  echo "" || echo "-c")` ${PASSFILE} admin&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;htpasswd `([[ -f ${PASSFILE} ]] &amp;amp;&amp;amp;  echo "" || echo "-c")` ${PASSFILE} &amp;lt;username&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.4.4. Check it out:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;cat ${PASSFILE}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.5. Security and SElinux:&lt;br /&gt;&lt;br /&gt;3.5.1. SElinux and Trac:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;echo /usr/bin/chcon -R -v -t httpd_t \'${TRAC_DIR}\' | bash&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.5.2. SElinux and Repository:&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;echo /usr/bin/chcon -R -v -t httpd_t \'${REPOS_DIR}\' | bash&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;4. Access and test:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;b&gt;service httpd restart&lt;/b&gt;&lt;br /&gt;&lt;b&gt;firefox "http://localhost/trac/${PRJ_DIR}"&lt;/b&gt;&lt;br /&gt;&lt;b&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;C. Important files and directories:&lt;br /&gt;&lt;br /&gt;1. Content:&lt;br /&gt;&lt;i&gt;/var/local/trac&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Setup:&lt;br /&gt;&lt;i&gt;/var/local/trac/projects/&amp;lt;your project&amp;gt;/conf/trac.ini&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;3. Apache config:&lt;br /&gt;3.1. General setup:&lt;br /&gt;&lt;i&gt;/etc/httpd/conf.d/trac.conf&lt;/i&gt;&lt;br /&gt;3.2. Your project:&lt;br /&gt;&lt;i&gt;/etc/httpd/conf.d/trac-&amp;lt;your project&amp;gt;.conf&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;4. Logging:&lt;br /&gt;&lt;i&gt;/var/local/trac/projects/&amp;lt;your project&amp;gt;/log/&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8417209462090949983?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8417209462090949983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8417209462090949983' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8417209462090949983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8417209462090949983'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/12/bugtracking-using-trac.html' title='Bugtracking using Trac'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8920828849598123988</id><published>2010-11-03T03:01:00.000-07:00</published><updated>2010-11-03T04:15:23.832-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora14'/><title type='text'>My Fedora 14 road map</title><content type='html'>- If you have had problems with automatically mounting LUKS partition, see my post addressing the issue &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; (&lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;non-free&lt;/a&gt;)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: There are currently some outage by the official repository, so try a mirror:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://ftp.tu-chemnitz.de/pub/linux/rpmfusion/free/fedora/updates/14/i386/rpmfusion-free-release-14-0.4.noarch.rpm&lt;br /&gt;rpm -Uvhi http://ftp.tu-chemnitz.de/pub/linux/rpmfusion/nonfree/fedora/updates/14/i386/rpmfusion-nonfree-release-14-0.4.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.adobe.com/"&gt;Adobe&lt;/a&gt; (&lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Flash plugin, AdobeAIR and AcrobatReader&lt;/a&gt;)&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;-- Adobe Flash for 64bits:&lt;br /&gt;1. go to &lt;a href="http://labs.adobe.com/downloads/flashplayer10.html"&gt;http://labs.adobe.com/downloads/flashplayer10.html&lt;/a&gt;&lt;br /&gt;2. download the latest version for linux (a tar.gz file)&lt;br /&gt;2.1. for me it was: &lt;a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_rc6_linux_052510.tar.gz"&gt;http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_rc6_linux_052510.tar.gz&lt;/a&gt;&lt;br /&gt;3. install it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tar -vxzf &amp;lt;file.tar.gz&amp;gt;  -C /usr/lib64/mozilla/plugins/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;4. restart browser&lt;br /&gt;5. check if it is working: &lt;a href="about:plugins"&gt;about:plugins&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.jpackage.org/yum.php"&gt;JPackage&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://www.jpackage.org/jpackage17.repo -O /etc/yum.repos.d/jpackage.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://code.google.com/chromium/"&gt;Chromium&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://repos.fedorapeople.org/repos/spot/chromium/fedora-chromium.repo -O /etc/yum.repos.d/fedora-chromium.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Edit the &lt;span style="font-style:italic;"&gt;/etc/yum.repos.d/jpackage.repo&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;If you want to work with J2EE, JBoss, and such change it to the following:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[jpackage-generic]&lt;br /&gt;name=JPackage (free), generic&lt;br /&gt;mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&amp;type=free&amp;release=5.0&lt;br /&gt;failovermethod=priority&lt;br /&gt;gpgcheck=1&lt;br /&gt;gpgkey=http://www.jpackage.org/jpackage.asc&lt;br /&gt;enabled=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Setting up a not-so-restricting SELinux: &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update: remove before installing, thanks to a reader comment]&lt;/span&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem* \&lt;br /&gt;brasero*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;&lt;br /&gt;-- Chromium:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;chromium&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;alsa-tools \&lt;br /&gt;alsamixergui \  &lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;adobeair \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because Adobe Reader is usually very slow to download, I keep it separated and leave it to be last installed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;AdobeReader_enu&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell-de \&lt;br /&gt;hunspell-es \&lt;br /&gt;hunspell-pt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Turn SpamAssassin on (if you use it to filter your emails):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 345 spamassassin on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme \&lt;br /&gt;xmms2 \&lt;br /&gt;xmms2-avcodec \&lt;br /&gt;xmms2-faad \&lt;br /&gt;xmms2-freeworld \&lt;br /&gt;xmms2-mp4 \&lt;br /&gt;xmms2-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;pidgin-gfire \&lt;br /&gt;pidgin-musictracker \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms \&lt;br /&gt;purple-facebookchat \&lt;br /&gt;purple-microblog \&lt;br /&gt;purple-msn-pecan&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- If you use LaTeX you may find this plugin appealing:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin-latex&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For 64bit or old processors (non-PAE)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;dkms \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;&lt;br /&gt;--- Backups with Back In Time:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;backintime-common \&lt;br /&gt;backintime-gnome&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ImageMagick \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;gnuplot \&lt;br /&gt;inkscape&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;ctags \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;telnet \&lt;br /&gt;lsof \&lt;br /&gt;nmap \&lt;br /&gt;nc \&lt;br /&gt;traceroute \&lt;br /&gt;mc \&lt;br /&gt;tsclient \&lt;br /&gt;AcetoneISO2 \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Very nice "must-have" admin programs:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;keepassx \ &lt;br /&gt;system-config-display \ &lt;br /&gt;gnome-password-generator &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For WLAN Cracking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aircrack-ng \&lt;br /&gt;airsnort&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;akmod-nvidia \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Section "Device"&lt;br /&gt;Identifier  "Videocard0"&lt;br /&gt;#Driver      "nouveau"&lt;br /&gt;Driver      "nvidia"&lt;br /&gt;Option     "AddARGBGLXVisuals" "True"&lt;br /&gt;Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- Some helper programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Debug related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gdb \&lt;br /&gt;gcc \&lt;br /&gt;strace \&lt;br /&gt;ltrace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- JBoss support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;jbossas&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NetBeans:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;netbeans&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For GIT support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;git-all&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://netbeans.org/downloads/index.html"&gt;NetBeans&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- For a better experience when installing third-part software from &lt;a href="http://dnmouse.org/"&gt;Danger Mouse&lt;/a&gt;:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvh http://dnmouse.org/autoten-4.6-4.fc13.noarch.rpm &lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;-- Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;-- Skype may need some extra configuration (see link for 64bits) and some SELinux relaxation (see link for SELinux).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;- &lt;a href="http://shahrier.blogspot.com/2010/06/how-to-install-skype-in-fedora-13-x64.html"&gt;Installing Skype in 64bits (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;Mounting former LUKS partition&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/my-fedora-13-road-map.html"&gt;Road map for Fedora 13&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html"&gt;Adding security to SSH&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/06/backups-with-back-in-time.html"&gt;Backups with Back In Time&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8920828849598123988?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8920828849598123988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8920828849598123988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8920828849598123988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8920828849598123988'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/11/my-fedora-14-road-map.html' title='My Fedora 14 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3694799521838387327</id><published>2010-08-23T02:59:00.000-07:00</published><updated>2010-10-12T09:44:17.374-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vx1000'/><category scheme='http://www.blogger.com/atom/ns#' term='skype'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora13'/><title type='text'>[update] Skype and MS VX-1000 WebCam</title><content type='html'>Ok here is the deal, since my last kernel update (2.6.33.6-147.2.4.fc13.x86_64) my webcam (a crappy Microsoft Corp. LifeCam VX-1000, USBID: 045e:00f7) stops working. No video and no microphone.&lt;br /&gt;&lt;br /&gt;You have some options:&lt;br /&gt;&lt;br /&gt;1. Back to the previous kernel (not a good idea)&lt;br /&gt;2. Buy another camera (this one is really crappy, but an option for either)&lt;br /&gt;3. Buy an extra microphone (I'm not kin of that either)&lt;br /&gt;4. Do the hard work (what I'm going to show here)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE] Still necessary for the kernel 2.6.33.8-149.fc13.x86_64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A.The Video&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First of all to get the video running you need the following library (which you probably already have):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;libv4l&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The creates a Skype start-up script:&lt;br /&gt;#---&lt;br /&gt;cat &amp;gt; ~/bin/skype-vl41compat.sh &amp;lt; __END__&lt;br /&gt;export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so&lt;br /&gt;/usr/bin/skype&lt;br /&gt;__END__&lt;br /&gt;#---&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE&lt;/span&gt; if you have a x86_64 it is the &lt;span style="font-weight:bold;"&gt;SAME&lt;/span&gt; script (the &lt;span style="font-weight:bold;"&gt;lib64&lt;/span&gt; version does NOT work)&lt;br /&gt;&lt;br /&gt;Changes the shortcut for Skype to: &lt;span style="font-style:italic;"&gt;$HOME/bin/skype-vl41compat.sh&lt;/span&gt;. Now just check it out on Skype by testing the camera.&lt;br /&gt;&lt;br /&gt;As an alternative you can follow the instructions here: &lt;a href="http://dougsland.livejournal.com/107373.html"&gt;http://dougsland.livejournal.com/107373.html&lt;/a&gt; (Very nicely done with screenshots and all).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE] for kernel 2.6.33.8-149.fc13.x86_64 you do NOT need to recompile the audio driver&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;B. The Audio (Microphone)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here is the tricky part, you need to compile the patched driver.&lt;br /&gt;Get the latest driver from &lt;a href="http://linuxtv.org/hg/~hgoede/gspca/"&gt;http://linuxtv.org/hg/~hgoede/gspca/&lt;/a&gt; and compile it:&lt;br /&gt;&lt;br /&gt;#---&lt;br /&gt;wget http://linuxtv.org/hg/~hgoede/gspca/archive/tip.tar.gz&lt;br /&gt;tar -vxzf tip.tar.gz -C /tmp&lt;br /&gt;cd /tmp/`tar -vtzf tip.tar.gz | grep INSTALL | sed -e 's/.*\(gspca-.*\)INSTALL/\1/'`&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;#---&lt;br /&gt;&lt;br /&gt;Restart your box (it has updated the kernel modules) and have fun.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE&lt;/span&gt; If the mic does not work you may need to restart the module:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rmmod gspca_sonixj&lt;br /&gt;modprobe gspca_sonixj&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;a href="http://osdir.com/ml/ubuntu-users/2009-06/msg00531.html"&gt;http://osdir.com/ml/ubuntu-http://www.blogger.com/img/blank.gifusers/2009-06/msg00531.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://dougsland.livejournal.com/107373.html"&gt;http://dougsland.livejournal.com/107373.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3694799521838387327?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3694799521838387327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3694799521838387327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3694799521838387327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3694799521838387327'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/08/skype-and-ms-vx-1000-webcam.html' title='[update] Skype and MS VX-1000 WebCam'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2489760643343572266</id><published>2010-07-19T07:30:00.000-07:00</published><updated>2010-07-19T07:32:43.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='games'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora13'/><category scheme='http://www.blogger.com/atom/ns#' term='hedgwars'/><title type='text'>Fedora 13 and Hedgewars 0.9.13</title><content type='html'>&lt;a href="http://www.hedgewars.org"&gt;Hedgewars&lt;/a&gt; is a nice game, try it :-)&lt;br /&gt;&lt;br /&gt;1. Download and expand &lt;a href="http://www.hedgewars.org/download.html"&gt;Hedgewars&lt;/a&gt; source code:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget &lt;a href="http://fireforge.net/frs/download.php/541/hedgewars-src-0.9.13.tar.bz2"&gt;http://fireforge.net/frs/download.php/541/hedgewars-src-0.9.13.tar.bz2&lt;/a&gt;&lt;br /&gt;tar -xjf hedgewars-src-0.9.13.tar.bz2 -C /tmp/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Install the following packages:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;fpc \&lt;br /&gt;gcc \&lt;br /&gt;gcc-c++ \&lt;br /&gt;qt-devel \&lt;br /&gt;SDL-devel \&lt;br /&gt;SDL_net-devel \&lt;br /&gt;SDL_mixer-devel \&lt;br /&gt;SDL_image-devel \&lt;br /&gt;SDL_ttf-devel&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Compile the code:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cd /tmp/hedgewars-src-0.9.13&lt;br /&gt;cmake -Wno-dev&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Code deployed at: &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/local/bin/hedgewars&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/local/share/hedgewars/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Have fun&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2489760643343572266?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2489760643343572266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2489760643343572266' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2489760643343572266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2489760643343572266'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/07/fedora-13-and-hedgewars-0913.html' title='Fedora 13 and Hedgewars 0.9.13'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-1033433293664613011</id><published>2010-06-18T04:44:00.000-07:00</published><updated>2010-06-18T04:56:49.422-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora13'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>Backups with Back In Time</title><content type='html'>I used to be a user of &lt;a href="http://www.flyback-project.org/"&gt;flyback&lt;/a&gt; (post &lt;a href="http://gka-linux.blogspot.com/2008/05/time-machine-on-linux.html"&gt;here&lt;/a&gt;) but since it only launches updates for Debian/Ubuntu I started to look for another alternative. The best I could found was &lt;a href="http://backintime.le-web.org/"&gt;Back In Time&lt;/a&gt;. It works exactly like Flyback (&lt;a href="http://samba.anu.edu.au/rsync/"&gt;rsync&lt;/a&gt; and &lt;a href="http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html"&gt;hard links&lt;/a&gt;) :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://backintime.le-web.org/"&gt;http://backintime.le-web.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To install:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;backintime-common \&lt;br /&gt;backintime-gnome&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2008/05/time-machine-on-linux.html"&gt;Time Machine on Linux&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-1033433293664613011?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/1033433293664613011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=1033433293664613011' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1033433293664613011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1033433293664613011'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/06/backups-with-back-in-time.html' title='Backups with Back In Time'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8799853705048831478</id><published>2010-06-13T05:19:00.000-07:00</published><updated>2010-06-13T05:40:19.702-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora13'/><category scheme='http://www.blogger.com/atom/ns#' term='monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='nagios'/><title type='text'>Monitoring with Nagios</title><content type='html'>If planning on monitoring your servers, &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt; is the guy.&lt;br /&gt;&lt;br /&gt;Official documentation:&lt;br /&gt;&lt;a href="http://www.nagios.org/documentation"&gt;http://www.nagios.org/documentation&lt;/a&gt;&lt;br /&gt;&lt;a href="http://nagios.sourceforge.net/docs/3_0/toc.html"&gt;http://nagios.sourceforge.net/docs/3_0/toc.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For Fedora configuration and SElinux issues refer to:&lt;br /&gt;&lt;a href="http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html"&gt;http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Install the necessary packages:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;httpd \&lt;br /&gt;php \&lt;br /&gt;nagios \&lt;br /&gt;nagios-plugins-all&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Main configuration and relevant files:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/httpd/conf.d/nagios.conf&lt;/span&gt; -- (refer further on by the alias &lt;span style="font-weight:bold;"&gt;http-nagios&lt;/span&gt;)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/var/log/httpd/error_log&lt;/span&gt; -- &lt;span style="font-weight:bold;"&gt;error_log&lt;/span&gt; (alias)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/var/log/httpd/access_log&lt;/span&gt; -- &lt;span style="font-weight:bold;"&gt;access_log&lt;/span&gt; (alias)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/nagios/passwd&lt;/span&gt; -- &lt;span style="font-weight:bold;"&gt;pass_nagios&lt;/span&gt; (alias)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/nagios/nagios.cfg&lt;/span&gt; -- &lt;span style="font-weight:bold;"&gt;cfg_nagios&lt;/span&gt; (alias)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/nagios/cgi.cfg&lt;/span&gt; -- &lt;span style="font-weight:bold;"&gt;cgi_nagios&lt;/span&gt; (alias)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The default user is "&lt;span style="font-style:italic;"&gt;nagios&lt;/span&gt;" (specified in &lt;span style="font-weight:bold;"&gt;http-nagios&lt;/span&gt;) and you need to set its password before trying to access your fresh Nagios site&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;htpasswd -c /etc/nagios/passwd nagios&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add further users, such as the nagiosadmin, with:&lt;br /&gt;#---&lt;br /&gt;htpasswd /etc/nagios/passwd nagiosadmin&lt;br /&gt;#---&lt;br /&gt;&lt;br /&gt;Check it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat /etc/nagios/passwd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Setup Nagios to accept access from the nagios user: editing the &lt;span style="font-weight:bold;"&gt;cgi_nagios&lt;/span&gt; file and change it to have the following settings:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;authorized_for_system_information=nagiosadmin,nagios&lt;br /&gt;...&lt;br /&gt;authorized_for_all_services=nagiosadmin,nagios&lt;br /&gt;authorized_for_all_hosts=nagiosadmin,nagios&lt;br /&gt;...&lt;br /&gt;authorized_for_read_only=nagios&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: every time you change your &lt;span style="font-weight:bold;"&gt;cgi_nagios&lt;/span&gt; file you need to restart the nagios service:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service nagios restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start the services:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service httpd start&lt;br /&gt;service nagios start&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Set services to run automatically:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 345 httpd on&lt;br /&gt;chkconfig --level 345 nagios on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Try to access the home-page:&lt;br /&gt;&lt;a href="http://127.0.0.1/nagios/"&gt;http://127.0.0.1/nagios/&lt;/a&gt;&lt;br /&gt;or&lt;br /&gt;&lt;a href="http://127.0.0.1/nagios/index.php"&gt;http://127.0.0.1/nagios/index.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: This is &lt;span style="font-weight:bold;"&gt;VERY&lt;/span&gt; important to notice that it is &lt;span style="font-weight:bold;"&gt;NOT&lt;/span&gt; &lt;span style="font-style:italic;"&gt;localhost&lt;/span&gt; but &lt;span style="font-style:italic;"&gt;127.0.0.1&lt;/span&gt;. You can change it on &lt;span style="font-weight:bold;"&gt;http-nagios&lt;/span&gt; file.&lt;br /&gt;Troubleshooting: If have any problem look at error_log file and check if the user is actually on the &lt;span style="font-weight:bold;"&gt;pass_nagios&lt;/span&gt; file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8799853705048831478?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8799853705048831478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8799853705048831478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8799853705048831478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8799853705048831478'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/06/monitoring-with-nagios.html' title='Monitoring with Nagios'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3833846660463325066</id><published>2010-05-26T15:05:00.000-07:00</published><updated>2010-05-26T15:15:50.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='luks'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Mounting former LUKS partition</title><content type='html'>To mount existing LUKS partitions in your disk:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;REAL_DEVICE="/dev/&amp;lt;like &lt;span style="font-style:italic;"&gt;sda5&lt;/span&gt;&amp;gt;"&lt;br /&gt;MOUNTING_POINT="&amp;lt;Where in the disk, like &lt;span style="font-style:italic;"&gt;/home&lt;/span&gt;&amp;gt;"&lt;br /&gt;FSTYPE="&amp;lt;someting like &lt;span style="font-style:italic;"&gt;ext4&lt;/span&gt;&amp;gt;"&lt;br /&gt;UUID=`cryptsetup luksUUID ${REAL_DEVICE}`&lt;br /&gt;LUKS_DEVICE="luks-${UUID}"&lt;br /&gt;cryptsetup luksOpen ${REAL DEVICE} ${LUKS_DEVICE}&lt;br /&gt;mount /dev/mapper/${LUKS_DEVICE} ${MOUNTING_POINT}&lt;br /&gt;echo "/dev/mapper/${LUKS_DEVICE} ${MOUNTING_POINT} defaults 1 3" &amp;gt;&amp;gt; /etc/fstab&lt;br /&gt;#---&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3833846660463325066?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3833846660463325066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3833846660463325066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3833846660463325066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3833846660463325066'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html' title='Mounting former LUKS partition'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-491182164282664743</id><published>2010-05-26T13:25:00.001-07:00</published><updated>2010-11-01T10:09:46.130-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora13'/><title type='text'>[updated] My Fedora 13 road map</title><content type='html'>- If you have had problems with automatically mounting LUKS partition, see my post addressing the issue &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;RPM Fusion (free)&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;RPM Fusion (non-free)&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rpm -Uvhi http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&lt;br /&gt;#---&lt;br /&gt;&lt;/span&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvhi http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;-- Adobe Flash for 64bits:&lt;br /&gt;1. go to &lt;a href="http://labs.adobe.com/downloads/flashplayer10.html"&gt;http://labs.adobe.com/downloads/flashplayer10.html&lt;/a&gt;&lt;br /&gt;2. download the latest version for linux (a tar.gz file)&lt;br /&gt;2.1. for me it was: &lt;a href="http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_rc6_linux_052510.tar.gz"&gt;http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_1_rc6_linux_052510.tar.gz&lt;/a&gt;&lt;br /&gt;3. install it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tar -vxzf &amp;lt;file.tar.gz&amp;gt;  -C /usr/lib64/mozilla/plugins/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;4. restart browser&lt;br /&gt;5. check if it is working: &lt;a href="about:plugins"&gt;about:plugins&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.jpackage.org/yum.php"&gt;JPackage&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://www.jpackage.org/jpackage17.repo -O /etc/yum.repos.d/jpackage.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://code.google.com/chromium/"&gt;Chromium&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://repos.fedorapeople.org/repos/spot/chromium/fedora-chromium.repo -O /etc/yum.repos.d/fedora-chromium.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Edit the &lt;span style="font-style:italic;"&gt;/etc/yum.repos.d/jpackage.repo&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;If you want to work with J2EE, JBoss, and such change it to the following:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[jpackage-generic]&lt;br /&gt;name=JPackage (free), generic&lt;br /&gt;mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&amp;type=free&amp;release=5.0&lt;br /&gt;failovermethod=priority&lt;br /&gt;gpgcheck=1&lt;br /&gt;gpgkey=http://www.jpackage.org/jpackage.asc&lt;br /&gt;enabled=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Setting up a not-so-restricting SELinux: &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update: remove before installing, thanks to a reader comment]&lt;/span&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;&lt;br /&gt;-- Chromium:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;chromium&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;alsa-tools \&lt;br /&gt;alsamixergui \  &lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because Adobe Reader is usually very slow to download, I keep it separated and leave it to be last installed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;AdobeReader_enu&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell-de \&lt;br /&gt;hunspell-es \&lt;br /&gt;hunspell-pt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Turn SpamAssassin on (if you use it to filter your emails):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 345 spamassassin on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme \&lt;br /&gt;xmms2 \&lt;br /&gt;xmms2-avcodec \&lt;br /&gt;xmms2-faad \&lt;br /&gt;xmms2-freeworld \&lt;br /&gt;xmms2-mp4 \&lt;br /&gt;xmms2-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;pidgin-gfire \&lt;br /&gt;pidgin-musictracker \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms \&lt;br /&gt;purple-facebookchat \&lt;br /&gt;purple-microblog \&lt;br /&gt;purple-msn-pecan&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- If you use LaTeX you may find this plugin appealing:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin-latex&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For 64bit or old processors (non-PAE)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;&lt;br /&gt;--- Backups with Back In Time:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;backintime-common \&lt;br /&gt;backintime-gnome&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ImageMagick \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;gnuplot \&lt;br /&gt;inkscape \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;ctags \&lt;br /&gt;kile \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;telnet \&lt;br /&gt;lsof \&lt;br /&gt;nmap \&lt;br /&gt;nc \&lt;br /&gt;traceroute \&lt;br /&gt;mc \&lt;br /&gt;tsclient \&lt;br /&gt;AcetoneISO2 \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Very nice "must-have" admin programs:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;keepassx \ &lt;br /&gt;system-config-display \ &lt;br /&gt;gnome-password-generator &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For WLAN Cracking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aircrack-ng \&lt;br /&gt;airsnort&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;akmod-nvidia \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Section "Device"&lt;br /&gt;Identifier  "Videocard0"&lt;br /&gt;#Driver      "nouveau"&lt;br /&gt;Driver      "nvidia"&lt;br /&gt;Option     "AddARGBGLXVisuals" "True"&lt;br /&gt;Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- Some helper programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Debug related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gdb \&lt;br /&gt;gcc \&lt;br /&gt;strace \&lt;br /&gt;ltrace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- JBoss support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;jbossas&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NetBeans:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;netbeans&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For GIT support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;git-all&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://netbeans.org/downloads/index.html"&gt;NetBeans&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- For a better experience when installing third-part software from &lt;a href="http://dnmouse.org/"&gt;Danger Mouse&lt;/a&gt;:&lt;br /&gt;&lt;b&gt;#---&lt;br /&gt;rpm -Uvh http://dnmouse.org/autoten-4.6-4.fc13.noarch.rpm &lt;br /&gt;#---&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;-- Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;-- Skype may need some extra configuration (see link for 64bits) and some SELinux relaxation (see link for SELinux).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;- &lt;a href="http://shahrier.blogspot.com/2010/06/how-to-install-skype-in-fedora-13-x64.html"&gt;Installing Skype in 64bits (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/05/mounting-former-luks-partition.html"&gt;Mounting former LUKS partition&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/07/my-fedora-12-road-map.html"&gt;Road map for Fedora 12&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html"&gt;Adding security to SSH&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2010/06/backups-with-back-in-time.html"&gt;Backups with Back In Time&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-491182164282664743?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/491182164282664743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=491182164282664743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/491182164282664743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/491182164282664743'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/05/my-fedora-13-road-map.html' title='[updated] My Fedora 13 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3834402732043609585</id><published>2010-04-02T11:15:00.000-07:00</published><updated>2010-05-20T14:31:33.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='jsunit'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>[updated] JsUnit and Firefox mysterious timeout</title><content type='html'>Here is the thing. I was trying to get my &lt;a href="http://www.jsunit.net/"&gt;JsUnit&lt;/a&gt; Tests to work using &lt;a href="http://www.mozilla.com/en-US/firefox/personal.html"&gt;Firefox&lt;/a&gt; 3.x and it wont work no matter what.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE] (Thank you Kevin, see comments)&lt;/span&gt;&lt;br /&gt;Before you start using JsUnit you NEED to keep in mind that ALL inputs must be FULL qualified and not just relative paths.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I kept on getting timeout from the Runner. I use the runner locally rather than letting it be o server mode or even on my Apache config. So here is my test environment:&lt;br /&gt;&lt;br /&gt;1. Software:&lt;br /&gt;1.1. Firefox 3.6.2 (but the same happens on 3.x)&lt;br /&gt;1.2. JsUnit 2.2&lt;br /&gt;1.3. OS: Fedora 12&lt;br /&gt;&lt;br /&gt;2. Run the JsUnit TestRunner locally, like: &lt;span style="font-style:italic;"&gt;file:///var/local/jsunit/testRunner.html&lt;/span&gt;&lt;br /&gt;3. Inform a local html test page, like: &lt;span style="font-style:italic;"&gt;file:///home/gustavo/projects/jsunit-tsts/failingTest.html&lt;/span&gt; (which is a copy of &lt;span style="font-style:italic;"&gt;$JSUNIT_HOME/tests/failingTest.html&lt;/span&gt;, setting the path to &lt;span style="font-style:italic;"&gt;jsUnitCore.js&lt;/span&gt; correctly)&lt;br /&gt;4. Hit &lt;span style="font-weight:bold;"&gt;Run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then I got:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Reading Test Page file:///home/gustavo/projects/jsunit-tsts/failingTest.html timed out.&lt;br /&gt;Make sure that the file exists and is a Test Page.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It does not make any sense, since running the same test from JsUnit it works: &lt;span style="font-style:italic;"&gt;file:///var/local/jsunit/tests/failingTest.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So I Google it and found this page: &lt;a href="http://siliconforks.com/jscoverage/faq.html"&gt;http://siliconforks.com/jscoverage/faq.html&lt;/a&gt; (oddly enough).&lt;br /&gt;&lt;br /&gt;The answer is: Firefox has a very strict policy about accessing local files, thus preventing JsUnit TestRunner to run my tests.&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;1. Go to your configuration page: &lt;span style="font-style:italic;"&gt;about:config&lt;/span&gt;&lt;br /&gt;2. Search for: &lt;span style="font-style:italic;"&gt;security.fileuri.strict_origin_policy&lt;/span&gt;&lt;br /&gt;3. And set it to &lt;span style="font-weight:bold;"&gt;FALSE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: This presents a security problem, so do yourself a favour and get another Firefox profile to run your tests and not to browse.&lt;br /&gt;&lt;br /&gt;Now the tricky part: I like organizing and this means that I want to use Test Suites and modularize my tests. But the documentation does not tell you a very dirty story about that: You need full path when running tests like I do (local file URLs) and thus the relative paths do not work properly. Lets go to the example:&lt;br /&gt;&lt;br /&gt;The test suite page snippet:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;  &amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;&lt;br /&gt;   function suite() {&lt;br /&gt;&lt;br /&gt;    var result = new top.jsUnitTestSuite();&lt;br /&gt;    var currentURL = location.href;&lt;br /&gt;&lt;br /&gt;    &amp;lt;!-- extract the current URL path --&amp;gt;&lt;br /&gt;    currentURL = currentURL.substr(0, currentURL.lastIndexOf("/", currentURL.length));&lt;br /&gt;&lt;br /&gt;    &amp;lt;!-- prepend each test page relative URL with the current URL path --&amp;gt;&lt;br /&gt;    result.addTestPage(currentURL + "/html_tst/my_tests.html");&lt;br /&gt;&lt;br /&gt;    return result;&lt;br /&gt;   }&lt;br /&gt;  &amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The tree structure:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;br /&gt;SOME WHERE IN YOUR DISK: &lt;br /&gt;testSuite.html&lt;br /&gt;html_tst/my_tests.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you do not fully qualify the test page path (the &lt;span style="font-style:italic;"&gt;currentURL&lt;/span&gt; part) you get a time-out when trying to load the test suite with the sub-pages.&lt;br /&gt;&lt;br /&gt;Have fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3834402732043609585?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3834402732043609585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3834402732043609585' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3834402732043609585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3834402732043609585'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/04/jsunit-and-firefox-mysterious-timeout.html' title='[updated] JsUnit and Firefox mysterious timeout'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2230118881920653943</id><published>2010-03-24T17:51:00.000-07:00</published><updated>2010-03-24T18:01:20.639-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jira'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='crucible'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><category scheme='http://www.blogger.com/atom/ns#' term='fisheye'/><title type='text'>Installing Atlassian FishEye and Crucible</title><content type='html'>Here I will explain how to install another &lt;a href="http://www.atlassian.com/"&gt;Atlassian&lt;/a&gt; tool, the &lt;a href="http://www.atlassian.com/software/fisheye/"&gt;Fisheye&lt;/a&gt; (v2.2.1) (see the &lt;a href="http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html"&gt;previous post&lt;/a&gt; for more about JIRA and Confluence). This documentation is based on the original guide, which I recommend you to read:&lt;br /&gt;&lt;br /&gt;&lt;a href=" http://confluence.atlassian.com/display/FISHEYE/FishEye+Installation+Guide"&gt;&lt;br /&gt;http://confluence.atlassian.com/display/FISHEYE/FishEye+Installation+Guide&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. First you need to download it. You can go to the download page: &lt;a href="http://www.atlassian.com/software/fisheye/FishEyeDownloadCenter.jspa"&gt;http://www.atlassian.com/software/fisheye/FishEyeDownloadCenter.jspa&lt;/a&gt; or get it with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget &lt;a href="http://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.2.1.zip"&gt;http://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.2.1.zip&lt;/a&gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I will assume that you already done the first steps from the JIRA and Confluence installation guide (MySQL + Tomcat) and that you have a running SVN server (see installation &lt;a href="http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html"&gt;here&lt;/a&gt;). It is also assumed that you already enrolled a license for FishEye and Crucible. Have it handy.&lt;br /&gt;&lt;br /&gt;2. To install FishEye you need to decompress the archive file:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;unzip fisheye-2.2.1.zip -d /usr/local/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. You need to create the database for FishEye and Crucible (I assume that the daemon is running):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql -u root -p&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. At the MySQL shell:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;CREATE DATABASE fisheyedb CHARACTER SET utf8;&lt;br /&gt;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX,LOCK TABLES ON fisheyedb.* TO 'fisheyeuser'@'localhost' IDENTIFIED BY '&lt;plain text pass for fisheyeuser&gt;';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;\q&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Check if you can access the databases:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql \--user=fisheyeuser \--password=&lt;plain text pass for fisheyeuser&gt; \--database=fisheyedb&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Then prepare for running:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;export FISHEYE_HOME="/usr/local/fecru-2.2.1/"&lt;br /&gt;mkdir -p /var/local/atlassian/fisheye&lt;br /&gt;export FISHEYE_INST="/var/local/atlassian/fisheye"&lt;br /&gt;export JAVA_HOME="/usr/java/default/"&lt;br /&gt;export JRE_HOME="/usr/java/default/jre/"&lt;br /&gt;cp $FISHEYE_HOME/config.xml $FISHEYE_INST/&lt;br /&gt;cd $FISHEYE_HOME/bin&lt;br /&gt;./run.sh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.1. Wait until the server is up an than go to: &lt;a href="http://localhost:8060/"&gt;http://localhost:8060/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7. Go directly to the &lt;span style="font-style:italic;"&gt;Database Configuration&lt;/span&gt; and provide the following fields with the following data:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Type: MySQL&lt;br /&gt;URL: jdbc:mysql://localhost/fisheyedb&lt;br /&gt;User Name: fisheyeuser&lt;br /&gt;Password: &amp;lt;plain text pass for fisheyeuser&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hit "&lt;span style="font-style:italic;"&gt;Test Connection&lt;/span&gt;" and than "&lt;span style="font-style:italic;"&gt;Save &amp;amp; Migrate&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;8. Go to Users and add a user putting it as administrator (in &lt;span style="font-style:italic;"&gt;Administrators&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;9. Add a user to your JIRA Server, if you have one: &lt;a href="http://localhost:8080/jira"&gt;http://localhost:8080/jira&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;10. Set JIRA to accept API remote calls:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Administration&lt;/span&gt; -&gt; &lt;span style="font-style:italic;"&gt;General Configuration&lt;/span&gt; -&gt; &lt;span style="font-style:italic;"&gt;Accept remote API calls&lt;/span&gt; (must be &lt;span style="font-weight:bold;"&gt;ON&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;11. Then return to FishEye and configure your JIRA server with the corresponding user. (You have to have at least one project).&lt;br /&gt;&lt;br /&gt;12. Add a user in SVN by editing the files (for the very crude installation): [&lt;span style="font-style:italic;"&gt;/var/svn/&amp;lt;repository&amp;gt;/conf/passwd&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;13. Then return to FishEye and configure your SVN repository: &lt;span style="font-style:italic;"&gt;svn://localhost/var/svn/&amp;lt;project&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;P.S.: You may need to add an additional rule to your IPtables in the file [&lt;span style="font-style:italic;"&gt;/etc/sysconfig/iptables&lt;/span&gt;]:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;# Tomcat (FishEye)&lt;br /&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 8060 -j ACCEPT&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service iptables restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;JIRA and Confluence instalation: &lt;a href="http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html"&gt;http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html&lt;/a&gt;&lt;br /&gt;SVN instalation: &lt;a href="http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html"&gt;http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2230118881920653943?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2230118881920653943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2230118881920653943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2230118881920653943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2230118881920653943'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/03/installing-atlassian-fisheye-e-crucible.html' title='Installing Atlassian FishEye and Crucible'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4081874602515438084</id><published>2010-03-21T14:00:00.000-07:00</published><updated>2010-03-22T06:05:15.035-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tls'/><category scheme='http://www.blogger.com/atom/ns#' term='sasl'/><category scheme='http://www.blogger.com/atom/ns#' term='mailx'/><category scheme='http://www.blogger.com/atom/ns#' term='postfix'/><title type='text'>Postfix + Cyrus SASL + TLS</title><content type='html'>Setting up Postfix as a relay:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A. Postfix basic configuration:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. You need to install Posftix and Cyrus for authentication (you definitely do not want an open relay).&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;postfix \&lt;br /&gt;cyrus-sasl \&lt;br /&gt;cyrus-sasl-lib \&lt;br /&gt;cyrus-sasl-md5 \&lt;br /&gt;cyrus-sasl-ntlm \&lt;br /&gt;cyrus-sasl-plain&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.1. If you want Postfix, remove sendmail.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y remove \&lt;br /&gt;sendmail&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Edit your IPtables configuration file and add the following line (you will change it when we are done) to the file [&lt;span style="font-style:italic;"&gt;/etc/sysconfig/iptables&lt;/span&gt;]:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 --source 127.0.0.1 -j ACCEPT&lt;br /&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 587 --source 127.0.0.1 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Restart Postfix and check if you can access it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service postfix restart&lt;br /&gt;telnet 127.0.0.1 25&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.1. You must become something like this:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Trying 127.0.0.1...&lt;br /&gt;Connected to 127.0.0.1.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;220 note ESMTP Postfix&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Configuring Postfix for relay:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'&lt;br /&gt;service postfix reload&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.1. This has the same effect as adding the parameter directly to [&lt;span style="font-style:italic;"&gt;/etc/postfix/main.cf&lt;/span&gt;].&lt;br /&gt;&lt;br /&gt;5. Set your relay host:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;postconf -e 'relayhost ='&lt;br /&gt;postconf -e 'myhostname = &amp;lt;your mail server, such as mx.yourdomain.com&amp;gt;'&lt;br /&gt;service postfix reload&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.1. Check if you can send emails:&lt;br /&gt;&lt;br /&gt;5.2. On the telnet prompt give the following commands, but on another terminal keep track of the file [&lt;span style="font-style:italic;"&gt;/var/log/maillog&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;5.2.1. Terminal A:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tail -f /var/log/maillog&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.2.2. Terminal B:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;telnet 127.0.0.1 25 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;EHLO localhost&lt;br /&gt;MAIL FROM: root@localhost&lt;br /&gt;RCPT TO: &amp;lt;some external valid email&amp;gt;&lt;br /&gt;DATA&lt;br /&gt;Subject:Test mail&lt;br /&gt;&lt;br /&gt;Testing email relay&lt;br /&gt;.&lt;br /&gt;QUIT&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.2.3. It should come something like this by Terminal A:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Mar 20 16:59:43 note postfix/smtpd[8705]: connect from localhost[127.0.0.1]&lt;br /&gt;Mar 20 16:59:50 note postfix/smtpd[8705]: improper command pipelining after HELO from localhost[127.0.0.1]&lt;br /&gt;Mar 20 16:59:50 note postfix/smtpd[8705]: 6694A6AB62: client=localhost[127.0.0.1]&lt;br /&gt;Mar 20 16:59:50 note postfix/cleanup[8722]: 6694A6AB62: message-id=&amp;lt;20100320195950.6694A6AB62@localhost&amp;gt;&lt;br /&gt;Mar 20 16:59:50 note postfix/qmgr[8691]: 6694A6AB62: from=&amp;lt;root@localhost.localdomain&amp;gt;, size=376, nrcpt=1 (queue active)&lt;br /&gt;Mar 20 16:59:52 note postfix/smtpd[8705]: disconnect from localhost[127.0.0.1]&lt;br /&gt;Mar 20 16:59:53 note postfix/smtp[8694]: 20C526AB51: to=&amp;lt;some external valid email&amp;gt;, relay=&amp;lt;external mail server&amp;gt;[&amp;lt;ip address&amp;gt;]:25, delay=1215, delays=1167/0.02/6.9/41, dsn=2.0.0, status=sent (250 2.0.0 OK 1269115192 10si2969636yxe.131)&lt;br /&gt;Mar 20 16:59:53 note postfix/qmgr[8691]: 20C526AB51: removed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your email wont be delivered if the destination server checks if you are an actual registered mail exchanger (mx entry of your domain). But you may get lucky (for instance, google accepted my emails, even though it threw them in the Spam box).&lt;br /&gt;&lt;br /&gt;6. If everything worked until this point you need to setup authentication (remember until here you are an open relay, even though you blocked external incoming connections via IPtables).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;B. Prepare Postfix for using TLS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Because this documentation is "education"-purposed only I will skip the proper TLS configuration (this means that I'm skipping the certificate generation step) but you can easily get further information at: &lt;a href="http://www.postfix.org/TLS_README.html"&gt;http://www.postfix.org/TLS_README.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;postconf -e 'smtpd_tls_cert_file  = none' # no CA signed file&lt;br /&gt;postconf -e 'smtpd_tls_loglevel = 1' # get at least handshake logging&lt;br /&gt;service postfix restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;C. Setting Cyrus up as its authentication server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: You have basically two authentication options: internal authentication (using local users) or external authentication (using an additional user/password database). I will approach the 'shadow' (internal authentication) and 'sasldb' (Cyrus built-in external authentication database). You may customize for your own needs, like LDAP, SQL (MySQL for instance), etc. But that is not my concern here.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;C.1. Using the internal authentication (local users):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. This is the simplest method and pretty straight forward. So first you create a local test user:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;adduser -b /tmp -s /sbin/nologin -c "Cyrus SASL authentication test account" -p tst smtptst&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Set SASL tu use local authentication by editing [&lt;span style="font-style:italic;"&gt;/etc/sysconfig/saslauthd&lt;/span&gt;] and setting the MECH variable to shadow:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;MECH=shadow&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Restart and test if it is working:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service saslauthd restart&lt;br /&gt;testsaslauthd -u smtptst -p tst -s smtp&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should get: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;0: OK "Success."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;C.2. Using 'sasldb' to authenticate users:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. First and MOST important step: setup PAM at [&lt;span style="font-style:italic;"&gt;/etc/pam.d/smtp&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &amp;gt; /etc/pam.d/smtp &amp;lt;&amp;lt; __END__&lt;br /&gt;#%PAM-1.0&lt;br /&gt;auth      required        pam_permit.so&lt;br /&gt;account   required        pam_permit.so&lt;br /&gt;session   required        pam_permit.so&lt;br /&gt;password  required        pam_permit.so&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Set Cyrus to use PAM by editing [&lt;span style="font-style:italic;"&gt;/etc/sysconfig/saslauthd&lt;/span&gt;] and setting the MECH variable to pam:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;MECH=pam&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Set Cyrus to use sasldb:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &amp;gt; /usr/lib/sasl2/smtpd.conf &amp;lt;&amp;lt; __END__&lt;br /&gt;pwcheck_method: auxprop&lt;br /&gt;auxprop_plugin: sasldb&lt;br /&gt;mech_list: plain login cram-md5 digest-md5 ntlm&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.1. To add a user to sasldb:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;## this one is for domain specific&lt;br /&gt;saslpasswd2 -c -u &amp;lt;your domain&amp;gt; smtptst2&lt;br /&gt;## this is for internal services that also send emails&lt;br /&gt;saslpasswd2 -c smtptst2&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: for testing purposes I assume that you set the password to 'tst'&lt;br /&gt;&lt;br /&gt;3.2. Check if it was included:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;sasldblistusers2 ## password will be substituted by the 'userPassword' string&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.3. Set the right permissions:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chmod 640 /etc/sasldb2&lt;br /&gt;chown root:mail /etc/sasldb2&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Restart and test if it is working:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service saslauthd restart&lt;br /&gt;testsaslauthd -u smtptst2 -p tst -s smtp&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should get: &lt;br /&gt;&lt;span style="font-style:italic;"&gt;0: OK "Success."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;D. Setting Postfix up to enforce authentication using TLS through SASL:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;postconf -e 'myhostname = localhost' ## change for your actual hostname&lt;br /&gt;postconf -e 'smtpd_client_restrictions = permit_sasl_authenticated,reject' ## some protection&lt;br /&gt;postconf -e 'smtpd_sasl_type = cyrus' ## just be explicit about this&lt;br /&gt;postconf -e 'smtpd_sasl_path = smtpd' ## just be explicit about this&lt;br /&gt;postconf -e 'smtpd_sasl_auth_enable = yes' ## use authentication&lt;br /&gt;postconf -e 'smtpd_sasl_authenticated_header = yes'&lt;br /&gt;postconf -e 'smtpd_sasl_security_options = noanonymous' ## enforce authentication&lt;br /&gt;postconf -e 'smtpd_sasl_tls_security_options = $smtpd_sasl_security_options'&lt;br /&gt;postconf -e 'broken_sasl_auth_clients = yes' ## for Outlook&lt;br /&gt;service postfix restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Testing everything together:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;telnet localhost 25&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.1. Type:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;EHLO localhost&lt;br /&gt;AUTH LOGIN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then enter the full qualified username encoded in base64:&lt;br /&gt;&lt;br /&gt;1.1.1. Internal user:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;perl -MMIME::Base64 -e 'print encode_base64("smtptst\@localhost")'&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.1.2. SASLDB user:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;perl -MMIME::Base64 -e 'print encode_base64("smtptst2\@localhost")'&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then enter the password encoded in base64:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;perl -MMIME::Base64 -e 'print encode_base64("tst")'&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then follow as usual:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;MAIL FROM: smtptst@localhost&lt;br /&gt;RCPT TO: &amp;lt;some external valid email&amp;gt;&lt;br /&gt;DATA&lt;br /&gt;Subject:Test mail&lt;br /&gt;&lt;br /&gt;Testing email relay&lt;br /&gt;.&lt;br /&gt;QUIT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.2. It all should look like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;telnet 0 25&lt;br /&gt;Trying 0.0.0.0...&lt;br /&gt;Connected to 0.&lt;br /&gt;Escape character is '^]'.&lt;br /&gt;220 localhost ESMTP Postfix&lt;br /&gt;EHLO tst&lt;br /&gt;250-localhost&lt;br /&gt;250-PIPELINING&lt;br /&gt;250-SIZE 10240000&lt;br /&gt;250-VRFY&lt;br /&gt;250-ETRN&lt;br /&gt;250-AUTH NTLM PLAIN CRAM-MD5 DIGEST-MD5 LOGIN&lt;br /&gt;250-AUTH=NTLM PLAIN CRAM-MD5 DIGEST-MD5 LOGIN&lt;br /&gt;250-ENHANCEDSTATUSCODES&lt;br /&gt;250-8BITMIME&lt;br /&gt;250 DSN&lt;br /&gt;AUTH LOGIN&lt;br /&gt;334 VXNlcm5hbWU6&lt;br /&gt;bXh1c2VyQGxvY2FsaG9zdA==&lt;br /&gt;334 UGFzc3dvcmQ6&lt;br /&gt;dHN0&lt;br /&gt;235 2.7.0 Authentication successful&lt;br /&gt;MAIL FROM: smtptst@localhost&lt;br /&gt;250 2.1.0 Ok&lt;br /&gt;RCPT TO: &amp;lt;some external valid email&amp;gt;&lt;br /&gt;250 2.1.5 Ok&lt;br /&gt;DATA&lt;br /&gt;Subject:Test mail&lt;br /&gt;&lt;br /&gt;Testing email relay&lt;br /&gt;.&lt;br /&gt;QUIT&lt;br /&gt;&lt;br /&gt;354 End data with &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;.&amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;&lt;br /&gt;250 2.0.0 Ok: queued as 0C4B861845&lt;br /&gt;221 2.0.0 Bye&lt;br /&gt;Connection closed by foreign host.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Cleaning up:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;userdel smtptst&lt;br /&gt;saslpasswd2 -d smtptst2&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Opening IPTables up at [&lt;span style="font-style:italic;"&gt;/etc/sysconfig/iptables&lt;/span&gt;]:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT&lt;br /&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 587 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Relevant configuration files:&lt;/span&gt;&lt;br /&gt;SASL: /usr/lib/sasl2/smtpd.conf&lt;br /&gt;SASL user mapping: /etc/postfix/sasl_passwd&lt;br /&gt;Postfix: /etc/postfix/main.cf&lt;br /&gt;IPtables: /etc/sysconfig/iptables&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Relevant log files:&lt;/span&gt;&lt;br /&gt;Security/authentication related: /var/log/secure&lt;br /&gt;Mail: /var/log/maillog&lt;br /&gt;General process: /var/log/messages&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4081874602515438084?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4081874602515438084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4081874602515438084' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4081874602515438084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4081874602515438084'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/03/postfix-cyrus-sasl-tls.html' title='Postfix + Cyrus SASL + TLS'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7500091841946817692</id><published>2010-03-17T16:27:00.000-07:00</published><updated>2010-03-22T06:09:31.207-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jira'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><category scheme='http://www.blogger.com/atom/ns#' term='confluence'/><category scheme='http://www.blogger.com/atom/ns#' term='pam'/><title type='text'>Jira and Confluence - Backup</title><content type='html'>This is a follow-up from my previous &lt;a href="http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html"&gt;post&lt;/a&gt; about how to install and configure Jira and Confluence.&lt;br /&gt;&lt;br /&gt;Backing everything up:&lt;br /&gt;&lt;br /&gt;Create the backup directory:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkdir -p /var/local/atlassian-bkp/&lt;br /&gt;chmod 750 /var/local/atlassian-bkp/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create the backup script:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /var/local/atlassian-bkp/atlassian_bkp.sh &lt;&lt; __END__&lt;br /&gt;#!/bin/sh&lt;br /&gt;#&lt;br /&gt;# Author: Gustavo Kuhn Andriotti&lt;br /&gt;# Date: 2010.03.17&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Needed variables, you should edit only this&lt;br /&gt;####&lt;br /&gt;&lt;br /&gt;## general&lt;br /&gt;BACKUP_DIR="/var/local/atlassian-bkp/"&lt;br /&gt;DATE=\`date --utc +%Y%m%d-%H%M%S\`&lt;br /&gt;LOG_FILE="\${BACKUP_DIR}/bkp-\${DATE}.log"&lt;br /&gt;&lt;br /&gt;## JIRA&lt;br /&gt;JIRA_DIR="/var/local/atlassian/jira/"&lt;br /&gt;JIRA_DB="jiradb"&lt;br /&gt;JIRA_USER="jirauser"&lt;br /&gt;JIRA_PASS="&lt;plain text pass for jirauser&gt;"&lt;br /&gt;## Confluence&lt;br /&gt;CONFLUENCE_DIR="/var/local/atlassian/confluence/"&lt;br /&gt;CONFLUENCE_DB="confluencedb"&lt;br /&gt;CONFLUENCE_USER="confluenceuser"&lt;br /&gt;CONFLUENCE_PASS="&lt;plain text pass for confluenceuser&gt;"&lt;br /&gt;&lt;br /&gt;## services&lt;br /&gt;STOP_TOMCAT="Y"&lt;br /&gt;STOP_MYSQL="N"&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Stop relevant services&lt;br /&gt;## You may not want to do this&lt;br /&gt;####&lt;br /&gt;&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Starting backup" &gt; \${LOG_FILE}&lt;br /&gt;&lt;br /&gt;## tomcat&lt;br /&gt;if [ "Y" == \${STOP_TOMCAT} ]&lt;br /&gt;then&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Stopping Tomcat" &gt;&gt; \${LOG_FILE}&lt;br /&gt;service tomcat5 stop&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Tomcat stopped" &gt;&gt; \${LOG_FILE}&lt;br /&gt;fi&lt;br /&gt;## mysql&lt;br /&gt;if [ "Y" == \${STOP_MYSQL} ]&lt;br /&gt;then&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Stopping MySQL" &gt;&gt; \${LOG_FILE}&lt;br /&gt;service mysqld stop&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" MySQL Stopped" &gt;&gt; \${LOG_FILE}&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Backup databases&lt;br /&gt;####&lt;br /&gt;&lt;br /&gt;## General&lt;br /&gt;mkdir -p \${BACKUP_DIR}&lt;br /&gt;&lt;br /&gt;## JIRA&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Backing the JIRA database up" &gt;&gt; \${LOG_FILE}&lt;br /&gt;BKP_FILE="\${BACKUP_DIR}/\${JIRA_DB}-\${DATE}.gz"&lt;br /&gt;mysqldump -B \${JIRA_DB} -u \${JIRA_USER} -p\${JIRA_PASS} | gzip -c - &gt; \${BKP_FILE}&lt;br /&gt;chmod 400 \${BKP_FILE}&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" JIRA database backed up at: \${BKP_FILE}" &gt;&gt; \${LOG_FILE}&lt;br /&gt;&lt;br /&gt;## CONFLUENCE&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Backing the Confluence database up" &gt;&gt; \${LOG_FILE}&lt;br /&gt;BKP_FILE="\${BACKUP_DIR}/\${CONFLUENCE_DB}-\${DATE}.gz"&lt;br /&gt;mysqldump -B \${CONFLUENCE_DB} -u \${CONFLUENCE_USER} -p\${CONFLUENCE_PASS} | gzip -c - &gt; \${BKP_FILE}&lt;br /&gt;chmod 400 \${BKP_FILE}&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Confluence database backed up at: \${BKP_FILE}" &gt;&gt; \${LOG_FILE}&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Backup files&lt;br /&gt;####&lt;br /&gt;&lt;br /&gt;## JIRA&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Backing the JIRA files up" &gt;&gt; \${LOG_FILE}&lt;br /&gt;BKP_FILE="\${BACKUP_DIR}/\`basename \${JIRA_DIR}\`-\${DATE}.tgz"&lt;br /&gt;tar -czf \${BKP_FILE} \${JIRA_DIR}&lt;br /&gt;chmod 400 \${BKP_FILE}&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" JIRA files backed up at: \${BKP_FILE}" &gt;&gt; \${LOG_FILE}&lt;br /&gt;&lt;br /&gt;## Confluence&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Backing the Confluence files up" &gt;&gt; \${LOG_FILE}&lt;br /&gt;BKP_FILE="\${BACKUP_DIR}/\`basename \${CONFLUENCE_DIR}\`-\${DATE}.tgz"&lt;br /&gt;tar -czf \${BKP_FILE} \${CONFLUENCE_DIR}&lt;br /&gt;chmod 400 \${BKP_FILE}&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Confluence files backed up at: \${BKP_FILE}" &gt;&gt; \${LOG_FILE}&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Start services if they were stopped&lt;br /&gt;####&lt;br /&gt;&lt;br /&gt;## mysql&lt;br /&gt;if [ "Y" == \${STOP_MYSQL} ]&lt;br /&gt;then&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Starting MySQL" &gt;&gt; \${LOG_FILE}&lt;br /&gt;service mysqld start&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" MySQL Started" &gt;&gt; \${LOG_FILE}&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;## tomcat&lt;br /&gt;if [ "Y" == \${STOP_TOMCAT} ]&lt;br /&gt;then&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Starting Tomcat" &gt;&gt; \${LOG_FILE}&lt;br /&gt;rm -f \${JIRA_DIR}/.jira-home.lock&lt;br /&gt;service tomcat5 start&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Tomcat started" &gt;&gt; \${LOG_FILE}&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;####&lt;br /&gt;## Done&lt;br /&gt;####&lt;br /&gt;echo \`date --utc +%Y.%m.%d\ %H:%M:%S\`" Backup done!" &gt;&gt; \${LOG_FILE}&lt;br /&gt;__END__&lt;br /&gt;chmod 750 /var/local/atlassian-bkp/atlassian_bkp.sh&lt;br /&gt;&lt;/span&gt;#---&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE:&lt;/span&gt; DO edit the resulting file: &lt;span style="font-style:italic;"&gt;/var/local/atlassian-bkp/atlassian_bkp.sh&lt;/span&gt; to put the correct passwords for the database users.&lt;br /&gt;&lt;br /&gt;It will store all backups at &lt;span style="font-style:italic;"&gt;/var/local/atlassian-bkp/&lt;/span&gt; and a typical backup will have a file list as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-rwxr-xr-x. 1 root root      3112 2010-03-17 19:32 atlassian_bkp.sh&lt;br /&gt;-rw-r--r--. 1 root root       796 2010-03-17 19:32 bkp-20100317-223145.log&lt;br /&gt;-r--------. 1 root root 181902319 2010-03-17 19:32 confluence-20100317-223145.tgz&lt;br /&gt;-r--------. 1 root root      8572 2010-03-17 19:31 confluencedb-20100317-223145.gz&lt;br /&gt;-r--------. 1 root root  79531583 2010-03-17 19:31 jira-20100317-223145.tgz&lt;br /&gt;-r--------. 1 root root     15302 2010-03-17 19:31 jiradb-20100317-223145.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Test the script:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;sh -x /var/local/atlassian-bkp/atlassian_bkp.sh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Put the script in the crontab (daily):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ln /var/local/atlassian-bkp/atlassian_bkp.sh /etc/cron.daily/atlassian&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Notice that it is a &lt;span style="font-style:italic;"&gt;HARD&lt;/span&gt; link to the &lt;span style="font-style:italic;"&gt;cron.daily&lt;/span&gt;, so that when you edit the original file it also reflects a change at the crontab. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;BUT&lt;/span&gt; to remove the file completely you MUST remove from BOTH locations:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rm -f /var/local/atlassian-bkp/atlassian_bkp.sh &lt;br /&gt;rm -f /etc/cron.daily/atlassian&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Checkout if the starting time is okay for you (the standard is 03:00):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat /etc/anacrontab&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;Installation and configuration: &lt;a href="http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html"&gt;http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7500091841946817692?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7500091841946817692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7500091841946817692' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7500091841946817692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7500091841946817692'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/03/jira-and-confluence-backup.html' title='Jira and Confluence - Backup'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5239369943025923142</id><published>2010-03-14T13:02:00.000-07:00</published><updated>2010-03-24T17:21:59.332-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jira'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='confluence'/><title type='text'>[UPDATE] Jira and Confluence</title><content type='html'>I will not explain what are &lt;a href="http://www.atlassian.com/software/jira/"&gt;Jira&lt;/a&gt; (v4.0.2) and &lt;a href="http://www.atlassian.com/software/confluence/"&gt;Confluence&lt;/a&gt; (v3.1.2) (read at their corresponding description) but how to put both of them to run in a Fedora box using &lt;a href="http://www.mysql.com/"&gt;MySQL&lt;/a&gt; and &lt;a href="http://tomcat.apache.org/"&gt;Tomcat&lt;/a&gt; v5.5 (just one).&lt;br /&gt;&lt;br /&gt;This procedure is based on the original documentation (given below) and when in doubt please DO read the originals.&lt;br /&gt;&lt;br /&gt;Jira: &lt;a href="http://confluence.atlassian.com/display/JIRA/Installing+JIRA+on+Tomcat+5.5"&gt;http://confluence.atlassian.com/display/JIRA/Installing+JIRA+on+Tomcat+5.5&lt;/a&gt;&lt;br /&gt;Confluence: &lt;a href="http://confluence.atlassian.com/display/DOC/Installing+Confluence+EAR-WAR+on+Tomcat"&gt;http://confluence.atlassian.com/display/DOC/Installing+Confluence+EAR-WAR+on+Tomcat&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Before you start installing please do get it handy both licenses. I will also assume that you already downloaded both programs in the WAR/EAR form. This is *VERY* important because you do *NOT* want the standalone versions. The links are provided here: &lt;a href=" http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa"&gt;Jira v4.0.2&lt;/a&gt; and &lt;a href=" http://www.atlassian.com/software/confluence/ConfluenceDownloadCenter.jspa"&gt;Confluence v3.1.2&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Or:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget &lt;a href="http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.0.2.tar.gz"&gt;http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.0.2.tar.gz&lt;/a&gt;&lt;br /&gt;wget &lt;a href="http://www.atlassian.com/software/confluence/downloads/binary/confluence-3.1.2.tar.gz"&gt;http://www.atlassian.com/software/confluence/downloads/binary/confluence-3.1.2.tar.gz&lt;/a&gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Install the necessary software:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mysql \&lt;br /&gt;mysql-server \&lt;br /&gt;mysql-connector-java \&lt;br /&gt;javamail \&lt;br /&gt;tomcat5&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Install Sun's JDK:&lt;br /&gt;JDK: &lt;a href="http://java.sun.com/javase/downloads/widget/jdk6.jsp"&gt;http://java.sun.com/javase/downloads/widget/jdk6.jsp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Get the some additional libs from Atlassian:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://confluence.atlassian.com/download/attachments/200709089/jira-jars-tomcat5.zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Put the necessary libs in the Tomcat lib dir:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;unzip jira-jars-tomcat5.zip -d /tmp/&lt;br /&gt;mv /tmp/jira-jars-tomcat5/*.jar /var/lib/tomcat5/common/lib/&lt;br /&gt;rm -rf /tmp/jira-jars-tomcat5/&lt;br /&gt;unzip jaf-1_1_1.zip -d /tmp/&lt;br /&gt;mv /tmp/jaf-1.1.1/activation.jar /var/lib/tomcat5/common/lib/&lt;br /&gt;rm -rf /tmp/jaf-1.1.1/&lt;br /&gt;ln -s /usr/share/java/mysql-connector-java-5.1.12.jar /var/lib/tomcat5/common/lib&lt;br /&gt;ln -s /usr/share/java/javamail/mail-1.4.3.jar /var/lib/tomcat5/common/lib&lt;br /&gt;ln -s /usr/share/java/javamail/dsn-1.4.3.jar /var/lib/tomcat5/common/lib&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Create a build directory for Jira and Confluence:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkdir -p /usr/local/atlassian/&lt;br /&gt;tar -vxzf atlassian-jira-enterprise-4.0.2.tar.gz -C /usr/local/atlassian/&lt;br /&gt;tar -vxzf confluence-3.1.2.tar.gz -C /usr/local/atlassian/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Create the home directory for Jira and Confluence:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkdir -p /var/local/atlassian/jira/&lt;br /&gt;mkdir -p /var/local/atlassian/confluence/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Forces Tomcat to use Sun's JRE by editing [&lt;span style="font-weight:bold;"&gt;/etc/tomcat5/tomcat5.conf&lt;/span&gt;] and setting the following variables:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;JAVA_HOME="/usr/java/default/"&lt;br /&gt;JRE_HOME="/usr/java/default/jre/"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also add the following statements (do NOT remove the already existing ones, just ADD):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;JAVA_OPTS="$JAVA_OPTS -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Xms128m -Xmx512m -XX:MaxPermSize=256m"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Prepare the MySQL:&lt;br /&gt;&lt;br /&gt;You need to create the databases for Jira and Confluence:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql -u root -p&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[UPDATE]&lt;/span&gt;&lt;/span&gt;At the MySQL shell:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;CREATE DATABASE jiradb CHARACTER SET utf8;&lt;br /&gt;CREATE DATABASE confluencedb CHARACTER SET utf8;&lt;br /&gt;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX,LOCK TABLES ON jiradb.* TO 'jirauser'@'localhost' IDENTIFIED BY '&amp;lt;plain text pass for jirauser&amp;gt;';&lt;br /&gt;GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX,LOCK TABLES ON confluencedb.* TO 'confluenceuser'@'localhost' IDENTIFIED BY '&amp;lt;plain text pass for confluenceuser&amp;gt;';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;\q&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check if you can access the databases:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql \--user=jirauser \--password=&amp;lt;plain text pass for jirauser&amp;gt; \--database=jiradb&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql \--user=confluenceuser \--password=&amp;lt;plain text pass for confluenceuser&amp;gt; \--database=confluencedb&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Install Jira:&lt;br /&gt;&lt;br /&gt;8.1. Set Jira to use MySQL in the file [&lt;span style="font-weight:bold;"&gt;/usr/local/atlassian/atlassian-jira-enterprise-4.0.2/edit-webapp/WEB-INF/classes/entityengine.xml&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;Change from:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&amp;lt;datasource name="defaultDS" field-type-name="hsql"&lt;br /&gt;   schema-name="PUBLIC"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&amp;lt;datasource name="defaultDS" field-type-name="mysql"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.2. Set Jira home dir in the file: [&lt;span style="font-weight:bold;"&gt;/usr/local/atlassian/atlassian-jira-enterprise-4.0.2/edit-webapp/WEB-INF/classes/jira-application.properties&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;It looks like this:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;jira.home = /var/local/atlassian/jira/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.3. Compile Jira:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;export JAVA_HOME="/usr/java/default/"&lt;br /&gt;cd /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/&lt;br /&gt;rm -f /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/webapp/WEB-INF/lib/{activation-1.1.1.jar,mail-1.4.1.jar}&lt;br /&gt;sh ./build.sh&lt;br /&gt;rm -f /var/local/atlassian/jira/atlassian-jira-4.0.2.war&lt;br /&gt;cp /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/dist-tomcat/atlassian-jira-4.0.2.war /var/local/atlassian/jira/&lt;br /&gt;cp /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/dist-tomcat/tomcat-5.5/jira.xml /etc/tomcat5/Catalina/localhost/&lt;br /&gt;chown -R tomcat:tomcat /var/local/atlassian/jira/&lt;br /&gt;chmod 755 /var/local/atlassian/jira/&lt;br /&gt;chmod -R ug+rw /var/local/atlassian/jira/&lt;br /&gt;chmod -R o+r /var/local/atlassian/jira/&lt;br /&gt;chmod -R o-w /var/local/atlassian/jira/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.4. Setup the Jira application to use MySQL in file [&lt;span style="font-weight:bold;"&gt;/etc/tomcat5/Catalina/localhost/jira.xml&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;The resource section must look like this:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&amp;lt;Context path="/jira" docBase="/var/local/atlassian/jira/atlassian-jira-4.0.2.war" debug="0"&amp;gt;&lt;br /&gt;...&lt;br /&gt;    &amp;lt;Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"&lt;br /&gt;            username="jirauser"&lt;br /&gt;            password="&amp;lt;plain text pass for jirauser&amp;gt;"&lt;br /&gt;            driverClassName="com.mysql.jdbc.Driver"&lt;br /&gt;            url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;amp;amp;sessionVariables=storage_engine=InnoDB&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8"/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If a complementary build is necessary try this shorter form:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;export JAVA_HOME="/usr/java/default/"&lt;br /&gt;cd /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/&lt;br /&gt;rm -f /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/webapp/WEB-INF/lib/{activation-1.1.1.jar,mail-1.4.1.jar}&lt;br /&gt;sh ./build.sh&lt;br /&gt;rm -f /var/local/atlassian/jira/atlassian-jira-4.0.2.war&lt;br /&gt;cp /usr/local/atlassian/atlassian-jira-enterprise-4.0.2/dist-tomcat/atlassian-jira-4.0.2.war /var/local/atlassian/jira/&lt;br /&gt;chown tomcat:tomcat /var/local/atlassian/jira/atlassian-jira-4.0.2.war&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8.5. Checking it out if Jira is working:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service mysqld restart&lt;br /&gt;service tomcat5 restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to: &lt;a href="http://localhost:8080/jira/"&gt;http://localhost:8080/jira/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;9. Install Confluence:&lt;br /&gt;&lt;br /&gt;9.1. Set Confluence home dir in the file: [&lt;span style="font-weight:bold;"&gt;/usr/local/atlassian/confluence-3.1.2/confluence/WEB-INF/classes/confluence-init.properties&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;It looks like this:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;confluence.home = /var/local/atlassian/confluence&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.2. Compile Confluence:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;export JAVA_HOME="/usr/java/default/"&lt;br /&gt;cd /usr/local/atlassian/confluence-3.1.2/&lt;br /&gt;rm -f /usr/local/atlassian/confluence-3.1.2/confluence/WEB-INF/lib/{activation-1.0.2.jar,mail-1.4.1.jar}&lt;br /&gt;sh ./build.sh&lt;br /&gt;rm -f /var/local/atlassian/confluence/confluence-3.1.2.war&lt;br /&gt;cp /usr/local/atlassian/confluence-3.1.2/dist/confluence-3.1.2.war /var/local/atlassian/confluence/&lt;br /&gt;cat &amp;gt; /etc/tomcat5/Catalina/localhost/confluence.xml &amp;lt;&amp;lt; __END__&lt;br /&gt;&amp;lt;Context path="/confluence" docBase="/var/local/atlassian/confluence/confluence-3.1.2.war" debug="0" reloadable="true"&amp;gt;&lt;br /&gt;&amp;lt;/Context&amp;gt;&lt;br /&gt;__END__&lt;br /&gt;chown -R tomcat:tomcat /var/local/atlassian/confluence/&lt;br /&gt;chmod 755 /var/local/atlassian/confluence/&lt;br /&gt;chmod -R ug+rw /var/local/atlassian/confluence/&lt;br /&gt;chmod -R o+r /var/local/atlassian/confluence/&lt;br /&gt;chmod -R o-w /var/local/atlassian/confluence/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Shorter version for recompile:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;export JAVA_HOME="/usr/java/default/"&lt;br /&gt;cd /usr/local/atlassian/confluence-3.1.2/&lt;br /&gt;rm -f /usr/local/atlassian/confluence-3.1.2/confluence/WEB-INF/lib/{activation-1.0.2.jar,mail-1.4.1.jar}&lt;br /&gt;sh ./build.sh&lt;br /&gt;rm -f /var/local/atlassian/confluence/confluence-3.1.2.war&lt;br /&gt;cp /usr/local/atlassian/confluence-3.1.2/dist/confluence-3.1.2.war /var/local/atlassian/confluence/&lt;br /&gt;chown tomcat:tomcat /var/local/atlassian/confluence/confluence-3.1.2.war&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.3. Checking it out if Confluence is working:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service mysqld restart&lt;br /&gt;service tomcat5 restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to: &lt;a href="http://localhost:8080/confluence/"&gt;http://localhost:8080/confluence/&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Setting up Confluence (at &lt;a href="http://localhost:8080/confluence/"&gt;http://localhost:8080/confluence/&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;9.4. Enter the key and go to &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Custom Installation&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.5. At External Database choose MySQL and click at &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;External Database &amp;gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At Configure Database choose &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;Direct JDBC &amp;gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.6. For the Database configuration fill with the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Driver Class Name:   &lt;span style="font-weight:bold;"&gt;com.mysql.jdbc.Driver&lt;/span&gt;&lt;br /&gt;Database URL:   &lt;span style="font-weight:bold;"&gt;jdbc:mysql://localhost/confluencedb?autoReconnect=true&amp;amp;amp;sessionVariables=storage_engine=InnoDB&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&lt;/span&gt;&lt;br /&gt;User Name:   &lt;span style="font-weight:bold;"&gt;confluenceuser&lt;/span&gt;&lt;br /&gt;Password:   &lt;span style="font-weight:bold;"&gt;&amp;lt;plain text pass for confluenceuser&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The rest is straight forward.&lt;br /&gt;&lt;br /&gt;P.S.: You may want to change your MySQL maximum allowed packet size to allow plugin installation (which normally requires more than the default 1Mb size). Edit the file [&lt;span style="font-style:italic;"&gt;/etc/my.cnf&lt;/span&gt;] and put the following line (or change it) to:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;[mysqld]&lt;br /&gt;...&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;max_allowed_packet = 16M&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Important logs for trouble shooting:&lt;br /&gt;System: /var/log/messages&lt;br /&gt;Tomcat: /var/log/tomcat5/catalina.out&lt;br /&gt;MySQL: /var/log/mysqld.log&lt;br /&gt;Jira: /var/log/tomcat5/catalina.out (all gets thrown at the Tomcat log)&lt;br /&gt;Confluence: /var/local/atlassian/confluence/logs/atlassian-confluence.log&lt;br /&gt;Jira database config: /etc/tomcat5/Catalina/localhost/jira.xml&lt;br /&gt;Confluence database config: /var/local/atlassian/confluence/confluence.cfg.xml&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;Jira and Confluence Backup: &lt;a href="http://gka-linux.blogspot.com/2010/03/jira-and-confluence-backup.html"&gt;http://gka-linux.blogspot.com/2010/03/jira-and-confluence-backup.html&lt;/a&gt;&lt;br /&gt;Fedora 12 Road Map: &lt;a href="http://gka-linux.blogspot.com/2009/12/my-fedora-12-road-map.html"&gt;http://gka-linux.blogspot.com/2009/12/my-fedora-12-road-map.html&lt;/a&gt;&lt;br /&gt;MySQL root password reset: &lt;a href="http://gka-linux.blogspot.com/2010/03/mysql-root-password-reset.html"&gt;http://gka-linux.blogspot.com/2010/03/mysql-root-password-reset.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5239369943025923142?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5239369943025923142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5239369943025923142' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5239369943025923142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5239369943025923142'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/03/jira-and-confluence.html' title='[UPDATE] Jira and Confluence'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4258965300568779532</id><published>2010-03-14T08:50:00.000-07:00</published><updated>2010-03-14T08:55:15.161-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>MySQL root password reset</title><content type='html'>This is rather annoying, so here is the complete procedure:&lt;br /&gt;&lt;br /&gt;Get MySQL to be in the safe mode:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service mysqld stop&lt;br /&gt;mysqld_safe --skip-grant-tables &amp;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start the MySQL shell:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mysql -u root&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At the MySQL shell (this is NOT safe):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;USE mysql;&lt;br /&gt;UPDATE user SET PASSWORD=PASSWORD("&amp;lt;plain text root password for mysql&amp;gt;") WHERE User='root';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;FLUSH TABLES;&lt;br /&gt;\q&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Back at the root shell:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;kill `cat /var/run/mysqld/mysqld.pid`&lt;br /&gt;service mysqld start&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: MySQL records its shell commands at ~/.mysql_history This means that&lt;br /&gt;your passwords (informed as I shown you) are recorded in plain text at this&lt;br /&gt;file. It is advised to remove this file after applying the commands above&lt;br /&gt;displayed:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rm -f ~/.msyql_history&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4258965300568779532?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4258965300568779532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4258965300568779532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4258965300568779532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4258965300568779532'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/03/mysql-root-password-reset.html' title='MySQL root password reset'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4596524390759031996</id><published>2010-02-18T12:39:00.000-08:00</published><updated>2010-02-18T12:42:48.141-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>Java and Firefox 3.6</title><content type='html'>Well it is not an issue for Fedora 12 (yet) but here is how it must be done to get Java working with Firefox 3.6:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ln -s /usr/java/default/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You need java 1.6u10 or higher.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4596524390759031996?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4596524390759031996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4596524390759031996' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4596524390759031996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4596524390759031996'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2010/02/java-and-firefox-36.html' title='Java and Firefox 3.6'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7954601019144885962</id><published>2009-12-07T11:58:00.001-08:00</published><updated>2009-12-07T12:18:21.101-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>Some Fedora 12 issues</title><content type='html'>There are some issues with Fedora 12 and some workarounds:&lt;br /&gt;&lt;br /&gt;- Eclipse:&lt;br /&gt;-- Problem:&lt;br /&gt;Some buttons, specially &lt;span style="font-style:italic;"&gt;OK&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;Finish&lt;/span&gt;, are not responding to the mouse click. You need to focus the button (mouse over it, for instance) and then press &lt;span style="font-style:italic;"&gt;ENTER&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;-- Solution (first attempt):&lt;br /&gt;You need to override an environment variable and then execute eclipse:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;GDK_NATIVE_WINDOWS=true eclipse&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Solution (for desktop laucher):&lt;br /&gt;&lt;br /&gt;Create the following script and add it as the launcher command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; ~/bin/eclipse.sh &lt;&lt; __END__&lt;br /&gt;GDK_NATIVE_WINDOWS=true eclipse&lt;br /&gt;__END__&lt;br /&gt;chmod 755 ~/bin/eclipse.sh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_D1tXstLYwnc/Sx1i80RLEwI/AAAAAAAAC-U/Udd6zsjmam0/s1600-h/eclipse.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 203px;" src="http://2.bp.blogspot.com/_D1tXstLYwnc/Sx1i80RLEwI/AAAAAAAAC-U/Udd6zsjmam0/s400/eclipse.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5412591124131549954" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Source: &lt;a href="http://forums.fedoraforum.org/showthread.php?s=a3c988d542abeeb3b04991ab5c12070d&amp;p=1301362#post1301362"&gt;http://forums.fedoraforum.org/showthread.php?s=a3c988d542abeeb3b04991ab5c12070d&amp;p=1301362#post1301362&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7954601019144885962?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7954601019144885962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7954601019144885962' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7954601019144885962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7954601019144885962'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/12/some-fedora-12-issues.html' title='Some Fedora 12 issues'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_D1tXstLYwnc/Sx1i80RLEwI/AAAAAAAAC-U/Udd6zsjmam0/s72-c/eclipse.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6640588702486105909</id><published>2009-12-07T08:23:00.000-08:00</published><updated>2010-03-22T06:07:01.089-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora12'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><title type='text'>My Fedora 12 road map</title><content type='html'>- Basic system setup&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/resolv.conf&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/fstab&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;RPM Fusion (free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;RPM Fusion (non-free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.jpackage.org/yum.php"&gt;JPackage&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://www.jpackage.org/jpackage17.repo -O /etc/yum.repos.d/jpackage.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://code.google.com/chromium/"&gt;Chromium&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/yum.repos.d/chromium.repo &lt;&lt; __END__&lt;br /&gt;[chromium]&lt;br /&gt;name=Chromium Test Packages&lt;br /&gt;baseurl=http://spot.fedorapeople.org/chromium/F\$releasever/&lt;br /&gt;enabled=1&lt;br /&gt;gpgcheck=0&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Edit the &lt;span style="font-style:italic;"&gt;/etc/yum.repos.d/jpackage.repo&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;If you want to work with J2EE, JBoss, and such change it to the following:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[jpackage-generic]&lt;br /&gt;name=JPackage (free), generic&lt;br /&gt;mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&amp;type=free&amp;release=5.0&lt;br /&gt;failovermethod=priority&lt;br /&gt;gpgcheck=1&lt;br /&gt;gpgkey=http://www.jpackage.org/jpackage.asc&lt;br /&gt;enabled=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update: remove before installing, thanks to a reader comment]&lt;/span&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;&lt;br /&gt;-- Chromium:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;chromium&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;alsa-tools \&lt;br /&gt;alsamixergui \  &lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Because Adobe Reader is usually very slow to download, I keep it separated and leave it to be last installed.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;AdobeReader_enu&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Torrent with transmission&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;transmission&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell \&lt;br /&gt;gtkspell \&lt;br /&gt;hunspell-en&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;hunspell-de \&lt;br /&gt;hunspell-es \&lt;br /&gt;hunspell-pt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;bogofilter \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme \&lt;br /&gt;xmms2 \&lt;br /&gt;xmms2-avcodec \&lt;br /&gt;xmms2-faad \&lt;br /&gt;xmms2-freeworld \&lt;br /&gt;xmms2-mp4 \&lt;br /&gt;xmms2-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;pidgin-gfire \&lt;br /&gt;pidgin-latex \&lt;br /&gt;pidgin-musictracker \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms \&lt;br /&gt;purple-facebookchat \&lt;br /&gt;purple-microblog \&lt;br /&gt;purple-msn-pecan&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For old processors (non-PAE)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ImageMagick \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;eog \&lt;br /&gt;gnuplot \&lt;br /&gt;inkscape \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;kile \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;telnet \&lt;br /&gt;lsof \&lt;br /&gt;nmap \&lt;br /&gt;nc \&lt;br /&gt;traceroute \&lt;br /&gt;mc \&lt;br /&gt;tsclient \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Very nice "must-have" admin programs:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;keepassx \ # I'm not that found of this one&lt;br /&gt;system-config-display \ # does not come by default&lt;br /&gt;gnome-password-generator # very nice gui for generating new passwords&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For WLAN Cracking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aircrack-ng \&lt;br /&gt;airsnort&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Section "Device"&lt;br /&gt; Identifier  "Videocard0"&lt;br /&gt; Driver      "nvidia"&lt;br /&gt; Option     "AddARGBGLXVisuals" "True"&lt;br /&gt; Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- Some helper programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Debug related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gdb \&lt;br /&gt;gcc \&lt;br /&gt;strace \&lt;br /&gt;ltrace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- JBoss support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;jbossas&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--- Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/07/my-fedora-11-road-map.html"&gt;Road map for Fedora 11&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html"&gt;Adding security to SSH&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6640588702486105909?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6640588702486105909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6640588702486105909' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6640588702486105909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6640588702486105909'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/12/my-fedora-12-road-map.html' title='My Fedora 12 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8142974489928191639</id><published>2009-09-13T08:40:00.000-07:00</published><updated>2009-09-13T09:18:39.380-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='eclipse'/><category scheme='http://www.blogger.com/atom/ns#' term='galileo'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP and Eclipse</title><content type='html'>This post is because I'm starting to program using &lt;a href="http://www.php.net/"&gt;PHP&lt;/a&gt; and I found no easy documentation explaining how to integrate PHP and &lt;a href="http://www.eclipse.org/"&gt;Eclipse&lt;/a&gt;. I tried &lt;a href="http://www.eclipse.org/pdt/"&gt;PDT&lt;/a&gt; (hated it) and &lt;a href="http://aptana.com/"&gt;Aptana&lt;/a&gt; and none of them actually solved my problem that was: an IDE with text highlight and a debugger. Aptana is rather confusing (I couldn't figure it out how to start a server and connect my php to it) and PDT is kind of messy.&lt;br /&gt;&lt;br /&gt;The best I could find was a reference at &lt;a href="http://drupal.org"&gt;Drupal&lt;/a&gt; documentation: &lt;a href="http://drupal.org/node/75242#PHPeclipse"&gt;http://drupal.org/node/75242#PHPeclipse&lt;/a&gt;. The link is &lt;a href="http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse"&gt;http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse&lt;/a&gt;. This was an almost complete documentation and helped me to get the job done.&lt;br /&gt;&lt;br /&gt;First of all, the &lt;a href="http://www.phpeclipse.net/"&gt;PHPEclipse&lt;/a&gt; editor is the best. It actually highlights PHP files, even though they do not possess a &lt;span style="font-style:italic;"&gt;".php"&lt;/span&gt; extension. (The other editors just cann't tackle this fairly easy task.) And it is really easy to debug your code (there is a catch nonetheless) and start playing around. For this documentation I will not repeat things that are already documented, so you will need to have the documentation below opened:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse"&gt;http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get &lt;a href="http://www.eclipse.org/"&gt;Eclipse&lt;/a&gt; Galileo (the version that I have and in which this documentation is based on) at:&lt;br /&gt;&lt;br /&gt;&lt;a href=" http://www.eclipse.org/downloads/"&gt;http://www.eclipse.org/downloads/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Install &lt;a href="http://subclipse.tigris.org/"&gt;Subclipse&lt;/a&gt; plugin (for SVN):&lt;br /&gt;&lt;br /&gt;Eclipse update site:&lt;br /&gt;&lt;a href="http://subclipse.tigris.org/update_1.6.x"&gt;http://subclipse.tigris.org/update_1.6.x&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Install &lt;a href="http://www.phpeclipse.net/"&gt;PHPEclipse&lt;/a&gt; plugin:&lt;br /&gt;&lt;br /&gt;Eclipse update site:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://update.phpeclipse.net/update/stable/1.2.x"&gt;http://update.phpeclipse.net/update/stable/1.2.x&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3.1. It is VERY important that you disable the &lt;span style="font-style:italic;"&gt;DBG plugin&lt;/span&gt;. See the &lt;span style="font-weight:bold;"&gt;"Special Note:"&lt;/span&gt; at &lt;a href="http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse"&gt;http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. Install &lt;a href="http://xdebug.org/"&gt;XDebug&lt;/a&gt; (not in Eclipse):&lt;br /&gt;&lt;br /&gt;4.1. Get some additional packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;php-devel&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.2. Get XDebug source, configure, compile and install it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cd /tmp&lt;br /&gt;wget http://www.xdebug.org/files/xdebug-2.0.5.tgz&lt;br /&gt;tar -vxzf xdebug-2.0.5.tgz&lt;br /&gt;cd xdebug-2.0.5&lt;br /&gt;phpize&lt;br /&gt;./configure --enable-xdebug&lt;br /&gt;make&lt;br /&gt;mkdir -p /opt/xdebug-2.0.5&lt;br /&gt;cp /tmp/xdebug-2.0.5/modules/xdebug.so /opt/xdebug-2.0.5/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: It will be installed at &lt;span style="font-weight:bold;"&gt;/opt/xdebug-2.0.5/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.2. Configure the XDebug for the PHP:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &amp;gt;&amp;gt; /etc/php.d/xdebug.ini &amp;lt;&amp;lt; __END__&lt;br /&gt;;&lt;br /&gt;; Configuration taken from: http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse&lt;br /&gt;;&lt;br /&gt;[xdebug]&lt;br /&gt;; for non threaded php (debug and inside eclipse)&lt;br /&gt;zend_extension="/opt/xdebug-2.0.5/xdebug.so"&lt;br /&gt;; for threaded php (apache)&lt;br /&gt;; zend_extension_ts="/opt/xdebug-2.0.5/xdebug.so"&lt;br /&gt;xdebug.remote_enable=On&lt;br /&gt;xdebug.remote_autostart=On&lt;br /&gt;xdebug.remote_handler=dbgp&lt;br /&gt;; change it if you want to debug from another server/workstation&lt;br /&gt;xdebug.remote_host=127.0.0.1/32 192.168.0.0/16&lt;br /&gt;xdebug.remote_port=9000&lt;br /&gt;xdebug.remote_mode=req&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.3. Configure your Apache to have an Alias to your workspace, but remember: you HAVE to give permission to the &lt;span style="font-style:italic;"&gt;apache&lt;/span&gt; user to reach you workspace:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chmod o+r ${HOME}&lt;br /&gt;chmod -R o+r ${HOME}/&amp;lt;your workspace&amp;gt;&lt;br /&gt;echo "Alias /dev \"${HOME}/&amp;lt;your workspace&amp;gt;/&amp;lt;your php project name&amp;gt;\"" &amp;gt; /etc/httpd/conf.d/php-dev.conf&lt;br /&gt;service httpd restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Configure Eclipse to use XDebug:&lt;br /&gt;&lt;br /&gt;Follow &lt;a href="http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse"&gt;http://www.phpeclipse.com/wiki/Howto/XDebugAndPHPEclipse&lt;/a&gt; from &lt;span style="font-weight:bold;"&gt;"Test Project"&lt;/span&gt; section to the end.&lt;br /&gt;&lt;br /&gt;Note: The URL for your project will be: http://localhost/dev/&amp;lt;your PHP file in your workspace&amp;gt;&lt;br /&gt;&lt;br /&gt;Note2: When you launch a debug (in Eclipse) you have to switch to the Debug Perspective manually (that is the catch that I mentioned).&lt;br /&gt;&lt;br /&gt;Note3: At the "pathmap" configuration (for the &lt;span style="font-style:italic;"&gt;PHP XDebug Remote Script&lt;/span&gt;) you will use: &lt;span style="font-weight:bold;"&gt;/home/&amp;lt;your username&amp;gt;/&amp;lt;your workspace&amp;gt;/&amp;lt;your php project name&amp;gt;&lt;/span&gt; in both fields (this is due to the fact that you are running the http server locally and using an Alias).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8142974489928191639?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8142974489928191639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8142974489928191639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8142974489928191639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8142974489928191639'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/09/php-and-eclipse.html' title='PHP and Eclipse'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6438544319210444405</id><published>2009-08-27T13:15:00.000-07:00</published><updated>2009-08-28T06:09:34.371-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='gnupg'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='pgp'/><title type='text'>[updated] GnuPG: PGP under Linux</title><content type='html'>Install the gnupg:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum - y install \&lt;br /&gt;gnupg2&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To generate a key:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 --gen-key&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To export the public key:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 -a -o pubkey.asc --export &amp;lt;your email&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To export your private key (for backup purposes only, NOT recommended):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 -a -o privkey.asc --export-secret-keys &amp;lt;your email&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To import a public key:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 --import &amp;lt;pubkey file&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To sign a key:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 --sign-key &amp;lt;key email address&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To encrypt a file, in ASCII mode:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 -a -o &amp;lt;output file&amp;gt;.asc -r &amp;lt;your email&amp;gt; [-r &amp;lt;recipient's email&amp;gt;] -e &amp;lt;file to encrypt&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To decrypt a file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg2 -o &amp;lt;output file&gt; -d &amp;lt;input file&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you don't like command line you can try two GUIs:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kdeutils \&lt;br /&gt;gpa&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: KDEUtils comes with KGpg which is the best among the two.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A reader (see his comment below) drove my attention a missing point: "how to import secret keys to GnuPG?" the answer is: use the old GnuPG for it:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnupg&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To import secret keys:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gpg --import &amp;lt;key file&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sorry, about the "hackerish" part, but it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6438544319210444405?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6438544319210444405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6438544319210444405' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6438544319210444405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6438544319210444405'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/gnupg-pgp-under-linux.html' title='[updated] GnuPG: PGP under Linux'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7460666655697537371</id><published>2009-08-27T12:36:00.000-07:00</published><updated>2010-07-05T03:51:54.610-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='pgp'/><title type='text'>PGP for Windows users</title><content type='html'>PGP for Windows:&lt;br /&gt;&lt;br /&gt;1. Go to &lt;a href="http://www.pgp.com/downloads/desktoptrial/desktoptrial2.html"&gt;http://www.pgp.com/downloads/desktoptrial/desktoptrial2.html&lt;/a&gt; check the box at the bottom of the page and hit "Accept"&lt;br /&gt;2. Fill up the form&lt;br /&gt;3. Hit the Windows XP button and wait for the download link&lt;br /&gt;&lt;br /&gt;NOTE: Because you will use the trial version, which will switch to the freeware featured version after 30 days, be aware that only the basic features will remain active. From the agreement form you get:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;What functionality continues after 30 days? &lt;br /&gt;The following limited functionality (equivalent to prior versions of PGP Freeware) will continue after the initial 30-day period:&lt;br /&gt;&lt;br /&gt;At the end of the trial period, any local disks that have been encrypted using PGP Whole Disk Encryption will automatically decrypt.&lt;br /&gt;&lt;br /&gt;PGP file encryption and signing, PGP Zip, “Current Window”, and “Clipboard” functionality will continue to allow encryption, and you will still be able to use the decryption capabilities for all PGP Desktop Trial product functions, thus ensuring that any encrypted data remains accessible.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installation and configuration (requires a restart at the end of the installation process):&lt;br /&gt;&lt;br /&gt;It is pretty straight forward, but you can follow the instructions received with the download link. I'm not going to show how, but some attention must be given to the following points:&lt;br /&gt;&lt;br /&gt;Generate your key as the pictures show, if you are concerned with Linux GnuPG compatibility, some encryption algorithms are copyright protected and are not implemented in GnuPG.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_D1tXstLYwnc/Spbg5zD6l4I/AAAAAAAACv4/4ry9-68pZrM/s1600-h/pgp-key-1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 212px;" src="http://2.bp.blogspot.com/_D1tXstLYwnc/Spbg5zD6l4I/AAAAAAAACv4/4ry9-68pZrM/s320/pgp-key-1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5374730488877062018" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_D1tXstLYwnc/SpbhCBgmcDI/AAAAAAAACwA/0F4MtyhQSHM/s1600-h/pgp-key-2.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 294px; height: 320px;" src="http://3.bp.blogspot.com/_D1tXstLYwnc/SpbhCBgmcDI/AAAAAAAACwA/0F4MtyhQSHM/s320/pgp-key-2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5374730630194425906" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To import keys:&lt;br /&gt;&lt;br /&gt;1. Open the PGP Desktop: &lt;span style="font-style:italic;"&gt;Start -&gt; PGP -&gt; PGP Dektop&lt;/span&gt;&lt;br /&gt;2. On PGP Desktop: Menu &lt;span style="font-style:italic;"&gt;File -&gt; Import...&lt;/span&gt;&lt;br /&gt;3. Select the key file(s)&lt;br /&gt;4. When the keys are on the key list, select all of them&lt;br /&gt;5. Sign them: Menu &lt;span style="font-style:italic;"&gt;Keys -&gt; Sign...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To put on your Master Keyring:&lt;br /&gt;&lt;br /&gt;1. Open the PGP Desktop: &lt;span style="font-style:italic;"&gt;Start -&gt; PGP -&gt; PGP Dektop&lt;/span&gt;&lt;br /&gt;2. Select one key (you need to do it "keywise", only one at a time) and: Menu &lt;span style="font-style:italic;"&gt;Keys -&gt; Add to Master Keys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To export your public key:&lt;br /&gt;&lt;br /&gt;1. Open the PGP Desktop: &lt;span style="font-style:italic;"&gt;Start -&gt; PGP -&gt; PGP Dektop&lt;/span&gt;&lt;br /&gt;2. Select your key&lt;br /&gt;3. Menu &lt;span style="font-style:italic;"&gt;File -&gt; Export -&gt; Key...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: Do NOT check the "Include Private Key(s)" field.&lt;br /&gt;&lt;br /&gt;To encrypt a file:&lt;br /&gt;&lt;br /&gt;Right mouse button at the file and: &lt;span style="font-style:italic;"&gt;PGP Desktop -&gt; Encrypt to Master Keys...&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7460666655697537371?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7460666655697537371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7460666655697537371' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7460666655697537371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7460666655697537371'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/pgp-for-windows-users.html' title='PGP for Windows users'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_D1tXstLYwnc/Spbg5zD6l4I/AAAAAAAACv4/4ry9-68pZrM/s72-c/pgp-key-1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7684699984319427883</id><published>2009-08-27T09:58:00.000-07:00</published><updated>2009-08-27T10:41:32.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='ssh'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='pam'/><title type='text'>SSH in a more secure way</title><content type='html'>SSH is a wonderful tool, I cann't praise it enough. But as all powerful tools it requires special attention to its use. In this post I want to put good recommendations into action. The guidelines are:&lt;br /&gt;&lt;br /&gt;1. No "&lt;span style="font-weight:bold;"&gt;root&lt;/span&gt;" direct access;&lt;br /&gt;2. Only ONE user should have remote access to the system AND "&lt;span style="font-weight:bold;"&gt;su&lt;/span&gt;" rights;&lt;br /&gt;3. All users with full featured shells, except for the one with "&lt;span style="font-weight:bold;"&gt;su&lt;/span&gt;" rights, should NOT have remote access granted (you can always become any user with the access user);&lt;br /&gt;4. All other users that MUST have remote access MUST have restricted shells, like "&lt;span style="font-weight:bold;"&gt;rbash&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;A. The SSH server configuration at: &lt;span style="font-weight:bold;"&gt;/etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(below are the excerpt from the file whose change are recommended)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;# This is the default, but it is important to keep it explicit&lt;br /&gt;Port 22&lt;br /&gt;# If you have several interfaces it may be good to force the access to be from a specific network interface/address or mask, this is your server IP address or IP masked range.&lt;br /&gt;# using 192.168.0.0 will NOT grant access to someone addressing your server outside the 192.168.X.X range.&lt;br /&gt;ListenAddress 0.0.0.0&lt;br /&gt;# Enforce the use of ONLY the version 2&lt;br /&gt;Protocol 2&lt;br /&gt;# Turns root remote access off&lt;br /&gt;PermitRootLogin no&lt;br /&gt;# Will log authentication failures when half the amount is tried: it does NOT block access JUST logs failures&lt;br /&gt;MaxAuthTries 4&lt;br /&gt;# If your clients are not behind a proxy it is wise to restrict the amount of open sessions that a single host can make to your machine&lt;br /&gt;MaxSessions 4&lt;br /&gt;# This can be a security issue. Suit yourself (I need it for CruiseControl)&lt;br /&gt;PubkeyAuthentication yes&lt;br /&gt;AuthorizedKeysFile      .ssh/authorized_keys&lt;br /&gt;# I really like PAM&lt;br /&gt;UsePAM yes&lt;br /&gt;# This can be really annoying if you have several users trying to connect simultaneously, but it helps to prevent brute-force attacks to your server, keep it low.&lt;br /&gt;MaxStartups 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;B. The PAM setup at: &lt;span style="font-weight:bold;"&gt;/etc/pam.d/sshd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(add the following line)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;auth       required     pam_listfile.so item=user sense=allow file=/etc/sshd/sshd.allow onerr=fail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This line tells PAM to look for the file /etc/sshd/sshd.allow for the users that are ALLOWED to access your server through SSH. This file should contain only the users that REALLY need direct remote access.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/ssh/sshd.allow &lt;&lt; __END__&lt;br /&gt;SU_user&lt;br /&gt;rbash_user&lt;br /&gt;__END__&lt;br /&gt;chown root:root /etc/ssh/sshd.allow&lt;br /&gt;chmod 400 /etc/ssh/sshd.allow&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C. The IPTABLES part at: &lt;span style="font-weight:bold;"&gt;/etc/sysconfig/iptables&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Add or modify the following line):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;D. Restart the servers:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service sshd restart&lt;br /&gt;service iptables restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Have fun!!!&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cyberciti.biz/tips/linux-pam-configuration-that-allows-or-deny-login-via-the-sshd-server.html"&gt;http://www.cyberciti.biz/tips/linux-pam-configuration-that-allows-or-deny-login-via-the-sshd-server.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7684699984319427883?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7684699984319427883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7684699984319427883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7684699984319427883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7684699984319427883'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/ssh-in-more-secure-way.html' title='SSH in a more secure way'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4353214079762302206</id><published>2009-08-14T09:53:00.000-07:00</published><updated>2009-11-04T03:58:21.911-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='cruisecontrol'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><title type='text'>[updated] CruiseControl: Config</title><content type='html'>Before following this post you need an SVN server (post &lt;a href="http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html"&gt;here&lt;/a&gt;) and a CruiseControl server (post &lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-fedora-setup.html"&gt;here&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-centos-setup.html"&gt;here&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;1. Create a special account, on the SVN server, for getting the source code from the CC server.&lt;br /&gt;&lt;br /&gt;The objective here is to do something similar to what is described at &lt;a href="http://svn.collab.net/repos/svn/trunk/notes/ssh-tricks"&gt;http://svn.collab.net/repos/svn/trunk/notes/ssh-tricks&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1.1. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[SVN Server]&lt;/span&gt;&lt;/span&gt; On the SVN server:&lt;br /&gt;&lt;br /&gt;1.1.1. Add two new SVN access accounts, but without shell access:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;useradd svn-ro&lt;br /&gt;useradd svn-rw&lt;br /&gt;usermod --lock svn-ro&lt;br /&gt;usermod --lock svn-rw&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.1.2. Verify if the SSH daemon is setup to accept public key authentication: &lt;span style="font-weight:bold;"&gt;/etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It must have a line with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;PubkeyAuthentication yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.2. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[CC Server]&lt;/span&gt;&lt;/span&gt; On the CC server:&lt;br /&gt;&lt;br /&gt;1.2.1. Setup the key pair for the cruise user, to be used to authenticate at the SVN server (see documentation &lt;a href="http://sial.org/howto/openssh/publickey-auth/"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;a. Enter an &lt;span style="font-style:italic;"&gt;EMPTY&lt;/span&gt; passphrase for the ssh key pair:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkdir ~cruise/.ssh&lt;br /&gt;ssh-keygen -q -f ~cruise/.ssh/id_rsa -t rsa&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b. Let the user have access to own keys, but only this user:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chmod -R go-rwx ~cruise/.ssh&lt;br /&gt;chown -R cruise:cruise ~cruise/.ssh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.2.3. Copy the public key to the SVN server, at the &lt;span style="font-weight:bold;"&gt;svn-ro&lt;/span&gt; user home dir (remember that &lt;span style="font-weight:bold;"&gt;svn-ro&lt;/span&gt; user has no shell access, so do NOT try to transfer the key using the &lt;span style="font-weight:bold;"&gt;svn-ro&lt;/span&gt; account).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;scp ~cruise/.ssh/id_rsa.pub &amp;lt;user that HAS shell access in the SVN server&amp;gt;@&amp;lt;SVN server&amp;gt;:&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.3. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[SVN Server]&lt;/span&gt;&lt;/span&gt; Back at the SVN server:&lt;br /&gt;&lt;br /&gt;1.3.1. Add the public key to the svn access user's (svn-ro) authorized key ring:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkdir -p ~svn-ro/.ssh/&lt;br /&gt;mkdir -p ~svn-rw/.ssh/&lt;br /&gt;cat ~&amp;lt;user used to deploy the public key&amp;gt;/id_rsa.pub &gt;&gt; ~svn-ro/.ssh/authorized_keys&lt;br /&gt;cat ~&amp;lt;user used to deploy the public key&amp;gt;/id_rsa.pub &gt;&gt; ~svn-rw/.ssh/authorized_keys&lt;br /&gt;chown -R svn-ro:svn-ro  ~svn-ro/.ssh/&lt;br /&gt;chmod -R go-rwx ~svn-ro/.ssh/&lt;br /&gt;chown -R svn-rw:svn-rw  ~svn-rw/.ssh/&lt;br /&gt;chmod -R go-rwx ~svn-rw/.ssh/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.3.2. Edit the authorization key ring file: &lt;span style="font-weight:bold;"&gt;~svn-ro/.ssh/authorized_keys&lt;/span&gt; AND &lt;span style="font-weight:bold;"&gt;~svn-rw/.ssh/authorized_keys&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;a. It looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;ssh-rsa AAAA&amp;lt;a lot more chars&amp;gt;= root@&amp;lt;CC server name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;b. change it to this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;command="/usr/bin/svnserve -t",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAA&amp;lt;a lot more chars&amp;gt;= root@&amp;lt;CC server name&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.4. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[CC Server]&lt;/span&gt;&lt;/span&gt; Back to the CC server:&lt;br /&gt;&lt;br /&gt;1.4.1. Create the necessary directories for the CC:&lt;br /&gt;&lt;br /&gt;#---&lt;br /&gt;mkdir -p /var/spool/cruisecontrol/{projects,logs,artifacts}&lt;br /&gt;chown -R cruise:cruise  /var/spool/cruisecontrol/&lt;br /&gt;#---&lt;br /&gt;&lt;br /&gt;1.4.1. Try to access the SVN server:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;su - cruise&lt;br /&gt;svn list svn+ssh://svn-ro@&amp;lt;SVN server&amp;gt;/var/svn/&lt;br /&gt;logout&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Configuring a project to be managed under the CC policy:&lt;br /&gt;&lt;br /&gt;a. Local working copy (for the CruiseControl): &lt;span style="font-weight:bold;"&gt;/var/spool/cruisecontrol/projects&lt;/span&gt;&lt;br /&gt;b. Special SVN repository for the CruiseControl configuration and building ANT scripts: &lt;span style="font-weight:bold;"&gt;/var/svn/cruisecontrol&lt;/span&gt;&lt;br /&gt;c. A special SVN Project (under the &lt;span style="font-weight:bold;"&gt;/var/svn/trunk&lt;/span&gt;) to hold the main build and JUnit ANT scripts, that is called Master here&lt;br /&gt;&lt;br /&gt;2.1. &lt;span style="font-weight:bold;"&gt;[SVN Server]&lt;/span&gt; Create the new CC root at the SVN&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;svn mkdir -m "Initial setup: CruiseControl development tree" file:///var/svn/cruisecontrol&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.4. &lt;span style="font-weight:bold;"&gt;[Dev Workstation]&lt;/span&gt; Create a project, named Main, and commit/import it to &lt;span style="font-weight:bold;"&gt;svn+ssh://&amp;lt;SVN server&amp;gt;/var/svn/cruisecontrol&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note.: This project must contain at least one file called &lt;span style="font-weight:bold;"&gt;build-cc.xml&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;2.5. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[SVN Server]&lt;/span&gt;&lt;/span&gt; To keep it simple:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;su - &amp;lt;A regular dev user&amp;gt;&lt;br /&gt;mkdir Main&lt;br /&gt;cd Main&lt;br /&gt;cat &amp;gt; build-cc.xml &amp;lt;&amp;lt; __END__&lt;br /&gt;&amp;lt;project basedir="." default="main" name="Main"&amp;gt;&lt;br /&gt;&amp;lt;target name="main"&amp;gt;&lt;br /&gt;&amp;lt;echo message="Working"/&amp;gt;&lt;br /&gt;&amp;lt;/target&amp;gt;&lt;br /&gt;&amp;lt;/project&amp;gt;&lt;br /&gt;__END__&lt;br /&gt;svn import -m "Initial CruiseControl build file" file:///var/svn/cruisecontrol/Main&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.6. [CC Server] Checkout the CC root from the SVN at the local working dir: &lt;span style="font-weight:bold;"&gt;/var/spool/cruisecontrol/projects&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;su - cruise&lt;br /&gt;svn checkout svn+ssh://svn-ro@&amp;lt;SVN Server&amp;gt;/var/svn/cruisecontrol/Main projects/Main&lt;br /&gt;logout&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.3. &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;[CC Server]&lt;/span&gt;&lt;/span&gt; Create a new &lt;span style="font-weight:bold;"&gt;config.xml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE: NOT WORKING PROPERLY] (Thanks to Leif, see comments below).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/cruisecontrol/config.xml &lt;&lt; __END__&lt;br /&gt;&amp;lt;cruisecontrol&amp;gt;&lt;br /&gt; &amp;lt;property name="cruise.working.dir" value="/var/spool/cruisecontrol" /&amp;gt;&lt;br /&gt; &amp;lt;property name="cruise.log.dir" value="\${cruise.working.dir}/logs" /&amp;gt;&lt;br /&gt; &amp;lt;property name="cruise.projects.dir" value="\${cruise.working.dir}/projects" /&amp;gt;&lt;br /&gt; &amp;lt;property name="svn.sandbox.username" value="svn-ro" /&amp;gt;&lt;br /&gt; &amp;lt;plugin name="basicproject" classname="net.sourceforge.cruisecontrol.ProjectConfig"&amp;gt;&lt;br /&gt;  &amp;lt;labelincrementer defaultLabel="\${project.name}-1"&lt;br /&gt;   separator="-" /&amp;gt;&lt;br /&gt;  &amp;lt;listeners&amp;gt;&lt;br /&gt;   &amp;lt;currentbuildstatuslistener&lt;br /&gt;    file="\${cruise.log.dir}/\${project.name}/status.txt" /&amp;gt;&lt;br /&gt;  &amp;lt;/listeners&amp;gt;&lt;br /&gt;  &amp;lt;modificationset quietperiod="30"&amp;gt;&lt;br /&gt;   &amp;lt;svn LocalWorkingCopy="\${cruise.projects.dir}/\${project.name}" /&amp;gt;&lt;br /&gt;  &amp;lt;/modificationset&amp;gt;&lt;br /&gt;  &amp;lt;log&amp;gt;&lt;br /&gt;   &amp;lt;merge&lt;br /&gt;    dir="\${cruise.working.dir}/projects/\${project.name}/target/test-results" /&amp;gt;&lt;br /&gt;  &amp;lt;/log&amp;gt;&lt;br /&gt;  &amp;lt;publishers&amp;gt;&lt;br /&gt;   &amp;lt;artifactspublisher&lt;br /&gt;    file="\${cruise.working.dir}/projects/\${project.name}/target/\${project.name}.jar"&lt;br /&gt;    dest="\${cruise.working.dir}/artifacts/\${project.name}" /&amp;gt;&lt;br /&gt;  &amp;lt;/publishers&amp;gt;&lt;br /&gt; &amp;lt;/plugin&amp;gt;&lt;br /&gt; &amp;lt;!-- here you can change the project name, if you decided from something else --&amp;gt;&lt;br /&gt; &amp;lt;project name="Main" buildafterfailed="yes"&lt;br /&gt;  forceBuildNewProject="yes"&amp;gt;&lt;br /&gt;  &amp;lt;bootstrappers&amp;gt;&lt;br /&gt;   &amp;lt;svnbootstrapper localWorkingCopy="\${cruise.projects.dir}/\${project.name}"&lt;br /&gt;    userName="\${svn.sandbox.username}" /&amp;gt;&lt;br /&gt;  &amp;lt;/bootstrappers&amp;gt;&lt;br /&gt;  &amp;lt;schedule interval="10"&amp;gt;&lt;br /&gt;   &amp;lt;ant antWorkingDir="\${cruise.projects.dir}/\${project.name}"&lt;br /&gt;    buildfile="build-cc.xml" /&amp;gt;&lt;br /&gt;  &amp;lt;/schedule&amp;gt;&lt;br /&gt;  &amp;lt;/project&amp;gt;&lt;br /&gt;&amp;lt;/cruisecontrol&amp;gt;&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.4. [CC Server] Restart the server and check if it worked by accessing: &lt;a href="http://localhost:8080/dashboard/"&gt;http://localhost:8080/dashboard/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Have fun, configuring the &lt;span style="font-weight:bold;"&gt;build-cc.xml&lt;/span&gt; and organising your repository and code :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html"&gt;Subversion and Apache with PAM&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-fedora-setup.html"&gt;CruiseControl on Fedora: Setup&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-centos-setup.html"&gt;CruiseControl on CentOS: Setup&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4353214079762302206?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4353214079762302206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4353214079762302206' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4353214079762302206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4353214079762302206'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/cruisecontrol-config.html' title='[updated] CruiseControl: Config'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6314366878028878510</id><published>2009-08-14T09:47:00.000-07:00</published><updated>2009-08-14T13:05:35.694-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='cruisecontrol'/><title type='text'>CruiseControl on CentOS: Setup</title><content type='html'>In this post I want to present a simple way to install and configure &lt;a href="http://cruisecontrol.sourceforge.net/"&gt;CruiseControl&lt;/a&gt; (hereafter just CC) to run on CentOS. For the configuration part, please refer to the Fedora procedure, since it is the same. The only difference is in how to install the CC to be similar to the RPM instalation.&lt;br /&gt;&lt;br /&gt;1. Since I could not find any RPM specific for CentOS I have taken the binaries available at CC home-page: &lt;a href="http://cruisecontrol.sourceforge.net/download.html"&gt;http://cruisecontrol.sourceforge.net/download.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You will also need the following packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And Sun's Java JDK: &lt;a href="http://java.sun.com/javase/downloads"&gt;http://java.sun.com/javase/downloads&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Decompress the binary package from CC into &lt;span style="font-weight:bold;"&gt;/opt&lt;/span&gt; dir:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;unzip cruisecontrol-bin-&amp;lt;VERSION&amp;gt;.zip -d /opt/&lt;br /&gt;ln -s /opt/cruisecontrol-bin-&amp;lt;VERSION&amp;gt; /opt/cruisecontrol&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Edit the starting script at: &lt;span style="font-weight:bold;"&gt;/opt/cruisecontrol/cruisecontrol.sh&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.1. Add the following lines, right after the commented &lt;span style="font-weight:bold;"&gt;CC_OPTS&lt;/span&gt; variable:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;JAVA_HOME="/usr/java/default/jre"&lt;br /&gt;PATH=${JAVA_HOME}/bin:${PATH}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.2. Check if the default port is free:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;nc -z localhost 8080 || echo "Port is free" # default cruise control port AND tomcat's default port, watch this out&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: It MUST yeld NOTHING. If it returns a "succeeded" it means that the port is occupied and you need to change it to another one.&lt;br /&gt;&lt;br /&gt;3.3. Change the final calling statements for:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt;&gt; /opt/cruisecontrol/cruisecontrol.sh &lt;&lt; __END__&lt;br /&gt;# PAY ATTENTION: you ABSOLUTELY need to change the argument in the \"-webport\" if the port 8080 is already occupied&lt;br /&gt;CMD="JAVA_HOME=\${JAVA_HOME:-/usr} \\&lt;br /&gt;PATH=\${JAVA_HOME:-/usr}/bin:\$PATH \\&lt;br /&gt;CC_OPTS=\"\${CRUISE_OPTS:-}\" \\&lt;br /&gt;\$JAVA_HOME/bin/java \\&lt;br /&gt;-Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder \\&lt;br /&gt;\"-Dcc.library.dir=\$LIBDIR\" \\&lt;br /&gt;\"-Djetty.logs=$JETTY_LOGS\" \\&lt;br /&gt;-jar \"\$LAUNCHER\" \$@ \\&lt;br /&gt;-configfile /etc/cruisecontrol/config.xml \\&lt;br /&gt;-jmxport \${CRUISE_JMX_PORT:-8000} \\&lt;br /&gt;-rmiport \${CRUISE_RMI_PORT:-1099} \\&lt;br /&gt;-webport \${CRUISE_WEB_PORT:-8080} \\&lt;br /&gt;&amp;"&lt;br /&gt;&lt;br /&gt;echo \$CMD&lt;br /&gt;# necessary to make the "out-of-box" version work regardless of the calling point&lt;br /&gt;cd /var/spool/cruisecontrol/&lt;br /&gt;eval \${CMD}&lt;br /&gt;echo \$! &gt; /var/spool/cruisecontrol/cc.pid&lt;br /&gt;__END__&lt;br /&gt;mv /opt/cruisecontrol/cruisecontrol.sh /opt/cruisecontrol/cruisecontrol2.sh&lt;br /&gt;cat &gt; /opt/cruisecontrol/cruisecontrol.sh &lt;&lt; __END__&lt;br /&gt;#!/bin/sh&lt;br /&gt;su - cruise -c /opt/cruisecontrol/cruisecontrol2.sh&lt;br /&gt;__END__&lt;br /&gt;chmod 755 /opt/cruisecontrol/cruisecontrol.sh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Add the cruise user:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;groupadd cruise&lt;br /&gt;useradd \&lt;br /&gt;--comment "CruiseControl User" \&lt;br /&gt;--home-dir "/var/spool/cruisecontrol" \&lt;br /&gt;--gid cruise \&lt;br /&gt;--shell /bin/bash \&lt;br /&gt;cruise&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Verify if CC is running:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;/opt/cruisecontrol/cruisecontrol.sh&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.1. Check if it is up and running by accessing: &lt;a href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt; (remember that if you changed the default port the value 8080 must be changed as well).&lt;br /&gt;&lt;br /&gt;5.2. If it is up and running you may want to make it starts when the server starts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt;&gt; /etc/rc.local &lt;&lt; __END__&lt;br /&gt;&lt;br /&gt;# starts the CruiseControl&lt;br /&gt;/opt/cruisecontrol/cruisecontrol.sh&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related post: &lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-fedora-setup.html"&gt;CruiseControl on Fedora: Setup&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6314366878028878510?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6314366878028878510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6314366878028878510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6314366878028878510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6314366878028878510'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-centos-setup.html' title='CruiseControl on CentOS: Setup'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-297523588958323515</id><published>2009-08-14T09:44:00.000-07:00</published><updated>2009-08-14T09:52:55.808-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='cruisecontrol'/><title type='text'>CruiseControl on Fedora: Setup</title><content type='html'>In this post I want to present a simple way to install and configure &lt;a href="http://cruisecontrol.sourceforge.net/"&gt;CruiseControl&lt;/a&gt; (hereafter just CC) to run on Fedora. It is NOT my objective to teach you how to each and every option of the configuration file works. For that you have plenty of other sources, such as the official documentation (here) and a pretty good step-by-step install, configure, and use documentation at JavaRanch (here). My objective is to give you an example of how to install and configure a CC server. (I'm one of those guys that learn better with an example.) Feel free to adapt it to your necessities.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://cruisecontrol.sourceforge.net/main/configxml.html"&gt;http://cruisecontrol.sourceforge.net/main/configxml.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.javaranch.com/journal/200409/DrivingOnCruiseControl_Part1.html"&gt;http://www.javaranch.com/journal/200409/DrivingOnCruiseControl_Part1.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Since I could not find any RPM specific for Fedora I have taken the RPM for OpenSUSE from &lt;a href=" http://rpm.pbone.net/"&gt;RPMpbone.net&lt;/a&gt; (package list &lt;a href="http://rpm.pbone.net/index.php3?stat=3&amp;search=cruisecontrol&amp;srodzaj=3"&gt;here&lt;/a&gt; and &lt;a href="http://rpm.pbone.net/index.php3?stat=3&amp;search=cruisecontrol-webui&amp;srodzaj=3"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;You will also need the following packages:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ant&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And Sun's Java JDK: &lt;a href="http://java.sun.com/javase/downloads"&gt;http://java.sun.com/javase/downloads&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Setup the CC service.&lt;br /&gt;&lt;br /&gt;Set it to use the Sun Java (it has serious problem with openJDK) by editing the file: &lt;span style="font-weight:bold;"&gt;/etc/default/cruisecontrol&lt;/span&gt; and including the following lines, before the final line&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;JAVA_HOME="/usr/java/default/jre"&lt;br /&gt;PATH=${JAVA_HOME}/bin:${PATH}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.1. Check if the default port is free:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;nc -z localhost 8080 # default cruise control port AND tomcat's default port, watch this out&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: It MUST yeld NOTHING. If it returns a "succeeded" it means that the port is occupied and you need to change it to another one. You can change it by given another port number for the variable CRUISE_WEB_PORT in the file: &lt;span style="font-weight:bold;"&gt;/etc/default/cruisecontrol&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.2. Start the CC daemon:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service cruisecontrol start&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.3. Check if it is up and running by accessing: &lt;a href="http://localhost:8080/dashboard"&gt;http://localhost:8080/dashboard&lt;/a&gt; (remember that if you changed the default port the value 8080 must be changed as well).&lt;br /&gt;&lt;br /&gt;2.4. If it is up and running you may want to make it starts when the server starts:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 345 cruisecontrol&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related post: &lt;a href="http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-centos-setup.html"&gt;CruiseControl on CentOS: Setup&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-297523588958323515?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/297523588958323515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=297523588958323515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/297523588958323515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/297523588958323515'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/cruisecontrol-on-fedora-setup.html' title='CruiseControl on Fedora: Setup'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2189372203900941451</id><published>2009-08-04T08:02:00.000-07:00</published><updated>2009-08-04T10:03:49.643-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nail'/><category scheme='http://www.blogger.com/atom/ns#' term='centos'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='mailx'/><title type='text'>Sending emails from server without a local smtp server</title><content type='html'>First of all, I do not like to have unnecessary daemons running on a server that are not related to the server's function and the excuse that it is easier that way does not convince me. So here is a cookbook recipe to send emails from a server without using the local smtp server (very useful for CRON scripts and other maintenance scripts).&lt;br /&gt;&lt;br /&gt;1. You need to install mailx:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mailx&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE.: For CentOS you will need nail instead of mailx (they crippled mailx in CentOS):&lt;br /&gt;&lt;br /&gt;1.1. Install the repository from &lt;a href="http://centos.karan.org/"&gt;http://centos.karan.org/&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://centos.karan.org/kbsingh-CentOS-Extras.repo -O /etc/yum.repos.d/kbsingh-CentOS-Extras.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.2. Install nail:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum --enablerepo=kbs-CentOS-Testing -y install \&lt;br /&gt;nail&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. You need a copy of your SSL root certificates in the server.&lt;br /&gt;&lt;br /&gt;2.1. On your client box, transfer your SSL certificates to the server:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;scp $HOME/.mozilla/firefox/&amp;lt;something&amp;gt;.default/cert&amp;lt;a number&amp;gt;.db &amp;lt;server ssh user&amp;gt;@&amp;lt;your server&amp;gt;:/path/you/can/write&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.2. Go to the server and put the certificate db at some path your script has access to&lt;br /&gt;&lt;br /&gt;3. Create a &lt;a href="http://mail.google.com/"&gt;GMail&lt;/a&gt; account, that will be the sender in your scripts (the password will be stored on the script, so do NOT use one of your accounts)&lt;br /&gt;&lt;br /&gt;4. On your script put the following a line like the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mail \&lt;br /&gt;-S smtp-use-starttls \&lt;br /&gt;-S smtp=smtp://smtp.gmail.com:587 \&lt;br /&gt;-S smtp-auth=login \&lt;br /&gt;-S smtp-auth-user=&amp;lt;username gmail&amp;gt;@gmail.com \&lt;br /&gt;-S smtp-auth-password=&amp;lt;the account password&amp;gt; \&lt;br /&gt;-S from="&amp;lt;username gmail&amp;gt;@gmail.com" \&lt;br /&gt;-S nss-config-dir=&amp;lt;where you stored the certificates DB file&amp;gt; \&lt;br /&gt;-S ssl-verify=ignore \&lt;br /&gt;-s "&amp;lt;email subject&amp;gt;" &amp;lt;to whom the email must be sent&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.1. If you are in a CentOS box, change the command &lt;span style="font-style:italic;"&gt;mail&lt;/span&gt; for &lt;span style="font-style:italic;"&gt;nail&lt;/span&gt; in the above command line and all will work perfectly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2189372203900941451?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2189372203900941451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2189372203900941451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2189372203900941451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2189372203900941451'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/08/sending-emails-from-server-without.html' title='Sending emails from server without a local smtp server'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8898299724179047846</id><published>2009-07-28T14:25:00.000-07:00</published><updated>2010-11-01T08:13:13.665-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='selinux'/><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='subversion'/><category scheme='http://www.blogger.com/atom/ns#' term='sasl'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='svn'/><category scheme='http://www.blogger.com/atom/ns#' term='pam'/><title type='text'>[updated] Subversion and Apache with PAM</title><content type='html'>First of all, I'm not an &lt;a href="http://fedoraproject.org/wiki/SELinux"&gt;SELinux&lt;/a&gt; expert, but it really annoys me from time to time. Let me start with the whole story.&lt;br /&gt;&lt;br /&gt;I'm simply trying to install and configure an &lt;a href="http://subversion.tigris.org"&gt;SVN&lt;/a&gt; server, or subversion with you will. But I definitely want neither something like plain text authentication nor an access without authentication. Therefore I was trying to configure an access tunnelled through &lt;a href="http://en.wikipedia.org/wiki/Secure_Shell"&gt;SSH&lt;/a&gt; (svn+ssh). I tried every cookbook recipe that I could put my hands on. Nothing worked. Then I started trying an SVN+&lt;a href="http://www.apache.org/"&gt;Apache&lt;/a&gt;+&lt;a href="http://en.wikipedia.org/wiki/Transport_Layer_Security"&gt;SSL&lt;/a&gt; configuration. A little further but the authentication wasn't working. Then I figured it out: SELinux was the one to blame.&lt;br /&gt;&lt;br /&gt;Ok, now that I just whined about SELinux lets go to the problem and how to solve it.&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;&lt;br /&gt;- Subversion server (SVN)&lt;br /&gt;- Authentication through system authentication, i.e., the linux users should have access to the SVN without requiring an extra password (the local authentication solution was no good)&lt;br /&gt;- Secure access to the SVN (through SSH or HTTPS)&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;1. VERY, but VERY, important FIRST step:&lt;br /&gt;&lt;br /&gt;- reduce the SELinux enforcement level. Adjust the &lt;span style="font-weight:bold;"&gt;/etc/sysconfig/selinux&lt;/span&gt; file to:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SELINUX=permissive&lt;/span&gt; # this is definitely enough&lt;br /&gt;&lt;br /&gt;1.1. Restart your machine. This is absolutely necessary. If you don't, none of the things will work until you do it.&lt;br /&gt;&lt;br /&gt;2. Install the required packages:&lt;br /&gt;&lt;br /&gt;2.1. Subversion server:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;subversion&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.2. Cyrus &lt;a href="http://asg.web.cmu.edu/sasl/"&gt;SASL&lt;/a&gt; sever (to act as a proxy for the authentication):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;cyrus-sasl \&lt;br /&gt;cyrus-sasl-md5 \&lt;br /&gt;cyrus-sasl-plain&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.3. The Apache server an its modules:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;httpd \&lt;br /&gt;mod_auth_shadow \&lt;br /&gt;mod_auth_pam \&lt;br /&gt;mod_dav_svn \&lt;br /&gt;mod_ssl&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Setup your SVN repository, locally (you can visit the subversion home-page and take a look on the documentation) at, for the sake of an actual example, &lt;span style="font-weight:bold;"&gt;/var/svn/&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;svnadmin create /var/svn/&lt;br /&gt;svn mkdir -m "Initial setup: main development tree" file:///var/svn/trunk&lt;br /&gt;svn mkdir -m "Initial setup: branches" file:///var/svn/branches&lt;br /&gt;svn mkdir -m "Initial setup: tagged versions" file:///var/svn/tags&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.1. Edit your SVN configuration file &lt;span style="font-weight:bold;"&gt;/var/svn/conf/svnserve.conf&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;[general]&lt;br /&gt;anon-access = none&lt;br /&gt;auth-access = write&lt;br /&gt;realm = test&lt;br /&gt;&lt;br /&gt;[sasl]&lt;br /&gt;use-sasl = true&lt;br /&gt;min-encryption = 0&lt;br /&gt;max-encryption = 256&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Setup the users groups, it is necessary to have access to the SVN repository:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;groupadd svnusers&lt;br /&gt;chgrp -R svnusers /var/svn/&lt;br /&gt;chmod -R ug+rw /var/svn/&lt;br /&gt;usermod -a -G svnusers &amp;lt;user-name that suppose to have access to the SVN&amp;gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: Remember, if you are the user in question you need to logout before trying to access the SVN. The change will only take effect on the NEXT login.&lt;br /&gt;&lt;br /&gt;4.1. Setup the apache user to be able to read the &lt;span style="font-weight:bold;"&gt;/etc/shadow&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;groupadd shadow-readers&lt;br /&gt;usermod -a -G shadow-readers apache&lt;br /&gt;chgrp shadow-readers /etc/shadow&lt;br /&gt;chmod g+r /etc/shadow&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: This is security problem, minor, but still. Be aware of that!&lt;br /&gt;&lt;br /&gt;5. Setup the Cyrus SASL:&lt;br /&gt;&lt;br /&gt;5.1. The SVN part of the SASL, in the file (which you need to create) &lt;span style="font-weight:bold;"&gt;/etc/sasl2/svn.conf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/sasl2/svn.conf &lt;&lt; __END__pwcheck_method: saslauthd__END__#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.2. The SASL Server to use &lt;a href="http://en.wikipedia.org/wiki/Pluggable_Authentication_Modules"&gt;PAM&lt;/a&gt; as the authentication method, in the file &lt;span style="font-weight:bold;"&gt;/etc/sysconfig/saslauthd&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;MECH=PAM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Setup the Apache server:&lt;br /&gt;&lt;br /&gt;6.1. Add the &lt;span style="font-style:italic;"&gt;apache&lt;/span&gt; user to the &lt;span style="font-style:italic;"&gt;svnusers&lt;/span&gt; group, this is necessary for the apache to be able to read the files to show you:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;usermod -a -G svnusers apache&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.2. Change Apache default group in the file &lt;span style="font-weight:bold;"&gt;/etc/httpd/conf/httpd.conf&lt;/span&gt; to be the &lt;span style="font-style:italic;"&gt;svnusers&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Group svnusers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: Note that this is an alternative solution. The convetional solution would be to set the owner of your repository to be the apache user:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chown -R apache:svnusers /var/svn/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.3. I suppose you want an SSL server then edit the file &lt;span style="font-weight:bold;"&gt;/etc/httpd/conf.d/subversion.conf&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/httpd/conf.d/subversion.conf &lt;&lt; __END__&lt;br/&gt;&lt;br /&gt;LoadModule dav_module         modules/mod_dav.so&lt;br/&gt;&lt;br /&gt;LoadModule dav_svn_module     modules/mod_dav_svn.so&lt;br/&gt;&lt;br /&gt;LoadModule auth_pam_module    modules/mod_auth_pam.so&lt;br/&gt;&lt;br /&gt;LoadModule ssl_module         modules/mod_ssl.so&lt;br/&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Location /repos&amp;gt;                                    # &lt;&lt;&lt;&lt;&lt;&lt;&lt; PAY ATTENTION TO THIS&lt;br/&gt;&lt;br /&gt;DAV svn&lt;br/&gt;&lt;br /&gt;#       v----- PAY ATTENTION TO THIS&lt;br/&gt;&lt;br /&gt;SVNPath /var/svn/&lt;br/&gt;&lt;br /&gt;AuthType Basic&lt;br/&gt;&lt;br /&gt;AuthPAM_Enabled on&lt;br/&gt;&lt;br /&gt;AuthShadow on&lt;br/&gt;&lt;br /&gt;AuthName "test"&lt;br/&gt;&lt;br /&gt;Order allow,deny&lt;br/&gt;&lt;br /&gt;Allow from all&lt;br/&gt;&lt;br /&gt;# since you are restricting to the svnusers ... &lt;br/&gt;&lt;br /&gt;Require group svnusers                             # &lt;&lt;&lt;&lt;&lt;&lt;&lt; PAY ATTENTION TO THIS&lt;br/&gt;&lt;br /&gt;# Limit write permission to list of valid users.&lt;br/&gt;&lt;br /&gt;&amp;lt;LimitExcept GET PROPFIND OPTIONS REPORT&amp;gt;&lt;br/&gt;&lt;br /&gt;# Require SSL connection for password protection.&lt;br/&gt;&lt;br /&gt;SSLRequireSSL&lt;br/&gt;&lt;br /&gt;Require user valid-username&lt;br/&gt;&lt;br /&gt;&amp;lt;/LimitExcept&amp;gt;&lt;br/&gt;&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br/&gt;&lt;br /&gt;__END__&lt;br/&gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Setup the PAM part:&lt;br /&gt;&lt;br /&gt;7.1. The PAM file for the SVN, in the file &lt;span style="font-weight:bold;"&gt;/etc/pam.d/svnserve&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/pam.d/svnserve &lt;&lt; __END__&lt;br/&gt;&lt;br /&gt;#%PAM-1.0&lt;br/&gt;&lt;br /&gt;auth    required pam_sepermit.so&lt;br/&gt;&lt;br /&gt;auth       include      system-auth&lt;br/&gt;&lt;br /&gt;account    required     pam_nologin.so&lt;br/&gt;&lt;br /&gt;account    include      system-auth&lt;br/&gt;&lt;br /&gt;password   include      system-auth&lt;br/&gt;&lt;br /&gt;__END__&lt;br/&gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: This is the part that will be used when accessing the SVN through an SSH connection, like:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;svn list svn+ssh://&amp;lt;user-name that suppose to have access to the SVN&amp;gt;@localhost/var/svn&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7.2. The PAM file for Apache, in the file &lt;span style="font-weight:bold;"&gt;/etc/pam.d/httpd&lt;/span&gt; (the same as above):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &gt; /etc/pam.d/httpd &lt;&lt; __END__#%PAM-1.0&lt;br/&gt;&lt;br /&gt;auth    required pam_sepermit.so&lt;br/&gt;&lt;br /&gt;auth       include      system-auth&lt;br/&gt;&lt;br /&gt;account    required     pam_nologin.so&lt;br/&gt;&lt;br /&gt;account    include      system-auth&lt;br/&gt;&lt;br /&gt;password   include      system-auth&lt;br/&gt;&lt;br /&gt;__END__&lt;br/&gt;&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: This is the part that will be used when accessing in the browser: &lt;span style="font-weight:bold;"&gt;&lt;a href="https://localhost/repos/"&gt;https://localhost/repos/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Put the services to start at boot time:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 345 httpd on&lt;br /&gt;chkconfig --level 345 saslauthd on&lt;br /&gt;chkconfig --level 345 sshd on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.1. Start the services now to test them:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service httpd start&lt;br /&gt;service saslauthd start&lt;br /&gt;service sshd start&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8.2. Check if the services are actually on and serving:&lt;br /&gt;&lt;br /&gt;OBS.: For this part you will need the "nc", so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nc&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For all tests the response should be:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Connection to localhost &lt;port&gt; port [tcp/https] succeeded!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;nc -z localhost 22 || echo "SSH is not running" # ssh&lt;br /&gt;nc -z localhost 80 || echo "HTTP is not running" # http&lt;br /&gt;nc -z localhost 443 || echo "HTTPS is not running" # https&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9. Check with a real example:&lt;br /&gt;&lt;br /&gt;9.1. SSH access:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;svn list svn+ssh://&amp;lt;user-name that suppose to have access to the SVN&amp;gt;@localhost/var/svn/&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;9.1.1. If you have something to import already:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;svn import &lt;myproject&gt; svn+ssh://&amp;lt;username that suppose to have access to the SVN&amp;gt;@localhost/var/svn/trunk/ -m "Import version"&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: Check it out if it is there by running the command before this last on.&lt;br /&gt;&lt;br /&gt;9.2. Https access (in a browser)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;a href="https://localhost/repos/"&gt;https://localhost/repos/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS.: It will ask your user-name and password, provide it and this should let you see the repository&lt;br /&gt;&lt;br /&gt;9.3. Eclipse url:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;svn+ssh://localhost/var/svn/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;10. Possible problems:&lt;br /&gt;&lt;br /&gt;10.1. Nothing works. Did you reboot your machine, as said in step 1.1?&lt;br /&gt;10.2. No other machine, besides the one where the server is, can access the repository. Check the &lt;a href="http://www.netfilter.org/projects/iptables/index.html"&gt;IPTABLES&lt;/a&gt; (out of the scope of this post)&lt;br /&gt;10.3. Permission denied. Did you logout before trying to access (see OBS in step 4)&lt;br /&gt;10.4. Some other problem. Check the following log files:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/messages&lt;/span&gt;              # for daemon startup problems&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/secure&lt;/span&gt;                # for ssh/authentication errors&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/audit/audit.log&lt;/span&gt;       # typically for SELinux errors and general permission errors&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/httpd/error_log&lt;/span&gt;       # for regular http errors&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/httpd/access_log &lt;/span&gt;     # for regular http access log&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/httpd/ssl_error_log&lt;/span&gt;   # for https errors&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;/var/log/httpd/ssl_access_log&lt;/span&gt;  # for https access log&lt;br /&gt;&lt;br /&gt;10.4.1. Increase the log verbosity:&lt;br /&gt;&lt;br /&gt;A. SASL: add the following line to the file &lt;span style="font-weight:bold;"&gt;/etc/sasl2/svn.conf&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;log_level: 7 # the maximum log level&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;B. PAM: add, after each line in the PAM files, &lt;span style="font-weight:bold;"&gt;/etc/pam.d/{svnserve,httpd}&lt;/span&gt;, the "&lt;span style="font-style:italic;"&gt;debug&lt;/span&gt;" string, like in:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;auth    required pam_sepermit.so debug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C. HTTP: edit the file &lt;span style="font-weight:bold;"&gt;/etc/httpd/conf/httpd.conf&lt;/span&gt; and change the "LogLevel" line to the following:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;LogLevel debug&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;D. Restart all services and start analysing the log files.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;service httpd restart&lt;br /&gt;service saslauthd restart&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;Windows Eclipse users cannot benefit from this directly, they need an extra step. The procedure is at: &lt;a href="http://www.woodwardweb.com/java/howto_configure.html"&gt;http://www.woodwardweb.com/java/howto_configure.html&lt;/a&gt; or at &lt;a href="http://stackoverflow.com/questions/620223/svn-ssh-question-in-windows"&gt;http://stackoverflow.com/questions/620223/svn-ssh-question-in-windows&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The basic configuration is to set a new environment variable for the SVN_SSH shell:&lt;br /&gt;&lt;br /&gt;1. Download and install TortoiseSVN (link &lt;a href="http://tortoisesvn.net/downloads"&gt;here&lt;/a&gt;)&lt;br /&gt;2. Set-up the SVN_SSH variable:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Start -&gt; Control Panel -&gt; System -&gt; Advanced (Tab) -&gt; Environment Variables (Button)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.1. At &lt;span style="font-style:italic;"&gt;"User Variables"&lt;/span&gt; click at &lt;span style="font-style:italic;"&gt;New...&lt;/span&gt; and fill the fields:&lt;br /&gt;&lt;br /&gt;Variable name: &lt;span style="font-style:italic;"&gt;SVN_SSH&lt;/span&gt;&lt;br /&gt;Variable value: &lt;span style="font-style:italic;"&gt;C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe -l &amp;lt;ssh username&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OBS1.: Notice that the path may change according to your installation or windows language.&lt;br /&gt;&lt;br /&gt;OBS2.: Do NOT forget the &lt;span style="font-style:italic;"&gt;"-l &amp;lt;ssh username&amp;gt;"&lt;/span&gt; part or else you will be asked about your login for each and every file you check out in eclipse.&lt;br /&gt;&lt;br /&gt;3. Set-up Eclipse:&lt;br /&gt;&lt;br /&gt;3.1. Add &lt;a href="http://subclipse.tigris.org/"&gt;Subclipse&lt;/a&gt;:&lt;br /&gt;Update site: &lt;a href="http://subclipse.tigris.org/update_1.6.x"&gt;http://subclipse.tigris.org/update_1.6.x&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3.2. Set-up SVN modus to use SVNkit:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Window -&gt; Preferences -&gt; Team -&gt; SVN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SVN Interface:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. To remove Eclipse repository "remembering" data, remove all: &lt;span style="font-style:italic;"&gt;&amp;lt;path to workspace&amp;gt;/.metadata/.plugins/org.tigris.subversion.subclipse.*&lt;/span&gt;&lt;br /&gt;5. Also remove the &lt;span style="font-style:italic;"&gt;$ECLIPSE_HOME/configuration/org.eclipse.core.runtime/.keyring&lt;/span&gt; (reference &lt;a href="http://old.nabble.com/howto-change-the-SVN-Author-Name-td18651187.html"&gt;here&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8898299724179047846?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8898299724179047846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8898299724179047846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8898299724179047846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8898299724179047846'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/07/subversion-and-apache-with-pam.html' title='[updated] Subversion and Apache with PAM'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2326621224729021477</id><published>2009-07-10T11:55:00.001-07:00</published><updated>2009-08-26T14:59:39.543-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jbossas'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><category scheme='http://www.blogger.com/atom/ns#' term='jboss'/><title type='text'>JBoss AS 4.2.3</title><content type='html'>To install JBossAS 4.2.3 is pretty straight forward with one little trick. Visit my fedora road map and add the JPackage repository for version 5.0. After that just execute the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;jbossas&lt;br /&gt;sun-jaxb-1.0-api \&lt;br /&gt;sun-jaxb-1.0-impl \&lt;br /&gt;sun-jaxb-2.1-api \&lt;br /&gt;sun-jaxb-2.1-impl \&lt;br /&gt;jbossweb-repolib&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The trick is not to install but to run it. For development you usually are on a desktop and you probably specified an invalid DNS computer name, I do. To find out which are yours:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;hostname&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To check if your name is right:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ping `hostname`&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My returns: &lt;span style="font-style:italic;"&gt;ping: unknown host note.tarja&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So why am I telling you this. Because when running JBoss locally it will ignore your IP configurations and use the "name" returned by &lt;span style="font-weight:bold;"&gt;hostname&lt;/span&gt;. To avoid getting too much of a headache fix it right now with:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;echo "127.0.0.1 `hostname`" &gt;&gt; /etc/hosts&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And check it once again:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ping `hostname`&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you can run your JBoss with this little bastard out of your way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2326621224729021477?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2326621224729021477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2326621224729021477' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2326621224729021477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2326621224729021477'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/07/jboss-as-423.html' title='JBoss AS 4.2.3'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-1962196569374390988</id><published>2009-07-01T09:55:00.000-07:00</published><updated>2009-07-14T14:21:34.019-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora11'/><title type='text'>My Fedora 11 road map</title><content type='html'>- Basic system setup&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/resolv.conf&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/fstab&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;RPM Fusion (free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;RPM Fusion (non-free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- &lt;a href="http://www.jpackage.org/yum.php"&gt;JPackage&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;wget http://www.jpackage.org/jpackage17.repo -O /etc/yum.repos.d/jpackage.repo&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Edit the &lt;span style="font-style:italic;"&gt;/etc/yum.repos.d/jpackage.repo&lt;/span&gt; file:&lt;br /&gt;&lt;br /&gt;If you want to work with J2EE, JBoss, and such change it to the following:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[jpackage-generic]&lt;br /&gt;name=JPackage (free), generic&lt;br /&gt;mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&amp;type=free&amp;release=5.0&lt;br /&gt;failovermethod=priority&lt;br /&gt;gpgcheck=1&lt;br /&gt;gpgkey=http://www.jpackage.org/jpackage.asc&lt;br /&gt;enabled=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update: remove before installing, thanks to a reader comment]&lt;/span&gt;&lt;br /&gt;-- Remove things I do NOT like (do not remove xine if you prefer KDE):&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;AdobeReader_enu \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Torrent with transmission&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;transmission&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;huspell \&lt;br /&gt;aspell \&lt;br /&gt;gtk-spell \&lt;br /&gt;aspell-en \&lt;br /&gt;huspell-en&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aspell-de \&lt;br /&gt;huspell-de \&lt;br /&gt;aspell-es \&lt;br /&gt;huspell-es \&lt;br /&gt;aspell-br \&lt;br /&gt;huspell-br &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;bogofilter \&lt;br /&gt;enchant \&lt;br /&gt;enchant-aspell \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-wma \&lt;br /&gt;xmms-cdread \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;eog \&lt;br /&gt;gnuplot \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;kile \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Administration related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nmap \&lt;br /&gt;mc \&lt;br /&gt;tsclient \&lt;br /&gt;rdesktop&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Section "Device"&lt;br /&gt; Identifier  "Videocard0"&lt;br /&gt; Driver      "nvidia"&lt;br /&gt; Option     "AddARGBGLXVisuals" "True"&lt;br /&gt; Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- JBoss support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;jbossas&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--- Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html"&gt;SELinux&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/11/my-fedora-10-road-map.html"&gt;Road map for Fedora 10&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://www.kernelhardware.org/fedora-virtualbox-usb-working/"&gt;Making USB to work with VirtualBox (external link)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-1962196569374390988?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/1962196569374390988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=1962196569374390988' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1962196569374390988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/1962196569374390988'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2009/07/my-fedora-11-road-map.html' title='My Fedora 11 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4608859001417312950</id><published>2008-12-03T01:46:00.000-08:00</published><updated>2008-12-03T03:29:06.833-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora10'/><title type='text'>Missing spell checker in claws-mail</title><content type='html'>The &lt;a href="http://www.claws-mail.org/"&gt;claws-mail&lt;/a&gt; delivered to this point (version 3.6.0-1) does not include spell-checking (it hasn't included &lt;a href="http://www.abisource.com/projects/enchant/"&gt;libenchant&lt;/a&gt;, the new spell checker interface, in its compilation). There is nevertheless a working version in &lt;a href="http://fedoraproject.org/wiki/Releases/Rawhide"&gt;rawhide&lt;/a&gt;. To update your claws-mail properly from rawhide:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y \&lt;br /&gt;--enablerepo=rawhide \&lt;br /&gt;upgrade \&lt;br /&gt;claws*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This does the trick without forcing you to enable the entire rawhide.&lt;br /&gt;&lt;br /&gt;P.S.: Bug report &lt;a href="https://bugzilla.redhat.com/show_bug.cgi?id=474129"&gt;474129&lt;/a&gt; in &lt;a href="https://bugzilla.redhat.com/"&gt;fedora's bugzilla&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4608859001417312950?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4608859001417312950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4608859001417312950' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4608859001417312950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4608859001417312950'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/12/missing-spell-checker-in-claws-mail.html' title='Missing spell checker in claws-mail'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7874274287464086360</id><published>2008-11-26T09:39:00.000-08:00</published><updated>2009-03-25T14:45:34.697-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora10'/><title type='text'>[updated2] My Fedora 10 road map</title><content type='html'>- Basic system setup&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/resolv.conf&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/fstab&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"&gt;RPM Fusion (free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"&gt;RPM Fusion (non-free)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: &lt;a href=" http://rpmfusion.org/"&gt;RPM Fusion&lt;/a&gt; is the, guess what, fusion between &lt;a href="http://dribble.org.uk/"&gt;Dribble&lt;/a&gt;, &lt;a href="http://freshrpms.net/"&gt;Freshrpms&lt;/a&gt;, and &lt;a href="http://rpm.livna.org/"&gt;Livna&lt;/a&gt; repositories.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update: remove before installing, thanks to a reader comment]&lt;/span&gt;&lt;br /&gt;-- Remove things I do NOT like:&lt;br /&gt;&lt;br /&gt;Here is an observation about the this step. If you are using KDE you better off not removing xine. I use Gnome, so it was never an issue for me. Please look at the useful comments left on this post. It talks for itself why it is a bad idea for KDE users to remove xine-libs. So, the safe version of the xine removal is bellow. (I still do not like it and that means that I'm still removing the front-ends but leaving the back-ends.)&lt;br /&gt;&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine \&lt;br /&gt;gxine* \&lt;br /&gt;totem*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;live555 \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;flash-plugin \&lt;br /&gt;AdobeReader_enu \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Torrent with transmission&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;transmission&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Spell-checking&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;huspell \&lt;br /&gt;aspell \&lt;br /&gt;gtk-spell \&lt;br /&gt;aspell-en \&lt;br /&gt;huspell-en&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Additional languages: German (de), Spanish (es), and Portuguese from Brazil (br)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;aspell-de \&lt;br /&gt;huspell-de \&lt;br /&gt;aspell-es \&lt;br /&gt;huspell-es \&lt;br /&gt;aspell-br \&lt;br /&gt;huspell-br &lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;bogofilter \&lt;br /&gt;enchant \&lt;br /&gt;enchant-aspell \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-wma \&lt;br /&gt;xmms-cdread \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-PAE-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;eog \&lt;br /&gt;gnuplot \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;kile \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Compression related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- NVIDA&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kmod-nvidia-PAE \&lt;br /&gt;xorg-x11-drv-nvidia&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;-- Note about the driver:&lt;br /&gt;It messes the font resolution up (IMHO). So to keep the same aspect between the normal driver and the NVIDIA driver you need to edit the file: [&lt;span style="font-weight: bold;"&gt;/etc/X11/xorg.conf&lt;/span&gt;] and add the following line in the section Device:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Option     "DPI" "90 x 90"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My section device looks like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Section "Device"&lt;br /&gt; Identifier  "Videocard0"&lt;br /&gt; Driver      "nvidia"&lt;br /&gt; Option     "AddARGBGLXVisuals" "True"&lt;br /&gt; Option     "DPI" "90 x 90"&lt;br /&gt;EndSection&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Development&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For SVN support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;rapidsvn \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/linux/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/01/c-cedilla-with-gnome.html"&gt;C Cedilla with Gnome&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7874274287464086360?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7874274287464086360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7874274287464086360' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7874274287464086360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7874274287464086360'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/11/my-fedora-10-road-map.html' title='[updated2] My Fedora 10 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8348221853267757214</id><published>2008-09-16T04:11:00.000-07:00</published><updated>2008-09-16T04:18:23.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>Some PDF gadgets</title><content type='html'>Here some PDF gadgets that I came about (a friend of mine told me about them):&lt;br /&gt;&lt;br /&gt;Scribus: an editor for PDFs, it also permits to insert new elements&lt;br /&gt;Xournal: to assemble several PDFs in order to make a PDF collection (a conference proceedings for instance).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install scribus xournal&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8348221853267757214?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8348221853267757214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8348221853267757214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8348221853267757214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8348221853267757214'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/09/some-pdf-gadgets.html' title='Some PDF gadgets'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5952120191576255080</id><published>2008-09-16T03:59:00.000-07:00</published><updated>2008-09-16T04:18:41.517-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>Webcam security programs</title><content type='html'>Recently I was looking for webcam security tools, or CCTV if you will, and bumped into &lt;a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"&gt;Motion&lt;/a&gt; and &lt;a href="http://www.zoneminder.com/"&gt;ZoneMinder&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;The first is more simple and works like a "home-made"/"semi-pro" tool but you need an extra effort to get it compiled in Fedora 9 (you can get an RPM version &lt;a href="http://www.llaumgui.com/post/RPMs-de-motion-pour-Fedora-8-9"&gt;here&lt;/a&gt;, which did the trick for me).&lt;br /&gt;&lt;br /&gt;The ZoneMinder is a lot complexer and has a lot of features. But the documentation (for the new version, which is already on standard Fedora distribution) is poor and did not instruct you so well. I didn't like it very much because you need Apache and MySQL, which I usually do not need. So I preferred the Motion. Just to the sake of it, to install ZoneMinder:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install zoneminder httpd mysql-server&lt;br /&gt;chkconfig --level 345 httpd on&lt;br /&gt;chkconfig --level 345 mysqld on&lt;br /&gt;chkconfig --level 345 zoneminder on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You need to add, per hand, the MySQL users, passwords, and database (refer to the &lt;a href="http://www.lavrsen.dk/twiki/bin/view/Motion/MotionGuide"&gt;documentation&lt;/a&gt;, I got fed up with it).&lt;br /&gt;&lt;br /&gt;As soon as I get experienced with it I will report on that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5952120191576255080?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5952120191576255080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5952120191576255080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5952120191576255080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5952120191576255080'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/09/webcam-security-programs.html' title='Webcam security programs'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8815261063844370560</id><published>2008-09-15T02:52:00.000-07:00</published><updated>2008-09-15T02:58:07.441-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><title type='text'>VirtualBox do not start: KVM</title><content type='html'>Maybe it also happens to you: you try to start a virtual machine from VirtualBox and you hit an error message: "Disable KVM/VMX extensions" or something similar. The problem is: for some reason the new kernels (after 2.6.25) load some extensions. You just need to remove them. Execute the following as root:&lt;br /&gt;&lt;br /&gt;Search for the modules:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;lsmod | grep kvm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If there is any loaded module, unload them, in my case (respect the dependency order):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rmmod kvm_intel&lt;br /&gt;rmmod kvm&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now try to start your machine. For me it did the trick.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8815261063844370560?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8815261063844370560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8815261063844370560' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8815261063844370560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8815261063844370560'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/09/virtualbox-do-not-start-kvm.html' title='VirtualBox do not start: KVM'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8702014791652936424</id><published>2008-08-13T07:23:00.000-07:00</published><updated>2008-09-15T02:57:55.597-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='selinux'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><category scheme='http://www.blogger.com/atom/ns#' term='i18n'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>SELinux too strong for me</title><content type='html'>About a couple of months I bought a new computer (a laptop) and until now couldn't setup like my desktop and haven't figured out why (until today).&lt;br /&gt;&lt;br /&gt;There were 2 annoying aspects that kept me on my nerves: I couldn't set my Gnome to a different language from the system language (I like to have the system in English a for me in German). The second point that kept me pissed off was a strange SSH error "&lt;span style="font-style:italic;"&gt;could not chdir /home/...&lt;/span&gt;".&lt;br /&gt;&lt;br /&gt;For the language it is pretty straight forward:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat &amp;gt $HOME/.dmrc &amp;lt&amp;lt __END__&lt;br /&gt;[Desktop]&lt;br /&gt;Language=de_DE.utf8&lt;br /&gt;__END__&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But somehow didn't work.&lt;br /&gt;&lt;br /&gt;My other problem, SSH login was somehow cryptic for me (how could it be?!?). But today it strikes me: SELinux (I tried a local login, in the terminal, and the same error came). Somehow SELinux prevents "&lt;span style="font-style:italic;"&gt;login&lt;/span&gt;" from accessing the home directory.&lt;br /&gt;&lt;br /&gt;Anyway, the solution, which some security freaks would recommend, was to change SELinux from "ENFORCING" to "PERMISSIVE" and reboot. To do the same:&lt;br /&gt;&lt;br /&gt;1. Edit as root: &lt;span style="font-weight:bold;"&gt;/etc/sysconfig/selinux&lt;/span&gt;&lt;br /&gt;2. Change the &lt;span style="font-weight:bold;"&gt;SELINUX&lt;/span&gt; variable to:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SELINUX=permissive&lt;/span&gt;&lt;br /&gt;3. Reboot&lt;br /&gt;&lt;br /&gt;That's it. Now everything works just fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8702014791652936424?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8702014791652936424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8702014791652936424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8702014791652936424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8702014791652936424'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/08/selinux-too-strong-for-me.html' title='SELinux too strong for me'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7579583463034277456</id><published>2008-07-24T00:53:00.000-07:00</published><updated>2008-09-15T02:59:19.183-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='faq'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>Reader Question: Network Adapter</title><content type='html'>The question:&lt;br /&gt;&lt;br /&gt;Anonymous has left a new comment on my post "&lt;a href="http://gka-linux.blogspot.com/2008/05/my-fedora-9-road-map.html"&gt;My Fedora 9 road map&lt;/a&gt;":&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;great!&lt;br /&gt;&lt;br /&gt;what have been changed in your /etc/sysconfig/network-scripts/ifcfg-eth0? My fedora 9 sometimes can't detect my eth0 network card, I would like to know what config have to be changed about device eth0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ok Anonymous, here is the deal. You have basically two main approaches for networking: by hand our by NetworkManager. I will explain both but in case you do not have any reason not use NetworkManager I recommend it (it has some drawbacks nevertheless).&lt;br /&gt;&lt;br /&gt;For the following instructions I assume that you are logged as root.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Per hand:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I assume that you do not like the GUI configuration program (which is fairly decent, as root: &lt;span style="font-style:italic;"&gt;system-config-network&lt;/span&gt;) so the first step is to discover what NIC (Network Interface Controller) do you have:&lt;br /&gt;&lt;br /&gt;1.1. Which NIC I do have:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;lspci # looking for Ethernet&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;lspci | grep -y ethernet&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I assume that you have the driver for it (as you said it does not work sometimes). But I does not hurt searching for any "tricks" regarding your specific NIC (googling it gives you the answer).&lt;br /&gt;&lt;br /&gt;1.2. Looking if my NIC is "online":&lt;br /&gt;&lt;br /&gt;Sometimes the problem is not on the NIC but on "loosing" the IP. So check it out:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ifconfig -a&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pay attention to the output, it must list as may "real" adapters as NICs you have (loopbacks, alias, and vmware/vbox adapters are virtual).&lt;br /&gt;&lt;br /&gt;At this point I may answer your question: do you have more than 1 NIC? If yes then your problem is probably on knowing how to name &lt;span style="font-style:italic;"&gt;eth0&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;eth1&lt;/span&gt; and so on. That is a very simple problem. Take note of the MAC address of each of your NICs, choosing the number of each one and add to &lt;span style="font-style:italic;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt; the following line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:&lt;br /&gt;&lt;br /&gt;HWADDR=&amp;lt;the same string from ifconfig&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Repeat it for the other NICs that you may have.&lt;br /&gt;&lt;br /&gt;1.3. Configure the rest of the parameters:&lt;br /&gt;&lt;br /&gt;The rest is like to be configured (you said that it eventually works) but add one more line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:&lt;br /&gt;&lt;br /&gt;NM_CONTROLLED=no&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That prevents the NetworkManager from trying to override your configurations.&lt;br /&gt;&lt;br /&gt;1.4. Deactivating the NetworkManager:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 2345 NetworkManager off&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.4.1. There is another nice TUI program that I like for such configurations:&lt;br /&gt;&lt;br /&gt;#---&lt;br /&gt;ntsysv --level 2345&lt;br /&gt;#---&lt;br /&gt;&lt;br /&gt;1.5. Restart and check-out if it boots ok.&lt;br /&gt;&lt;br /&gt;That is what I have to say to you based on your comment. If it does not work I could try to help you (but leave a comment with your email, I will not publish it so no spam :-)).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. With NetworkManager:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The NetworkManager is a great tool if you have a standard machine or a notebook, because it really makes everything easy, specially with wireless and so on. In my notebook I use it but in my desktop at home no (it has more than 1 NIC and the NetworkManager is not that great with that, at least that is what my experience tells).&lt;br /&gt;&lt;br /&gt;2.1. Enabling NetworkManager:&lt;br /&gt;&lt;br /&gt;The very first step is to add the following line to your &lt;span style="font-style:italic;"&gt;ifcfg-eth0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:&lt;br /&gt;&lt;br /&gt;NM_CONTROLLED=yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then you need to enable the service at boot time:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;chkconfig --level 2345 NetworkManager on&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That is pretty much it. Just boot up and check it out.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Pros and Cons from NetworkManager:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The most annoying aspect of it is that it is an on demand "almost-pre-login" service and it prevents other network dependant services to work properly at boot (ntp can not adjust the clock at boot if you use NetworkManager). That for me is not ok. But again it is not its fault. The service is designed for that and to be frankly it is better so (it will be very annoying to asked at boot time to figure it out how to connect to the hotspot of your hotel, specially if it requires to logon in a home-page and put your login data). That said it relieves the pain of configuring your network every time you are relocated (if have to travel regularly you know what I mean).&lt;br /&gt;&lt;br /&gt;That is why I prefer to suffer some lack of service in my notebook but keep things tight under my control in my desktop (I do not carry it with me, never). But it is always up to you.&lt;br /&gt;&lt;br /&gt;Again, if you have any question you can send me a comment with your email (I will not publish your comment with your email) and I will try to help you.&lt;br /&gt;&lt;br /&gt;Have fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7579583463034277456?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7579583463034277456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7579583463034277456' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7579583463034277456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7579583463034277456'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/07/reader-question-network-adapter.html' title='Reader Question: Network Adapter'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5385166392488244456</id><published>2008-07-18T04:21:00.000-07:00</published><updated>2008-07-18T04:31:17.684-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>A note on Java and OpenJDK</title><content type='html'>This is curious, I have both Javas, Sun and OpenJDK, installed and for both I have the Firefox plugin (I forgot to remove Sun's after installing OpenJDK). The side-effect was a seemingly high CPU use some times in Firefox. I suspect that it was due to the fact that I have too many extensions that could be fighting over conflicting resources (like 2 extensions that control the behaviour of tabs, I don't know, just bad guess work). Anyway, the point is: it wasn't. Since I removed one of the plugins (Sun's) it all got normal.&lt;br /&gt;&lt;br /&gt;So, if you have both plugins (or you forgot that you have both installed, like me) and are  experiencing some high CPU use with Firefox, try removing one of them :-)&lt;br /&gt;&lt;br /&gt;Have a nice day!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5385166392488244456?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5385166392488244456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5385166392488244456' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5385166392488244456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5385166392488244456'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/07/note-on-java-and-openjdk.html' title='A note on Java and OpenJDK'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3594947082676263964</id><published>2008-05-31T10:56:00.000-07:00</published><updated>2008-05-31T11:13:25.999-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='gmail'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>Migrating from Firefox 2.0 to 3.0</title><content type='html'>There are some problems when migrating from &lt;a href="http://www.mozilla.com/en-US/firefox/"&gt;Firefox 2.0&lt;/a&gt; to &lt;a href="http://www.mozilla.com/en-US/firefox/all-rc.html"&gt;Firefox 3.0&lt;/a&gt; (in this case Firefox 3.0b5), which is the case when migrating from Fedora 8 to Fedora 9. For me it was not clear what was happening so maybe if you are experience some "weird" Firefox behaviour it might be also the case.&lt;br /&gt;&lt;br /&gt;To keep things short:&lt;br /&gt;&lt;br /&gt;1. Backup your bookmarks.&lt;br /&gt;&lt;br /&gt;2. Close Firefox or kill it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;killall firefox &amp;&amp; echo done&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Remove your &lt;span style="font-style:italic;"&gt;$HOME/.mozilla&lt;/span&gt; directory (or a safer measure, move it):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cd $HOME&lt;br /&gt;mv .mozilla .mozilla-firefox2&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Restart Firefox and start the painfully work of customising it.&lt;br /&gt;&lt;br /&gt;Just a little history. I had had a Firefox 2.0 for a long time and when I migrated to Fedora 9 (see my &lt;a href="http://gka-linux.blogspot.com/2008/05/my-fedora-9-road-map.html"&gt;road map&lt;/a&gt;) it also implies a migration from Firefox 2.0 to 3.0b5. The first thing, which was expected, was that my add-ons did not worked any more (compatibility issues). This was ok, I removed the deprecated add-ons and kept using the ones the worked.&lt;br /&gt;&lt;br /&gt;The problem that first caught my attention was &lt;a href="http://mail.google.com/"&gt;GMail&lt;/a&gt;, which was working just in the basic html mode (which sucks if you are used to the normal version). I thought that it was a problem with add-ons (so I remove every single one of them), it did not work. Then I start suspecting of Java (tried 2 Sun versions and open-java version), but it wasn't it. At the end I was suspecting some incompatibilities between Firefox and &lt;a href="http://en.wikipedia.org/wiki/AJAX"&gt;AJAX&lt;/a&gt; (which is what &lt;a href="http://www.google.com"&gt;Google&lt;/a&gt; uses).&lt;br /&gt;&lt;br /&gt;The very last thing, after a week or so seeking for an answer, was clearing my configuration directory. Which solved the problem. Don't ask me why, I do not know (and didn't bother to look for the answer).&lt;br /&gt;&lt;br /&gt;The bottom line is: if you are experience some weird behaviour with Firefox, try to start fresh.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3594947082676263964?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3594947082676263964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3594947082676263964' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3594947082676263964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3594947082676263964'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/migrating-from-firefox-20-to-30.html' title='Migrating from Firefox 2.0 to 3.0'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-3672187216143521397</id><published>2008-05-21T00:10:00.000-07:00</published><updated>2008-05-31T10:52:36.971-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='luks'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><title type='text'>[updated] Encrypting partition with LUKS</title><content type='html'>This topic is far away from new and you will find a lot of tutorials on the net. But as I already said before I lack a sort of baked recipes and central point for things. So if want the originals from this baked recipes go &lt;a href="http://fedoraproject.org/wiki/Security_Guide/9/LUKSDiskEncryption"&gt;here&lt;/a&gt; and &lt;a href="http://ubuntuforums.org/archive/index.php/t-302167.html"&gt;here&lt;/a&gt; and for the official LUKS page &lt;a href="http://luks.endorphin.org/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So first of all what I really need to encrypt are the following partitions:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/home&lt;br /&gt;/var&lt;br /&gt;/etc&lt;br /&gt;swap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can simplify by encrypting everything except &lt;span style="font-style:italic;"&gt;/boot&lt;/span&gt; (ok, you may also encrypt that but I do not see the point and did not try it).&lt;br /&gt;&lt;br /&gt;The main issue about disk encryption resides in disk performance specially by removing things (which includes moving from and to file systems). So if you really need some juicy speed upped partition I recommend to have a plain ext2/ext3 partition by the end of the disk (as closer to the out border of the disk as quick things get done, it does not apply for SCSI disks).&lt;br /&gt;&lt;br /&gt;That said, the reasons you want to encrypt swap is to ensure that no one will eventually forces an swap attack on you (forcing the system to drop some sensitive data on the swap partition and then read them out). The &lt;span style="font-style:italic;"&gt;/var&lt;/span&gt; is also important because there are the system logs and if you are a not that security freak you will eventually mix things up and type your password instead of username (which will be registered in the security log). The &lt;span style="font-style:italic;"&gt;/etc&lt;/span&gt; is for the sake of it (you do not need it if you keep a safe check sum of all files there and check it before turning your network connection on, hehe). The last, but not the least, your precious &lt;span style="font-style:italic;"&gt;/home&lt;/span&gt; and you know why you need it (as also RIAA).&lt;br /&gt;&lt;br /&gt;The problem with Fedora 9 out-of-the-box procedure is that it does not randomizes the disk before encrypting it (which is important but takes a lot, but a LOT of time) and it is understandable for a installation procedure. But you want security so you want to do things right. Before you start doing things keep that in mind: you need time, a lot of time. For my SATA disk in a Pentium 4 3.2GHz the speed was about 3M/s, doing the math:&lt;br /&gt;&lt;br /&gt;1GB ~ 6min.&lt;br /&gt;10GB ~ 1h&lt;br /&gt;50GB ~ 4h 45min.&lt;br /&gt;100GB ~ 9h 30min. &lt;br /&gt;150GB ~ 14h&lt;br /&gt;200GB ~ 19h&lt;br /&gt;250GB ~ 24h&lt;br /&gt;300GB ~ 29h&lt;br /&gt;512GB ~ 2days&lt;br /&gt;1TB ~ 4days&lt;br /&gt;&lt;br /&gt;If you know a speed upped procedure, please tell me. The speed problem is not on the disk but on the random generation, so it is unlikely to change for a notebook (if you getting nervous about that).&lt;br /&gt;&lt;br /&gt;So the procedure is the following for a data partition and swap. But first of all (and that is VERY important) copy this text in text file and save it in your root partition (I really meant &lt;span style="font-weight:bold;"&gt;/&lt;/span&gt;) because you will need to shutdown your X11 AND network connections.&lt;br /&gt;&lt;br /&gt;1. Do backup of your partition, you will lost everything.&lt;br /&gt;&lt;br /&gt;2. Really, DO a backup, you will regret it later if you don't (you can use the &lt;a href="http://gka-linux.blogspot.com/2008/05/time-machine-on-linux.html"&gt;FlyBack&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;3. Save this text on text file in &lt;span style="font-style:italic;"&gt;"/"&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;4. Logout and switch to a terminal (&lt;span style="font-style:italic;"&gt;&amp;lt;CONTROL&amp;gt;+&amp;lt;ALT&amp;gt;+&amp;lt;F1&amp;gt;&lt;/span&gt; should do it) and log on as &lt;span style="font-style:italic;"&gt;root&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;5. Execute the following commandos:&lt;br /&gt;&lt;br /&gt;5.1. Runlevel 1:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;telinit 1&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.2. Note somewhere which is the real partition that you want to encrypt:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mount | grep home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It should return something like: &lt;span style="font-style:italic;"&gt;/dev/sdaXX&lt;/span&gt; or &lt;span style="font-style:italic;"&gt;/dev/hdaXX&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If it returns something &lt;span style="font-style:italic;"&gt;/dev/mapper/SEC_DEV&lt;/span&gt; it means that your partition was previously encrypted and you will need the real device.&lt;br /&gt;&lt;br /&gt;5.2.1. Dealing with encrypted devices:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cat /etc/crypttab | grep SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here you should get the real partition name.&lt;br /&gt;&lt;br /&gt;5.3. &lt;span style="font-style:italic;"&gt;/home&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;fuser -mvk /home&lt;br /&gt;umount /home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.4. Verify if it was really unmounted:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#--- &lt;br /&gt;cat /proc/mounts | grep home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.4.1. If you have a previously encrypted partition you need this step (I'm confident that you do have a safe backup):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cryptsetup remove SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that I do NOT included the whole path (&lt;span style="font-style:italic;"&gt;/dev/mapper/SEC_DEV&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;5.5. Fill the partition with random data (this is the point where you must be sure you have a backup):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;dd if=/dev/urandom of=/dev/REAL_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style="font-style:italic;"&gt;REAL_DEV&lt;/span&gt; is the same from step 5.2.&lt;br /&gt;Note that the above command will end with and "&lt;span style="font-style:italic;"&gt;out of space&lt;/span&gt;" error, do not worry about it.&lt;br /&gt;&lt;br /&gt;5.6. Let LUKS know about your new partition.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cryptsetup --verbose --verify-passphrase luksFormat /dev/REAL_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.6.1. Open it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cryptsetup luksOpen /dev/REAL_DEV SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SEC_DEV&lt;/span&gt; is a string you like. Fedora standard is &lt;span style="font-style:italic;"&gt;luks-REAL_DEV&lt;/span&gt; (like &lt;span style="font-style:italic;"&gt;luks-sda6&lt;/span&gt; for &lt;span style="font-style:italic;"&gt;/dev/sda6&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;5.6.2. Verify it is everything there:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;ls -l /dev/mapper | grep SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.7. Create the file system:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkfs.ext3 /dev/mapper/SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.8. Mount it, to check it out:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mount /dev/mapper/SEC_DEV /home&lt;br /&gt;df -h | grep home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.9. Edit your &lt;span style="font-style:italic;"&gt;/etc/crypttab&lt;/span&gt; and include the following line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SEC_DEV /dev/REAL_DEV none&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;5.10. Collect your UUID for the &lt;span style="font-style:italic;"&gt;/etc/fstab&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;NOTE: The method with &lt;span style="font-weight:bold;"&gt;cryptsetup&lt;/span&gt; does NOT work in reencrypted partitions, so prefer the &lt;span style="font-weight:bold;"&gt;tune2fs&lt;/span&gt; method.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cryptsetup luksUUID /dev/REAL_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tune2fs -l /dev/mapper/SEC_DEV | grep UUID&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It must throw something like: &lt;span style="font-style:italic;"&gt;c3119452-5a93-49bb-9c91-28d75a830a18&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.10.1. Alternatively you can already throw it in your &lt;span style="font-style:italic;"&gt;/etc/fstab&lt;/span&gt; (but be careful to include the two "&lt;span style="font-style:italic;"&gt;&amp;gt;&lt;/span&gt;":&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tune2fs -l /dev/mapper/SEC_DEV | grep UUID &amp;gt&amp;gt /etc/fstab&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.11. Edit your &lt;span style="font-style:italic;"&gt;/etc/fstab&lt;/span&gt; to include the following line (removing any other existing line that refers to &lt;span style="font-style:italic;"&gt;/home&lt;/span&gt;):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;UUID=&amp;lt;YOUR UUID&amp;gt; /home ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/dev/mapper/SEC_DEV /home ext3 defaults 1 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.12. Verify again:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;umount /home&lt;br /&gt;mount /home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5.13. Restore SELinux contexts:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;/sbin/restorecon -v -R /home&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Now the swap partition, which is a little bit different:&lt;br /&gt;&lt;br /&gt;6.1. Identifying the partition:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;swapon -s&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.1.1. If it turns out to be an encrypted partition, follow the step 5.2.1. &lt;br /&gt;&lt;br /&gt;6.2. Turn off the swap (unmount the partition):&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;swapoff -a&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.3. Repeat the steps 5.4.1. (if you need) and 5.5.&lt;br /&gt;&lt;br /&gt;6.4. Let LUKS knows about the new partition:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;cryptsetup create SEC_DEV /dev/REAL_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here you will get the UUID for this device, note it somewhere. Or use the &lt;span style="font-weight:bold;"&gt;cryptsetup&lt;/span&gt; method from step 5.10 (because it is NOT a data file system it is the only way and it works, but just for swap partitions).&lt;br /&gt;&lt;br /&gt;6.5.1. Open it: (step 5.6.1)&lt;br /&gt;&lt;br /&gt;6.5. Make it swap:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;mkswap /dev/mapper/SEC_DEV&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6.7. Edit your &lt;span style="font-style:italic;"&gt;/etc/crypttab&lt;/span&gt; (step 5.9.).&lt;br /&gt;&lt;br /&gt;6.6. Edit your &lt;span style="font-style:italic;"&gt;/etc/fstab&lt;/span&gt; to include the following line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;UUID=&amp;lt;YOUR UUID&amp;gt; swap swap defaults 0 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/dev/mapper/SEC_DEV swap swap defaults 0 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.7. Check it:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;swapon -a&lt;br /&gt;swapon -s&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Reboot your system:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;shutdown -r now&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Your passphrase will be asked at boot time and after everything is running restore your backup.&lt;br /&gt;&lt;br /&gt;Have fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-3672187216143521397?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/3672187216143521397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=3672187216143521397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3672187216143521397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/3672187216143521397'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/encrypting-partition-with-luks.html' title='[updated] Encrypting partition with LUKS'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-4704231273365861851</id><published>2008-05-20T02:45:00.000-07:00</published><updated>2008-05-21T00:41:58.241-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='backup'/><title type='text'>[updated] Time Machine on Linux</title><content type='html'>If wonder about the Time Machine from MacOS X and wanted it, you can make your own using &lt;a href="http://blog.interlinked.org/tutorials/rsync_time_machine.html"&gt;rsync&lt;/a&gt; but if you want something more fancier (like I do) with a GUI you should try &lt;a href="http://flyback-project.org/"&gt;FlyBack&lt;/a&gt; (if it does not work try &lt;a href="http://code.google.com/p/flyback/"&gt;this&lt;/a&gt;) which is a nicely made Python program (or should I say script) that includes all your needs for a decent backup (using, of course, rsync). Try it, it worth.&lt;br /&gt;&lt;br /&gt;By the way I already tried other solutions like:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cis.upenn.edu/~bcpierce/unison/"&gt;Unison&lt;/a&gt; (painfully slow)&lt;br /&gt;&lt;a href="http://www.opbyte.it/grsync/"&gt;Grsync&lt;/a&gt; (hard to configure, exclude list is not possible)&lt;br /&gt;&lt;a href="http://pypi.python.org/pypi/fwbackups/1.42.2"&gt;fwbackups&lt;/a&gt; (very slow)&lt;br /&gt;&lt;a href="http://pypi.python.org/pypi/fwbackups/1.42.2"&gt;KBackup&lt;/a&gt; (very slow)&lt;br /&gt;&lt;br /&gt;And my own TAR based backup script, which I was using until I tried flyback. It is really a great backup solution for the average desktop backup needs.&lt;br /&gt;&lt;br /&gt;By the way, the first backup is a little time consuming (for my 16GB it took about an hour or so), but the following backups are very efficient (it takes no longer then 5 minutes).&lt;br /&gt;&lt;br /&gt;P.S.: I'm using &lt;a href="http://luks.endorphin.org/"&gt;LUKS&lt;/a&gt; in my partitions.&lt;br /&gt;&lt;br /&gt;[update]&lt;br /&gt;I just used a full recovery from my system (I migrated my &lt;span style="font-style:italic;"&gt;/home&lt;/span&gt; to LUKS and it worked just perfect, like nothing happened).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-4704231273365861851?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/4704231273365861851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=4704231273365861851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4704231273365861851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/4704231273365861851'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/time-machine-on-linux.html' title='[updated] Time Machine on Linux'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5926859797659396966</id><published>2008-05-19T03:00:00.000-07:00</published><updated>2008-05-26T02:44:27.724-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>[updated] Aplause for Fedora 9</title><content type='html'>I'm really impressed by Fedora 9 and here come one of my source of frustration on the previous versions: Java Support and Eclipse.&lt;br /&gt;&lt;br /&gt;Until Fedora 8 I needed to install a "thrid party" (the original) Eclipse and Sun's Java to have a decent Java support. I needed to use the original Eclipse because somehow it doesn't wanted to use the Sun's Java, just Gnu Java (which wasn't compatible with Java 1.6). Now Fedora have really flexible Eclipse (3.3.2) with some useful plugins and I can use the Java version that I want. Here comes the hack: I do not need it any more because Gnu Java (ok, openjdk actually) is already Java 1.6 compatible. An amazing step forward to interoperability (at least for me). I still keep the Eclipse "third party" step in &lt;a href="http://gka-linux.blogspot.com/2008/05/my-fedora-9-road-map.html"&gt;my road map&lt;/a&gt;, as also Sun's Java, but just because I haven't tried it long enough to discard it (but I'm using the Fedora packages now).&lt;br /&gt;&lt;br /&gt;For those of you that want to give a shot:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[update] &lt;br /&gt;Java source included: &lt;br /&gt;java-1.6.0-openjdk-src &lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;[update]&lt;/span&gt;&lt;br /&gt;Java support:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gcc-java \&lt;br /&gt;java-1.6.0-openjdk \&lt;br /&gt;java-1.6.0-openjdk-plugin \&lt;br /&gt;java-1.6.0-openjdk-javadoc \&lt;br /&gt;java-1.6.0-openjdk-src \&lt;br /&gt;java-1.5.0-gcj \&lt;br /&gt;java-1.5.0-gcj-devel \&lt;br /&gt;java-1.5.0-gcj-javadoc \&lt;br /&gt;java-1.5.0-gcj-src&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Eclipse for Java:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-platform \&lt;br /&gt;eclipse-ecj \&lt;br /&gt;eclipse-jdt \&lt;br /&gt;eclipse-cvs-client \&lt;br /&gt;eclipse-subclipse \&lt;br /&gt;eclipse-subclipse-book&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For C++ development:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-cdt&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mylyn plugin:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;eclipse-mylyn \&lt;br /&gt;eclipse-mylyn-ide \&lt;br /&gt;eclipse-mylyn-java \&lt;br /&gt;eclipse-mylyn-bugzilla \&lt;br /&gt;eclipse-mylyn-trac&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A note on the docs, you will find them in:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;/usr/share/javadoc/java-1.5.0-gcj/&lt;br /&gt;/usr/share/javadoc/java-1.6.0-openjdk/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5926859797659396966?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5926859797659396966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5926859797659396966' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5926859797659396966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5926859797659396966'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/aplause-for-fedora-9.html' title='[updated] Aplause for Fedora 9'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6303028056944153233</id><published>2008-05-16T03:42:00.000-07:00</published><updated>2008-05-16T03:49:14.064-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><category scheme='http://www.blogger.com/atom/ns#' term='flash'/><title type='text'>A word about flash and Firefox 3.0</title><content type='html'>If you are using Firefox 3.0 and want to have flash support there is a broken dependency problem in the flash RPM, it does not include the &lt;span style="font-style:italic;"&gt;libflashsupport&lt;/span&gt;, which is mandatory to have sound in flash.&lt;br /&gt;&lt;br /&gt;So to install flash and have it working properly you need to:&lt;br /&gt;&lt;br /&gt;1. Add flash repository: &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Install it, with libflashsupport:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;flash-plugin \&lt;br /&gt;libflashsupport&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The problem was reported &lt;a href="http://clunixchit.blogspot.com/2007/11/firefox-no-sound-on-flash-videos.html"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6303028056944153233?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6303028056944153233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6303028056944153233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6303028056944153233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6303028056944153233'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/word-about-flash-and-firefox-30.html' title='A word about flash and Firefox 3.0'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8055313305606413118</id><published>2008-05-14T09:41:00.000-07:00</published><updated>2008-07-14T02:16:03.514-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='fedora9'/><title type='text'>My Fedora 9 road map</title><content type='html'>- Basic system setup&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/resolv.conf&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/fstab&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight: bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/9/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm"&gt;Freshrpms&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://rpm.livna.org/livna-release-8.rpm"&gt;Livna&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- Correct conflict between livna and freshrpms (in favor of freshrpms):&lt;br /&gt;Edit your [&lt;span style="font-weight: bold;"&gt;/etc/yum.repos.d/livna.repo&lt;/span&gt;] file to look like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;...&lt;br /&gt;#mirrorlist=http://rpm.livna.org/mirrorlist-7&lt;br /&gt;exclude=vlc*,mplayer,libdvbpsi*,ffmpeg*,mencoder*,x264*,lame*&lt;br /&gt;enabled=1&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;gecko-mediaplayer \&lt;br /&gt;gnome-mplayer \&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;ogle \&lt;br /&gt;flash-plugin \&lt;br /&gt;libflashsupport \&lt;br /&gt;AdobeReader_enu \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Torrent with transmission&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;transmission&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;bogofilter \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-wma \&lt;br /&gt;xmms-cdread \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-encryption \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-libnotify \&lt;br /&gt;pidgin-otr \&lt;br /&gt;purple-plugin_pack-pidgin \&lt;br /&gt;purple-plugin_pack-pidgin-xmms&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;eog \&lt;br /&gt;gnuplot \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;kile \&lt;br /&gt;dictd \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Unrar and related programs&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Remove things I do NOT like:&lt;br /&gt;--- Multimedia players that do not play divx/mp3 and stays as default for video and audio files:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;xine* \&lt;br /&gt;totem*&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- This is REALLY annoying, it prevents mplayerplug-in from working properly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y erase \&lt;br /&gt;mozplugger&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.real.com/unix/download/"&gt;Real Player&lt;/a&gt; (check for the RPM version)&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;P.S.: For Real Player you will need to install the following package (broken dependency on Real Player RPM):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;compat-libstdc++-33&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight: bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight: bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Related posts:&lt;br /&gt;&lt;br /&gt;- &lt;a style="color: rgb(255, 0, 0);" href="http://gka-linux.blogspot.com/2007/11/how-to-get-language-switch-in-pidgin.html"&gt;Pidgin with multiple languages&lt;/a&gt; (obsolete by package purple-plugin_pack-pidgin, but not working properly)&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/01/c-cedilla-with-gnome.html"&gt;C Cedilla with Gnome&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://gka-linux.blogspot.com/2008/05/aplause-for-fedora-9.html"&gt;Eclipse and Java from RPMs&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8055313305606413118?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8055313305606413118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8055313305606413118' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8055313305606413118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8055313305606413118'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/05/my-fedora-9-road-map.html' title='My Fedora 9 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-9181387463147731368</id><published>2008-04-22T03:29:00.000-07:00</published><updated>2008-04-22T04:17:24.229-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdf'/><title type='text'>There is no such thing as GPL tools or why I love GS</title><content type='html'>I had had a problem, actually my advisor, to convert a bunch of PDFs to PDFs with embedded fonts. The usual windows approach is to open every single file with Acrobat Professional and embed the fonts. But I found a solution (&lt;a href="http://colinm.org/tips/latex"&gt;here&lt;/a&gt;). To understand why non-embedded PDFs are a problem is to figure out that for some professional printers (the ones that you find by big publishers) assumes that the PDF has the fonts embedded (so that it does not have to have them installed on the printer). But back to the solution:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;INPUT=&amp;lt;file to convert&amp;gt;&lt;br /&gt;OUTPUT= &amp;lt;font embedded file&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;gs \&lt;br /&gt;-dSAFER \&lt;br /&gt;-dNOPLATFONTS \&lt;br /&gt;-dNOPAUSE \&lt;br /&gt;-dBATCH \&lt;br /&gt;-sDEVICE=pdfwrite \ &lt;br /&gt;-dPDFSETTINGS=/printer \ &lt;br /&gt;-dCompatibilityLevel=1.4 \ &lt;br /&gt;-dSubsetFonts=true \&lt;br /&gt;-dEmbedAllFonts=true \&lt;br /&gt;-sOutputFile=${OUTPUT} \&lt;br /&gt;-f ${INPUT}&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I left the following options out:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;-sPAPERSIZE=letter&lt;br /&gt;-dMaxSubsetPct=100&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may also want to change the compatibility parameter to:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;-dCompatibilityLevel=1.6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To check if the fonts are OK:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;pdffonts ${INPUT}&lt;br /&gt;pdffonts ${OUTPUT}&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To check if format and such are also OK:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;pdfinfo ${INPUT}&lt;br /&gt;pdfinfo ${OUTPUT}&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-9181387463147731368?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/9181387463147731368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=9181387463147731368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/9181387463147731368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/9181387463147731368'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/04/there-is-no-such-thing-as-gpl-tools-or.html' title='There is no such thing as GPL tools or why I love GS'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2018926476813078430</id><published>2008-03-26T09:17:00.000-07:00</published><updated>2008-03-26T09:32:50.801-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java... what a hell?!?[2]</title><content type='html'>Following the last post about Java (&lt;a href="http://gka-linux.blogspot.com/2007/11/java-what-hell.html"&gt;here&lt;/a&gt;) I tell another weird Java behaviour that costed my a work day to figure it out.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;//--- snippet ---//&lt;br /&gt;double tst1[] = new double[]{1.0, 2.0};&lt;br /&gt;double tst2[] = new double[]{1.0, 2.0};&lt;br /&gt;Collection&lt;Double&gt; lst1 = new ArrayList&lt;Double&gt;();&lt;br /&gt;Collection&lt;Double&gt; lst2 = new ArrayList&lt;Double&gt;();&lt;br /&gt;  &lt;br /&gt;for (double val : tst1) {&lt;br /&gt;lst1.add(val);&lt;br /&gt;}&lt;br /&gt;for (double val : tst2) {&lt;br /&gt;lst2.add(val);&lt;br /&gt;}&lt;br /&gt;// array version&lt;br /&gt;System.out.println(tst1.hashCode());&lt;br /&gt;System.out.println(tst2.hashCode());&lt;br /&gt;System.out.println(tst1.hashCode() == tst2.hashCode());&lt;br /&gt;System.out.println(tst1 == tst2);&lt;br /&gt;// collection version&lt;br /&gt;System.out.println(lst1.hashCode());&lt;br /&gt;System.out.println(lst2.hashCode());&lt;br /&gt;System.out.println(lst1.hashCode() == lst2.hashCode());&lt;br /&gt;System.out.println(lst1 == lst2); // false&lt;br /&gt;System.out.println(lst1.equals(lst2)); // true&lt;br /&gt;//--- snippet ---//&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Try the snippet above and you will see what I mean. I always thought that arrays would be at least hash consistent, i.e., implementing the collection specification on Java.&lt;br /&gt;&lt;br /&gt;Once again Java had proven my intuition wrong. By the way, my output from the above snippet is the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;//--- snippet ---//&lt;br /&gt;4072869&lt;br /&gt;1671711&lt;br /&gt;false&lt;br /&gt;false&lt;br /&gt;-32504895&lt;br /&gt;-32504895&lt;br /&gt;true&lt;br /&gt;false&lt;br /&gt;true&lt;br /&gt;//--- snippet ---//&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2018926476813078430?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2018926476813078430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2018926476813078430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2018926476813078430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2018926476813078430'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/03/java-what-hell2.html' title='Java... what a hell?!?[2]'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5008614229114493640</id><published>2008-01-31T04:04:00.000-08:00</published><updated>2008-06-13T02:04:57.711-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><category scheme='http://www.blogger.com/atom/ns#' term='gvim'/><title type='text'>gVim revisited</title><content type='html'>In previous post (&lt;a href="http://gka-linux.blogspot.com/2007/06/some-life-changing-gvim-scripts.html"&gt;here&lt;/a&gt;) I gave some hints about gVim and some scripts. The first serious update is on the spell-checking area. The new Vim 7.0 already includes a spell-checker. To activate it include the following in your &lt;span style="font-style: italic;"&gt;~/.vimrc&lt;/span&gt; file: &lt;span style="font-weight: bold;"&gt;set spell spl=&lt;span style="font-style: italic;"&gt;&amp;lt;lang&amp;gt;&lt;/span&gt;&lt;/span&gt;, where &lt;span style="font-weight: bold;"&gt;&lt;span style="font-style: italic;"&gt;&amp;lt;lang&amp;gt;&lt;/span&gt;&lt;/span&gt; is of [en,en_gb,en_us,de,de_20], see the complete documentation for more (&lt;a href="http://vimdoc.sourceforge.net/htmldoc/spell.html"&gt;here&lt;/a&gt;) and a nice quick reference chart &lt;a href="http://appsrv.cse.cuhk.edu.hk/~yhchan/vim.pdf"&gt;here&lt;/a&gt;, from where I got inspired to add my own contribution for spell-checking.&lt;br /&gt;&lt;br /&gt;First you need to install the &lt;span style="font-weight:bold;"&gt;dictd&lt;/span&gt; package:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install dictd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then you can add the following to your &lt;span style="font-style: italic;"&gt;~/.vimrc&lt;/span&gt; file: &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;nmap &amp;lt;silent&amp;gt; &amp;lt;F2&amp;gt; :!dict -s exact -d gcide -m &amp;lt;C-R&amp;gt;&amp;lt;C-W&amp;gt;&amp;lt;CR&amp;gt;&lt;br /&gt;nmap &amp;lt;silent&amp;gt; &amp;lt;F3&amp;gt; :!dict -s exact -d gcide &amp;lt;C-R&amp;gt;&amp;lt;C-W&amp;gt;&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This line makes a &lt;a href="http://www.dict.org/"&gt;dict&lt;/a&gt; query for word where your cursor is (if you press &lt;span style="font-style:italic;"&gt;&amp;lt;F2&amp;gt;&lt;/span&gt;. It is just a match against on of the available dictionaries (see: &lt;span style="font-style:italic;"&gt;dict --help&lt;/span&gt; for more details). This is useful for dictionaries that are not that updated and when the Vim spell-checker says that a word does not exist you can double-check it with &lt;span style="font-style:italic;"&gt;&amp;lt;F2&amp;gt;&lt;/span&gt;. &lt;br /&gt;&lt;br /&gt;The second variant, pressing &lt;span style="font-style:italic;"&gt;&amp;lt;F3&amp;gt;&lt;/span&gt;, gives you the word definition.&lt;br /&gt;&lt;br /&gt;I hope you enjoy it!&lt;br /&gt;&lt;br /&gt;Related posts: &lt;a href="http://gka-linux.blogspot.com/2007/06/some-life-changing-gvim-scripts.html"&gt;Some scripts&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5008614229114493640?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5008614229114493640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5008614229114493640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5008614229114493640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5008614229114493640'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/01/gvim-revisted.html' title='gVim revisited'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6405749238206095752</id><published>2008-01-23T01:50:00.000-08:00</published><updated>2008-01-23T02:02:24.838-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><category scheme='http://www.blogger.com/atom/ns#' term='comments'/><title type='text'>Fedora Control Center: I'm impressed</title><content type='html'>I just bumped into the Gnome Control Center today and I must say I'm impressed. It is just the thing that MS Windows had had since the beginning and I sort of regretted that Linux doesn't, actually didn't. It is pretty much a polished clone from the earlier versions of MS Windows Control Panel (resembles the MS Windows 2000).&lt;br /&gt;&lt;br /&gt;The first thing I tried was the regular stuff: sound and so on. But what really impresses me was the IPTables configuring tool (Firewall). It is really not that bad. I'm still a shell guy but that control center worths the try.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Main Menu -&gt; System -&gt; Preferences -&gt; Control Center&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6405749238206095752?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6405749238206095752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6405749238206095752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6405749238206095752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6405749238206095752'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/01/fedora-control-center-im-impressed.html' title='Fedora Control Center: I&apos;m impressed'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-9103597116496220998</id><published>2008-01-15T05:59:00.000-08:00</published><updated>2008-01-18T01:24:11.101-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><title type='text'>C Cedilla with Gnome</title><content type='html'>This problem could be perfectly overcame with a language switch to Portuguese, but I like to have my Linux in English or German and still be able to write in Portuguese, this includes the &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ç&lt;/span&gt;&lt;/span&gt; characters. But the default for English and German is to produce a &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;ć&lt;/span&gt;&lt;/span&gt; instead of our beloved cedilla.&lt;br /&gt;&lt;br /&gt;Anyway the answer I found in &lt;a href="http://ubuntuforums.org/showthread.php?t=594736"&gt;here&lt;/a&gt; and it says the following:&lt;br /&gt;&lt;br /&gt;1. Edit the file &lt;span style="font-weight:bold;"&gt;/etc/gtk-2.0/i386-redhat-linux-gnu/gtk.immodules&lt;/span&gt;&lt;br /&gt;2. Add at the line beginning with: &lt;span style="font-style:italic;"&gt;"cedilla"&lt;/span&gt; the language that you want to produce, as default, the c cedilla.&lt;br /&gt;&lt;br /&gt;The original is:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And I changed it to:&lt;br /&gt;&lt;span style="font-style:italic;"&gt;"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en:de"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-9103597116496220998?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/9103597116496220998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=9103597116496220998' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/9103597116496220998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/9103597116496220998'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2008/01/c-cedilla-with-gnome.html' title='C Cedilla with Gnome'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-23109971858390353</id><published>2007-12-04T03:04:00.000-08:00</published><updated>2007-12-10T08:08:58.843-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><title type='text'>[update] Convert .ape to .flac</title><content type='html'>There is a new audio format around: the &lt;a href="http://www.monkeysaudio.com/"&gt;monkey's audio codec&lt;/a&gt; or file. To make the conversion you will need the &lt;a href="http://www.etree.org/shnutils/shntool/"&gt;shntools&lt;/a&gt; (&lt;a href="http://bsd.com.ro/fedora/RPMS/shntool/F7/shntool-3.0.3-1.f7.i386.rpm"&gt;RPM&lt;/a&gt;) and &lt;a href="http://supermmx.org/linux/mac/"&gt;MAC&lt;/a&gt; (&lt;a href="http://bsd.com.ro/fedora/RPMS/mac/F7/mac-3.99-u4.b5.1.f7.i386.rpm"&gt;RPM&lt;/a&gt;). Notice that both RPMs are for Fedora 7, but they work. If found a Fedora 8 version, please let me know. This document is a customized version from other two documents: &lt;a href="http://gimpel.gi.funpic.de/wiki/index.php?title=Howto:convert_ape_to_wav/mp3/ogg_on_Linux"&gt;this&lt;/a&gt; and &lt;a href="http://linuxbraindump.org/2007/09/03/howto-split-a-flac-file-using-the-cue-sheet/"&gt;this&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;- Set some variables:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;CUE_FILE=&amp;lt;full path name to the CUE file&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;# assuming that the APE/FLAC file has the same name as the CUE file&lt;br /&gt;APE_FILE="`basename \"${CUE_FILE}\" .cue`.ape"&lt;br /&gt;WAV_FILE="`basename \"${CUE_FILE}\" .cue`.wav"&lt;br /&gt;FLAC_FILE="`basename \"${CUE_FILE}\" .cue`.flac"&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Convert APE file to WAV and to FLAC (if instead of an APE file it is a FLAC file you should skip this step):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;mac "${APE_FILE}" "${WAV_FILE}" -d&lt;br /&gt;flac --best "${WAV_FILE}" "${FLAC_FILE}"&lt;br /&gt;rm -f "${WAV_FILE}"&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Break and convert to flac:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;cuebreakpoints "${CUE_FILE}" | shnsplit -o flac "${FLAC_FILE}"&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Rename single tracks into music names, based on CUE file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[UPDATE]&lt;br /&gt;This script does NOT check character set validity. It means that it may not work for some particular case (or the general case in some languages). A simple example would be a CUE file in French in ISO-8859-1 (Windows default) and a Linux in Unicode (UTF-8). Oder problem also related with character set is the protection for non-valid character like &lt;span style="font-style:italic;"&gt;":"&lt;/span&gt; or &lt;span style="font-style:italic;"&gt;"/"&lt;/span&gt;, which may not be used within a file name. In any case the script will simply not rename the file (which will be left to the user to do). So, in the worst case, you will need to rename the failed files by hand. Useful for that will be to run the following command:&lt;br /&gt;&lt;br /&gt;#---&lt;br /&gt;grep -e  "^[[:space:]]\+TITLE" "${CUE_FILE}"&lt;br /&gt;#---&lt;br /&gt;[UPDATE]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#---&lt;br /&gt;COUNT=1;&lt;br /&gt;## the first TITLE is for the album name, discard it&lt;br /&gt;grep -e  "^[[:space:]]\+TITLE" "${CUE_FILE}" \&lt;br /&gt;| sed -e "s/.*\"\(.*\)\".*/\1/g" \&lt;br /&gt;| while read TRACK_NAME;&lt;br /&gt;do \&lt;br /&gt;     ## just a little fine tune to have track names like&lt;br /&gt;     ### "artist - 01 - track.flac" and "artist - 10 - track.flac"&lt;br /&gt;     if [ ${COUNT} -lt 10 ];&lt;br /&gt;     then \&lt;br /&gt;             NUM="0${COUNT}";&lt;br /&gt;     else \&lt;br /&gt;             NUM="${COUNT}";&lt;br /&gt;     fi;&lt;br /&gt;     ARTIST=`grep -e "^[[:space:]]\+PERFORMER" "${CUE_FILE}" \&lt;br /&gt;     | head -${COUNT} | tail -1 | \&lt;br /&gt;     sed -e "s/.*\"\(.*\)\".*/\1/g"`&lt;br /&gt;     ## rename in the format: "&amp;lt;artist&amp;gt; - &amp;lt;track number&amp;gt; - &amp;lt;track name&amp;gt;.flac"&lt;br /&gt;     mv split-track${NUM}.flac "${ARTIST} - ${NUM} - ${TRACK_NAME}".flac;&lt;br /&gt;     COUNT=$(($COUNT+1));&lt;br /&gt;done&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-23109971858390353?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/23109971858390353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=23109971858390353' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/23109971858390353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/23109971858390353'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/12/convert-ape-to-flac.html' title='[update] Convert .ape to .flac'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-8780074469547158958</id><published>2007-11-28T02:44:00.000-08:00</published><updated>2007-11-28T02:52:46.508-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><title type='text'>Java... what a hell?!?</title><content type='html'>Recently I experience a problem with Java (both 1.5 and 1.6, up to update 3), which throws the following message error in your face:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;The error is: xcb_xlib.c:50: xcb_xlib_unlock: Assertion 'c-&gt;xlib.lock'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It does not affects all Java programs (my Eclipse was still running) but some. Not weirdly enough it seems actually a Java problem instead of a Fedora problem. Anyway, to workaround the problem the procedure is even more weird (extracted from &lt;a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;sed -i 's/XINERAMA/FAKEEXTN/g' /usr/java/&lt;versao do Java&gt;/jre/lib/i386/xawt/libmawt.so&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-8780074469547158958?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/8780074469547158958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=8780074469547158958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8780074469547158958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/8780074469547158958'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/11/java-what-hell.html' title='Java... what a hell?!?'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-5123748416841229059</id><published>2007-11-21T10:05:00.000-08:00</published><updated>2008-04-14T03:01:02.030-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><title type='text'>[updated3] My Fedora 8 road map</title><content type='html'>- Basic system setup&lt;br /&gt;-- Adjust [&lt;span style="font-weight:bold;"&gt;/etc/resolv.conf&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight:bold;"&gt;/etc/fstab&lt;/span&gt;]&lt;br /&gt;-- Adjust [&lt;span style="font-weight:bold;"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/span&gt;]&lt;br /&gt;&lt;br /&gt;- Add repositories:&lt;br /&gt;-- &lt;a href="http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/7/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm"&gt;Freshrpms&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;Adobe (flash plugin)&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://rpm.livna.org/livna-release-8.rpm"&gt;Livna&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-- Correct conflict between livna and freshrpms (in favor of freshrpms):&lt;br /&gt;Edit your [&lt;span style="font-weight:bold;"&gt;/etc/yum.repos.d/livna.repo&lt;/span&gt;] file to look like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;...&lt;br /&gt;#mirrorlist=http://rpm.livna.org/mirrorlist-7&lt;br /&gt;exclude=vlc*,mplayer,libdvbpsi*,ffmpeg*,mencoder*&lt;br /&gt;enabled=1&lt;br /&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Update your system:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y upgrade&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install additional software:&lt;br /&gt;-- Multimedia:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;mplayer \&lt;br /&gt;mencoder \&lt;br /&gt;mplayerplug-in\&lt;br /&gt;vlc \&lt;br /&gt;grip \&lt;br /&gt;ogle \&lt;br /&gt;flash-plugin \&lt;br /&gt;k3b \&lt;br /&gt;k3b-extras-nonfree \&lt;br /&gt;bittorrent \&lt;br /&gt;bittorrent-gui&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Email with sylpheed-claws&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;bogofilter \&lt;br /&gt;claws-mail \&lt;br /&gt;claws-mail-plugins \&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- XMMS with its most precious plug-ins&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;xmms \&lt;br /&gt;xmms-libs \&lt;br /&gt;xmms-skins.noarch \&lt;br /&gt;xmms-mp3 \&lt;br /&gt;xmms-faad2 \&lt;br /&gt;xmms-flac \&lt;br /&gt;xmms-wma \&lt;br /&gt;xmms-cdread \&lt;br /&gt;xmms-arts \&lt;br /&gt;xmms-esd \&lt;br /&gt;xmms-musepack \&lt;br /&gt;xmms-acme&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Pidgin, a very good IM client&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;pidgin \&lt;br /&gt;pidgin-encryption \&lt;br /&gt;pidgin-guifications \&lt;br /&gt;pidgin-otr&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- For kernel modules&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;kernel-devel \&lt;br /&gt;kernel-headers&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Nautilus plug-ins&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;nautilus-open-terminal \&lt;br /&gt;nautilus-search-tool \&lt;br /&gt;nautilus-flac-converter \&lt;br /&gt;nautilus-extensions&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Misc&lt;br /&gt;--- Diagrams and images, usually old stuff that I'm used to&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;graphviz \&lt;br /&gt;dia \&lt;br /&gt;gv \&lt;br /&gt;xfig \&lt;br /&gt;xpdf \&lt;br /&gt;eog \&lt;br /&gt;gnuplot \&lt;br /&gt;grace&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Editors and related&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gvim \&lt;br /&gt;kile \&lt;br /&gt;diction&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved spreadsheet program&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;gnumeric&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- Unrar and related programs&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;unrar \&lt;br /&gt;p7zip&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--- My beloved debugging program&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;ddd&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Install and setup third-part programs&lt;br /&gt;-- &lt;a href="http://www.virtualbox.org/wiki/Downloads"&gt;VirtualBox&lt;/a&gt;/&lt;a href="http://www.vmware.com/download/ws/"&gt;VMware&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.skype.com/intl/en/download/skype/linux/choose/"&gt;Skype&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://www.adobe.com/products/acrobat/readstep2.html"&gt;Acrobat Reader&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://europe.real.com/player/select/"&gt;Real Player&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://java.sun.com/"&gt;Sun Java&lt;/a&gt;&lt;br /&gt;-- &lt;a href="http://download.eclipse.org/eclipse/downloads/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;P.S.: For Real Player you will need to install the following package (broken dependency on Real Player RPM):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;compat-libstdc++-33&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Setup printers&lt;br /&gt;- Backup [&lt;span style="font-weight:bold;"&gt;/etc&lt;/span&gt;] and [&lt;span style="font-weight:bold;"&gt;/boot/grub&lt;/span&gt;]&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;tar -czf bkp-system.`/bin/date +"%Y%m%d-%H%M"`.tgz /etc /boot/grub&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Some issues:&lt;br /&gt;Acrobat Reader install its Firefox/Mozilla plug-in, which has a memory leak. I recommend to remove it. To do so:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;rm -f /usr/lib/mozilla/plugins/nppdf.so&lt;br /&gt;#---&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-5123748416841229059?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/5123748416841229059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=5123748416841229059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5123748416841229059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/5123748416841229059'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/11/my-fedora-8-road-map.html' title='[updated3] My Fedora 8 road map'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-950768411900219304</id><published>2007-11-20T09:10:00.000-08:00</published><updated>2008-05-14T10:42:13.562-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><title type='text'>How to get language switch in pidgin</title><content type='html'>To get language switch in pidgin you need a plugin called switch-spell, which does not come in a RPM package (as far as I know). This means that you need to get the sources (&lt;a href="http://plugins.guifications.org/trac/wiki/PluginPack"&gt;here&lt;/a&gt;, in &lt;a href="http://plugins.guifications.org/trac/downloads"&gt;download&lt;/a&gt;) and compile it. To make the job easier here goes the necessary packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;dbus-devel&lt;br /&gt;dbus-glib-devel&lt;br /&gt;libpurple-devel&lt;br /&gt;aspell-devel&lt;br /&gt;gtkspell-devel&lt;br /&gt;pidgin-devel&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And the yum command:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;#---&lt;br /&gt;yum -y install \&lt;br /&gt;dbus-devel \&lt;br /&gt;dbus-glib-devel \&lt;br /&gt;libpurple-devel \&lt;br /&gt;aspell-devel \&lt;br /&gt;gtkspell-devel \&lt;br /&gt;pidgin-devel&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After that just extract the sources and compile:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;./configure&lt;br /&gt;make &amp;&amp; make install&lt;br /&gt;#---&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Have fun!&lt;br /&gt;&lt;br /&gt;P.S.: Just remember the &lt;a href="http://gka-linux.blogspot.com/2007/11/funny-thing-fails-sanity-check.html"&gt;previous post&lt;/a&gt;, if you get a "fails sanity check" error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-950768411900219304?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/950768411900219304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=950768411900219304' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/950768411900219304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/950768411900219304'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/11/how-to-get-language-switch-in-pidgin.html' title='How to get language switch in pidgin'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-6604308513557276540</id><published>2007-11-20T09:09:00.000-08:00</published><updated>2007-11-20T09:13:59.582-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><title type='text'>Funny thing: "fails sanity check"</title><content type='html'>Ok that is a very funny error and I have never got it, until today. But why should I get such an error trying to compile something if I do have GCC and any other prereq whatsoever? The point is, and do not ask me why, GCC package does not requires glibc-headers. So you may get that following funny, and for me cryptic message, even though I have had "/lib/cpp" (go figure!):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;configure: error: C++ preprocessor "/lib/cpp" fails sanity check&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Anyway, just install the package and everything will go as you expect.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#---&lt;br /&gt;yum -y install glibc-headers&lt;br /&gt;#---&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-6604308513557276540?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/6604308513557276540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=6604308513557276540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6604308513557276540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/6604308513557276540'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/11/funny-thing-fails-sanity-check.html' title='Funny thing: &quot;fails sanity check&quot;'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2162057785000312190</id><published>2007-11-13T07:32:00.000-08:00</published><updated>2007-11-20T09:12:18.950-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fedora8'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='vmware'/><category scheme='http://www.blogger.com/atom/ns#' term='virtualbox'/><category scheme='http://www.blogger.com/atom/ns#' term='yum'/><title type='text'></title><content type='html'>&lt;a href="http://fedoraproject.org/"&gt;Fedora 8&lt;/a&gt; screw big time&lt;br /&gt;&lt;br /&gt;For those who got the "Invalid Module Format" trying to install/configure any module after installing Fedora 8 here is why. (It affects &lt;a href="http://www.vmware.com"&gt;VMware&lt;/a&gt; (version Workstation 6.0.2 build-59824) and &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; (version 1.5.2) BIG TIME!)&lt;br /&gt;&lt;br /&gt;1. You have installed "kernel-devel" afterwards using yum (that is what I used);&lt;br /&gt;2. Fedora 8 install kernel.i586 and yum (version 3.2.7) kernel-devel.i686 (notice the difference in the architecture?);&lt;br /&gt;3. You can NOT upgrade your kernel to a i686 version.&lt;br /&gt;&lt;br /&gt;How do I fixed the problem?&lt;br /&gt;&lt;br /&gt;1. Install the "kernel-xen" and boot your box with it;&lt;br /&gt;2. Remove ALL kernel instances (NOT kernel-xen, which your are using now);&lt;br /&gt;2.1. You will need to remove 2 more packages too:&lt;br /&gt;  rpm -e xorg-x11-drv-nouveau xorg-x11-drivers&lt;br /&gt;  rpm -e kernel.i586 kernel-devel&lt;br /&gt;3. Re-install the kernel:&lt;br /&gt;  yum -y install kernel.i686 kernel-devel.i686 xorg-x11-drv-nouveau xorg-x11-drivers&lt;br /&gt;4. Reboot with the new kernel&lt;br /&gt;5. Recompile the modules or, in case of vmware and virtual box, setup:&lt;br /&gt;  vmware-config.pl&lt;br /&gt;  /etc/init.d/vboxdrv setup&lt;br /&gt;6. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2162057785000312190?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2162057785000312190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2162057785000312190' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2162057785000312190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2162057785000312190'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/11/httpfedoraproject.html' title=''/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-7052411971645084722</id><published>2007-06-14T04:57:00.000-07:00</published><updated>2008-06-13T02:06:27.010-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='latex'/><category scheme='http://www.blogger.com/atom/ns#' term='gvim'/><title type='text'>[updated] Some life changing (g)VI(M) scripts</title><content type='html'>Ok first I need to say that I use gvim for both text, using LaTeX, and code, mainlly C/C++, writting. So the focus is on both aspects.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;LaTeX:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. &lt;span style="font-style:italic;"&gt;LaTeX-Suite:&lt;/span&gt; &lt;a href="http://vim.sourceforge.net/scripts/script.php?script_id=475"&gt;here&lt;/a&gt; and &lt;a href="http://vim-latex.sf.net/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- ~/vimrc: &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;filetype plugin on&lt;br /&gt;set grepprg=grep\ -nH\ $*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: it works only if you start vim with a ".tex" file.&lt;br /&gt;&lt;br /&gt;. Instead of vimspell use the native VIM spell-checker (for VIM 7.0 or greater, Fedora 8 or greater).&lt;br /&gt;&lt;br /&gt;- ~/vimrc:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;nmap &amp;lt;F10&amp;gt; :setl spell spl=de_de&amp;lt;CR&amp;gt;&lt;br /&gt;nmap &amp;lt;F11&amp;gt; :setl spell spl=en_gb&amp;lt;CR&amp;gt;&lt;br /&gt;nmap &amp;lt;F12&amp;gt; :setl spell spl=&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: the out-of-the-box VIM come just with the English US dictionary, so to add more dictionaries, with your special flavour, just execute manually (once per language) the fallowing command in VIM:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;:setl spell spl=xx_xx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Where &lt;span style="font-style:italic;"&gt;"xx_xx"&lt;/span&gt; is the language you want to use, for instance: pt_br, es_es, es_mx, en_gb, en_ca, de_de, de_ch, for Brazilian Portuguese, Spanish Spanish, Mexican Spanish, British English, Canadian English, German German, Switzer German.&lt;br /&gt;&lt;br /&gt;The languages supported are all languages present in OpenOffice.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[DEPRECATED]&lt;/span&gt;&lt;br /&gt;. &lt;span style="font-style:italic;"&gt;vimspell:&lt;/span&gt; &lt;a href="http://vim.sourceforge.net/scripts/script.php?script_id=465"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- ~/vimrc:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;" VimSpell settings&lt;br /&gt;highlight SpellErrors ctermfg=Red guifg=Red&lt;br /&gt;           \ cterm=underline gui=underline term=reverse&lt;br /&gt;au VimEnter * SpellAutoEnable&lt;br /&gt;let spell_update_time = 2000&lt;br /&gt;" file types to allow correction on&lt;br /&gt;let spell_auto_type = "all"&lt;br /&gt;" on-the-fly type correction&lt;br /&gt;let spell_insert_mode = 0&lt;br /&gt;" which corrector to use&lt;br /&gt;let spell_executable = "aspell"&lt;br /&gt;" languages&lt;br /&gt;let spell_language_list = "en_GB,de_DE,pt_BR"&lt;br /&gt;let spell_auto_jump = 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: It is a must for every one that writes something besides code without comments :-)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;[DEPRECATED]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Programming:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;. &lt;span style="font-style:italic;"&gt;csupport:&lt;/span&gt; &lt;a href="http://vim.sourceforge.net/scripts/script.php?script_id=213"&gt;here&lt;/a&gt;, but usually already on vim/gvim package.&lt;br /&gt;&lt;br /&gt;- ~/vimrc:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;let g:C_AuthorName      = 'Your name'&lt;br /&gt;let g:C_Email           = 'your.email@your.provider'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: It helps, A LOT!&lt;br /&gt;&lt;br /&gt;. &lt;span style="font-style:italic;"&gt;Tags menu:&lt;/span&gt; &lt;a href="http://vim.sourceforge.net/scripts/script.php?script_id=215"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- ~/vimrc:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;let Tmenu_ctags_cmd = '/usr/bin/ctags'&lt;br /&gt;let Tmenu_max_submenu_items = 20&lt;br /&gt;let Tmenu_max_tag_length = 10&lt;br /&gt;let Tmenu_sort_type = "name" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: it creates, using gvim, a menu item called "Tags" with the current file tags.&lt;br /&gt;&lt;br /&gt;. &lt;span style="font-style:italic;"&gt;taglist:&lt;/span&gt; &lt;a href="http://vim.sourceforge.net/scripts/script.php?script_id=273"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;- ~/.vimrc:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;nnoremap &amp;lt;silent&amp;gt; &amp;lt;F8&amp;gt; :TlistToggle&amp;lt;CR&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Comments: This is THE killer tag browser and that map above makes it reachable by pressing &lt;span style="font-style:italic;"&gt;&amp;lt;F8&amp;gt;&lt;/span&gt;. Check it out.&lt;br /&gt;&lt;br /&gt;Related posts: &lt;a href="http://gka-linux.blogspot.com/2008/01/gvim-revisted.html"&gt;gVim revisited&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-7052411971645084722?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/7052411971645084722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=7052411971645084722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7052411971645084722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/7052411971645084722'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/06/some-life-changing-gvim-scripts.html' title='[updated] Some life changing (g)VI(M) scripts'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-2182830277627034237</id><published>2007-06-10T03:45:00.000-07:00</published><updated>2007-06-10T04:12:09.553-07:00</updated><title type='text'>Almost a year</title><content type='html'>That's it: this blog was dead for almost a year and is time to do some catch up, if I still have any  reader. But anyway this is more for me than for you and I can also practice my English (as you can see need a lot of improvements).&lt;br /&gt;&lt;br /&gt;Nevertheless here comes some things that I'm very excited about:&lt;br /&gt;&lt;br /&gt;- &lt;a href="http://download.eclipse.org/tools/cdt/builds/4.0.0/I.I200706081931/index.html"&gt;CDT 4.0 RC3&lt;/a&gt; for &lt;a href="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/S-3.3RC3-200706011539/eclipse-SDK-3.3RC3-linux-gtk.tar.gz"&gt;Eclipse 3.3&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://fedoraproject.org/"&gt;Fedora 7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First why is CDT to be excited about, because it has a refactoring tool that actually works. Ok it is just a renaming tool, so what? That means that they are really into keeping track of your code, including documentation. So I believe that they are bringing all those cool refactoring tools, like move, in no time. Then a C/C++ programmer can have all those nice things about Java IDE in a C/C++ free IDE.&lt;br /&gt;&lt;br /&gt;And what about Fedora 7, there is nothing REALLY new on it. Well, first they are free from the RH packaging tools, which means that hopefully there will be some Fedora "the way I wanted" 7. But here some critics about Fedora: they should be more careful about the RPMs, which have broken dependencies, like VLC. We are talking about VLC, which is a major end-user application. The new version has also some stability issues, specially xorg. But the new xorg is kicking asses!!! If you don't saw it, please DO. &lt;br /&gt;&lt;br /&gt;The new xorg is already with the 3D Desktop concept in it. They must polish some rough edges, like maximizing, but it looks good, very good. It is a mixture of OSX (with that very nice &lt;ALT&gt;+&lt;TAB&gt; behaviour) with 3D Desktop environment. But has I said, it needs some refinement, maybe on the next major upgrade.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-2182830277627034237?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/2182830277627034237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=2182830277627034237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2182830277627034237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/2182830277627034237'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2007/06/almost-year.html' title='Almost a year'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-115096895766740255</id><published>2006-06-22T02:32:00.000-07:00</published><updated>2006-06-22T02:35:58.103-07:00</updated><title type='text'>Flash and FC5</title><content type='html'>To make the flash plugin works on Fedora Core 5 I sugest the following link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://macromedia.mplug.org/"&gt;http://macromedia.mplug.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Where you get the RPM: &lt;a href="http://macromedia.mplug.org/rpm/RPMS.macromedia/flash-plugin-7.0.63-1.i386.rpm"&gt;flash-plugin-7.0.63-1.i386.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And after installing it, as root, run:&lt;br /&gt;&lt;br /&gt;/usr/lib/flash-plugin/setup&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-115096895766740255?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/115096895766740255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=115096895766740255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/115096895766740255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/115096895766740255'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2006/06/flash-and-fc5.html' title='Flash and FC5'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113916027090183140</id><published>2006-02-05T09:20:00.000-08:00</published><updated>2006-02-05T09:24:31.150-08:00</updated><title type='text'>Kernel 2.6.15-1.1830_FC4 fixes DMA problem and new updated ethernet problems</title><content type='html'>The recent kernel, 2.6.15-1.1830_FC4, fixes the DMA problem on SiS 965 with driver SiS 5513. And the recent updates, I couldn't detect what was it, fixed the problems with SiS190 Ethernet controller.&lt;br /&gt;&lt;br /&gt;Maibe I need a new hardware to find new problems :-).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113916027090183140?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113916027090183140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113916027090183140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113916027090183140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113916027090183140'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2006/02/kernel-2615-11830fc4-fixes-dma-problem.html' title='Kernel 2.6.15-1.1830_FC4 fixes DMA problem and new updated ethernet problems'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113672025877680569</id><published>2006-01-08T03:36:00.000-08:00</published><updated>2006-06-16T07:22:57.503-07:00</updated><title type='text'>My patches to kernel 2.6.14-1.1656_FC4, try 1</title><content type='html'>My patches to kernel 2.6.14-1.1656_FC4, try 1&lt;br /&gt;&lt;br /&gt;That is a patch to allow:&lt;br /&gt;DMA Support to Southbridge SiS 965 with driver SiS 5513.&lt;br /&gt;NTFS Read support.&lt;br /&gt;Fix SiS190 Ethernet controller, [sis190].&lt;br /&gt;Make SATA SiS, [sata_sis], part of kernel, instead of a module.&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1656_FC4.src.rpm"&gt;2.6.14-1.1656_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Apply all patches that I published, and apply to that situation.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/12/sis-ide-controller-5513-sis5513-with.html"&gt;SiS 5513, try 3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2006/01/sis-ethernet-0190-sis190-patch-try-3.html"&gt;SiS 190, try 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1656_FC4.src.rpm"&gt;2.6.14-1.1656_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Create the patch files mentioned on the remarks.&lt;br /&gt;&lt;br /&gt;3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Please note that this script do NOT check if the [.config] was already patched&lt;br /&gt;#&lt;br /&gt;find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE&lt;br /&gt;do&lt;br /&gt;        mv ${FILE} ${FILE}.orig&lt;br /&gt;        cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" &gt; ${FILE}&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1656.patch]:&lt;br /&gt;&lt;br /&gt;--- a/kernel-2.6.spec  2006-01-08 12:26:50.000000000 +0100&lt;br /&gt;+++ b/kernel-2.6.spec       2006-01-08 12:30:37.000000000 +0100&lt;br /&gt;@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t&lt;br /&gt; %define sublevel 14&lt;br /&gt; %define kversion 2.6.%{sublevel}&lt;br /&gt; %define rpmversion 2.6.%{sublevel}&lt;br /&gt;-%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+#%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+%define rhbsys sis&lt;br /&gt; %define release %(R="$Revision: 1.1656 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}&lt;br /&gt; %define signmodules 0&lt;br /&gt; %define make_target bzImage&lt;br /&gt;@@ -307,6 +308,7 @@ Patch1301: linux-2.6-net-sundance-ip100A&lt;br /&gt; Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch&lt;br /&gt; Patch1303: linux-2.6-net-acenic-use-after-free.patch&lt;br /&gt; Patch1304: linux-2.6-net-sk98lin-vpd.patch&lt;br /&gt;+Patch1305: linux-2.6-sis190.patch&lt;br /&gt;&lt;br /&gt; Patch1400: linux-2.6-pcmcia-disable-warning.patch&lt;br /&gt;&lt;br /&gt;@@ -348,6 +350,8 @@ Patch1771: linux-2.6-sata-promise-pata-p&lt;br /&gt; Patch1782: linux-2.6-selinux-mls-compat.patch&lt;br /&gt; Patch1783: linux-2.6-usbhid-wacom.patch&lt;br /&gt; Patch1790: linux-2.6-block-reduce-stack.patch&lt;br /&gt;+Patch1795: linux-2.6-pci_ids.patch&lt;br /&gt;+Patch1796: linux-2.6-sis5513.patch&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt; Patch1800: linux-2.6-acpi-enable-ecburst.patch&lt;br /&gt;@@ -728,6 +732,8 @@ cd linux-%{kversion}&lt;br /&gt; %patch1303 -p1&lt;br /&gt; # sk98lin vpd fix&lt;br /&gt; %patch1304 -p1&lt;br /&gt;+# sis190 fix hangup&lt;br /&gt;+%patch1305 -p1&lt;br /&gt;&lt;br /&gt; # disable pcmcia warnings&lt;br /&gt; %patch1400 -p1&lt;br /&gt;@@ -803,6 +809,9 @@ cd linux-%{kversion}&lt;br /&gt; %patch1783 -p1&lt;br /&gt; # Decrease stack usage in block layer&lt;br /&gt; %patch1790 -p1&lt;br /&gt;+# Fix DMA on SiS965 southbridge with SiS5513 driver&lt;br /&gt;+%patch1795 -p1&lt;br /&gt;+%patch1796 -p1&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt; # Enable EC burst&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Execute the script to change kernel defaults:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SOURCES/&lt;br /&gt;sh ./make-config.sh&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;6. Apply the kernel spec patch:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SPECS/&lt;br /&gt;patch -p1 kernel-2.6.spec.2.6.14.1-1656.patch&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;7. Build the rpms:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;rpmbuild -bb --target=i686 kernel-2.6.spec&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113672025877680569?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113672025877680569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113672025877680569' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113672025877680569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113672025877680569'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2006/01/my-patches-to-kernel-2614-11656fc4-try.html' title='My patches to kernel 2.6.14-1.1656_FC4, try 1'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113640954725906960</id><published>2006-01-04T13:18:00.000-08:00</published><updated>2006-01-04T13:19:07.323-08:00</updated><title type='text'>My patches to kernel 2.6.14-1.1653_FC4, try 2</title><content type='html'>My patches to kernel 2.6.14-1.1653_FC4, try 2&lt;br /&gt;&lt;br /&gt;Apologise:&lt;br /&gt;I apologise for my last &lt;a href="http://gka-linux.blogspot.com/2005/12/new-kernel-2614-11653fc4-fixes-all.html"&gt;post&lt;/a&gt; where I say that was everything alright, I was wrong.&lt;br /&gt;&lt;br /&gt;That is a patch to allow:&lt;br /&gt;DMA Support to Southbridge SiS 965 with driver SiS 5513.&lt;br /&gt;NTFS Read support.&lt;br /&gt;Fix SiS190 Ethernet controller, [sis190].&lt;br /&gt;Make SATA SiS, [sata_sis], part of kernel, instead of a module.&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Apply all patches that I published, and apply to that situation.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/12/sis-ide-controller-5513-sis5513-with.html"&gt;SiS 5513, try 3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2006/01/sis-ethernet-0190-sis190-patch-try-3.html"&gt;SiS 190, try 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Create the patch files mentioned on the remarks.&lt;br /&gt;&lt;br /&gt;3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Please note that this script do NOT check if the [.config] was already patched&lt;br /&gt;#&lt;br /&gt;find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE&lt;br /&gt;do&lt;br /&gt;        mv ${FILE} ${FILE}.orig&lt;br /&gt;        cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1m/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" &gt; ${FILE}&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:&lt;br /&gt;&lt;br /&gt;--- kernel-2.6.spec     2006-01-04 19:27:27.000000000 +0100&lt;br /&gt;+++ kernel-2.6.spec.2.6.14.1-1653.orig  2005-12-26 09:04:38.000000000 +0100&lt;br /&gt;@@ -19,8 +19,7 @@ Summary: The Linux kernel (the core of t&lt;br /&gt; %define sublevel 14&lt;br /&gt; %define kversion 2.6.%{sublevel}&lt;br /&gt; %define rpmversion 2.6.%{sublevel}&lt;br /&gt;-#%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;-%define rhbsys sis&lt;br /&gt;+%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt; %define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}&lt;br /&gt; %define signmodules 0&lt;br /&gt; %define make_target bzImage&lt;br /&gt;@@ -308,7 +307,6 @@ Patch1301: linux-2.6-net-sundance-ip100A&lt;br /&gt; Patch1302: linux-2.6-net-atm-lanai-nodev-rmmod.patch&lt;br /&gt; Patch1303: linux-2.6-net-acenic-use-after-free.patch&lt;br /&gt; Patch1304: linux-2.6-net-sk98lin-vpd.patch&lt;br /&gt;-Patch1305: linux-2.6-sis190.patch&lt;br /&gt;&lt;br /&gt; Patch1400: linux-2.6-pcmcia-disable-warning.patch&lt;br /&gt;&lt;br /&gt;@@ -354,8 +352,7 @@ Patch1771: linux-2.6-sata-promise-pata-p&lt;br /&gt; Patch1780: linux-2.6-net-bonding-feature-consolidation.patch&lt;br /&gt; Patch1781: linux-2.6-net-bridge-feature-consolidation.patch&lt;br /&gt; Patch1782: linux-2.6-selinux-mls-compat.patch&lt;br /&gt;-Patch1783: linux-2.6-pci_ids.patch&lt;br /&gt;-Patch1784: linux-2.6-sis5513.patch&lt;br /&gt;+&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt; Patch1800: linux-2.6-acpi-enable-ecburst.patch&lt;br /&gt;@@ -735,8 +732,6 @@ cd linux-%{kversion}&lt;br /&gt; %patch1303 -p1&lt;br /&gt; # sk98lin vpd fix&lt;br /&gt; %patch1304 -p1&lt;br /&gt;-# sis190 fix&lt;br /&gt;-%patch1305 -p1&lt;br /&gt;&lt;br /&gt; # disable pcmcia warnings&lt;br /&gt; %patch1400 -p1&lt;br /&gt;@@ -818,9 +813,6 @@ cd linux-%{kversion}&lt;br /&gt; %patch1780 -p1&lt;br /&gt; %patch1781 -p1&lt;br /&gt; %patch1782 -p1&lt;br /&gt;-# Fix DMA on SiS965 southbridge with SiS5513 driver&lt;br /&gt;-%patch1783 -p1&lt;br /&gt;-%patch1784 -p1&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt; # Enable EC burst&lt;br /&gt;&lt;br /&gt;5. Execute the script to change kernel defaults:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SOURCES/&lt;br /&gt;sh ./make-config.sh&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;6. Apply the kernel spec patch:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SPECS/&lt;br /&gt;patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;7. Build the rpms:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;rpmbuild -bb --target=i686 kernel-2.6.spec&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113640954725906960?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113640954725906960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113640954725906960' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113640954725906960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113640954725906960'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2006/01/my-patches-to-kernel-2614-11653fc4-try.html' title='My patches to kernel 2.6.14-1.1653_FC4, try 2'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113640930252032619</id><published>2006-01-04T13:14:00.000-08:00</published><updated>2006-01-08T03:39:59.520-08:00</updated><title type='text'>SiS Ethernet 0190 [sis190] patch, try 3</title><content type='html'>SiS Ethernet 0190 [sis190] patch, try 3&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1656_FC4.src.rpm"&gt;2.6.14-1.1656_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system if there is no response on the network, like an DHPC server failure.&lt;br /&gt;&lt;br /&gt;Bugzilla:&lt;br /&gt;Number &lt;a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176969"&gt;176969&lt;/a&gt; at &lt;a href="http://bugzilla.redhat.com/"&gt;http://bugzilla.redhat.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. You need to disable network and reboot, to avoid system hang:&lt;br /&gt;&lt;br /&gt;chkconfig --level 345 network off&lt;br /&gt;&lt;br /&gt;2. Get and install the kernel source that applies:&lt;br /&gt;&lt;br /&gt;3. Unpack the kernel:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/SPEC&lt;br /&gt;rpmbuild -bp --target=i686 kernel-2.6.spec&lt;br /&gt;&lt;br /&gt;4. Get the SiS driver for Linux &lt;br /&gt;To take the driver by yourself go to &lt;a href="http://www.sis.com/download/"&gt;SiS download center&lt;/a&gt; and chose:&lt;br /&gt;Network Driver -&gt; SiS190 Gigabit &amp; SiS191 LAN -&gt; Linux -&gt; GO&lt;br /&gt;Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."&lt;br /&gt;&lt;br /&gt;5. Extract the file [sis190.c] and make a patch from it:&lt;br /&gt;&lt;br /&gt;tar -vxzf sis190191_linux.tar.gz -C /tmp/ # file from SiS&lt;br /&gt;mkdir -p /tmp/a/drivers/net/&lt;br /&gt;mkdir -p /tmp/b/drivers/net/&lt;br /&gt;cp /tmp/sis190_20041220/sis190.c /tmp/b/drivers/net/&lt;br /&gt;cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.c /tmp/a/drivers/net&lt;br /&gt;cd /tmp/&lt;br /&gt;diff -Nup a/drivers/net/sis190.c b/drivers/net/sis190.c &gt; /usr/src/redhat/SOURCES/linux-2.6-sis190.patch # create a patch file for later&lt;br /&gt;cp /tmp/b/drivers/net/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/ # this will patch the actual expansion to make a new module right now.&lt;br /&gt;&lt;br /&gt;6. Prepare the kernel to compile the modules:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/&lt;br /&gt;cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686&lt;br /&gt;# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP&lt;br /&gt;&lt;br /&gt;5. Compile the modules and copy override the old driver&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/&lt;br /&gt;make modules&lt;br /&gt;cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686&lt;br /&gt;depmode -eaF /boot/System.map-2.6.14-1.1653_FC4 2.6.14-1.1644_FC4 # for normal i686&lt;br /&gt;#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP&lt;br /&gt;#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1653_FC4smp # for i686 SMP&lt;br /&gt;&lt;br /&gt;6. Reenable the network and reboot&lt;br /&gt;&lt;br /&gt;chkconfig --level 345 network on&lt;br /&gt;shutdown -r now&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113640930252032619?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113640930252032619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113640930252032619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113640930252032619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113640930252032619'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2006/01/sis-ethernet-0190-sis190-patch-try-3.html' title='SiS Ethernet 0190 [sis190] patch, try 3'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113560537115499545</id><published>2005-12-26T05:51:00.000-08:00</published><updated>2005-12-26T05:56:29.310-08:00</updated><title type='text'>My patches to kernel 2.6.14-1.1653_FC4</title><content type='html'>My patches to kernel 2.6.14-1.1653_FC4&lt;br /&gt;&lt;br /&gt;Apologise:&lt;br /&gt;I apologise for my last &lt;a href="http://gka-linux.blogspot.com/2005/12/new-kernel-2614-11653fc4-fixes-all.html"&gt;post&lt;/a&gt; where I say that was everything alright, I was wrong.&lt;br /&gt;&lt;br /&gt;That is a patch to allow:&lt;br /&gt;DMA Support to Southbridge SiS 965 with driver SiS 5513.&lt;br /&gt;NTFS Read support.&lt;br /&gt;Make SiS190 Ethernet controller, [sis190], part of kernel, instead of a module.&lt;br /&gt;Make SATASiS, [sata_sis], part of kernel, instead of a module.&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Apply all patches that I published, and apply to that situation.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/12/sis-ide-controller-5513-sis5513-with.html"&gt;SiS 5513, try 3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Create the patch files mentioned on the remarks.&lt;br /&gt;&lt;br /&gt;3. Create the script to change the defaults values on kernel configuration, called [/usr/src/redhat/SOURCES/make-config.sh]:&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Please note that this script do NOT check if the [.config] was already patched&lt;br /&gt;#&lt;br /&gt;find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE&lt;br /&gt;do&lt;br /&gt;        mv ${FILE} ${FILE}.orig&lt;br /&gt;        cat ${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS190=\)./\1y/" -e "s/\(CONFIG_BLK_DEV_SIS5513=\)./\1y/" -e "s/# CONFIG_NTFS_FS is not set/CONFIG_NTFS_FS=m\n# CONFIG_NTFS_DEBUG is not set\n# CONFIG_NTFS_RW is not set\n/" &gt; ${FILE}&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;4. Create the kernel spec patch, called [/usr/src/redhat/SPEC/kernel-2.6.spec.2.6.14.1-1653.patch]:&lt;br /&gt;&lt;br /&gt;--- kernel-2.6.spec.orig  2005-12-26 09:04:38.000000000 +0100&lt;br /&gt;+++ kernel-2.6.spec     2005-12-26 09:08:49.000000000 +0100&lt;br /&gt;@@ -19,7 +19,8 @@ Summary: The Linux kernel (the core of t&lt;br /&gt; %define sublevel 14&lt;br /&gt; %define kversion 2.6.%{sublevel}&lt;br /&gt; %define rpmversion 2.6.%{sublevel}&lt;br /&gt;-%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+#%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+%define rhbsys sis&lt;br /&gt; %define release %(R="$Revision: 1.1653 $"; RR="${R##: }"; echo ${RR%%?})_FC4%{rhbsys}&lt;br /&gt; %define signmodules 0&lt;br /&gt; %define make_target bzImage&lt;br /&gt;@@ -352,6 +353,8 @@ Patch1771: linux-2.6-sata-promise-pata-p&lt;br /&gt; Patch1780: linux-2.6-net-bonding-feature-consolidation.patch&lt;br /&gt; Patch1781: linux-2.6-net-bridge-feature-consolidation.patch&lt;br /&gt; Patch1782: linux-2.6-selinux-mls-compat.patch&lt;br /&gt;+Patch1783: linux-2.6-pci_ids.patch&lt;br /&gt;+Patch1784: linux-2.6-sis5513.patch&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt;@@ -813,6 +816,9 @@ cd linux-%{kversion}&lt;br /&gt; %patch1780 -p1&lt;br /&gt; %patch1781 -p1&lt;br /&gt; %patch1782 -p1&lt;br /&gt;+# Fix DMA on SiS965 southbridge with SiS5513 driver&lt;br /&gt;+%patch1783 -p1&lt;br /&gt;+%patch1784 -p1&lt;br /&gt;&lt;br /&gt; # ACPI patches.&lt;br /&gt; # Enable EC burst&lt;br /&gt;&lt;br /&gt;5. Execute the script to change kernel defaults:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SOURCES/&lt;br /&gt;sh ./make-config.sh&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;6. Apply the kernel spec patch:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;cd /usr/src/redhat/SPECS/&lt;br /&gt;patch -p1 kernel-2.6.spec.2.6.14.1-1653.patch&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;7. Build the rpms:&lt;br /&gt;&lt;br /&gt;###&lt;br /&gt;rpmbuild -bb --target=i686 kernel-2.6.spec&lt;br /&gt;###&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113560537115499545?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113560537115499545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113560537115499545' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113560537115499545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113560537115499545'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/12/my-patches-to-kernel-2614-11653fc4.html' title='My patches to kernel 2.6.14-1.1653_FC4'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113560456318721535</id><published>2005-12-26T05:30:00.000-08:00</published><updated>2006-01-08T03:41:19.740-08:00</updated><title type='text'>SiS IDE Controller 5513 [sis5513] with Southbridge SiS 965 patch, try 3</title><content type='html'>SiS IDE Controller 5513 [sis5513] with Southbridge SiS 965 patch, try 3&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1653_FC4.src.rpm"&gt;2.6.14-1.1653_FC4&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1656_FC4.src.rpm"&gt;2.6.14-1.1656_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513 with Southbridge SiS model 965.&lt;br /&gt;&lt;br /&gt;Bugzilla:&lt;br /&gt;Number &lt;a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=176560"&gt;176560&lt;/a&gt; at &lt;a href="http://bugzilla.redhat.com/"&gt;http://bugzilla.redhat.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Inspired on:&lt;br /&gt;http://lkml.org/lkml/2005/10/5/293&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Modify the module source to recognise the controller hardware.&lt;br /&gt;In this case the south bridge controller: SiS965.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;RPM kernel spec file part will be covered on the kernel specific part.&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;br /&gt;2. Patch to the file [pci_ids.h], at [/usr/src/redhat/SOURCES/linux-2.6-pci_ids.patch]:&lt;br /&gt;&lt;br /&gt;--- a/include/linux/pci_ids.h   2005-12-26 09:00:09.000000000 +0100&lt;br /&gt;+++ b/include/linux/pci_ids.h   2005-12-26 09:00:27.000000000 +0100&lt;br /&gt;@@ -672,6 +672,7 @@&lt;br /&gt; #define PCI_DEVICE_ID_SI_961           0x0961&lt;br /&gt; #define PCI_DEVICE_ID_SI_962           0x0962&lt;br /&gt; #define PCI_DEVICE_ID_SI_963           0x0963&lt;br /&gt;+#define PCI_DEVICE_ID_SI_965           0x0965&lt;br /&gt; #define PCI_DEVICE_ID_SI_5107          0x5107&lt;br /&gt; #define PCI_DEVICE_ID_SI_5300          0x5300&lt;br /&gt; #define PCI_DEVICE_ID_SI_5511          0x5511&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Patch to the file [sis5513.c], at [/usr/src/redhat/SOURCES/linux-2.6-sis5513.patch]:&lt;br /&gt;&lt;br /&gt;--- a/drivers/ide/pci/sis5513.c 2005-12-26 08:59:29.000000000 +0100&lt;br /&gt;+++ b/drivers/ide/pci/sis5513.c 2005-12-26 09:02:44.000000000 +0100&lt;br /&gt;@@ -20,6 +20,7 @@&lt;br /&gt;  * ATA16/33 support from specs&lt;br /&gt;  * ATA133 support for SiS961/962 by L.C. Chang &lt;lcchang@sis.com.tw&gt;&lt;br /&gt;  * ATA133 961/962/963 fixes by Vojtech Pavlik &lt;vojtech@suse.cz&gt;&lt;br /&gt;+ * ATA133 inspired on http://lkml.org/lkml/2005/10/5/293&lt;br /&gt;  *&lt;br /&gt;  * Documentation:&lt;br /&gt;  *     SiS chipset documentation available under NDA to companies only&lt;br /&gt;@@ -74,7 +75,7 @@&lt;br /&gt; #define ATA_100a       0x04 // SiS730/SiS550 is ATA100 with ATA66 layout&lt;br /&gt; #define ATA_100                0x05&lt;br /&gt; #define ATA_133a       0x06 // SiS961b with 133 support&lt;br /&gt;-#define ATA_133                0x07 // SiS962/963&lt;br /&gt;+#define ATA_133                0x07 // SiS962/963/965&lt;br /&gt;&lt;br /&gt; static u8 chipset_family;&lt;br /&gt;&lt;br /&gt;@@ -87,6 +88,8 @@ static const struct {&lt;br /&gt;        u8 chipset_family;&lt;br /&gt;        u8 flags;&lt;br /&gt; } SiSHostChipInfo[] = {&lt;br /&gt;+       { "SiS965",     PCI_DEVICE_ID_SI_965,   ATA_133  },&lt;br /&gt;+&lt;br /&gt;        { "SiS745",     PCI_DEVICE_ID_SI_745,   ATA_100  },&lt;br /&gt;        { "SiS735",     PCI_DEVICE_ID_SI_735,   ATA_100  },&lt;br /&gt;        { "SiS733",     PCI_DEVICE_ID_SI_733,   ATA_100  },&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113560456318721535?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113560456318721535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113560456318721535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113560456318721535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113560456318721535'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/12/sis-ide-controller-5513-sis5513-with.html' title='SiS IDE Controller 5513 [sis5513] with Southbridge SiS 965 patch, try 3'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113468848811324593</id><published>2005-12-15T15:11:00.000-08:00</published><updated>2006-05-06T03:21:33.106-07:00</updated><title type='text'>New kernel 2.6.14-1.1653_FC4 fixes all</title><content type='html'>Ok the new kernel 2.6.14-1.1653_FC4 fixes all problems regarding my hardware: it has boot support to SiS182, module [sata_sis], and also does not hang the system with the network driver, [sis190], and actualy works.&lt;br /&gt;&lt;br /&gt;So there is no need, I hope, for any further kernel patch consearnig my hardware.&lt;br /&gt;&lt;br /&gt;Now I will have time to post about other topics that I find interesting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113468848811324593?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113468848811324593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113468848811324593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113468848811324593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113468848811324593'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/12/new-kernel-2614-11653fc4-fixes-all.html' title='New kernel 2.6.14-1.1653_FC4 fixes all'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113459864333996487</id><published>2005-12-14T14:17:00.000-08:00</published><updated>2005-12-14T14:17:24.463-08:00</updated><title type='text'>My patches to kernel 2.6.14-1.1644_FC4</title><content type='html'>My patches to kernel 2.6.14-1.1644_FC4&lt;br /&gt;&lt;br /&gt;That is a patch to allow:&lt;br /&gt;&lt;br /&gt;SiS SATA 0182 support at the startup of Fedora Core 4 (I do not have an IDE hard drive to boot my Linux)&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel the module [sata_sis] is not loaded at boot time.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Apply all patches that I published, and apply to that situation.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/12/sis-ethernet-0190-sis190-patch-try-2.html"&gt;sis190&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1644_FC4.src.rpm"&gt;2.6.14-1.1644_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Apply the above mentioned patches on the Remarks:&lt;br /&gt;&lt;br /&gt;3. Include the module [sata_sis] to the initial image:&lt;br /&gt;&lt;br /&gt;mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4.img 2.6.14-1.1644_FC4 # normal i686&lt;br /&gt;#mkinitrd -f --with=sata_sis --with=libata --with=scsi_mod /boot/initrd-2.6.14-1.1644_FC4smp.img 2.6.14-1.1644_FC4smp # i686 SMP&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113459864333996487?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113459864333996487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113459864333996487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113459864333996487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113459864333996487'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/12/my-patches-to-kernel-2614-11644fc4.html' title='My patches to kernel 2.6.14-1.1644_FC4'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113459809040557005</id><published>2005-12-14T14:05:00.000-08:00</published><updated>2005-12-15T02:09:52.346-08:00</updated><title type='text'>SiS Ethernet 0190 [sis190] patch, try 2</title><content type='html'>SiS Ethernet 0190 [sis190] patch, try 2&lt;br /&gt;&lt;br /&gt;Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/SRPMS/kernel-2.6.14-1.1644_FC4.src.rpm"&gt;2.6.14-1.1644_FC4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel the module for SiS Ethernet controller model 190/191 hang the system.&lt;br /&gt;&lt;br /&gt;Bugzilla:&lt;br /&gt;&lt;a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175807"&gt;bug 175807&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;0. You need to disable network and reboot, to avoid system hang:&lt;br /&gt;&lt;br /&gt;chkconfig --level 345 network off&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;br /&gt;2. Unpack the kernel:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/SPEC&lt;br /&gt;rpmbuild -bp --target=i686 kernel-2.6.spec&lt;br /&gt;&lt;br /&gt;2. Get the SiS driver for Linux &lt;br /&gt;To take the driver by yourself go to &lt;a href="http://www.sis.com/download/"&gt;SiS download center&lt;/a&gt; and chose:&lt;br /&gt;Network Driver -&gt; SiS190 Gigabit &amp; SiS191 LAN -&gt; Linux -&gt; GO&lt;br /&gt;Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."&lt;br /&gt;&lt;br /&gt;3. Extract the file [sis190.c] and put it on the right place:&lt;br /&gt;&lt;br /&gt;tar -vxzf sis190191_linux.tar.gz # file from SiS&lt;br /&gt;cp sis190_20041220/sis190.c /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/&lt;br /&gt;&lt;br /&gt;4. Prepare the kernel to compile the modules:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/&lt;br /&gt;cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686.config .config # for normal i686&lt;br /&gt;# cp /usr/src/redhat/SOURCES/kernel-2.6.14-i686-smp.config .config # for i686 SMP&lt;br /&gt;&lt;br /&gt;5. Compile the modules and copy override the old driver&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/&lt;br /&gt;make modules&lt;br /&gt;cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4/kernel/drivers/net/sis190.ko # for normal i686&lt;br /&gt;depmode -eaF /boot/System.map-2.6.14-1.1644_FC4 2.6.14-1.1644_FC4 # for normal i686&lt;br /&gt;#cp /usr/src/redhat/BUILD/kernel-2.6.14/linux-2.6.14/drivers/net/sis190.ko /lib/modules/2.6.14-1.1644_FC4smp/kernel/drivers/net/sis190.ko # for i686 SMP&lt;br /&gt;#depmode -eaF /boot/System.map-2.6.14-1.1644_FC4smp 2.6.14-1.1644_FC4smp # for i686 SMP&lt;br /&gt;&lt;br /&gt;6. Reenable the network and reboot&lt;br /&gt;&lt;br /&gt;chkconfig --level 345 network on&lt;br /&gt;shutdown -r now&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113459809040557005?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113459809040557005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113459809040557005' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113459809040557005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113459809040557005'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/12/sis-ethernet-0190-sis190-patch-try-2.html' title='SiS Ethernet 0190 [sis190] patch, try 2'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113120667151362250</id><published>2005-11-05T23:02:00.000-08:00</published><updated>2005-11-28T02:14:36.883-08:00</updated><title type='text'>My patches to kernel 2.6.12-1.1381_FC3</title><content type='html'>That is a patch to allow:&lt;br /&gt;&lt;br /&gt;SiS SATA 0182 support at the startup (I do not have an IDE hard drive to boot my Linux)&lt;br /&gt;SiS Ethernet 0190 module driver&lt;br /&gt;SiS 5513 IDE DMA support&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no support on [sata_sis] module to the model 182 and it is not loaded at boot time.&lt;br /&gt;There is no module to the SiS Ethernet controller model 190/191.&lt;br /&gt;And there is no support to DMA on the SiS IDE controller model 5513.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Apply all patches that I published, and apply to that situation, and modify the spec file to cope with the rpm kernel generation.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;You should read and apply the partial patches already published, as follows:&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/11/sis-sata-0182-satasis-patches-light.html"&gt;sata_sis&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/11/sis-ethernet-0190-sis190-patch-try-1.html"&gt;sis190&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gka-linux.blogspot.com/2005/11/sis-ide-controller-5513-sis5513-patch_05.html"&gt;sis5513&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1381_FC3.src.rpm"&gt;2.6.12-1.1381_FC3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Apply the above mentioned patches on the Remarks:&lt;br /&gt;&lt;br /&gt;3. Script to pre-change all [.config] files:&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;I prefer this script rather to create patches. I think it is more clear to understand what is going on here.&lt;br /&gt;Basically I instruct the kernel to:&lt;br /&gt;&lt;br /&gt;3.1. Add the SCSI support as a kernel internal instead of a loadable module:&lt;br /&gt;CONFIG_SCSI=y&lt;br /&gt;3.2. Add the SATA SCSI support for SiS as an internal:&lt;br /&gt;CONFIG_SCSI_SATA_SIS=y&lt;br /&gt;3.3. Add a NEW line to include the new driver, as a loadable module, for SiS Ethernet controller model 190/191 (that has no conterparter on this kernel).&lt;br /&gt;CONFIG_SIS190=m&lt;br /&gt;&lt;br /&gt;3.4. The script:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/make-config.sh ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/make-config.sh  &lt;&lt; __END__&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Please note that this script do NOT check if the [.config] was already patched&lt;br /&gt;#&lt;br /&gt;find /usr/src/redhat/SOURCES/ -name "*.config" -print | while read FILE&lt;br /&gt;do&lt;br /&gt;        mv \${FILE} \${FILE}.orig&lt;br /&gt;        cat \${FILE}.orig | sed -e "s/\(CONFIG_SCSI=\)./\1y/" -e "s/\(CONFIG_SCSI_SATA_SIS=\).*/\1y/" -e "s/\(CONFIG_SIS900=m\)/\1\nCONFIG_SIS190=m/" &gt; \${FILE}&lt;br /&gt;done&lt;br /&gt;__END__&lt;br /&gt;chmod 700 /usr/src/redhat/SOURCES/make-config.sh&lt;br /&gt;### /usr/src/redhat/SOURCES/make-config.sh ###&lt;br /&gt;&lt;br /&gt;Note: Note that this script do NOT check if the files were already patched.&lt;br /&gt;&lt;br /&gt;3.5. Executing the scritp, JUST ONCE:&lt;br /&gt;&lt;br /&gt;/usr/src/redhat/SOURCES/make-config.sh&lt;br /&gt;&lt;br /&gt;4. Patch the kernel spec file:&lt;br /&gt;&lt;br /&gt;4.1. Patch file:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SPECS/kernel-2.6.spec.patch &lt;&lt; __END__&lt;br /&gt;--- a/kernel-2.6.spec   2005-10-21 09:41:01.000000000 +0200&lt;br /&gt;+++ b/kernel-2.6.spec   2005-11-05 16:31:20.000000000 +0100&lt;br /&gt;@@ -19,7 +19,11 @@&lt;br /&gt; %define sublevel 12&lt;br /&gt; %define kversion 2.6.%{sublevel}&lt;br /&gt; %define rpmversion 2.6.%{sublevel}&lt;br /&gt;-%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+#&lt;br /&gt;+# I just do no like Fedora standard names for self-made kernels, so I call it just [sis]&lt;br /&gt;+#&lt;br /&gt;+#%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] &amp;&amp; echo || echo .`whoami`)&lt;br /&gt;+%define rhbsys sis&lt;br /&gt; %define release %(R="$Revision: 1.1381 $"; RR="${R##: }"; echo ${RR%%?})_FC3%{rhbsys}&lt;br /&gt; %define signmodules 0&lt;br /&gt; %define make_target bzImage&lt;br /&gt;@@ -162,6 +166,7 @@&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2&lt;br /&gt;+Source1: linux-2.6.12-sis190.tar.bz2&lt;br /&gt;&lt;br /&gt; Source10: COPYING.modules&lt;br /&gt; Source11: genkey&lt;br /&gt;@@ -201,6 +206,8 @@&lt;br /&gt; Patch301: linux-2.6.12-serial-of.patch&lt;br /&gt; Patch302: linux-2.6.10-ppc-headerabuse.patch&lt;br /&gt; Patch303: linux-2.6-windtunnel-printk.patch&lt;br /&gt;+Patch304: linux-2.6.12-sis190-Kconfig.patch&lt;br /&gt;+Patch305: linux-2.6.12-sis190-Makefile.patch&lt;br /&gt;&lt;br /&gt; # 400 - 499   ia64&lt;br /&gt; Patch400: linux-2.6.3-ia64-build.patch&lt;br /&gt;@@ -248,6 +255,8 @@&lt;br /&gt; Patch1060: linux-2.6.3-crash-driver.patch&lt;br /&gt; Patch1070: linux-2.6.0-sleepon.patch&lt;br /&gt;&lt;br /&gt;+Patch1080: linux-2.6.12-sis5513.patch&lt;br /&gt;+&lt;br /&gt; # SCSI bits.&lt;br /&gt; Patch1101: linux-2.6.9-scsi-advansys-enabler.patch&lt;br /&gt; Patch1102: linux-2.6.9-scsi-megaraid-legacy.patch&lt;br /&gt;@@ -255,6 +264,8 @@&lt;br /&gt; Patch1104: linux-2.6.12-scsicam-geom-fix.patch&lt;br /&gt; Patch1105: linux-2.6-scsi-sym2-alloc_lcb_tags-atomic.patch&lt;br /&gt; Patch1106: linux-2.6-scsi-aic-dma39bit.patch&lt;br /&gt;+Patch1107: linux-2.6.12-sata_sis182-light.patch&lt;br /&gt;+Patch1108: linux-2.6.12-sata_sis182.patch&lt;br /&gt;&lt;br /&gt; # NFS bits.&lt;br /&gt; Patch1200: linux-2.6.9-NFSD-non-null-getxattr.patch&lt;br /&gt;@@ -418,6 +429,10 @@&lt;br /&gt; rm -rf linux-%{kversion}&lt;br /&gt; cp -rl vanilla linux-%{kversion}&lt;br /&gt;&lt;br /&gt;+#&lt;br /&gt;+# Here I'm ashamed, I really do not known how to do that with more elegancy&lt;br /&gt;+#&lt;br /&gt;+tar -xjf %{SOURCE1}&lt;br /&gt; cd linux-%{kversion}&lt;br /&gt;&lt;br /&gt; #&lt;br /&gt;@@ -451,6 +466,9 @@&lt;br /&gt; %patch301 -p1&lt;br /&gt; %patch302 -p1&lt;br /&gt; %patch303 -p1&lt;br /&gt;+# Patch for sis190 NIC&lt;br /&gt;+%patch304 -p1&lt;br /&gt;+%patch305 -p1&lt;br /&gt;&lt;br /&gt; #&lt;br /&gt; # ia64&lt;br /&gt;@@ -554,6 +572,11 @@&lt;br /&gt; %patch1070 -p1&lt;br /&gt;&lt;br /&gt; #&lt;br /&gt;+# SiS 5513 DMA support&lt;br /&gt;+#&lt;br /&gt;+%patch1080 -p1&lt;br /&gt;+&lt;br /&gt;+#&lt;br /&gt; # SCSI Bits.&lt;br /&gt; #&lt;br /&gt; # Enable Advansys driver&lt;br /&gt;@@ -568,6 +591,11 @@&lt;br /&gt; %patch1105 -p1&lt;br /&gt; # Fix aic7xxx &gt;4GB&lt;br /&gt; %patch1106 -p1&lt;br /&gt;+# Fix sata_sis suport to sis182&lt;br /&gt;+# light version, just an ID tag added&lt;br /&gt;+%patch1107 -p1&lt;br /&gt;+# complete version from SiS, but does not boot&lt;br /&gt;+#%patch1108 -p1&lt;br /&gt;&lt;br /&gt; #&lt;br /&gt; # Various upstream NFS/NFSD fixes.&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SPECS/kernel-2.6.spec.patch ###&lt;br /&gt;&lt;br /&gt;4.2. Applying the patch:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/SPECS/&lt;br /&gt;patch -p1 &lt; kernel-2.6.spec.patch&lt;br /&gt;&lt;br /&gt;5. Making the RPMs from spec:&lt;br /&gt;&lt;br /&gt;cd /usr/src/redhat/SPECS/&lt;br /&gt;&lt;br /&gt;5.1. Clean previous build (do NOT forget this):&lt;br /&gt;&lt;br /&gt;rpmbuild --clean kernel-2.6.spec ### clean all&lt;br /&gt;&lt;br /&gt;5.2. Build all for your platform, it may be one of them so please take the one that applies to you:&lt;br /&gt;&lt;br /&gt;# rpmbuild -ba --target=i586 kernel-2.6.spec ### to install from a CD&lt;br /&gt;# rpmbuild -ba --target=i686 kernel-2.6.spec ### I use this one&lt;br /&gt;# rpmbuild -ba --target=x86_64 kernel-2.6.spec ### AMD64&lt;br /&gt;&lt;br /&gt;Note: Of course there are more options, but for a regular user these ones above must cover most of the cases.&lt;br /&gt;&lt;br /&gt;5.3. Take time to see a film, read a book or something else, because it will take long (from 2 to 3 hours).&lt;br /&gt;&lt;br /&gt;6. Install the new kernel, that will be written at: [/usr/src/redhat/RPMS/], in my case:&lt;br /&gt;&lt;br /&gt;rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-2.6.12-1.1381_FC3sis.i686.rpm&lt;br /&gt;rpm -Uvhi /usr/src/redhat/RPMS/i686/kernel-smp-2.6.12-1.1381_FC3sis.i686.rpm&lt;br /&gt;&lt;br /&gt;7. Test it and adjust the GRUB configuration to boot with the new kernel (if it wasn't already done), it is at: [/etc/grub.conf]&lt;br /&gt;&lt;br /&gt;8. Say thanks if it works or what goes wrong :-).&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113120667151362250?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113120667151362250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113120667151362250' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120667151362250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120667151362250'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/11/my-patches-to-kernel-2612-11381fc3.html' title='My patches to kernel 2.6.12-1.1381_FC3'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113123132111582696</id><published>2005-11-05T14:54:00.000-08:00</published><updated>2005-11-05T14:55:21.116-08:00</updated><title type='text'>SiS IDE Controller 5513 [sis5513] patch, try 2</title><content type='html'>Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1381_FC3.src.rpm"&gt;2.6.12-1.1381_FC3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513.&lt;br /&gt;Go figure why on the file [sis5513] there is no string to address DMA setup to the "SiS5513" chipset, maybe sooner support and no rework after that.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Modify the module source to recognise the controller hardware.&lt;br /&gt;In this case the south bridge controller: SiS965.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;RPM kernel spec file part will be covered on the kernel specific part.&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies:&lt;br /&gt;&lt;br /&gt;2. Patch to the file [sis5513.c]:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/ide/pci/sis5513.c 2005-11-05 19:26:57.000000000 +0100&lt;br /&gt;+++ b/drivers/ide/pci/sis5513.c 2005-11-05 19:31:10.000000000 +0100&lt;br /&gt;@@ -87,6 +87,8 @@&lt;br /&gt;        u8 chipset_family;&lt;br /&gt;        u8 flags;&lt;br /&gt; } SiSHostChipInfo[] = {&lt;br /&gt;+       { "SiS695",     PCI_DEVICE_ID_SI_965,   ATA_133  },&lt;br /&gt;+&lt;br /&gt;        { "SiS745",     PCI_DEVICE_ID_SI_745,   ATA_100  },&lt;br /&gt;        { "SiS735",     PCI_DEVICE_ID_SI_735,   ATA_100  },&lt;br /&gt;        { "SiS733",     PCI_DEVICE_ID_SI_733,   ATA_100  },&lt;br /&gt;--- a/include/linux/pci_ids.h   2005-11-05 19:38:13.000000000 +0100&lt;br /&gt;+++ b/include/linux/pci_ids.h   2005-11-05 19:39:18.000000000 +0100&lt;br /&gt;@@ -661,6 +661,7 @@&lt;br /&gt; #define PCI_DEVICE_ID_SI_961           0x0961&lt;br /&gt; #define PCI_DEVICE_ID_SI_962           0x0962&lt;br /&gt; #define PCI_DEVICE_ID_SI_963           0x0963&lt;br /&gt;+#define PCI_DEVICE_ID_SI_965           0x0965&lt;br /&gt; #define PCI_DEVICE_ID_SI_5107          0x5107&lt;br /&gt; #define PCI_DEVICE_ID_SI_5300          0x5300&lt;br /&gt; #define PCI_DEVICE_ID_SI_5511          0x5511&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113123132111582696?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113123132111582696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113123132111582696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113123132111582696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113123132111582696'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/11/sis-ide-controller-5513-sis5513-patch_05.html' title='SiS IDE Controller 5513 [sis5513] patch, try 2'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113120232362117032</id><published>2005-11-05T06:51:00.000-08:00</published><updated>2005-11-05T06:52:07.230-08:00</updated><title type='text'>SiS IDE Controller 5513 [sis5513] patch, try 1</title><content type='html'>Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1381_FC3.src.rpm"&gt;2.6.12-1.1381_FC3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no support to DMA on the SiS IDE controller model 5513.&lt;br /&gt;Go figure why on the file [sis5513] there is no string to address DMA setup to the "SiS5513" chipset, maybe sooner support and no rework after that.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Modify the module source to recognise the controller hardware.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;RPM kernel spec file part will be covered on the kernel specific part.&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies :&lt;br /&gt;&lt;br /&gt;2. Patch to the file [sis5513.c]:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/ide/pci/sis5513.c 2005-11-05 12:29:17.000000000 +0100&lt;br /&gt;+++ b/drivers/ide/pci/sis5513.c 2005-11-05 12:29:37.000000000 +0100&lt;br /&gt;@@ -112,6 +112,7 @@&lt;br /&gt;        { "SiS5596",    PCI_DEVICE_ID_SI_5596,  ATA_16   },&lt;br /&gt;        { "SiS5571",    PCI_DEVICE_ID_SI_5571,  ATA_16   },&lt;br /&gt;        { "SiS551x",    PCI_DEVICE_ID_SI_5511,  ATA_16   },&lt;br /&gt;+       { "SiS5513",    PCI_DEVICE_ID_SI_5511,  ATA_133  },&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt; /* Cycle time bits and values vary across chip dma capabilities&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis5513.patch ###&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113120232362117032?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113120232362117032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113120232362117032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120232362117032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120232362117032'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/11/sis-ide-controller-5513-sis5513-patch.html' title='SiS IDE Controller 5513 [sis5513] patch, try 1'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113120178689186489</id><published>2005-11-05T06:39:00.000-08:00</published><updated>2005-11-28T02:10:21.946-08:00</updated><title type='text'>SiS Ethernet 0190 [sis190] patch, try 1</title><content type='html'>Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1378_FC3.src.rpm"&gt;2.6.12-1.1378_FC3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1381_FC3.src.rpm"&gt;2.6.12-1.1381_FC3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no module to the SiS Ethernet controller model 190/191.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Get the driver from SiS and patch the kernel to recognise it and compile it.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;RPM kernel spec file part will be covered on the kernel specific part.&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies :&lt;br /&gt;&lt;br /&gt;2. Get the SiS driver for Linux &lt;br /&gt;To take the driver by yourself go to &lt;a href="http://www.sis.com/download/"&gt;SiS download center&lt;/a&gt; and chose:&lt;br /&gt;Network Driver -&gt; SiS190 Gigabit &amp; SiS191 LAN -&gt; Linux -&gt; GO&lt;br /&gt;Than proceed to the download of "SiS190 / SiS191 Gigabit LAN / LAN driver for Linux kernal 2.6.9 or later."&lt;br /&gt;&lt;br /&gt;3. Extract the file [sis190.c] and repack it like this:&lt;br /&gt;&lt;br /&gt;tar -vxzf sis190191_linux.tar.gz # file from SiS&lt;br /&gt;mkdir -p linux-2.6.12/drivers/net/&lt;br /&gt;cp sis190_20041220/sis190.c linux-2.6.12/drivers/net/&lt;br /&gt;tar -vcjf /usr/src/redhat/SOURCES/linux-2.6.12-sis190.tar.bz2 linux-2.6.12/drivers/net/sis190.c&lt;br /&gt;&lt;br /&gt;4. Patch to the [.config] file, so the module will be compiled:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-config.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sis190-config.patch &lt;&lt; __END__&lt;br /&gt;--- a/.config   2005-09-29 10:37:15.000000000 +0200&lt;br /&gt;+++ b/.config   2005-09-29 10:42:06.000000000 +0200&lt;br /&gt;@@ -1255,6 +1255,7 @@ CONFIG_8139TOO_PIO=y&lt;br /&gt; CONFIG_8139TOO_8129=y&lt;br /&gt; # CONFIG_8139_OLD_RX_RESET is not set&lt;br /&gt; CONFIG_SIS900=m&lt;br /&gt;+CONFIG_SIS190=m&lt;br /&gt; CONFIG_EPIC100=m&lt;br /&gt; CONFIG_SUNDANCE=m&lt;br /&gt; # CONFIG_SUNDANCE_MMIO is not set&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-config.patch ###&lt;br /&gt;&lt;br /&gt;5. Patch to Kernel network [Kconfig] file:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Kconfig.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Kconfig.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/net/Kconfig       2005-06-17 21:48:29.000000000 +0200&lt;br /&gt;+++ b/drivers/net/Kconfig       2005-09-29 10:41:13.000000000 +0200&lt;br /&gt;@@ -1571,6 +1571,16 @@ config SIS900&lt;br /&gt;          To compile this driver as a module, choose M here: the module&lt;br /&gt;          will be called sis900.  This is recommended.&lt;br /&gt;&lt;br /&gt;+config SIS190&lt;br /&gt;+        tristate "SiS 191/190 PCI Gigabit/Fast Ethernet Adapter support"&lt;br /&gt;+        depends on NET_PCI &amp;&amp; PCI&lt;br /&gt;+        select CRC32&lt;br /&gt;+        ---help---&lt;br /&gt;+          Say Y here if you have a SiS 191/190 PCI Gigabit/Fast Ethernet adapter.&lt;br /&gt;+&lt;br /&gt;+          To compile this driver as a module, choose M here: the module&lt;br /&gt;+          will be called sis190.  This is recommended.&lt;br /&gt;+&lt;br /&gt; config EPIC100&lt;br /&gt;        tristate "SMC EtherPower II"&lt;br /&gt;        depends on NET_PCI &amp;&amp; PCI&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Kconfig.patch ###&lt;br /&gt;&lt;br /&gt;6. Patch to network makefile:&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Makefile.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Makefile.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/net/Makefile      2005-09-29 10:37:07.000000000 +0200&lt;br /&gt;+++ b/drivers/net/Makefile      2005-09-29 10:40:51.000000000 +0200&lt;br /&gt;@@ -43,6 +43,7 @@ obj-$(CONFIG_E100) += e100.o&lt;br /&gt; obj-$(CONFIG_TLAN) += tlan.o&lt;br /&gt; obj-$(CONFIG_EPIC100) += epic100.o&lt;br /&gt; obj-$(CONFIG_SIS900) += sis900.o&lt;br /&gt;+obj-$(CONFIG_SIS900) += sis190.o&lt;br /&gt; obj-$(CONFIG_YELLOWFIN) += yellowfin.o&lt;br /&gt; obj-$(CONFIG_ACENIC) += acenic.o&lt;br /&gt; obj-$(CONFIG_ISERIES_VETH) += iseries_veth.o&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sis190-Makefile.patch ###&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please always address to my &lt;a href="http://gka-linux.blogspot.com/2005/11/my-computer-20051105.html"&gt;hardware&lt;/a&gt;, &lt;a href="http://gka-linux.blogspot.com/2005/11/my-os-20051105.html"&gt;os&lt;/a&gt; and &lt;a href="http://gka-linux.blogspot.com/2005/11/baby-steps-on-kernel-patching.html"&gt;kernel patching general procedures&lt;/a&gt; before posting a question.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/18671665-113120178689186489?l=gka-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gka-linux.blogspot.com/feeds/113120178689186489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=18671665&amp;postID=113120178689186489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120178689186489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/18671665/posts/default/113120178689186489'/><link rel='alternate' type='text/html' href='http://gka-linux.blogspot.com/2005/11/sis-ethernet-0190-sis190-patch-try-1.html' title='SiS Ethernet 0190 [sis190] patch, try 1'/><author><name>Gustavo</name><uri>http://www.blogger.com/profile/06522788373446820701</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://1.bp.blogspot.com/_D1tXstLYwnc/THJF7liSOEI/AAAAAAAADPk/W3oDpvYy218/S220/chimas-7-1x1.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-18671665.post-113119888186286630</id><published>2005-11-05T04:36:00.000-08:00</published><updated>2005-11-05T06:33:44.110-08:00</updated><title type='text'>SiS SATA 0182 [sata_sis] patches, Light and Complete, try 1</title><content type='html'>Supported (tested) kernels:&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/3/SRPMS/kernel-2.6.9-1.667.src.rpm"&gt;2.6.9-1.667&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1378_FC3.src.rpm"&gt;2.6.12-1.1378_FC3&lt;/a&gt;&lt;br /&gt;&lt;a href="http://download.fedora.redhat.com/pub/fedora/linux/core/updates/3/SRPMS/kernel-2.6.12-1.1381_FC3.src.rpm"&gt;2.6.12-1.1381_FC3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Problem:&lt;br /&gt;On original Fedora kernel there is no support on [sata_sis] module to the model 182 and it is not loaded at boot time.&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Modify the module source to recognise the controller hardware.&lt;br /&gt;&lt;br /&gt;Remarks:&lt;br /&gt;RPM kernel spec file part will be covered on the kernel specific part.&lt;br /&gt;&lt;br /&gt;1. Get and install the kernel source that applies :&lt;br /&gt;&lt;br /&gt;2. Add the following patches to [/usr/src/redhat/SOURCES/]:&lt;br /&gt;&lt;br /&gt;OBS.: If you execute the "cat" commands it will be create on the right place. Do not be so untruthful :-).&lt;br /&gt;&lt;br /&gt;2.1. Light version (that works):&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Just add the ID tag to the module corresponding struct.&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sata_sis182-light.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sata_sis182-light.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/scsi/sata_sis.c   2005-06-17 21:48:29.000000000 +0200&lt;br /&gt;+++ b/drivers/scsi/sata_sis.c   2005-09-29 19:05:45.012291288 +0200&lt;br /&gt;@@ -62,6 +62,7 @@ static void sis_scr_write (struct ata_po&lt;br /&gt; static struct pci_device_id sis_pci_tbl[] = {&lt;br /&gt;        { PCI_VENDOR_ID_SI, 0x180, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_180 },&lt;br /&gt;        { PCI_VENDOR_ID_SI, 0x181, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_180 },&lt;br /&gt;+       { PCI_VENDOR_ID_SI, 0x182, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_180 },&lt;br /&gt;        { }     /* terminate list */&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;__END__&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sata_sis182-light.patch ###&lt;br /&gt;&lt;br /&gt;2.2. Complete version (does not work and I do know why):&lt;br /&gt;&lt;br /&gt;Approach:&lt;br /&gt;Use the patch given by SiS to cope with the problem.&lt;br /&gt;&lt;br /&gt;OBS.:&lt;br /&gt;To take the driver by yourself go to &lt;a href="http://www.sis.com/download/"&gt;SiS download center&lt;/a&gt; and chose:&lt;br /&gt;Chipset Software -&gt; SATA &amp; RAID -&gt; Linux -&gt; GO&lt;br /&gt;Than proceed to the download of "SiS SATA Driver for Linux (kernel2.6.10)"&lt;br /&gt;&lt;br /&gt;### /usr/src/redhat/SOURCES/linux-2.6.12-sata_sis182.patch ###&lt;br /&gt;cat &gt; /usr/src/redhat/SOURCES/linux-2.6.12-sata_sis182.patch &lt;&lt; __END__&lt;br /&gt;--- a/drivers/scsi/sata_sis.c   2005-06-17 21:48:29.000000000 +0200&lt;br /&gt;+++ b/drivers/scsi/sata_sis.c   2005-09-29 11:14:08.000000000 +0200&lt;br /&gt;@@ -39,15 +39,19 @@&lt;br /&gt;&lt;br /&gt; #define DRV_NAME       "sata_sis"&lt;br /&gt; #define DRV_VERSION    "0.5"&lt;br /&gt;-&lt;br /&gt;+#define ATA_DEBUG&lt;br /&gt; enum {&lt;br /&gt;        sis_180                 = 0,&lt;br /&gt;+       sis_182                 = 1,&lt;br /&gt;        SIS_SCR_PCI_BAR         = 5,&lt;br /&gt;-&lt;br /&gt;+       SIS_ALLOC_PRIV_SIZE     = 0x10,&lt;br /&gt;        /* PCI configuration registers */&lt;br /&gt;        SIS_GENCTL              = 0x54, /* IDE General Control register */&lt;br /&gt;        SIS_SCR_BASE            = 0xc0, /* sata0 phy SCR registers */&lt;br /&gt;        SIS_SATA1_OFS           = 0x10, /* offset from sata0-&gt;sata1 phy regs */&lt;br /&gt;+       SIS_PMR                 = 0x90, /* port mapping register */&lt;br /&gt;+       SIS_CHANNEL_CTRL        = 0x50, /* primary channel control register */&lt;br /&gt;+       ATA_DEV_RESET           = 0x08, /* Device Reset command */&lt;br /&gt;&lt;br /&gt;        /* random bits */&lt;br /&gt;        SIS_FLAG_CFGSCR         = (1 &lt;&lt; 30), /* host flag: SCRs via PCI cfg */&lt;br /&gt;@@ -58,10 +62,17 @@ enum {&lt;br /&gt; static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent);&lt;br /&gt; static u32 sis_scr_read (struct ata_port *ap, unsigned int sc_reg);&lt;br /&gt; static void sis_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val);&lt;br /&gt;+static void sis_port_reset(struct ata_port *ap);&lt;br /&gt;+static void sis_set_piomode (struct ata_port *ap, struct ata_device *dev);&lt;br /&gt;+static void sis_set_dmamode (struct ata_port *ap, struct ata_device *dev);&lt;br /&gt;+static int sis_port_start(struct ata_port *ap);&lt;br /&gt;+static void sis_port_stop(struct ata_port *ap);&lt;br /&gt;+static void sis_qc_prep(struct ata_queued_cmd *qc);&lt;br /&gt;&lt;br /&gt; static struct pci_device_id sis_pci_tbl[] = {&lt;br /&gt;        { PCI_VENDOR_ID_SI, 0x180, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_180 },&lt;br /&gt;        { PCI_VENDOR_ID_SI, 0x181, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_180 },&lt;br /&gt;+       { PCI_VENDOR_ID_SI, 0x182, PCI_ANY_ID, PCI_ANY_ID, 0, 0, sis_182 },&lt;br /&gt;        { }     /* terminate list */&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;@@ -90,102 +101,525 @@ static Scsi_Host_Template sis_sht = {&lt;br /&gt;        .dma_boundary           = ATA_DMA_BOUNDARY,&lt;br /&gt;        .slave_configure        = ata_scsi_slave_config,&lt;br /&gt;        .bios_param             = ata_std_bios_param,&lt;br /&gt;-       .ordered_flush          = 1,&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt; static struct ata_port_operations sis_ops = {&lt;br /&gt;        .port_disable           = ata_port_disable,&lt;br /&gt;+       .set_piomode            = sis_set_piomode,&lt;br /&gt;+       .set_dmamode            = sis_set_dmamode,&lt;br /&gt;        .tf_load                = ata_tf_load,&lt;br /&gt;        .tf_read                = ata_tf_read,&lt;br /&gt;        .check_status           = ata_check_status,&lt;br /&gt;        .exec_command           = ata_exec_command,&lt;br /&gt;        .dev_select             = ata_std_dev_select,&lt;br /&gt;-       .phy_reset              = sata_phy_reset,&lt;br /&gt;-       .bmdma_setup            = ata_bmdma_setup,&lt;br /&gt;+       .phy_reset              = sis_port_reset,&lt;br /&gt;+       .bmdma_setup            = ata_bmdma_setup,&lt;br /&gt;        .bmdma_start            = ata_bmdma_start,&lt;br /&gt;-       .bmdma_stop             = ata_bmdma_stop,&lt;br /&gt;-       .bmdma_status           = ata_bmdma_status,&lt;br /&gt;-       .qc_prep                = ata_qc_prep,&lt;br /&gt;+       .qc_prep                = sis_qc_prep,&lt;br /&gt;        .qc_issue               = ata_qc_issue_prot,&lt;br /&gt;        .eng_timeout            = ata_eng_timeout,&lt;br /&gt;        .irq_handler            = ata_interrupt,&lt;br /&gt;        .irq_clear              = ata_bmdma_irq_clear,&lt;br /&gt;        .scr_read               = sis_scr_read,&lt;br /&gt;        .scr_write              = sis_scr_write,&lt;br /&gt;-       .port_start             = ata_port_start,&lt;br /&gt;-       .port_stop              = ata_port_stop,&lt;br /&gt;-       .host_stop              = ata_host_stop,&lt;br /&gt;+       .port_start             = sis_port_start,&lt;br /&gt;+       .port_stop              = sis_port_stop,&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt; static struct ata_port_info sis_port_info = {&lt;br /&gt;        .sht            = &amp;sis_sht,&lt;br /&gt;-       .host_flags     = ATA_FLAG_SATA | ATA_FLAG_SATA_RESET |&lt;br /&gt;-                         ATA_FLAG_NO_LEGACY,&lt;br /&gt;+       .host_flags     = ATA_FLAG_SATA | ATA_FLAG_SLAVE_POSS |&lt;br /&gt;+                         ATA_FLAG_NO_LEGACY,&lt;br /&gt;        .pio_mask       = 0x1f,&lt;br /&gt;        .mwdma_mask     = 0x7,&lt;br /&gt;        .udma_mask      = 0x7f,&lt;br /&gt;        .port_ops       = &amp;sis_ops,&lt;br /&gt; };&lt;br /&gt;&lt;br /&gt;+struct sis_port_priv {&lt;br /&gt;+       u32 addr;&lt;br /&gt;+       u32 pad_phy_addr;&lt;br /&gt;+};&lt;br /&gt;&lt;br /&gt; MODULE_AUTHOR("Uwe Koziolek");&lt;br /&gt; MODULE_DESCRIPTION("low-level driver for Silicon Integratad Systems SATA controller");&lt;br /&gt; MODULE_LICENSE("GPL");&lt;br /&gt; MODULE_DEVICE_TABLE(pci, sis_pci_tbl);&lt;br /&gt;-MODULE_VERSION(DRV_VERSION);&lt;br /&gt;+MODULE_VERSION();&lt;br /&gt;+&lt;br /&gt;&lt;br /&gt;-static unsigned int get_scr_cfg_addr(unsigned int port_no, unsigned int sc_reg)&lt;br /&gt;+void sis_qc_prep(struct ata_queued_cmd *qc)&lt;br /&gt; {&lt;br /&gt;-       unsigned int addr = SIS_SCR_BASE + (4 * sc_reg);&lt;br /&gt;+       struct scatterlist *sg = qc-&gt;sg;&lt;br /&gt;+       struct ata_port *ap = qc-&gt;ap;&lt;br /&gt;+       unsigned int idx, nelem;&lt;br /&gt;+       struct sis_port_priv * sis_priv;&lt;br /&gt;+&lt;br /&gt;+       if (!(qc-&gt;flags &amp; ATA_QCFLAG_DMAMAP))&lt;br /&gt;+               return;&lt;br /&gt;+&lt;br /&gt;+       assert(sg != NULL);&lt;br /&gt;+       assert(qc-&gt;n_elem &gt; 0);&lt;br /&gt;&lt;br /&gt;-       if (port_no)&lt;br /&gt;-               addr += SIS_SATA1_OFS;&lt;br /&gt;-       return addr;&lt;br /&gt;+       idx = 0;&lt;br /&gt;+       for (nelem = qc-&gt;n_elem; nelem; nelem--,sg++) {&lt;br /&gt;+               u32 addr, offset;&lt;br /&gt;+               u32 sg_len, len;&lt;br /&gt;+&lt;br /&gt;+               /* determine if physical DMA addr spans 64K boundary.&lt;br /&gt;+                * Note h/w doesn't support 64-bit, so we unconditionally&lt;br /&gt;+                * truncate dma_addr_t to u32.&lt;br /&gt;+                */&lt;br /&gt;+               addr = (u32) sg_dma_address(sg);&lt;br /&gt;+               sg_len = sg_dma_len(sg);&lt;br /&gt;+&lt;br /&gt;+               while (sg_len) {&lt;br /&gt;+                       offset = addr &amp; 0xffff;&lt;br /&gt;+                       len = sg_len;&lt;br /&gt;+                       if ((offset + sg_len) &gt; 0x10000)&lt;br /&gt;+                               len = 0x10000 - offset;&lt;br /&gt;+&lt;br /&gt;+                       ap-&gt;prd[idx].addr = cpu_to_le32(addr);&lt;br /&gt;+                       ap-&gt;prd[idx].flags_len = cpu_to_le32(len &amp; 0xffff);&lt;br /&gt;+                       VPRINTK("PRD[%u] = (0x%X, 0x%X)\n", idx, addr, len);&lt;br /&gt;+&lt;br /&gt;+                       idx++;&lt;br /&gt;+                       sg_len -= len;&lt;br /&gt;+                       addr += len;&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       if (idx){&lt;br /&gt;+               /**&lt;br /&gt;+                       SATA transcation is DWORD unit, need to pad WORD for ODD-WORD request&lt;br /&gt;+                       for SiS controller&lt;br /&gt;+               */&lt;br /&gt;+               if ((ap-&gt;prd[idx - 1].flags_len %4) != 0)&lt;br /&gt;+               {&lt;br /&gt;+                       sis_priv = (struct sis_port_priv *)ap-&gt;private_data;&lt;br /&gt;+                       DPRINTK ("PRD[%u]_ADDR = 0x%X\n", idx-1, ap-&gt;prd[idx-1].addr);&lt;br /&gt;+                       DPRINTK ("PRD[%u]_LEN  = 0x%X\n", idx-1, ap-&gt;prd[idx-1].flags_len);&lt;br /&gt;+                       ap-&gt;prd[idx].addr = cpu_to_le32(sis_priv-&gt;pad_phy_addr);&lt;br /&gt;+                       ap-&gt;prd[idx].flags_len = 2|cpu_to_le32(ATA_PRD_EOT);&lt;br /&gt;+                       DPRINTK ("PRD[%u]_ADDR = 0x%X\n", idx, ap-&gt;prd[idx].addr);&lt;br /&gt;+                       DPRINTK ("PRD[%u]_LEN  = 0x%X\n", idx, ap-&gt;prd[idx].flags_len);&lt;br /&gt;+               }&lt;br /&gt;+               else {&lt;br /&gt;+                       ap-&gt;prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT);&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;-static u32 sis_scr_cfg_read (struct ata_port *ap, unsigned int sc_reg)&lt;br /&gt;+int sis_port_start(struct ata_port *ap)&lt;br /&gt; {&lt;br /&gt;-       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;-       unsigned int cfg_addr = get_scr_cfg_addr(ap-&gt;port_no, sc_reg);&lt;br /&gt;-       u32 val;&lt;br /&gt;+       struct device *dev = ap-&gt;host_set-&gt;dev;&lt;br /&gt;+       u8 * buf;&lt;br /&gt;+       struct sis_port_priv * sis_priv;&lt;br /&gt;+&lt;br /&gt;+       buf = kmalloc(SIS_ALLOC_PRIV_SIZE, GFP_KERNEL);&lt;br /&gt;+       if (!buf) {&lt;br /&gt;+               return -ENOMEM;&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       sis_priv = (struct sis_port_priv *)buf;&lt;br /&gt;+       ap-&gt;private_data = sis_priv;&lt;br /&gt;+       // record the phy_addr of the padding buffer, offset by 4 from requested priv_data, for later use.&lt;br /&gt;+       sis_priv-&gt;pad_phy_addr = dma_map_single(dev, buf+sizeof(u32), sizeof(u16), DMA_BIDIRECTIONAL);&lt;br /&gt;+       ap-&gt;prd = dma_alloc_coherent(dev, ATA_PRD_TBL_SZ, &amp;ap-&gt;prd_dma, GFP_KERNEL);&lt;br /&gt;+&lt;br /&gt;+       if (!ap-&gt;prd){&lt;br /&gt;+               kfree(buf);&lt;br /&gt;+               return -ENOMEM;&lt;br /&gt;+       }&lt;br /&gt;+       return 0;&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+static void sis_port_stop(struct ata_port *ap)&lt;br /&gt;+{&lt;br /&gt;+       struct device *dev = ap-&gt;host_set-&gt;dev;&lt;br /&gt;+       struct sis_port_priv * sis_priv = (struct sis_port_priv *)ap-&gt;private_data;&lt;br /&gt;&lt;br /&gt;-       if (sc_reg == SCR_ERROR) /* doesn't exist in PCI cfg space */&lt;br /&gt;-               return 0xffffffff;&lt;br /&gt;-       pci_read_config_dword(pdev, cfg_addr, &amp;val);&lt;br /&gt;-       return val;&lt;br /&gt;+       dma_free_coherent(dev, ATA_PRD_TBL_SZ, ap-&gt;prd, ap-&gt;prd_dma);&lt;br /&gt;+       // umap the padding buffer.&lt;br /&gt;+       dma_unmap_single(dev, sis_priv-&gt;pad_phy_addr, sizeof(u16), DMA_BIDIRECTIONAL);&lt;br /&gt;+       kfree(ap-&gt;private_data);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;-static void sis_scr_cfg_write (struct ata_port *ap, unsigned int scr, u32 val)&lt;br /&gt;+&lt;br /&gt;+static void sis_set_piomode (struct ata_port *ap, struct ata_device *dev)&lt;br /&gt; {&lt;br /&gt;        struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;-       unsigned int cfg_addr = get_scr_cfg_addr(ap-&gt;port_no, scr);&lt;br /&gt;+       static const&lt;br /&gt;+       u8 timings[][3] = { { 9, 38, 40 },&lt;br /&gt;+                           { 6, 38, 12 },&lt;br /&gt;+                           { 3, 38,  4 },&lt;br /&gt;+                           { 3, 10, 12 },&lt;br /&gt;+                           { 3,  9,  5 } };&lt;br /&gt;+       u32     val;&lt;br /&gt;+       u8      reg = (dev-&gt;devno)?0x44:0x40;&lt;br /&gt;+&lt;br /&gt;+       if (pdev-&gt;device == 0x182)&lt;br /&gt;+               return;&lt;br /&gt;+       if (ap-&gt;port_no != 0)&lt;br /&gt;+               return;&lt;br /&gt;+&lt;br /&gt;+       pci_read_config_dword(pdev, reg, &amp;val);&lt;br /&gt;+       val = (val &amp; ~0xf000)     | (u32)timings[dev-&gt;pio_mode-8][0]&lt;&lt;12;&lt;br /&gt;+       val = (val &amp; ~0x3f0000)   | (u32)timings[dev-&gt;pio_mode-8][1]&lt;&lt;16;&lt;br /&gt;+       val = (val &amp; ~0x3f000000) | (u32)timings[dev-&gt;pio_mode-8][2]&lt;&lt;24;&lt;br /&gt;+       pci_write_config_dword(pdev, reg, val);&lt;br /&gt;&lt;br /&gt;-       if (scr == SCR_ERROR) /* doesn't exist in PCI cfg space */&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+/*&lt;br /&gt;+       Only 180/181 device need to set controller timing.&lt;br /&gt;+*/&lt;br /&gt;+static void sis_set_dmamode (struct ata_port *ap, struct ata_device *dev)&lt;br /&gt;+{&lt;br /&gt;+       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;+       static const&lt;br /&gt;+       u8 timings[][2] = { { 15, 9 },&lt;br /&gt;+                                       { 10, 6 },&lt;br /&gt;+                                       {  7, 4 },&lt;br /&gt;+                                       {  5, 2 },&lt;br /&gt;+                                       {  3, 2 },&lt;br /&gt;+                                       {  2, 2 },&lt;br /&gt;+                                       {  1, 2 } };&lt;br /&gt;+       u32     val;&lt;br /&gt;+       u8      reg = (dev-&gt;devno)?0x44:0x40;&lt;br /&gt;+&lt;br /&gt;+       if (pdev-&gt;device == 0x182)&lt;br /&gt;+               return;&lt;br /&gt;+       if (ap-&gt;port_no != 0)&lt;br /&gt;                return;&lt;br /&gt;-       pci_write_config_dword(pdev, cfg_addr, val);&lt;br /&gt;+&lt;br /&gt;+       pci_read_config_dword(pdev, reg, &amp;val);&lt;br /&gt;+       val = (val &amp; ~0xf0) | (u32)timings[dev-&gt;dma_mode&amp;0xf][0]&lt;&lt;4;&lt;br /&gt;+       val = (val &amp; ~0xf00) | (u32)timings[dev-&gt;dma_mode&amp;0xf][1]&lt;&lt;8;&lt;br /&gt;+       pci_write_config_dword(pdev, reg, val);&lt;br /&gt;+&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+&lt;br /&gt;+static u32 sis_scr_cfg_read (struct ata_port *ap, unsigned int sc_reg)&lt;br /&gt;+{&lt;br /&gt;+       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;+       unsigned int cfg_addr;&lt;br /&gt;+       u8  tmp;&lt;br /&gt;+       u32 val, val2;&lt;br /&gt;+&lt;br /&gt;+       // 180 / 181&lt;br /&gt;+       if (pdev-&gt;device != 0x182) {&lt;br /&gt;+               pci_read_config_byte(pdev, SIS_PMR, &amp;tmp);&lt;br /&gt;+               // no pata&lt;br /&gt;+               if ((tmp &amp; 0x30)== 0) {&lt;br /&gt;+                       if (ap-&gt;port_no == 0)&lt;br /&gt;+                               cfg_addr = 0xc0;&lt;br /&gt;+                       else&lt;br /&gt;+                               cfg_addr = 0xd0;&lt;br /&gt;+                       pci_read_config_dword(pdev, cfg_addr+sc_reg*4, &amp;val);&lt;br /&gt;+                       return val;&lt;br /&gt;+               }&lt;br /&gt;+               else&lt;br /&gt;+                       cfg_addr = 0xc0;&lt;br /&gt;+       }&lt;br /&gt;+       else {&lt;br /&gt;+               if (ap-&gt;port_no == 0)&lt;br /&gt;+                       cfg_addr = 0xc0;&lt;br /&gt;+               else&lt;br /&gt;+                       cfg_addr = 0xe0;&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       pci_read_config_dword(pdev, cfg_addr+sc_reg*4, &amp;val);&lt;br /&gt;+       pci_read_config_dword(pdev, cfg_addr+sc_reg*4+0x10, &amp;val2);&lt;br /&gt;+       if (val == 0 &amp;&amp; val2 == 0)&lt;br /&gt;+               return val;&lt;br /&gt;+       else&lt;br /&gt;+               return val|val2;&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+static void sis_scr_cfg_write (struct ata_port *ap, unsigned int scr, u32 val)&lt;br /&gt;+{&lt;br /&gt;+       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;+       unsigned int cfg_addr;&lt;br /&gt;+       u8  tmp;&lt;br /&gt;+&lt;br /&gt;+       // 180 / 181&lt;br /&gt;+       if (pdev-&gt;device != 0x182) {&lt;br /&gt;+               pci_read_config_byte(pdev, SIS_PMR, &amp;tmp);&lt;br /&gt;+               // no pata&lt;br /&gt;+               if ((tmp &amp; 0x30)== 0) {&lt;br /&gt;+                       if (ap-&gt;port_no == 0)&lt;br /&gt;+                               cfg_addr = 0xc0;&lt;br /&gt;+                       else&lt;br /&gt;+                               cfg_addr = 0xd0;&lt;br /&gt;+                       pci_write_config_dword(pdev, cfg_addr+scr*4, val);&lt;br /&gt;+                       return;&lt;br /&gt;+               }&lt;br /&gt;+               else&lt;br /&gt;+                       cfg_addr = 0xc0;&lt;br /&gt;+       }&lt;br /&gt;+       // 182, one should not have chance to see&lt;br /&gt;+       else {&lt;br /&gt;+               if (ap-&gt;port_no == 0)&lt;br /&gt;+                       cfg_addr = 0xc0;&lt;br /&gt;+               else&lt;br /&gt;+                       cfg_addr = 0xe0;&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       pci_write_config_dword(pdev, cfg_addr+scr*4, val);&lt;br /&gt;+       pci_write_config_dword(pdev, cfg_addr+scr*4+0x10, val);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; static u32 sis_scr_read (struct ata_port *ap, unsigned int sc_reg)&lt;br /&gt; {&lt;br /&gt;+       u32 result, result2;&lt;br /&gt;+       u8  tmp;&lt;br /&gt;+&lt;br /&gt;        if (sc_reg &gt; SCR_CONTROL)&lt;br /&gt;                return 0xffffffffU;&lt;br /&gt;&lt;br /&gt;-       if (ap-&gt;flags &amp; SIS_FLAG_CFGSCR)&lt;br /&gt;+       if (ap-&gt;flags &amp; SIS_FLAG_CFGSCR) {&lt;br /&gt;                return sis_scr_cfg_read(ap, sc_reg);&lt;br /&gt;-       return inl(ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+       }&lt;br /&gt;+       else {&lt;br /&gt;+               // 180 / 181&lt;br /&gt;+               if (to_pci_dev(ap-&gt;host_set-&gt;dev)-&gt;device != 0x182) {&lt;br /&gt;+                       pci_read_config_byte(to_pci_dev(ap-&gt;host_set-&gt;dev), SIS_PMR, &amp;tmp);&lt;br /&gt;+                       // no pata&lt;br /&gt;+                       if ((tmp &amp; 0x30)== 0)&lt;br /&gt;+                               return inl(ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                       // combined mode&lt;br /&gt;+                       else {&lt;br /&gt;+                               result = inl(ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                               result2 = inl(ap-&gt;ioaddr.scr_addr+0x10 + (sc_reg * 4));&lt;br /&gt;+                               if (result == 0 &amp;&amp; result2 == 0)&lt;br /&gt;+                                       return result;&lt;br /&gt;+                               else&lt;br /&gt;+                                       return result|result2;&lt;br /&gt;+                       }&lt;br /&gt;+               }&lt;br /&gt;+               // 182&lt;br /&gt;+               else {&lt;br /&gt;+                       result = inl(ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                       result2 = inl(ap-&gt;ioaddr.scr_addr+0x10 + (sc_reg * 4));&lt;br /&gt;+                       if (result == 0 &amp;&amp; result2 == 0)&lt;br /&gt;+                               return result;&lt;br /&gt;+                       else&lt;br /&gt;+                               return result|result2;&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; static void sis_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val)&lt;br /&gt; {&lt;br /&gt;+       u8  tmp;&lt;br /&gt;        if (sc_reg &gt; SCR_CONTROL)&lt;br /&gt;                return;&lt;br /&gt;&lt;br /&gt;        if (ap-&gt;flags &amp; SIS_FLAG_CFGSCR)&lt;br /&gt;                sis_scr_cfg_write(ap, sc_reg, val);&lt;br /&gt;+&lt;br /&gt;+       else {&lt;br /&gt;+               // 180 / 181&lt;br /&gt;+               if (to_pci_dev(ap-&gt;host_set-&gt;dev)-&gt;device != 0x182) {&lt;br /&gt;+                       pci_read_config_byte(to_pci_dev(ap-&gt;host_set-&gt;dev), SIS_PMR, &amp;tmp);&lt;br /&gt;+&lt;br /&gt;+                       // no pata&lt;br /&gt;+                       if ((tmp &amp; 0x30)== 0) {&lt;br /&gt;+                               outl(val, ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                       }&lt;br /&gt;+                       // combined mode&lt;br /&gt;+                       else {&lt;br /&gt;+                               outl(val, ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                               outl(val, ap-&gt;ioaddr.scr_addr + 0x10 + (sc_reg * 4));&lt;br /&gt;+                       }&lt;br /&gt;+               }&lt;br /&gt;+               // 182&lt;br /&gt;+               else {&lt;br /&gt;+                       outl(val, ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+                       outl(val, ap-&gt;ioaddr.scr_addr + 0x10 + (sc_reg * 4));&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+/**&lt;br /&gt;+       flag = 1, enable PCI int&lt;br /&gt;+       flag = 0, disable PCI int&lt;br /&gt;+*/&lt;br /&gt;+void sis_set_int(struct ata_port *ap, int flag)&lt;br /&gt;+{&lt;br /&gt;+       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;+       u32  tmp;&lt;br /&gt;+&lt;br /&gt;+       pci_read_config_dword(pdev, PCI_COMMAND, &amp;tmp);&lt;br /&gt;+       if (flag)&lt;br /&gt;+               tmp &amp;= ~PCI_COMMAND_INTX_DISABLE;&lt;br /&gt;+       else&lt;br /&gt;+               tmp |= PCI_COMMAND_INTX_DISABLE;&lt;br /&gt;+&lt;br /&gt;+       pci_write_config_dword(pdev, PCI_COMMAND, tmp);&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+unsigned int sis_busy_sleep (struct ata_port *ap,&lt;br /&gt;+                                   unsigned long tmout_pat,&lt;br /&gt;+                                   unsigned long tmout)&lt;br /&gt;+{&lt;br /&gt;+       unsigned long timer_start, timeout;&lt;br /&gt;+       u8 status;&lt;br /&gt;+&lt;br /&gt;+       status = ata_busy_wait(ap, ATA_BUSY, 300);&lt;br /&gt;+       timer_start = jiffies;&lt;br /&gt;+       timeout = timer_start + tmout_pat;&lt;br /&gt;+       while ((status &amp; ATA_BUSY) &amp;&amp; (time_before(jiffies, timeout))) {&lt;br /&gt;+               msleep(50);&lt;br /&gt;+               status = ata_busy_wait(ap, ATA_BUSY, 3);&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       if (status &amp; ATA_BUSY)&lt;br /&gt;+               DPRINTK(KERN_WARNING "ata%u is slow to respond, "&lt;br /&gt;+                      "please be patient\n", ap-&gt;id);&lt;br /&gt;+&lt;br /&gt;+       timeout = timer_start + tmout;&lt;br /&gt;+       while ((status &amp; ATA_BUSY) &amp;&amp; (time_before(jiffies, timeout))) {&lt;br /&gt;+               msleep(50);&lt;br /&gt;+               status = ata_chk_status(ap);&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       if (status &amp; ATA_BUSY) {&lt;br /&gt;+               DPRINTK(KERN_ERR "ata%u failed to respond (%lu secs)\n",&lt;br /&gt;+                      ap-&gt;id, tmout / HZ);&lt;br /&gt;+               return 1;&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       return 0;&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+void sis_bus_reset(struct ata_port *ap)&lt;br /&gt;+{&lt;br /&gt;+       struct ata_ioports *ioaddr = &amp;ap-&gt;ioaddr;&lt;br /&gt;+       struct ata_taskfile tf;&lt;br /&gt;+       struct ata_device *dev;&lt;br /&gt;+       u8 status;&lt;br /&gt;+       int i;&lt;br /&gt;+&lt;br /&gt;+       sis_set_int (ap, 0);&lt;br /&gt;+&lt;br /&gt;+       for ( i = 0; i &lt; 2; i++) {&lt;br /&gt;+               dev = &amp;ap-&gt;device[i];&lt;br /&gt;+               dev-&gt;class = ATA_DEV_NONE;&lt;br /&gt;+               // clear signature register&lt;br /&gt;+               outb(0, ioaddr-&gt;lbam_addr);&lt;br /&gt;+               outb(0, ioaddr-&gt;lbah_addr);&lt;br /&gt;+               // select the device&lt;br /&gt;+               ap-&gt;ops-&gt;dev_select(ap, i);&lt;br /&gt;+               // issue device reset command&lt;br /&gt;+               outb (ATA_DEV_RESET, ioaddr-&gt;command_addr);&lt;br /&gt;+               // wait....&lt;br /&gt;+               msleep(500);&lt;br /&gt;+               // read it back&lt;br /&gt;+               memset(&amp;tf, 0, sizeof(tf));&lt;br /&gt;+               ap-&gt;ops-&gt;tf_read(ap, &amp;tf);&lt;br /&gt;+               if (((tf.lbam == 0x14) &amp;&amp; (tf.lbah == 0xeb))) {&lt;br /&gt;+                       DPRINTK("found ATAPI device by sig\n");&lt;br /&gt;+                       dev-&gt;class = ATA_DEV_ATAPI;&lt;br /&gt;+                       continue;&lt;br /&gt;+               }&lt;br /&gt;+               else {&lt;br /&gt;+                       status = ata_check_status(ap);&lt;br /&gt;+                       if ((status &amp; 0xf0) == 0x50) {&lt;br /&gt;+                               DPRINTK("found ATA device by sig\n");&lt;br /&gt;+                               dev-&gt;class = ATA_DEV_ATA;&lt;br /&gt;+                       }&lt;br /&gt;+                       else {&lt;br /&gt;+                               DPRINTK("unknown device\n");&lt;br /&gt;+                               dev-&gt;class = ATA_DEV_UNKNOWN;&lt;br /&gt;+                       }&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt;+       sis_set_int (ap, 1);&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+&lt;br /&gt;+void sis_sata_reset(struct ata_port *ap)&lt;br /&gt;+{&lt;br /&gt;+       unsigned long timeout = jiffies + (HZ * 5);&lt;br /&gt;+       u32 sstatus;&lt;br /&gt;+&lt;br /&gt;+       scr_write(ap, SCR_CONTROL, 0x301); /* issue phy wake/reset */&lt;br /&gt;+       msleep(50);&lt;br /&gt;+       scr_write(ap, SCR_CONTROL, 0x300);&lt;br /&gt;+       msleep(500);&lt;br /&gt;+       scr_write(ap, SCR_ERROR, 0xffffffff);&lt;br /&gt;+       /* wait for phy to become ready, if necessary */&lt;br /&gt;+       do {&lt;br /&gt;+               msleep(100);&lt;br /&gt;+               sstatus = scr_read(ap, SCR_STATUS);&lt;br /&gt;+               if ((sstatus &amp; 0xf) != 1)&lt;br /&gt;+                       break;&lt;br /&gt;+       } while (time_before(jiffies, timeout));&lt;br /&gt;+&lt;br /&gt;+       if (sata_dev_present(ap))&lt;br /&gt;+               ata_port_probe(ap);&lt;br /&gt;+       else {&lt;br /&gt;+               sstatus = scr_read(ap, SCR_STATUS);&lt;br /&gt;+               DPRINTK(KERN_INFO "ata%u: no device found (phy stat %08x)\n", ap-&gt;id, sstatus);&lt;br /&gt;+               ata_port_disable(ap);&lt;br /&gt;+       }&lt;br /&gt;+       ap-&gt;cbl = ATA_CBL_SATA;&lt;br /&gt;+}&lt;br /&gt;+&lt;br /&gt;+static void sis_port_reset(struct ata_port *ap)&lt;br /&gt;+{&lt;br /&gt;+       struct pci_dev *pdev = to_pci_dev(ap-&gt;host_set-&gt;dev);&lt;br /&gt;+       u8  tmp;&lt;br /&gt;+       int i;&lt;br /&gt;+&lt;br /&gt;+       /* Reset routine for 180 | 181 need specail care...*/&lt;br /&gt;+       if (pdev-&gt;device != 0x182) {&lt;br /&gt;+               pci_read_config_byte(pdev, SIS_PMR, &amp;tmp);&lt;br /&gt;+               /* combined mode */&lt;br /&gt;+               if ((tmp &amp; 0x30)!= 0) {&lt;br /&gt;+                       if (ap-&gt;port_no == 0) {&lt;br /&gt;+                               ata_port_probe(ap);&lt;br /&gt;+                               // detect cable type&lt;br /&gt;+                               pci_read_config_byte(pdev, SIS_CHANNEL_CTRL, &amp;tmp);&lt;br /&gt;+                               if (tmp &amp; 0x1) {&lt;br /&gt;+                                       DPRINTK ("PATA use 40pin cable\n");&lt;br /&gt;+                                       ap-&gt;cbl = ATA_CBL_PATA40;&lt;br /&gt;+                                       ap-&gt;udma_mask &amp;= ATA_UDMA_MASK_40C;&lt;br /&gt;+                               }&lt;br /&gt;+                               else {&lt;br /&gt;+                                       DPRINTK ("PATA use 80pin cable\n");&lt;br /&gt;+                                       ap-&gt;cbl = ATA_CBL_PATA80;&lt;br /&gt;+                               }&lt;br /&gt;+                       }&lt;br /&gt;+                       /* pure sata mode, one device one channel */&lt;br /&gt;+                       else&lt;br /&gt;+                               sis_sata_reset(ap);&lt;br /&gt;+               }&lt;br /&gt;+               // pure sata mode&lt;br /&gt;+               else&lt;br /&gt;+                       sis_sata_reset(ap);&lt;br /&gt;+       }&lt;br /&gt;+       /* for 182 section */&lt;br /&gt;        else&lt;br /&gt;-               outl(val, ap-&gt;ioaddr.scr_addr + (sc_reg * 4));&lt;br /&gt;+               sis_sata_reset(ap);&lt;br /&gt;+&lt;br /&gt;+       if (ap-&gt;flags &amp; ATA_FLAG_PORT_DISABLED)&lt;br /&gt;+               return;&lt;br /&gt;+       //  give device chances to be ready&lt;br /&gt;+       for ( i = 0; i&lt;10; i++)&lt;br /&gt;+       {&lt;br /&gt;+               tmp = inb(ap-&gt;ioaddr.status_addr);&lt;br /&gt;+               if (tmp == 0x80)&lt;br /&gt;+                       msleep(50);&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;+       sis_bus_reset(ap);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;+&lt;br /&gt; /* move to PCI layer, integrate w/ MSI stuff */&lt;br /&gt; static void pci_enable_intx(struct pci_dev *pdev)&lt;br /&gt; {&lt;br /&gt;@@ -204,17 +638,15 @@ static int sis_init_one (struct pci_dev&lt;br /&gt;        int rc;&lt;br /&gt;        u32 genctl;&lt;br /&gt;        struct ata_port_info *ppi;&lt;br /&gt;-       int pci_dev_busy = 0;&lt;br /&gt;-&lt;br /&gt;+       u8 tmp;&lt;br /&gt;+&lt;br /&gt;        rc = pci_enable_device(pdev);&lt;br /&gt;        if (rc)&lt;br /&gt;                return rc;&lt;br /&gt;&lt;br /&gt;        rc = pci_request_regions(pdev, DRV_NAME);&lt;br /&gt;-       if (rc) {&lt;br /&gt;-               pci_dev_busy = 1;&lt;br /&gt;+       if (rc)&lt;br /&gt;                goto err_out;&lt;br /&gt;-       }&lt;br /&gt;&lt;br /&gt;        rc = pci_set_dma_mask(pdev, ATA_DMA_MASK);&lt;br /&gt;        if (rc)&lt;br /&gt;@@ -229,7 +661,7 @@ static int sis_init_one (struct pci_dev&lt;br /&gt;                rc = -ENOMEM;&lt;br /&gt;                goto err_out_regions;&lt;br /&gt;        }&lt;br /&gt;-&lt;br /&gt;+&lt;br /&gt;        /* check and see if the SCRs are in IO space or PCI cfg space */&lt;br /&gt;        pci_read_config_dword(pdev, SIS_GENCTL, &amp;genctl);&lt;br /&gt;        if ((genctl &amp; GENCTL_IOMAPPED_SCR) == 0)&lt;br /&gt;@@ -247,12 +679,33 @@ static int sis_init_one (struct pci_dev&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        if (!(probe_ent-&gt;host_flags &amp; SIS_FLAG_CFGSCR)) {&lt;br /&gt;-               probe_ent-&gt;port[0].scr_addr =&lt;br /&gt;-                       pci_resource_start(pdev, SIS_SCR_PCI_BAR);&lt;br /&gt;-               probe_ent-&gt;port[1].scr_addr =&lt;br /&gt;-                       pci_resource_start(pdev, SIS_SCR_PCI_BAR) + 64;&lt;br /&gt;+               if (ent-&gt;driver_data == sis_180) {&lt;br /&gt;+                       pci_read_config_byte(pdev, SIS_PMR, &amp;tmp);&lt;br /&gt;+                       if ((tmp &amp; 0x30)== 0) {&lt;br /&gt;+                               DPRINTK ("SiS-180/181 pure sata mode detected\n");&lt;br /&gt;+                               probe_ent-&gt;port[0].scr_addr = pci_resource_start(pdev, SIS_SCR_PCI_BAR);&lt;br /&gt;+                               probe_ent-&gt;port[1].scr_addr = pci_resource_start(pdev, SIS_SCR_PCI_BAR) + 64;&lt;br /&gt;+                       }&lt;br /&gt;+                       else {&lt;br /&gt;+                               DPRINTK ("SiS-180/181 combined mode detected!\n");&lt;br /&gt;+                               probe_ent-&gt;port[1].scr_addr = pci_resource_start(pdev, SIS_SCR_PCI_BAR);&lt;br /&gt;+                       }&lt;br /&gt;+               }&lt;br /&gt;+               if (ent-&gt;driver_data == sis_182) {&lt;br /&gt;+                       probe_ent-&gt;port[0].scr_addr = pci_resource_start(pdev, SIS_SCR_PCI_BAR);&lt;br /&gt;+                       probe_ent-&gt;port[1].scr_addr = pci_resource_start(pdev, SIS_SCR_PCI_BAR) + 0x20;&lt;br /&gt;+               }&lt;br /&gt;        }&lt;br /&gt;-&lt;br /&gt;+       else {&lt;br /&gt;+               if (ent-&gt;driver_data == sis_180) {&lt;br /&gt;+                       pci_read_config_byte(pdev, SIS_PMR, &amp;tmp);&lt;br /&gt;+                       if ((tmp &amp; 0x30)== 0)&lt;br /&gt;+                               DPRINTK ("SiS-180/181 pure sata mode detected\n");&lt;br /&gt;+                       else&lt;br /&gt;+                               DPRINTK ("combined mode detected!\n");&lt;br /&gt;+               }&lt;br /&gt;+       }&lt;br /&gt;+&lt;br /&gt;        pci_set_master(pdev);&lt;br /&gt;        pci_enable_intx(pdev);&lt;br /&gt;&lt;br /&gt;@@ -266,12 +719,12 @@ err_out_regions:&lt;br /&gt;        pci_release_regions(pdev);&lt;br /&gt;&lt;br /&gt; err_out:&lt;br /&gt;-       if (!pci_dev_busy)&lt;br /&gt;-               pci_disable_device(pdev);&lt;br /&gt;+       pci_disable_device(pdev);&lt;br /&gt;        return rc;&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;+&lt;br /&gt; static int __init sis_init(void)&lt;br /&gt; {&lt;br /&gt;        return pci_module_init(&amp;sis_pci_driver);&lt;br /&gt;@@ -284,4 +737,3 @@ static void __exit sis_exit(void)&lt;br /&gt;&lt;br /&gt; module_init(sis_init);&lt;br /&gt; module_exit(sis_exit);&lt;br /&gt;-&lt;br /&gt;
