<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivan Kuznetsov &#187; ubuntu</title>
	<atom:link href="http://www.ivankuznetsov.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ivankuznetsov.com</link>
	<description>Entrepreneur, Ruby on Rails and Ubuntu fanatic, consultant</description>
	<lastBuildDate>Tue, 18 May 2010 18:39:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running Rails applications using Nginx with Passenger on Ubuntu Server</title>
		<link>http://www.ivankuznetsov.com/2010/05/running-rails-applications-using-nginx-with-passenger-on-ubuntu-server.html</link>
		<comments>http://www.ivankuznetsov.com/2010/05/running-rails-applications-using-nginx-with-passenger-on-ubuntu-server.html#comments</comments>
		<pubDate>Fri, 14 May 2010 10:40:50 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[mod_rails]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=279</guid>
		<description><![CDATA[If you&#8217;re planning to run Rails applications on Nginx using Phusion Passenger, and do it on Ubuntu Linux, here&#8217;s what needs to be done. Even though there&#8217;s Ubuntu nginx package available (which works perfectly when you&#8217;re running PHP apps using FCGI), if you want to take into use Phusion Passenger, you&#8217;ll need to recompile Nginx [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ivankuznetsov.com/wp-content/uploads/enterprise_logo.png"><img class="alignleft size-full wp-image-281" title="enterprise_logo" src="http://www.ivankuznetsov.com/wp-content/uploads/enterprise_logo.png" alt="" width="261" height="68" /></a>If you&#8217;re planning to run <a href="http://rubyonrails.org/" target="_blank">Rails</a> applications on <a href="http://www.nginx.org" target="_blank">Nginx</a> using <a href="http://www.modrails.com/" target="_blank">Phusion Passenger</a>, and do it on <a href="http://www.ubuntu.com" target="_blank">Ubuntu</a> Linux, here&#8217;s what needs to be done.</p>
<p>Even though there&#8217;s Ubuntu nginx package available (which works perfectly when you&#8217;re running <a href="http://www.ivankuznetsov.com/2010/05/moving-joomla-wordpress-and-other-phpfastcgi-apps-to-nginx.html">PHP apps using FCGI</a>), if you want to take into use Phusion Passenger, you&#8217;ll need to recompile Nginx from sources.</p>
<p>Instructions below were verified on Ubuntu 10.04 (Lucid Lynx) Server Edition.</p>
<p><span id="more-279"></span></p>
<p>If you already have Nginx ubuntu package installed, uninstall it (NOTE! purge will delete all configuration files &#8211; so if you changed them &#8211; make a backup for future reference):</p>
<pre>sudo aptitude purge nginx</pre>
<p>Assuming you already have Rails stack installed, install Passenger gem:</p>
<pre>sudo gem install passenger</pre>
<p>At the time of this writing the latest version of Passenger is 2.2.11</p>
<p>Let&#8217;s check dependencies that Ubuntu nginx package has and install them before compilation:</p>
<pre>aptitude show nginx | grep Depends</pre>
<div>You&#8217;ll see something like:</div>
<pre>Depends: libc6 (&gt;= 2.4), libpcre3 (&gt;= 7.7), libssl0.9.8 (&gt;= 0.9.8k-1), zlib1g</pre>
<div>Install build dependencies and start nginx module installation (it will offer you to recompile nginx)</div>
<pre>sudo apt-get install libc6 libpcre3 libssl0.9.8 zlib1g
sudo /usr/local/bin/passenger-install-nginx-module</pre>
<div>Choose option 1 (Yes: download, compile and install Nginx for me) unless you need special configuration parameters or need features not enabled by default (like SSL).</div>
<div>Further instructions assume that you also chose default installation directory /opt/nginx.</div>
<div>If you&#8217;ve purchased Passenger Enterprise Edition, don&#8217;t forget to register it:</div>
<pre>sudo /usr/local/bin/passenger-make-enterprisey</pre>
<div>Now add nginx init script (I just copied this from Ubuntu default nginx package):</div>
<pre>sudo vim /etc/init.d/nginx</pre>
<div>with the following content:</div>
<pre>#! /bin/sh

### BEGIN INIT INFO
# Provides:          nginx
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the nginx web server
# Description:       starts nginx using start-stop-daemon
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/nginx/sbin
DAEMON=/opt/nginx/sbin/nginx
NAME=nginx
DESC=nginx

test -x $DAEMON || exit 0

# Include nginx defaults if available
if [ -f /etc/default/nginx ] ; then
        . /etc/default/nginx
fi

set -e

. /lib/lsb/init-functions

test_nginx_config() {
  if nginx -t $DAEMON_OPTS
  then
    return 0
  else
    return $?
  fi
}

case "$1" in
  start)
        echo -n "Starting $DESC: "
        test_nginx_config
        start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON -- $DAEMON_OPTS || true
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
                --exec $DAEMON || true
        echo "$NAME."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON || true
        sleep 1
        test_nginx_config
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true
        echo "$NAME."
        ;;
  reload)
        echo -n "Reloading $DESC configuration: "
        test_nginx_config
        start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/$NAME.pid \
            --exec $DAEMON || true
        echo "$NAME."
        ;;
  configtest)
        echo -n "Testing $DESC configuration: "
        if test_nginx_config
        then
          echo "$NAME."
        else
          exit $?
        fi
        ;;
  status)
        status_of_proc -p /var/run/$NAME.pid "$DAEMON" nginx &amp;&amp; exit 0 || exit $?
        ;;
  *)
        echo "Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest}" &gt;&amp;2
        exit 1
        ;;
esac

exit 0</pre>
<div>Now make this script executable add it to default run levels:</div>
<pre>sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults</pre>
<div>Edit  nginx.conf to look like this:</div>
<pre>user www-data;
worker_processes  4;

error_log  /opt/nginx/logs/error.log;
pid        /var/run/nginx.pid;

events {
    worker_connections  8192;
    use epoll;
}

http {
    passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.11;
    passenger_ruby /usr/local/bin/ruby;

    include       /opt/nginx/conf/mime.types;

    # set a default type for the rare situation that
    # nothing matches from the mimie-type include
    default_type application/octet-stream;

    # This log format is compatible with any tool like awstats
    # that can parse standard apache logs.
    log_format main '$remote_addr - $remote_user [$time_local] '
                    '"$request" $status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"' ;

    access_log  /opt/nginx/logs/access.log;

    sendfile        on;
    tcp_nopush     on;

    keepalive_timeout  0;
    tcp_nodelay        on;

    gzip  on;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    gzip_http_version 1.0;
    gzip_comp_level 2;
    gzip_proxied any;
    gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    include /opt/nginx/conf/sites-enabled/*;
}</pre>
<div>Now create virtual hosts structure (so that it looks like the structure created by Ubuntu original nginx package):</div>
<div>
<pre>sudo mkdir /opt/nginx/conf/sites-available
sudo mkdir /opt/nginx/conf/sites-enabled</pre>
</div>
<div>Now it is time to configure your first rails site. Create virtual host configuration in sites-available.</div>
<pre>sudo vim /opt/nginx/conf/sites-available/mysite.com</pre>
<div>Content can be something like:</div>
<pre>server {
        listen   80;
        server_name  www.mysite.com;

        access_log  /home/user/logs/www.mysite.com/access.log;
        root   /home/user/www.mysite.com/public;

        # serve static content directly
        location ~* \.(ico|jpg|gif|png|css|js|swf|html)$ {
          if (-f $request_filename) {
            expires max;
            break;
          }
        }

        passenger_enabled on;

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        location ~ /\.ht {
          deny  all;
        }
}</pre>
<div>Make a symlink in sites-enabled directory and restart nginx.</div>
<pre>sudo ln -s /opt/nginx/conf/sites-available/mysite.com /opt/nginx/conf/sites-enabled/mysite.com
sudo /etc/init.d/nginx restart</pre>
<div>Now open the browser and check that your site is working.</div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2010%2F05%2Frunning-rails-applications-using-nginx-with-passenger-on-ubuntu-server.html&amp;linkname=Running%20Rails%20applications%20using%20Nginx%20with%20Passenger%20on%20Ubuntu%20Server"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2010/05/running-rails-applications-using-nginx-with-passenger-on-ubuntu-server.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up your own git server on Ubuntu</title>
		<link>http://www.ivankuznetsov.com/2010/05/setting-up-your-own-git-server-on-ubuntu.html</link>
		<comments>http://www.ivankuznetsov.com/2010/05/setting-up-your-own-git-server-on-ubuntu.html#comments</comments>
		<pubDate>Thu, 13 May 2010 12:39:00 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[gitosis]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=262</guid>
		<description><![CDATA[This will create a new user &#8216;gitosis&#8217; and prepare a structure for repositories in /srv/gitosis. Now let&#8217;s initialize a gitosis-admin repo &#8211; it is used for managing repositories and access Of course there&#8217;s always an option to use github. And if you&#8217;re working on an open source project, or want to concentrate on coding and [...]]]></description>
			<content:encoded><![CDATA[<p>This will create a new user &#8216;gitosis&#8217; and prepare a structure for repositories in /srv/gitosis. Now let&#8217;s initialize a gitosis-admin repo &#8211; it is used for managing repositories and access<img class="alignleft size-full wp-image-261" title="git-logo" src="http://www.ivankuznetsov.com/wp-content/uploads/git-logo.png" alt="" width="97" height="188" /></p>
<p>Of course there&#8217;s always an option to use <a href="http://www.github.com" target="_blank">github</a>. And if you&#8217;re working on an open source project, or want to concentrate on coding and not system administration, github is a lot better option than setting up and managing your own git server (I&#8217;ve been so impressed by <a href="http://twitter.com/defunkt" target="_blank">@defunkt</a>&#8216;s presentation on <a href="http://www.frozenrails.eu" target="_blank">#frozenrails</a>, that started recommending github to everyone <img src='http://www.ivankuznetsov.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But if you already pay for a virtual machine somewhere (like <a href="http://www.linode.com" target="_blank">Linode</a>), then setting up your own git server might be a viable option, especially that it is sooo easy.</p>
<p>The following instructions have been verified on Ubuntu 10.04 Lucid Lynx, but should work at least on Ubuntu 9.04 and 9.10 just as well.</p>
<p><span id="more-262"></span></p>
<p>Let&#8217;s start with installing gitosis itself. Issue the following command on the server:</p>
<pre>sudo apt-get install gitosis</pre>
<p>This will create a new user &#8216;gitosis&#8217; and prepare a structure for repositories in /srv/gitosis. Now let&#8217;s initialize a gitosis-admin repo &#8211; it is used for managing repositories and access rights.</p>
<pre>sudo -H -u gitosis gitosis-init &lt; ~/tmp/my_public.key</pre>
<p>You need to have a public key for accessing it. If you don&#8217;t have one yet, you can use</p>
<pre><code>ssh-keygen -t rsa</code></pre>
<p>command on your local machine to generate public/private key pair. Copy public key to the server before initializing gitosis-admin repository.</p>
<p>Now with gitosis-admin repo initialized on the server &#8211; let&#8217;s clone it to the local computer.</p>
<pre>git clone gitosis@myserver.com:gitosis-admin.git</pre>
<p>If you see an error like:</p>
<pre>Permission denied (publickey).
fatal: The remote end hung up unexpectedly</pre>
<p>That is most likely because you restricted access to you server via ssh to only certain users, and gitosis is not one of them. Edit /etc/ssh/sshd_config, find AllowUsers line and add gitosis to the list.</p>
<p>Now that you have successfully cloned gitosis-admin repo to your local computer, you can add  new users and new repositories.</p>
<p>To add new repository, edit gitosis.conf and add lines like:</p>
<pre>[group myrepo]
writable = myrepo
members = user@computer</pre>
<p>After that commit and push the changes to gitosis-admin project:</p>
<pre>git commit -a -m "Added myrepo repository"</pre>
<p>Now you can clone this new repository to your local machine (note .git added to the name of the repository):</p>
<pre>git clone gitosis@mygitserver.com:myrepo.git</pre>
<p>To allow new user to access your repository, get this user&#8217;s public key, copy it to gitosis-admin/keydir as newuser@computer.pub, then edit gitosis.conf and add newuser@computer (without .pub) to the list of members:</p>
<pre>[group myrepo]
writable = myrepo
members = user@computer newuser@computer</pre>
<p>Now add new files and commit and push changes to git server (make sure you really add all files and don&#8217;t forget to push &#8211; these are quite common mistakes when adding new users).</p>
<pre>git add .
git commit -m "Added user newuser"
git push</pre>
<p>With a freshly cloned empty repository you&#8217;ll need to add you first files, do a commit and push origin master:</p>
<pre>vim README.txt
git commit -a -m "Added readme"
git push origin master</pre>
<p>Now you can git pull and git push as much as you like.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2010%2F05%2Fsetting-up-your-own-git-server-on-ubuntu.html&amp;linkname=Setting%20up%20your%20own%20git%20server%20on%20Ubuntu"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2010/05/setting-up-your-own-git-server-on-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>What&#8217;s new in Ubuntu 9.04 Jaunty Jakalope</title>
		<link>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html</link>
		<comments>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:49:36 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=124</guid>
		<description><![CDATA[It was a fun weekend. I upgraded from Ubuntu 8.10 to 9.04 on my Lenovo T61 and installed it instead of Windows Vista on my wife&#8217;s new Dell Vostro 1510. Both upgrade and installation on both machines went without a single hickup, which was a positive surprise after my last experience with Ubuntu upgrade. Bluetooth, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-127 alignleft" style="margin: 5px;" title="ubuntu-904-jaunty-jackalope-new-wallpaper-1" src="http://www.ivankuznetsov.com/wp-content/uploads/ubuntu-904-jaunty-jackalope-new-wallpaper-1.jpg" alt="Jaunty Jackalope" width="250" height="150" /> It was a fun weekend. I upgraded from Ubuntu 8.10 to 9.04 on my Lenovo T61 and installed it instead of Windows Vista on my wife&#8217;s new Dell Vostro 1510.</p>
<p>Both upgrade and installation on both machines went without a single hickup, which was a positive surprise after my <a href="http://www.ivankuznetsov.com/2008/06/upgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html">last experience with Ubuntu upgrade</a>.</p>
<p><span id="more-124"></span>Bluetooth, wireless, display drivers, sound &#8211; everything was working from the first start. The only manual configuration I had to make was because of Intel integrated video <a href="https://bugs.launchpad.net/bugs/363821" target="_blank">blacklisted by Compiz</a>. There are two ways to enable Visual Effects on Intel 965.</p>
<p>1.Skipping check for blacklisted cards</p>
<ul>
<li>Create ~/.config/compiz/compiz-manager (for local user) or (/etc/xdg/compiz/compiz-manager)</li>
<li>Add SKIP_CHECKS=yes</li>
<li>Go to System-&gt;Preferences-&gt;Appearence-&gt;Visual Effects and select Normal</li>
</ul>
<p>2. Removing the card from black list</p>
<ul>
<li>sudo gedit /usr/bin/compiz</li>
<li>find a line T=&#8221;$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12&#8243; # intel 965</li>
<li>comment it out by placing # in the front</li>
<li>save the file</li>
<li>Go to System-&gt;Preferences-&gt;Appearence-&gt;Visual Effects and select Normal</li>
</ul>
<p>Purely from end-user perspective there are not that many revolutionary changes (you can read the technical details on a number of ubuntu related sites). What I personally liked about 9.04 release is:</p>
<ul>
<li>Open Office 3.0<br />
A number of <a href="http://www.openoffice.org/dev_docs/features/3.0/" target="_blank">improvements and new features</a> here. Native tables in Impress, import of DOCX, PPTX, XLSX, Solver component, improved charts. Being an active Open Office user, and having to interact a lot with users of MS Office &#8211; these are really great improvements.</li>
<li><a href="http://www.netbeans.org/community/releases/65/relnotes.html" target="_blank">NetBeans 6.5</a></li>
<li>New notifications system<br />
Looks very good &#8211; gives you a warm and fuzzy feeling every time you receive a new instant message or connect to network. Mark Shuttleworth <a href="http://www.markshuttleworth.com/archives/265" target="_blank">blogged about it</a>.</li>
<li>A really small, but nonetheless important change &#8211; Session manager is finally renamed to Startup Applications. At least now I don&#8217;t need to think every time I want to add application to autostart list.</li>
<li>Computer Janitor. A very nice application, helps you to get rid of all unused stuff on your computer, but you have to be careful with it &#8211; it offered me to delete skype and xmind amongst all other DEB packages.</li>
</ul>
<p>Other new things that I read about, but didn&#8217;t yet try:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Ext4" target="_blank">ext4 filesystem</a> support (thanks to 2.6.28 kernel) &#8211; although it reportedly <a href="http://news.softpedia.com/news/Ubuntu-9-04-Boots-in-21-4-Seconds-101885.shtml" target="_blank">improves booting time</a>, i didn&#8217;t yet dare to switch to it, better to wait till potential <a href="https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781" target="_blank">data loss fixes</a> are verified by long-term use</li>
<li>New, <a href="http://projects.gnome.org/evolution/" target="_blank">better Evolution</a> (thanks to Gnome 2.26), that is able to to read Microsoft Outlook Personal Folders or PST files and communicate with existing Microsoft Exchange servers via MAPI &#8211; need to try that on my work laptop.</li>
</ul>
<p>Overall, after going through installation and using it for a couple of days &#8211; I am really happy with the new release. Ubuntu continues strong and steady development and becomes a more serious competitor to Windows with every new release.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2009%2F04%2Fwhats-new-in-ubuntu-904-jaunty-jakalope.html&amp;linkname=What%26%238217%3Bs%20new%20in%20Ubuntu%209.04%20Jaunty%20Jakalope"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Upgrading to Ubuntu 8.04 Hardy Heron or &#8220;Ubuntu sucks&#8230; get a Mac&#8221;</title>
		<link>http://www.ivankuznetsov.com/2008/06/upgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html</link>
		<comments>http://www.ivankuznetsov.com/2008/06/upgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html#comments</comments>
		<pubDate>Fri, 13 Jun 2008 12:26:47 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu sucks]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=104</guid>
		<description><![CDATA[I should admit &#8211; I shamelessly borrowed part of the title for this post from Tyler. I had exactly same feeling after upgrading from Ubuntu 7.10 to 8.04. I&#8217;ve been meaning to write about this upgrade for almost two months now. Right after Ubuntu 8.04 was released I upgraded two of my laptops from Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-105" title="ubuntu" src="http://www.ivankuznetsov.com/wp-content/uploads/ubuntu.jpg" alt="" width="300" height="79" />I should admit &#8211; I shamelessly borrowed part of the title for this post <a href="http://awesomerails.wordpress.com/2008/05/03/ubuntu-sucksget-a-mac/">from Tyler</a>.<br />
I had exactly same feeling after upgrading from Ubuntu 7.10 to 8.04.</p>
<p>I&#8217;ve been meaning to write about this upgrade for almost two months now. Right after Ubuntu 8.04 was released I upgraded two of my laptops from Ubuntu 7.10 to 8.04. I know, I know, never download software on the release date, wait for a couple of months before all major bugs are fixed and it starts working somehow. But anyway&#8230;</p>
<p><span id="more-104"></span></p>
<p>On Lenovo T61 everything went mostly fine. After upgrade crash report tool complained about nautilus crash. Then more serious issues started popping up:</p>
<ul>
<li><a href="http://www.parallels.com">Parallels</a> stopped working. I use this tool quite a lot to debug web pages in different browsers in different operating systems. Apparently there was no support for Ubuntu 8.10 Hardy Heron from Parallels team yet, and the older version that worked in Ubuntu 7.10 didn&#8217;t work anymore because of compatibility issues in newer 2.6.24 kernel.A temporary solution (<a href="http://forum.parallels.com/pda/index.php/t-20323.html">Parallels build 2.2.2226</a>) was provided at a time, and now a new official compatible Parallels release is available for Ubuntu 8.04.</li>
</ul>
<ul>
<li>Samsung SCX-4521F printer refused to work even after proprietory drivers reinstallation. Fortunately <a href="http://ubuntuforums.org/showpost.php?p=4776310&amp;postcount=114">solution to this problem</a> was quickly found by one of Ubuntu community members.</li>
</ul>
<p>On Sony Vaio there were more troubles.</p>
<ul>
<li>Since kernel version changed after upgrade to Ubuntu 8.10, I had to download and reinstall proprietory drivers for Nvidia 8400M graphics card. Kernel changed a couple of times after that as a part of standard package update procedure in 8.10, and each time after that I have to reinstall drivers from NVidia site.</li>
</ul>
<ul>
<li>Vaio integrated camera driver is not included in Ubuntu distribution, but <a href="https://bugs.launchpad.net/ubuntu/+bug/120434/comments/8">Patrick Niklaus built a package</a> for 2.6.24-16-generic kernel.</li>
</ul>
<ul>
<li>Network Manager applet (nm-applett) <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/125075">tries to access keyring</a> all the time <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/223076">to connect to wireless </a>network with WPA</li>
</ul>
<ul>
<li>keyboard <a href="https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/196277">layouts switching is not working</a> after autologin (there is a workaround though)</li>
</ul>
<ul>
<li>sleep/hibernate on Vaio still doesn&#8217;t work</li>
</ul>
<p>Now to the good things:</p>
<ul>
<li>No more proprietory drivers for Intel wireless card (iwl3945 driver)</li>
</ul>
<ul>
<li>Firefox 3. My first reaction &#8211; it is a beauty. (Although after using it for a couple of months, I experienced all beauties of a beta version &#8211; random crashes, some sites are not rendered properly, etc.)</li>
</ul>
<ul>
<li>CPU scaling is finally working out of the box and Sony Vaio laptop is not overheating anymore</li>
</ul>
<p>As I already said, my initial feeling after upgrading to 8.10 was &#8220;Ubuntu sucks&#8230; get a Mac&#8221;. A major upgrade to the next long-term support version was not exactly what I expected. Small, but very annoying bugs in basic functionality undermined success of otherwise very good release. Recently Nokia started supporting Ubuntu for work computers and I immediately changed RedHat on my work laptop to Ubuntu. However I decided to go for Ubuntu 7.10, not 8.04. It works perfectly, even if OpenOffice version is just v2.3 and Firefox &#8211; 2.0.</p>
<p>As Tyler put it &#8220;<a href="http://awesomerails.wordpress.com/2008/05/03/ubuntu-sucksget-a-mac/">[...] get a Mac. Why? Because for the most part, shit works when you plug it in</a>&#8220;. I couldn&#8217;t agree more. I still stay with Ubuntu, but this last release made me think about moving to Mac again.</p>
<p><strong>Update 2009-05-23: </strong>To do justice to Ubuntu &#8211; I have not purchased Mac, but <a href="http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html">upgraded to 9.04</a> and been generally happy with it.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2008%2F06%2Fupgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html&amp;linkname=Upgrading%20to%20Ubuntu%208.04%20Hardy%20Heron%20or%20%26%238220%3BUbuntu%20sucks%26%238230%3B%20get%20a%20Mac%26%238221%3B"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2008/06/upgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Sampo bank software upgrade, Ubuntu and beta culture</title>
		<link>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html</link>
		<comments>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html#comments</comments>
		<pubDate>Sun, 27 Apr 2008 13:13:02 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Current Affairs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Sampo]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=102</guid>
		<description><![CDATA[Even if you are not Sampo bank&#8217;s customer, but live in Finland, you have most probably heard by now about continuous problems Sampo had with their web-bank system. When Sampo launched the new system this Easter, they took into use Java-based authentication system. Of course it didn&#8217;t work in my Ubuntu 7.10, but after removing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-103" title="Sampo Ubuntu error" src="http://www.ivankuznetsov.com/wp-content/uploads/sampoubuntu.png" alt="" width="298" height="147" />Even if you are not Sampo bank&#8217;s customer, but live in Finland, you have most probably heard by now about <a href="http://www.hs.fi/english/article/Sampo+Bank+problems+continue+-+cards+fail+again+on+Wednesday/1135235467803">continuous problems</a> <a href="http://www.sampopankki.fi">Sampo</a> had with their web-bank system.</p>
<p>When Sampo <a href="http://www.hs.fi/english/article/Serious+problems+with+launch+of+new+online+service+of+Sampo+Bank/1135235064450">launched the new system</a> this Easter, they took into use Java-based authentication system. Of course it didn&#8217;t work in my <a href="http://www.ubuntu.com">Ubuntu</a> 7.10, but after removing Open JDK and installing latest Sun JDK it started functioning again &#8211; at least log in worked. This Java solution <a href="http://blogit.tietokone.fi/tietojakoneesta/?p=345">raised a lot of concerns</a> in internet community.</p>
<p><span id="more-102"></span></p>
<p>After upgrade to Ubuntu 8.04 that has Firefox 3.0b5 as default browser, Sampo web-bank Java login stopped working again. This time installing latest JRE didn&#8217;t help. Hardy Heron (Ubuntu 8.04) contains JRE 1.6.0_06-b02 and it fails on the second security code request during login process. (Remarkably, Sun itself offers only 1.6.0_05 version for Linux). Solutions proposed in <a href="http://forum.ubuntu-fi.org/index.php?topic=16982.msg125906">Finnish Ubuntu discussion forum</a> (tweaking plugins) didn&#8217;t work for me either.</p>
<p>What worked was replacing JRE 1.6 with an older version 1.5:</p>
<p><code>$sudo apt-get remove sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-plugin openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib</code></p>
<p>$sudo apt-get install sun-java5-bin sun-java5-fonts sun-java5-jre sun-java5-plugin</p>
<p>Then I ran</p>
<p><code>$sudo update-alternatives --config java</code></p>
<p>command to make sure correct JRE was selected as default.</p>
<p>While struggling with this issue I tried to check Sampo&#8217;s technical support pages. There was a nice &#8220;<a href="https://www.sampopankki.fi/en-fi/Personal/eBanking/Support/CheckPC/Pages/TarkistaTietokoneesi.aspx">Check your computer page</a>&#8221; that kindly informed me that my operating system is Linux and &#8220;You may be able to run eBanking, but your operating system is not supported by Customer Support.&#8221;</p>
<p>This is really frustrating. 14% of the readers of this blog use Linux. On regular sites that I maintain this figure is from 7% to 10%. Sampo caused a lot of grief to its customers, me including, with this software system upgrade. Even after they <a href="http://www.yle.fi/news/id88848.html">promised to waive four months&#8217; worth of service charges</a> I&#8217;m still not sure it is going to be enough to keep all their customers.</p>
<p>I&#8217;ve experienced quite a lot of problems by far &#8211; non-\0-terminated strings in UI, transactions with no explanations that I don&#8217;t remember authorising, transactions in our web shop that were reported as failed, although money were withdrawn from customer&#8217;s accounts, simple web-bank downtimes with HTTP 503 and the latest one is my credit card &#8211; Sampo claims that I don&#8217;t owe them anything &#8211; probably it is one of the Monopoly&#8217;s famous &#8220;Bank error in your favour, collect $200&#8243; cases.</p>
<p>Beta culture seems to be spreading from internet startups to bank systems (although in this case I would be more inclined to say that this was a huge screw up on Danske Bank IT department&#8217;s part). I&#8217;m not sure I like it. Gmail beta, Flickr beta, but Sampo Bank beta? It&#8217;s definitely fun to participate in debugging of the new web service, but not when it deals with your real money.</p>
<p>This case bring interesting thoughts on how much we trust online services and what is the pain level when we say &#8220;that&#8217;s enough, I&#8217;m leaving&#8221;. Is it the same for data banking as for traditional banking. Would you trust your bank to keep your family photo archive or your computer backups? Is it any safer than Flickr/Google Documents? And the other way around &#8211; if you trust your data to Google or Yahoo, would you trust them with your money?</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2008%2F04%2Fsampo-bank-software-upgrade-ubuntu-and-beta-culture.html&amp;linkname=Sampo%20bank%20software%20upgrade%2C%20Ubuntu%20and%20beta%20culture"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Moving /home to its own partition</title>
		<link>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html</link>
		<comments>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html#comments</comments>
		<pubDate>Sat, 26 Apr 2008 19:09:55 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=97</guid>
		<description><![CDATA[After upgrading Ubuntu to 8.04 I decided it would be a good idea to finally move /home folder to a separate partition. It makes it much easier to make backups and reinstall operating system if all data/configurations are safely stored on their own partition. Without installing additional hard drive (which would be impractical for laptop [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-98" title="home" src="http://www.ivankuznetsov.com/wp-content/uploads/home.png" alt="Ubuntu - Disk Usage Analyzer" width="300" height="196" />After upgrading <a href="http://www.ubuntu.com">Ubuntu</a> to 8.04 I decided it would be a good idea to finally move /home folder to a separate partition. It makes it much easier to make backups and reinstall operating system if all data/configurations are safely stored on their own partition.</p>
<p>Without installing additional hard drive (which would be impractical for laptop user anyway) the only source for extra space was Vista partition. Vista comes preinstalled with most modern laptops, but there&#8217;s no need for it to exist taking up to 40Gb of hard drive space, when Ubuntu is the primary OS.</p>
<p><span style="color: red;">WARNING: Before executing any of the belowmentioned steps, it is highly recommended to make a full backup of your data.</span><br />
<span id="more-97"></span><strong></strong></p>
<p><strong>1. Check how much space you will need</strong></p>
<p>It is good to check how much space you will need for your /home partition. Use &#8220;Scan Home&#8221; in Disk Usage Analyzer (Applications-&gt;Accessories-&gt;Disk Usage Analyzer) to check how much space do you use now. This tool will give you excellent perspective on how you use your disk space &#8211; and where you can possibly save a few gigabytes. Add some gigabytes on top of the current usage figure for future use and now you now what should be the size of your new /home.</p>
<p><strong>2. Create new partition/filesystem</strong></p>
<p><code>In Ubuntu there's an excellent tool for manipulating partitions - GParted (System-&gt;Administration-&gt;Partition Editor).</code></p>
<p>If the estimated size of your home partition is smaller than the size of Vista partition (or any other partition you&#8217;re prepared to re-allocate), then the task is really simple &#8211; you just convert Vista&#8217;s ntfs partition into ext3. In my case all my data in /home folder didn&#8217;t fit into 40Gb, so I had to resize the root / partition. This is not possible while the system is running, so I had to burn Ubuntu Live CD, boot from the CD with &#8220;try Ubuntu without affecting you current system&#8221; option, and run GParted from there.</p>
<p>Note, that resizing and moving partitions is a time-consuming process &#8211; it may take hours, depending on the size of your partitions, so reserve enough time for this operation.</p>
<p><strong>3. Mount the new filesystem</strong></p>
<p><code>$sudo mkdir /mnt/newhome<br />
$sudo mount -t ext3 /dev/??? /mnt/newhome<br />
</code></p>
<p><strong>4. Copy all files to new home</strong></p>
<p><code>$cd /home<br />
$sudo cp -ax * /mnt/newhome</code></p>
<p>That is a copy with &#8220;preserve links, preserve mode, ownership, timestamps, copy directories recursively, stay on this file system&#8221; parameters.</p>
<p><strong>5. Change homes</strong></p>
<p>Unmount new home partition from temporary mount point</p>
<p><code>$sudo umount /mnt/newhome</code></p>
<p>Move old home to a temporary folder oldhome (note that this works only when you are moving /home to own partition from root partition, if you had /home on its own partition already and just moving it to the new place, you&#8217;ll need to unmount old /home partition instead of moving it to a temporary folder oldhome)</p>
<p><code>$sudo mv /home /oldhome</code></p>
<p>Create a mount point for new home partition</p>
<p><code>$sudo mkdir /home</code></p>
<p>Mount new home partition to /home</p>
<p><code>$sudo mount /dev/??? /home</code></p>
<p><strong>6. Compare the results</strong></p>
<p>You don&#8217;t really have to do that, but if you want to be extra sure that everything is ok and are prepared to wait a bit longer, then type:</p>
<p><code>$sudo diff -rq /home /oldhome</code></p>
<p><strong>7. Make changes permanent</strong></p>
<p>Add a line to the “/etc/fstab” file that looks like the following:</p>
<p><code>/dev/??? /home ext3 nodev,nosuid 0 2</code></p>
<p><strong>8. Remove old home</strong></p>
<p>Now that everything is ok, you can remove the old home folder (same note as in step 5 &#8211; if you had old home on its own partition already &#8211; then use GParted to reallocate old partition for new needs)</p>
<p><code>$sudo rm -r /oldhome</code></p>
<p>Voila! Now your /home is on its very own partition.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2008%2F04%2Fmoving-home-to-its-own-partition.html&amp;linkname=Moving%20%2Fhome%20to%20its%20own%20partition"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
