<?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-10092918</id><updated>2011-12-14T18:55:08.292-08:00</updated><title type='text'>The Howto (and Howto-Not) Corner</title><subtitle type='html'>A random collection of notes and recepies on open source technologies.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10092918.post-8254692071178759237</id><published>2009-11-04T10:39:00.000-08:00</published><updated>2009-11-04T11:34:19.775-08:00</updated><title type='text'>Clean install of 64-bit Flash player in Ubuntu 9.10 Karmic Koala</title><content type='html'>&lt;ol&gt;&lt;li&gt;Dowload the archive from http://labs.adobe.com/downloads/flashplayer10.html&lt;/li&gt;&lt;li&gt;Unpack it to /opt:&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;sudo mkdir /opt/flashplayer&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; cd /opt/flashplayer/&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; sudo tar zxf /some/path/Downloads/libflashplayer-10.0.32.18.linux-x86_64.so.tar.gz&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Use update-alternatives to make it the default flash player:&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;for i in firefox iceape iceweasel midbrowser mozilla xulrunner-addons xulrunner&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; do&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; sudo update-alternatives --install /usr/lib/${i}/plugins/flashplugin-alternative.so \&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${i}-flashplugin &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;/opt/flashplayer/libflashplayer.so 100&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; done &lt;/span&gt;&lt;/li&gt;&lt;li&gt;Verify that the link really points to /opt/flashplayer:&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ls -l /etc/alternatives/firefox-flashplugin&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; # outputs /etc/alternatives/firefox-flashplugin -&amp;gt; /opt/flashplayer/libflashplayer.so&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Remove the Ubufox Flash player override:&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;ls -l /usr/share/ubufox/plugins/&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; # npwrapper.libflashplayer.so -&amp;gt;&lt;br /&gt;# /usr/lib/flashplugin-installer/npwrapper.libflashplayer.so&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; sudo rm /usr/share/ubufox/plugins/npwrapper.libflashplayer.so&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; sudo ln -s /opt/flashplayer/libflashplayer.so /usr/share/ubufox/plugins/&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Verify that Firefox is using the plugin:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;restart Firefox&lt;/li&gt;&lt;li&gt;open a new tab and type about:plugins&lt;/li&gt;&lt;li&gt;you should see &lt;b&gt;File name: libflashplayer.so&lt;/b&gt; under &lt;b&gt;Shockwave Flash&lt;/b&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-8254692071178759237?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/8254692071178759237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=8254692071178759237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8254692071178759237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8254692071178759237'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2009/11/clean-install-of-64-bit-flash-player-in.html' title='Clean install of 64-bit Flash player in Ubuntu 9.10 Karmic Koala'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-8667442366186499262</id><published>2009-02-09T12:25:00.000-08:00</published><updated>2009-02-09T12:32:51.958-08:00</updated><title type='text'>update-alternatives</title><content type='html'>So you want to add another alternative to the &lt;code&gt;update-alternatives&lt;/code&gt; list in Ubuntu or Debian? Here's an example for Java.&lt;br /&gt;&lt;br /&gt;Assumptions: Sun's binary JDK installed to &lt;code&gt;/opt/java/jdk1.6.0_12/&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;Add all it's basic tools to the list as follows:&lt;br /&gt;&lt;pre&gt;sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.6.0_12/bin/java 1&lt;br /&gt;sudo update-alternatives --install /usr/bin/javac javac /opt/java/jdk1.6.0_12/bin/javac 1&lt;br /&gt;sudo update-alternatives --install /usr/bin/javaws javaws /opt/java/jdk1.6.0_12/bin/javaws 1&lt;br /&gt;&lt;/pre&gt;or even simpler:&lt;br /&gt;&lt;pre&gt;for p in java javac javaws&lt;br /&gt;do&lt;br /&gt; sudo update-alternatives --install /usr/bin/$p $p /opt/java/jdk1.6.0_12/bin/$p 1&lt;br /&gt;done&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-8667442366186499262?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/8667442366186499262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=8667442366186499262' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8667442366186499262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8667442366186499262'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2009/02/update-alternatives.html' title='update-alternatives'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-5270562455495892930</id><published>2008-11-14T00:00:00.000-08:00</published><updated>2008-11-14T00:03:08.467-08:00</updated><title type='text'>Tune MySQL performance</title><content type='html'>For a dual-core machine with 2 GB of RAM:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ cat /etc/mysql/conf.d/performance.cnf &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;[mysqld]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;query_cache_size=32M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;max_connections=300&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;thread_cache_size=80&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;thread_concurrency=4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;key_buffer=128M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sort_buffer_size=1M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;read_buffer_size=1M&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;read_rnd_buffer_size=1M&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Especially max_connections is helpful if you have high concurrency and get &lt;code class="literal"&gt;"&lt;/code&gt;&lt;code class="literal"&gt;Lost connection           to server during query&lt;span style="font-size:100%;"&gt;"&lt;/span&gt;&lt;/code&gt; errors.&lt;code class="literal"&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-5270562455495892930?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/5270562455495892930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=5270562455495892930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/5270562455495892930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/5270562455495892930'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2008/11/tune-mysql-performance.html' title='Tune MySQL performance'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-2402062207879039246</id><published>2008-11-13T10:06:00.000-08:00</published><updated>2008-11-13T10:10:21.855-08:00</updated><title type='text'>MySQL character set information</title><content type='html'>General:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mysql&gt; show variables like 'character_set_%';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| Variable_name            | Value                      |&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_client     | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_connection | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_database   | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_filesystem | binary                     | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_results    | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_server     | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_set_system     | utf8                       | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| character_sets_dir       | /usr/share/mysql/charsets/ | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+--------------------------+----------------------------+&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Particular (existing) database/table etc:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mysql&gt; show create database dbname;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+----------+--------------------------------------------------------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| Database | Create Database                                                    |&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+----------+--------------------------------------------------------------------+&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;| crawler  | CREATE DATABASE `dbname` /*!40100 DEFAULT CHARACTER SET latin1 */ | &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;+----------+--------------------------------------------------------------------+&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-2402062207879039246?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/2402062207879039246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=2402062207879039246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2402062207879039246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2402062207879039246'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2008/11/mysql-character-set-information.html' title='MySQL character set information'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-2353441573944844348</id><published>2008-11-13T10:04:00.001-08:00</published><updated>2008-11-13T10:06:32.888-08:00</updated><title type='text'>Set default MySQL charset in Ubuntu</title><content type='html'>$ cat /etc/mysql/conf.d/charset.cnf&lt;br /&gt;[mysqld]&lt;br /&gt;character-set-server=utf8&lt;br /&gt;collation-server=utf8_general_ci&lt;br /&gt;[mysql]&lt;br /&gt;default-character-set=utf8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-2353441573944844348?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/2353441573944844348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=2353441573944844348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2353441573944844348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2353441573944844348'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2008/11/set-default-mysql-charset-in-ubuntu.html' title='Set default MySQL charset in Ubuntu'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-5753231257581630721</id><published>2008-03-14T00:59:00.000-07:00</published><updated>2008-03-14T01:11:38.125-07:00</updated><title type='text'>Determine the memory type in Linux</title><content type='html'>&lt;ol&gt;&lt;li&gt;sudo lshw # for basic information &lt;/li&gt;&lt;li&gt;sudo apt-get install i2c-tools lm-sensors&lt;/li&gt;&lt;li&gt;sudo modprobe eeprom&lt;/li&gt;&lt;li&gt;sudo modprobe i2c-i801&lt;br /&gt;&lt;/li&gt;&lt;li&gt;wget http://www.lm-sensors.org/browser/i2c-tools/trunk/eeprom/decode-dimms.pl?format=raw&lt;/li&gt;&lt;li&gt;mv decode-dimms.pl\?format\=raw decode-dimms.pl&lt;/li&gt;&lt;li&gt;perl decode-dimms.pl&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-5753231257581630721?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/5753231257581630721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=5753231257581630721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/5753231257581630721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/5753231257581630721'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2008/03/determine-memory-type-in-linux.html' title='Determine the memory type in Linux'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-3853027954391582004</id><published>2007-05-29T06:54:00.000-07:00</published><updated>2007-05-29T07:00:46.908-07:00</updated><title type='text'>Resetting an xterm</title><content type='html'>&lt;ol&gt;&lt;li&gt;reset&lt;/li&gt;&lt;li&gt;if that doesn't help, &lt;span style="font-family: monospace;"&gt;&lt;/span&gt;ESC c should supposedly do a full reset (seems not to work for me)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;or enable the xterm menu:&lt;br /&gt;&lt;pre&gt;XTerm*vtMenu*softreset*Label:  Do Soft Reset&lt;br /&gt;XTerm*vtMenu*hardreset*Label:  Do Full Reset&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-3853027954391582004?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/3853027954391582004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=3853027954391582004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/3853027954391582004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/3853027954391582004'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/resetting-xterm.html' title='Resetting an xterm'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-587935011887806616</id><published>2007-05-29T04:34:00.000-07:00</published><updated>2007-05-29T04:36:31.213-07:00</updated><title type='text'>Locales in Ubuntu and Debian</title><content type='html'>It used to be a matter of dpkg-reconfigure locales to get the locales you want. Not any more. At least in Ubuntu you have to install the relevant language packs.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;apt-get install language-pack-et language-pack-en # Estonian and English&lt;/li&gt;&lt;li&gt;update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 # set default to English&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-587935011887806616?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/587935011887806616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=587935011887806616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/587935011887806616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/587935011887806616'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/locales-in-ubuntu-and-debian.html' title='Locales in Ubuntu and Debian'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-7426569013909227137</id><published>2007-05-18T06:24:00.000-07:00</published><updated>2007-05-18T06:30:17.765-07:00</updated><title type='text'>Enhancements to xubuntu-desktop metapackage</title><content type='html'>xubuntu-desktop-expert:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;either don't depend on xorg-video-all and xorg-input-all or purge unused modules after install.&lt;/li&gt;&lt;li&gt;either don't depend on Eastern fonts or purge unused ones after install.&lt;/li&gt;&lt;li&gt;add localepurge, debfoster, deborphan&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-7426569013909227137?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/7426569013909227137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=7426569013909227137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/7426569013909227137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/7426569013909227137'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/enhancements-to-xubuntu-desktop.html' title='Enhancements to xubuntu-desktop metapackage'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-1744030137460368508</id><published>2007-05-18T04:34:00.000-07:00</published><updated>2007-05-18T05:23:13.614-07:00</updated><title type='text'>Install Ubuntu (Feisty) from Windows</title><content type='html'>If you want to do it manually from Windows 95/98:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;mkdir c:\boot; cd boot&lt;/li&gt;&lt;li&gt;download http://kent.dl.sourceforge.net/sourceforge/grub4dos/grub_for_dos-0.4.2.zip and unzip to boot&lt;/li&gt;&lt;li&gt;download http://archive.ubuntu.com/ubuntu/dists/feisty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/initrd.gz and http://archive.ubuntu.com/ubuntu/dists/feisty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/linux&lt;/li&gt;&lt;li&gt;create a menu.lst file. I've chosen to install the minimal server edition, consult http://archive.ubuntu.com/ubuntu/dists/feisty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/pxelinux.cfg/default&lt;br /&gt;if you want to install the full Gnome Ubuntu edition.&lt;br /&gt;menu.lst&lt;br /&gt;title Install Ubuntu Server Edition&lt;br /&gt;kernel   (hd0,0)/boot/linux base-installer/kernel/linux/extra-packages-2.6= tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=normal  --&lt;br /&gt;initrd   (hd0,0)/boot/initrd.gz&lt;br /&gt;&lt;/li&gt;&lt;li&gt;reboot into plain DOS (press F8 during boot and choose Safe mode command prompt),&lt;br /&gt;cd boot&lt;br /&gt;grub (or grub --config-file="c:\boot\menu.lst")&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Ubuntu installation will start.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;XP installation is similar, just append c:\grldr="Install Ubuntu" to c:\boot.ini.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Possible errors:&lt;/span&gt;&lt;br /&gt;It may happen, that the filesystem type is not properly changed if you chose to setup partition table manually. Grub fails to install in that case and grub-install will fail with a confusing message "file ...boot/grub/stage1 not read correctly". Just umount /target, fdisk /dev/hda and fix the partition type + rerun Install grub boot loader from menu.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-1744030137460368508?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/1744030137460368508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=1744030137460368508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/1744030137460368508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/1744030137460368508'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/install-ubuntu-feisty-from-windows.html' title='Install Ubuntu (Feisty) from Windows'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-2496285384105285437</id><published>2007-05-17T03:30:00.000-07:00</published><updated>2007-05-17T03:33:15.406-07:00</updated><title type='text'>Install GMPY on Ubuntu</title><content type='html'>&lt;ol&gt;&lt;li&gt;sudo apt-get install python-dev libgmp3-dev build-essential&lt;/li&gt;&lt;li&gt;cd tmp; wget http://gmpy.googlecode.com/files/gmpy-1.02-1.zip&lt;/li&gt;&lt;li&gt;unzip gmpy-1.02-1.zip&lt;/li&gt;&lt;li&gt;cd gmpy-1.02&lt;/li&gt;&lt;li&gt;sudo python setup.py install&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-2496285384105285437?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/2496285384105285437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=2496285384105285437' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2496285384105285437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/2496285384105285437'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/install-gmpy-on-ubuntu.html' title='Install GMPY on Ubuntu'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-691642853876656787</id><published>2007-05-05T00:48:00.000-07:00</published><updated>2007-05-05T04:05:26.057-07:00</updated><title type='text'>Tweaking Linux for broadband connection</title><content type='html'>http://www.santa-li.com/linuxonbb.html:&lt;br /&gt;&lt;br /&gt;You can pick an arbitrarily large window size (for the most part)       and not have to worry too much about making it too big.   I use a window size of 512 KB (or 524288 bytes)       myself, and I have no problems at all.   My brother, who runs Linux over a different broadband provider than       I have, had some trouble with using 512 KB--so, instead he used 256 KB (or 262144 bytes) which worked better for       him.   Typically, you will notice that your connection is actually slower than the default settings if your       window size is too big.   That being said, you should try out different size window sizes and see what       works best for you--but, in most cases either 512 KB, 256 KB, or 128 KB seem to do the trick quite nicely.&lt;br /&gt;&lt;br /&gt;/etc/sysctl.conf (substituting your window size in place of 524288, if necessary):&lt;br /&gt;&lt;p class="CODE"&gt;        # Tweaks for faster broadband...&lt;br /&gt;           net.core.rmem_default = 524288&lt;br /&gt;           net.core.rmem_max = 524288&lt;br /&gt;           net.core.wmem_default = 524288&lt;br /&gt;           net.core.wmem_max = 524288&lt;br /&gt;           net.ipv4.tcp_wmem = 4096 87380 524288&lt;br /&gt;           net.ipv4.tcp_rmem = 4096 87380 524288&lt;br /&gt;           net.ipv4.tcp_mem = 524288 524288 524288&lt;br /&gt;           net.ipv4.tcp_rfc1337 = 1&lt;br /&gt;           net.ipv4.ip_no_pmtu_disc = 0&lt;br /&gt;           net.ipv4.tcp_sack = 1&lt;br /&gt;           net.ipv4.tcp_fack = 1&lt;br /&gt;           net.ipv4.tcp_window_scaling = 1&lt;br /&gt;           net.ipv4.tcp_timestamps = 1&lt;br /&gt;           net.ipv4.tcp_ecn = 0&lt;br /&gt;           net.ipv4.route.flush = 1&lt;/p&gt;    sudo sysctl -p&lt;br /&gt;&lt;br /&gt;And turn off IPv6:&lt;br /&gt;&lt;br /&gt;sudo su&lt;br /&gt;echo 'alias net-pf-10 off' &gt;&gt; /etc/modprobe.d/blacklist_ipv6&lt;br /&gt;&lt;br /&gt;Check after reboot:&lt;br /&gt;lsmod | grep ipv6&lt;br /&gt;dmesg | grep 'family 10'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-691642853876656787?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/691642853876656787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=691642853876656787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/691642853876656787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/691642853876656787'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/tweaking-linux-for-broadband-connection.html' title='Tweaking Linux for broadband connection'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-8858348711593282681</id><published>2007-05-04T23:29:00.000-07:00</published><updated>2007-05-05T04:58:40.670-07:00</updated><title type='text'>Tweaking Linux for speed</title><content type='html'>This is inspired, but not limited by http://kmandla.wordpress.com/2006/11/11/howto-set-up-edgy-for-speed/ .&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Use  hashed  b-trees  to  speed  up lookups in large directories when creating filesystems:&lt;br /&gt;sudo mke2fs -j -O dir_index /dev/hda1&lt;/li&gt;&lt;li&gt;Optimize directories.&lt;br /&gt;e2fsck -fD /dev/hda1&lt;br /&gt;man e2fsck:&lt;br /&gt;-D     Optimize  directories  in filesystem.  This option causes e2fsck&lt;br /&gt;     to try to optimize all directories, either by reindexing them if&lt;br /&gt;     the  filesystem  supports directory indexing,  or by sorting and&lt;br /&gt;     compressing directories for smaller directories, or for filesys‐&lt;br /&gt;     tems using traditional linear directories.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use data=writeback and noatime when mounting ext3 partitions (/etc/fstab):&lt;br /&gt;/dev/hda1     /    ext3    defaults,data=writeback,noatime   0    1&lt;br /&gt;sudo tune2fs -o journal_data_writeback /dev/hda1&lt;br /&gt;From man mount:&lt;br /&gt;writeback&lt;br /&gt;            Data ordering is not preserved - data may be written into&lt;br /&gt;            the  main file system after its metadata has been commit‐&lt;br /&gt;            ted to the journal.  This is rumoured to be the  highest-&lt;br /&gt;            throughput  option.   It  guarantees internal file system&lt;br /&gt;            integrity, however it can allow old  data  to  appear  in&lt;br /&gt;            files after a crash and journal recovery.&lt;br /&gt;noatime&lt;br /&gt;            Do not update inode access  times  on  this  file  system&lt;br /&gt;            (e.g,  for  faster  access  on the news spool to speed up&lt;br /&gt;            news servers).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Choose an I/O scheduler wisely. Although CFQ should be the default, it does no harm to force it by passing elevator=cfq to kernel command line (by editing /boot/grub/menu.lst and running update-grub).&lt;em&gt;&lt;/em&gt;&lt;br /&gt;Check your current scheduler:&lt;br /&gt;cat /sys/block/hda/queue/scheduler # or&lt;br /&gt;dmesg | grep scheduler&lt;br /&gt;&lt;br /&gt;From http://www.redhat.com/magazine/008jun05/features/schedulers/ :&lt;br /&gt;&lt;p&gt;The Completely Fair Queuing (CFQ) scheduler is the default algorthim in Red Hat Enterprise Linux 4. As the name implies, CFQ maintains a scalable per-process I/O queue and attempts to distribute the available I/O bandwidth equally among all I/O requests. CFQ is well suited for mid-to-large multi-processor systems and for systems which require balanced I/O performance over multiple LUNs and I/O controllers.&lt;/p&gt;  &lt;p&gt;The Deadline elevator uses a deadline algorithm to minimize I/O latency for a given I/O request. The scheduler provides near real-time behavior and uses a round robin policy to attempt to be fair among multiple I/O requests and to avoid process starvation. Using five I/O queues, this scheduler will aggressively re-order requests to improve I/O performance.&lt;/p&gt;  &lt;p&gt;The NOOP scheduler is a simple FIFO queue and uses the minimal amount of CPU/instructions per I/O to accomplish the basic merging and sorting functionality to complete the I/O. It assumes performance of the I/O has been or will be optimized at the block device (memory-disk) or with an intelligent HBA or externally attached controller.&lt;/p&gt;  &lt;p&gt;The Anticipatory elevator introduces a controlled delay before dispatching the I/O to attempt to aggregate and/or re-order requests improving locality and reducing disk seek operations. This algorithm is intended to optimize systems with small or slow disk subsystems. One artifact of using the AS scheduler can be higher I/O latency.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Check that DMA is enabled.&lt;br /&gt;dmesg | grep -i dma&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Consider using readahead, prelink and preload. Prelink is generally a must. Readahead may cut boot times.&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Readahead allows the user to specify a set of files to be read into the page cache to accelerate first time loading of programs, typically during the boot  sequence.&lt;/li&gt;&lt;li&gt;The prelink package contains a utility which modifies ELF shared libraries and executables, so that far fewer relocations need to be resolved at runtime and thus programs come up faster.&lt;/li&gt;&lt;li&gt;preload monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times.&lt;/li&gt;&lt;/ul&gt;sudo apt-get install readahead prelink preload&lt;br /&gt;sudo sed -i 's/PRELINK=.*/PRELINK=yes/' /etc/default/prelink&lt;br /&gt;pass 'profile' option to kernel with grub on next boot, so that readahead can be reprofiled&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Enable concurrent boot.&lt;br /&gt;sudo sed -i 's/CONCURRENCY=.*/CONCURRENCY=shell/' /etc/init.d/rc&lt;/li&gt;&lt;li&gt;Place the swap partition wisely. Sectors are generally numbered starting from the outside of the disk, so either try to place swap close to sector 0 (on the outside of the drive, where read/write speed may or may not be higher) or in the middle. Let me quote:&lt;br /&gt;Modern disks have more sectors in outer than in inner tracks but nevertheless placing swap partitions at the outer rim of the disk is questionable. The usage pattern of swap partitions involves short transfers between head movements. Therefore increasing throughput is less important then reducing seek time. It is better to place swap partitions at around the middle of the disk (but notice that the disk lies to fdisk about its true geometry and does not tell about outer tracks being bigger than inner ones so what looks to be the middle of the disk in fdisk is not the physical middle).&lt;/li&gt;&lt;li&gt;Control swapping according to your memory resources.&lt;br /&gt;Quoting:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;If you have a lot of memory and succeed in not using swap at all then set vm.swappiness to 0&lt;/li&gt;&lt;li&gt; If your computer has little memory and needs to swap much set vm.swappiness to 100&lt;/li&gt;&lt;li&gt; A good default in between is vm.swappiness=60&lt;/li&gt;&lt;/ul&gt;It is possible to turn off swapping in Xubuntu with 512 mb of memory or more and in Ubuntu (Gnome) with more than 512 mb of memory.&lt;br /&gt;sudo sysctl vm.swappiness=0&lt;br /&gt;sudo swapoff -a&lt;br /&gt;sudo swapon -a&lt;br /&gt;sudo su&lt;br /&gt;echo 'vm.swappiness=0' &gt;&gt; /etc/sysctl.conf&lt;/li&gt;&lt;li&gt;Turn off IPv6:&lt;br /&gt;sudo su&lt;br /&gt;echo 'alias net-pf-10 off' &gt;&gt; /etc/modprobe.d/blacklist_ipv6&lt;br /&gt;check after reboot:&lt;br /&gt;lsmod | grep ipv6&lt;br /&gt;Also turn off ipv6 in Firefox/Iceweasel:&lt;br /&gt;about:config&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Turn off filesystem checking for foreign filesystems  and for filesystems that don't need to be checked (this will considerably speed up boot):&lt;br /&gt;edit /etc/fstab and set last number to 0 for filesystems that don't need checking, e.g.&lt;br /&gt;UUID=x /media/sda7     ntfs    defaults,nls=utf8,umask=007,gid=46 0       0&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-8858348711593282681?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/8858348711593282681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=8858348711593282681' title='26 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8858348711593282681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/8858348711593282681'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/tweaking-linux-for-speed.html' title='Tweaking Linux for speed'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>26</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-4107794044285973799</id><published>2007-05-03T11:13:00.000-07:00</published><updated>2007-05-05T23:57:41.024-07:00</updated><title type='text'>Trimming down etch to ~100 MB</title><content type='html'>The basic recepie:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;sudo debootstrap etch etch/ ftp://ftp.ee.debian.org/debian&lt;br /&gt;&lt;/li&gt;&lt;li&gt;sudo chroot etch&lt;/li&gt;&lt;li&gt;apt-get install localepurge&lt;br /&gt;&lt;/li&gt;&lt;li&gt;apt-get --purge remove  dselect aptitude dhcp3-client dhcp3-common info man-db manpages dmidecode laptop-detect&lt;/li&gt;&lt;li&gt; apt-get install grub initrd-tools   linux-image-686 ssh python-minimal&lt;br /&gt;&lt;/li&gt;&lt;li&gt;mkdir /boot/grub; update-grub&lt;/li&gt;&lt;li&gt;apt-get clean&lt;/li&gt;&lt;li&gt;APT cache:&lt;br /&gt;6.4M    &lt;span style="color: rgb(204, 204, 204);"&gt;/var/cache/apt/pkgcache.bin&lt;/span&gt;&lt;br /&gt;6.4M    &lt;span style="color: rgb(204, 204, 204);"&gt;/var/cache/apt/srcpkgcache.bin&lt;/span&gt;&lt;br /&gt;19M     &lt;span style="color: rgb(204, 204, 204);"&gt;/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_etch_main_binary-i386_Packages&lt;/span&gt;&lt;br /&gt;3.6M    /var/lib/dpkg/info&lt;br /&gt;internationalization:&lt;br /&gt;6.9M    &lt;span style="color: rgb(204, 204, 204);"&gt;/usr/share/i18n&lt;/span&gt;&lt;br /&gt;4.9M    &lt;span style="color: rgb(204, 204, 204);"&gt;/usr/lib/gconv&lt;/span&gt;&lt;br /&gt;documentation:&lt;br /&gt;8.2M    &lt;span style="color: rgb(204, 204, 204);"&gt;/usr/share/doc&lt;/span&gt;&lt;br /&gt;4.7M    &lt;span style="color: rgb(204, 204, 204);"&gt;/usr/share/man&lt;/span&gt;&lt;br /&gt;zoneinfo:&lt;br /&gt;5.6M    /usr/share/zoneinfo&lt;br /&gt;kernel modules:&lt;br /&gt;44M     lib/modules/2.6.18-4-686/kernel&lt;/li&gt;&lt;li&gt;time for cleanup:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;vi /etc/apt/sources.list, comment everything out. This will temporarily disable apt&lt;/li&gt;&lt;li&gt;apt-get update&lt;/li&gt;&lt;li&gt;rm /usr/share/i18n/{charmaps,locales}/*&lt;/li&gt;&lt;li&gt;rm -rf /usr/lib/gconv # or at least&lt;br /&gt;for i in IBM INIS EBCDIC MAC ISO- ISO_ KOI JOHAB CP BIG5 EUC ECMA ARM ASM GEOR GOST GREEK LATIN NATS GB SJIS; do rm /usr/lib/gconv/${i}*; done&lt;/li&gt;&lt;li&gt;rm -rf /usr/share/{doc,man}/*&lt;/li&gt;&lt;li&gt;boot into the system and check what modules are actually in use with lsmod, remove the modules you don't need (e.g. who needs sound in a router? or even better, build your own kernel):&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/sound&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/drivers/isdn&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/drivers/net/wireless&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/drivers/media&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/drivers/scsi/pcmcia&lt;br /&gt;version=2.6.18-4-686&lt;br /&gt;depmod -a -F /boot/System.map-$version $version&lt;br /&gt;update-initramfs -u # to check that nothing is broken&lt;br /&gt;# other redundant modules:&lt;br /&gt;/lib/modules/2.6.18-4-686/kernel/net/{ax25,ipx,x25,ipv6,appletalk,atm,bluetooth,decnet,econet,irda}&lt;br /&gt;/lib/modules/2.6.18-4-686/kernel/fs/{reiserfs,smbfs,qnx4,xfs,befs,bfs,affs,afs,coda,cifs,freevxfs,hfs,hfsplus,hpfs,ocfs2,nfs,nfs_common,nfsd,ncpfs,ufs,udf}&lt;br /&gt;# remove modules that you don't need from (spacehogs):&lt;br /&gt;# /lib/modules/2.6.18-4-686/kernel/drivers/net&lt;br /&gt;# /lib/modules/2.6.18-4-686/kernel/drivers/scsi&lt;br /&gt;rm /lib/modules/2.6.18-4-686/kernel/drivers/scsi/sata*.ko&lt;br /&gt;rm -rf /lib/modules/2.6.18-4-686/kernel/drivers/scsi/aic7xxx*&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;we are down to 97M now:&lt;br /&gt;97M    /&lt;br /&gt;&lt;/li&gt;&lt;li&gt;configure timezone, hosts, hostname, network interfaces,  fstab, name resolver:&lt;br /&gt;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;tzconfig&lt;/li&gt;&lt;li&gt;echo '127.0.0.1       localhost' &gt; /etc/hosts # see http://www.howtoforge.com/perfect_setup_debian_etch_p3 for IPv6&lt;br /&gt;&lt;/li&gt;&lt;li&gt;echo 'my.hostname' &gt; /etc/hostname&lt;/li&gt;&lt;li&gt;vi /etc/network/interfaces&lt;br /&gt;iface lo inet loopback&lt;br /&gt;...&lt;br /&gt;&lt;/li&gt;&lt;li&gt;vi /etc/fstab&lt;br /&gt;# &lt;file&gt; &lt;mount&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;&lt;br /&gt;proc               /proc       proc    defaults                                           0       0&lt;br /&gt;/dev/hda2   none        swap    sw                                                      0       0&lt;br /&gt;&lt;file&gt;&lt;mount&gt;&lt;type&gt;&lt;options&gt;&lt;dump&gt;&lt;pass&gt;/dev/hda1   /                ext3    defaults,errors=remount-ro  0       1&lt;br /&gt;&lt;/pass&gt;&lt;/dump&gt;&lt;/options&gt;&lt;/type&gt;&lt;/mount&gt;&lt;/file&gt;&lt;/pass&gt;&lt;/dump&gt;&lt;/options&gt;&lt;/type&gt;&lt;/mount&gt;&lt;/file&gt;&lt;/li&gt;&lt;li&gt;vi /etc/resolv.conf&lt;br /&gt;nameserver x.x.x.x&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;set root password or add an ordinary user and install sudo&lt;br /&gt;passwd&lt;br /&gt;&lt;/li&gt;&lt;li&gt;disable IPv6 if you don't need it&lt;/li&gt;&lt;li&gt;boot target with Knoppix, tomsrtbt or whatever other rescue tools you have&lt;/li&gt;&lt;li&gt;create a parition for the new system, mkfs, mount and cd to target root&lt;br /&gt;&lt;/li&gt;&lt;li&gt;transfer the filesystem:&lt;br /&gt;nc -lp 5555 | tar xf - # in target system&lt;br /&gt;cd etch; sudo tar cf - . | nc  target 5555&lt;br /&gt;&lt;/li&gt;&lt;li&gt;In target: chroot .; grub-install /dev/hda OR if you are unable to run grub from the target, create a grub floppy:&lt;/li&gt;&lt;ol&gt;&lt;li&gt;dd if=/boot/grub/stage1 of=/dev/fd0 bs=512&lt;br /&gt;dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1&lt;/li&gt;&lt;li&gt;in grub shell:&lt;br /&gt;root (hd0,0)&lt;br /&gt;kernel /vmlinuz root=/dev/hda1 ro&lt;br /&gt;initrd /initrd.img&lt;br /&gt;boot&lt;/li&gt;&lt;li&gt;when booted into target, run grub install&lt;br /&gt;if proc is not mounted, grub will complain Could Not Find Device For /boot,&lt;br /&gt;mount proc /proc&lt;br /&gt;cp /proc/mounts /etc/mtab&lt;br /&gt;grub-install /dev/hda&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;ready, reboot target&lt;/li&gt;&lt;li&gt;update-locale LC_ALL=C LANG=C&lt;br /&gt;&lt;/li&gt;&lt;li&gt;setup /etc/iftab&lt;/li&gt;&lt;li&gt;update-alternatives --set editor /usr/bin/vim.tiny&lt;/li&gt;&lt;li&gt;apt-get install sudo; visudo&lt;br /&gt;# or user ALL=(ALL) NOPASSWD: ALL&lt;br /&gt;%admin ALL=(ALL) ALL&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-4107794044285973799?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/4107794044285973799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=4107794044285973799' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/4107794044285973799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/4107794044285973799'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2007/05/trimming-down-etch.html' title='Trimming down etch to ~100 MB'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-110866268374457180</id><published>2005-02-17T09:47:00.000-08:00</published><updated>2005-02-20T11:16:27.903-08:00</updated><title type='text'>Trimming down Woody</title><content type='html'>During install:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;rm -r /target/tmp/* after kernel and modules install, before installing base&lt;/li&gt;   &lt;li&gt;cd /target/var/cache/apt/packages; rm * after packages are installed (be sure to do it on proper time)&lt;br /&gt;&lt;/li&gt; &lt;/ol&gt; I got debian woody down to 62 MB by:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;only installed the base system, didn't run tasksel&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;only listing main and no source packages in apt.sources (every package repository wastes a lot of disk space, alternatively you can turn off package caches in /etc/apt.conf),&lt;/li&gt;   &lt;li&gt;apt-get install localepurge; localepurge&lt;/li&gt;&lt;li&gt;apt-get clean&lt;br /&gt;&lt;/li&gt; &lt;li&gt;apt-get --purge remove man.* dhcp-client groff-base ipchains nano ppp.* tasksel base-config modconf&lt;/li&gt;  &lt;li&gt;rm -r /usr/share/{doc*,man*,info,locale} /usr/doc /usr/lib/gconv # remove docs etc&lt;br /&gt;&lt;/li&gt;    &lt;li&gt;using syslog to log to a remote host (alternative: use agressive log removal strategy)&lt;/li&gt;   &lt;li&gt;building a custom static kernel (no modules, /lib/modules was a whopping 12 MB)&lt;/li&gt; &lt;/ol&gt;Other things to consider:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;strip all binaries&lt;br /&gt;&lt;/li&gt; &lt;/ol&gt; What I did to setup and secure the box after install:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;echo -e 'map! jj \033' &gt; /root/.exrc # make vi more carpal-friendly&lt;br /&gt;&lt;/li&gt;&lt;li&gt;firewall: transfered the firewall scripts from another box&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;disabled inetd (you can't remove it as net-base depends on it):&lt;br /&gt;$ update-rc.d inetd stop 20 2 3 4 5 .&lt;br /&gt;(and edit /etc/inetd.conf to be sure everything is OK when it is accidenally started)&lt;br /&gt;&lt;/li&gt; &lt;li&gt;apt-get install wget ssh sudo&lt;/li&gt;&lt;li&gt;DNS serving: compiled ucspi-tcp, daemontools, djbdns and zonenotify in another box and installed these, also compiled and installed dnsmasq from testing.&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;disable root login via ssh and create a sudo user with all privileges, avoid su from now on&lt;br /&gt;&lt;/li&gt;      &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-110866268374457180?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/110866268374457180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=110866268374457180' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110866268374457180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110866268374457180'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2005/02/trimming-down-woody.html' title='Trimming down Woody'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-110865524453155373</id><published>2005-02-17T07:41:00.000-08:00</published><updated>2007-05-05T14:03:30.059-07:00</updated><title type='text'>Using Compaq Deskpro DP2000 6233MMX as a router</title><content type='html'>To enable keyboardless operation, you have to &lt;span style="font-style: italic;"&gt;enable server mode&lt;/span&gt; in the BIOS.&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;download &lt;span class="raqStandard"&gt;&lt;a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&amp;cc=us&amp;prodTypeId=0&amp;prodSeriesId=96264&amp;prodNameId=96834&amp;swItem=PSG_I263-3361&amp;swEnvOid=21&amp;swLang=8&amp;taskId=135&amp;mode=3" class="leftnav"&gt;Computer Setup/VP and PC Diagnostics&lt;/a&gt;&lt;/span&gt;  from http://h18007.www1.hp.com/support/files/Deskpro/us/locate/4_71.html&lt;/li&gt;   &lt;li&gt;create the required disks in DOS or Windows&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;set the password jumper on the motherboard to enabled position.&lt;/li&gt;&lt;li&gt;enter BIOS setup with the disks just created (note that you only need disks #2 and #3)&lt;/li&gt;    &lt;li&gt;choose Security Management&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;enable Power-on Password and then enable Network server mode&lt;/li&gt;&lt;li&gt;now you can remove the keyboard&lt;/li&gt;     &lt;/ol&gt;Note that &lt;span style="color: rgb(204, 0, 0);"&gt;you have to enter the password to enable the keyboard&lt;/span&gt;. There will generally be no password prompt, just type the letters in and press [enter], if you get it right you'll be able to use the keyboard again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-110865524453155373?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/110865524453155373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=110865524453155373' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110865524453155373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110865524453155373'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2005/02/using-compaq-deskpro-dp2000-6233mmx-as.html' title='Using Compaq Deskpro DP2000 6233MMX as a router'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-110865374350312637</id><published>2005-02-17T07:08:00.000-08:00</published><updated>2005-02-24T08:12:25.996-08:00</updated><title type='text'>Installing Debian on a secondary hard disk</title><content type='html'>The recommended way of installing Debian from an already running system is debootstrap (that I personally use most of the time). FAI is also a good option. However, if you need a quick way to launch full setup from a blank drive and you have a running Linux system, the following steps are the way to go:&lt;br /&gt;&lt;br /&gt;Assumptions: /dev/hdc is the empty drive.&lt;br /&gt;&lt;ol&gt;    &lt;li&gt;fdisk /dev/hdc and create a throw-away Linux partition (say, 100MB), &lt;span style="font-weight: bold;"&gt;don't forget to make the partition active&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;mke2fs /dev/hdc1&lt;/li&gt;   &lt;li&gt;mount /dev/hdc1 /mnt&lt;/li&gt;   &lt;li&gt;cd /mnt&lt;/li&gt;   &lt;li&gt;copy the kernel and inital ram disk from a Debian archive:&lt;br /&gt;wget ftp://ftp.ee.debian.org/debian/dists/stable/main/disks-i386/current/{bf2.4/linux.bin,images-1.44/bf2.4/root.bin}&lt;/li&gt;&lt;li&gt;for grub:&lt;/li&gt;       &lt;ol&gt;     &lt;li&gt;grub-install  --root-directory=/mnt /dev/hdc&lt;/li&gt;     &lt;li&gt;echo "(hd0)   /dev/hdc" &gt; /mnt/boot/grub/device.map&lt;br /&gt;&lt;/li&gt;     &lt;li&gt;echo "title Woody   install&lt;br /&gt;root (hd0,0)&lt;br /&gt;kernel /linux.bin&lt;br /&gt;initrd /root.bin&lt;br /&gt;boot" &gt; /mnt/boot/grub/menu.lst&lt;/li&gt;     &lt;li&gt;grub-install  --root-directory=/mnt /dev/hdc # reinstall grub with right settings&lt;/li&gt;     &lt;li&gt;if grub fails, but you get the grub shell at boot time, enter the lines from step 6.3. manually from grub shell (you don't obviously need title).&lt;/li&gt;   &lt;/ol&gt;   &lt;li&gt;for lilo:&lt;/li&gt;   &lt;ol&gt;     &lt;li&gt;cp /boot/{map,boot.b} /mnt/boot/&lt;/li&gt;     &lt;li&gt;echo "           &lt;br /&gt;disk=/dev/hdc bios=0x80&lt;br /&gt;boot=/dev/hdc&lt;br /&gt;map=/mnt/boot/map&lt;br /&gt;install=/mnt/boot/boot.b&lt;br /&gt;image=/mnt/linux.bin&lt;br /&gt;label=woodysetup&lt;br /&gt;initrd=/mnt/root.bin&lt;br /&gt;" &gt; /mnt/boot/lilo.conf&lt;/li&gt;     &lt;li&gt;lilo -C /mnt/boot/lilo.conf&lt;/li&gt;   &lt;/ol&gt; &lt;li&gt;put hdb into a new box (as hda), Debian stable install will start upon boot&lt;/li&gt;&lt;li&gt;note that you can safely erase/remove the partition that contains the boot files&lt;br /&gt;&lt;/li&gt;  &lt;/ol&gt; Good luck, and leave me comments.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-110865374350312637?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/110865374350312637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=110865374350312637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110865374350312637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110865374350312637'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2005/02/installing-debian-on-secondary-hard.html' title='Installing Debian on a secondary hard disk'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-110811813133821776</id><published>2005-02-11T00:27:00.000-08:00</published><updated>2005-02-20T12:50:21.266-08:00</updated><title type='text'>Migration from OpenBSD to Linux</title><content type='html'>I had an old OpenBSD 3.4 box lying around, but as it had only a 150 MB hard disk, it was quite useless. I needed to build a firewall and as Debian woody fits nicely in that space, I migrated the box to Debian.&lt;br /&gt;&lt;br /&gt;My setup:&lt;br /&gt;wd0 - a 150 MB disk&lt;br /&gt;wd0a - the 150 MB OpenBSD partition&lt;br /&gt;&lt;br /&gt;Here's how:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;get the linux kernel and Debian setup initial ramdisk images:&lt;br /&gt;$ mkdir /lin; cd /lin&lt;br /&gt;$ wget ftp://ftp.ee.debian.org/debian/dists/stable/main/disks-i386/current/{bf2.4/linux.bin,images-1.44/bf2.4/root.bin}&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;install grub into the boot block of the hard disk (THIS WILL DESTROY THE OPENBSD BOOTLOADER AND MAY RENDER YOUR DISK UNBOOTABLE):&lt;br /&gt;cd /tmp&lt;br /&gt;wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/All/grub-*&lt;br /&gt;tar jxf grub-*&lt;br /&gt;mv share/grub/i386-freebsd/ /grub&lt;br /&gt;dd if=/grub/stage1 of=/dev/wd0 bs=512 count=1&lt;br /&gt;dd if=/grub/stage2 of=/dev/wd0 bs=512 skip=1&lt;/li&gt;   &lt;li&gt;reboot, you will land into the grub shell,&lt;br /&gt;grub&gt; root (hd0,1,a)&lt;br /&gt;grub&gt; kernel /lin/linux.bin&lt;br /&gt;grub&gt; initrd /lin/root.bin&lt;br /&gt;grub&gt; boot&lt;/li&gt;   &lt;li&gt;Debian setup will start&lt;/li&gt;  &lt;/ol&gt;Leave me comments and remember -- &lt;span style="color: rgb(255, 0, 0);"&gt;use the instructions at your own risk&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-110811813133821776?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/110811813133821776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=110811813133821776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110811813133821776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110811813133821776'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2005/02/migration-from-openbsd-to-linux.html' title='Migration from OpenBSD to Linux'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10092918.post-110788899709406355</id><published>2005-02-08T10:16:00.000-08:00</published><updated>2005-02-20T10:49:30.756-08:00</updated><title type='text'>How to get an Epson EPL-5900L working in Debian</title><content type='html'>No plug'n'play here. Neither gs-gpl nor gs-esp work. You have to patch and use gs-afpl from non-free. gs-gpl v. 8.15 should work when it is released.&lt;br /&gt;&lt;br /&gt;Here's the general routine:&lt;br /&gt;&lt;ol&gt;   &lt;li&gt;apt-get install foomatic-bin foomatic-filters cupsys alien dpkg-dev&lt;br /&gt;&lt;/li&gt;   &lt;li&gt;apt-get source gs-afpl (valid for gs-afpl-8.14, 8.15 should Just Work(TM) )&lt;/li&gt;&lt;li&gt;cd gs-afpl-8.14/src&lt;br /&gt;&lt;/li&gt;    &lt;li&gt;wget -o `mktemp` -O - http://voxel.dl.sourceforge.net/sourceforge/epsonepl/ghostscript-8.00-ijs-ht.patch | patch&lt;br /&gt;&lt;/li&gt;&lt;li&gt;cd ..; dpkg-make&lt;/li&gt;   &lt;li&gt;cd ..; dpkg -i gs-afpl_8.14-3_i386.deb&lt;/li&gt;   &lt;li&gt;dpkg-reconfigure foomatic-filters, choose gs_afpl&lt;/li&gt;    &lt;li&gt;&lt;tm&gt;wget http://voxel.dl.sourceforge.net/sourceforge/epsonepl/epsoneplijs-0.4.0-1.fc2.i386.rpm&lt;/tm&gt;&lt;/li&gt;&lt;li&gt;alien epsoneplijs-0.4.0-1.fc2.i386.rpm&lt;/li&gt;   &lt;li&gt;dpkg -i epsoneplijs_0.4.0-2_i386.deb&lt;/li&gt;&lt;li&gt;if you want, you can save epsoneplijs_0.4.0-2_i386.deb and gs-afpl_8.14-3_i386.deb for later use&lt;br /&gt;&lt;/li&gt;   &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10092918-110788899709406355?l=marutosan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marutosan.blogspot.com/feeds/110788899709406355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10092918&amp;postID=110788899709406355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110788899709406355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10092918/posts/default/110788899709406355'/><link rel='alternate' type='text/html' href='http://marutosan.blogspot.com/2005/02/how-to-get-epson-epl-5900l-working-in.html' title='How to get an Epson EPL-5900L working in Debian'/><author><name>Marutosan</name><uri>http://www.blogger.com/profile/14650441255401517722</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
