<?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-8844925233998417938</id><updated>2012-02-15T22:59:27.483-08:00</updated><category term='MacBook'/><category term='shell tools'/><category term='Games'/><category term='Firefox'/><category term='vi'/><category term='iPod'/><category term='Nokia 770'/><category term='Linux'/><category term='Sage'/><category term='Cool Programs'/><category term='Ubuntu'/><category term='hg'/><category term='XFce4'/><category term='Blogger'/><category term='LaTeX'/><category term='Google'/><category term='Installation'/><title type='text'>Linux Wisdom</title><subtitle type='html'>A repository of (our) Linux wisdom.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxwisdom.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Franco</name><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>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7037754923783185422</id><published>2010-09-15T09:53:00.000-07:00</published><updated>2010-09-15T10:31:57.793-07:00</updated><title type='text'>How to use hg by ssh at LaCIM</title><content type='html'>D'abord, je vérifie que hg est bien installé sur le serveur :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$ ssh USERNAME@thales.math.uqam.ca&lt;br /&gt;Password:&lt;br /&gt;Last login: Wed Sep 15 12:56:35 2010 from 1.1.1.1&lt;br /&gt;thales:~ USERNAME$ hg version&lt;br /&gt;Mercurial Distributed SCM (version 1.3.1)&lt;br /&gt;&lt;br /&gt;Copyright (C) 2005-2009 Matt Mackall &lt;mpm@selenic.com&gt; and others&lt;br /&gt;This is free software; see the source for copying conditions. There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;&lt;/mpm@selenic.com&gt;&lt;/code&gt;&lt;/pre&gt;Ensuite, je teste si je peux utiliser Mercurial via ssh en mode non interactif :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;sbeaudry:~ slabbe$ ssh USERNAME@thales.math.uqam.ca hg version&lt;br /&gt;Password:&lt;br /&gt;bash: hg: command not found&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Je me reconnecte au serveur ssh et j'édite le fichier .bashrc afin d'ajouter dans le PATH le chemin où se trouve Mercurial.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$ ssh USERNAME@thales.math.uqam.ca&lt;br /&gt;Password:&lt;br /&gt;Last login: Wed Sep 15 13:00:18 2010 from 1.2.6.4&lt;br /&gt;thales:~ USERNAME$ which hg&lt;br /&gt;/usr/local/bin/hg&lt;br /&gt;thales:~ USERNAME$ cat .bashrc&lt;br /&gt;export PATH=/usr/local/bin:$PATH&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Je me déconnecte à nouveau et je teste si je peux utiliser Mercurial en mode non interactif :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$ ssh USERNAME@thales.math.uqam.ca hg version&lt;br /&gt;Password:&lt;br /&gt;Mercurial Distributed SCM (version 1.6.3+20100826)&lt;br /&gt;&lt;br /&gt;Copyright (C) 2005-2010 Matt Mackall &lt;mpm@selenic.com&gt; and others&lt;br /&gt;This is free software; see the source for copying conditions. There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;&lt;/mpm@selenic.com&gt;&lt;/code&gt;&lt;/pre&gt;Ça fonctionne!&lt;br /&gt;&lt;br /&gt;Ensuite, je peux utiliser Mercurial pour synchroniser des répertoires (via push, pull et update). Pour le répertoire de mon site web, j'ai initialisé avec hg init mon répertoire Sites. Ensuite, j'ai fait un clone de la manière suivante:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;hg clone ssh://USERNAME@thales.math.uqam.ca//Users/USERNAME/Sites Sites&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Puis, j'ai édité le fichier .hg/hgrc sur ma machine locale dans le répertoire de mon site web de la manière suivante :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# file .hg/hgrc&lt;br /&gt;[paths]&lt;br /&gt;default = ssh://USERNAME@thales.math.uqam.ca//Users/USERNAME/Sites&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Au LIRMM, j'ai édité le fichier .cshrc (plutôt que le .bashrc) de la manière suivante :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# fichier : .cshrc&lt;br /&gt;# Ajout par Slabbe en mars 2010&lt;br /&gt;# http://web.bilkent.edu.tr/Online/unixman/subsubsection3_3_6_1.html&lt;br /&gt;# Set path shell variable&lt;br /&gt;# (See description of path in the paragraph followin this example .cshrc)&lt;br /&gt;set path = ( /usr/bin /usr/local /usr/local/bin /usr/bin/X11 \&lt;br /&gt;    /usr/ucb /usr/opt/bin ~ )&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-7037754923783185422?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7037754923783185422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7037754923783185422'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2010/09/how-to-use-hg-by-ssh-at-lacim.html' title='How to use hg by ssh at LaCIM'/><author><name>Pol</name><uri>http://www.blogger.com/profile/07404997633089841331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/1822/3020/1600/Pola.0.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-968530502669941094</id><published>2009-07-01T03:47:00.000-07:00</published><updated>2009-07-01T03:57:38.891-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='hg'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Convert an svn repository to an hg repository</title><content type='html'>[The following is a very condensed version of the instructions found &lt;a href="http://ww2.samhart.com/node/49"&gt;here&lt;/a&gt;.]&lt;br /&gt;&lt;br /&gt;Suppose &lt;code&gt;svn-working-copy&lt;/code&gt; is a working copy of the svn repo.&lt;pre&gt;&lt;code&gt;hgimportsvn svn-working-copy hg-repo&lt;/code&gt;&lt;/pre&gt;Pull all SVN history with hgpullsvn&lt;pre&gt;&lt;code&gt;cd hg-repo&lt;br /&gt;hgpullsvn&lt;/code&gt;&lt;/pre&gt;Do an update for good measure&lt;pre&gt;&lt;code&gt;hg update (optional)&lt;/code&gt;&lt;/pre&gt;Clean up the .svn and .hgignore directories.&lt;pre&gt;&lt;code&gt;cd hg-repo&lt;br /&gt;find . -name .svn | xargs -0 rm -rf&lt;br /&gt;find . -name .hgignore | xargs -0 rm -rf&lt;/code&gt;&lt;/pre&gt;Done. Yay.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-968530502669941094?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/968530502669941094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/968530502669941094'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/07/convert-svn-repository-to-hg-repository.html' title='Convert an svn repository to an hg repository'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4102059438300870751</id><published>2009-07-01T03:27:00.000-07:00</published><updated>2009-07-01T03:36:52.414-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='shell tools'/><category scheme='http://www.blogger.com/atom/ns#' term='hg'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Install hg in a custom location</title><content type='html'>The hg installation scripts allow you do a system-wide installation or an installation in &lt;code&gt;$HOME&lt;/code&gt; (&lt;code&gt;~/bin&lt;/code&gt;, &lt;code&gt;~/lib&lt;/code&gt;,...). To use a different location, do the following.  &lt;br /&gt;&lt;br /&gt;The install-home option for make installs hg into &lt;code&gt;$HOME&lt;/code&gt; so we redefine the &lt;code&gt;$HOME&lt;/code&gt; variable.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;export HOME=/home/username/Applications/mercurial-1.2.1/&lt;br /&gt;mkdir $HOME&lt;/code&gt;&lt;/pre&gt;Then run make.&lt;pre&gt;&lt;code&gt;make install-home&lt;/code&gt;&lt;/pre&gt;Create symlinks, if desired.&lt;pre&gt;&lt;code&gt;cd /home/username/Applications/bin&lt;br /&gt;ln -s ../mercurial-1.2.1/bin/hg .&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Add the following to .bashrc (change appropriately; for example, lib vs lib64, ...).&lt;pre&gt;&lt;code&gt;export PYTHONPATH=$HOME/Applications/mercurial-1.2.1/lib64/python/&lt;br /&gt;export PATH=$HOME/Applications/bin:$HOME/bin:$PATH&lt;/code&gt;&lt;/pre&gt;Set &lt;code&gt;$HOME&lt;/code&gt; back to the original location.&lt;pre&gt;&lt;code&gt;export HOME=/home/username/&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4102059438300870751?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4102059438300870751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4102059438300870751'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/07/install-hg-in-custom-location.html' title='Install hg in a custom location'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3741593850076693582</id><published>2009-05-12T04:04:00.000-07:00</published><updated>2009-05-12T04:15:43.064-07:00</updated><title type='text'>Vim and Zip files</title><content type='html'>Today, by mistake, I tried to open a zipfile using vim.&lt;pre&gt;&lt;code&gt;vim archive.zip&lt;/code&gt;&lt;/pre&gt; I was presented with a list of the files contained in the zipfile, and was instructed to &lt;code&gt;Select a file with cursor and press ENTER&lt;/code&gt;. I didn't know that Vim had a zipfile brower! Very nice.&lt;br /&gt;&lt;br /&gt;(If this doesn't work for you, you need to install the zipfile browser plugin. Google for zip.vim to find it.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3741593850076693582?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3741593850076693582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3741593850076693582'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/05/vim-and-zip-files.html' title='Vim and Zip files'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-5210216792180585942</id><published>2009-05-04T15:26:00.000-07:00</published><updated>2009-05-04T15:38:08.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sage'/><title type='text'>Sage prompt in color</title><content type='html'>It is possible to activate colors for sage prompts in the terminal which is done by editing the file&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt; &lt;b&gt;$HOME/.sage/ipython/ipythonrc&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;As said by W. Stein on &lt;a href="http://groups.google.com/group/sage-devel/browse_thread/thread/304a39b13cf27990?hl=en"&gt;sage-devel&lt;/a&gt; :&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;"It has numerous color options, which are off by default since it is not possible to tell if the user's terminal has a white or black background, and any choice of colors looks like crap if you guess wrong about the background color." &lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;Since the background of my terminal is light, my settings are :&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# keep uncommented only the one you want:&lt;br /&gt;#colors Linux&lt;br /&gt;colors LightBG&lt;br /&gt;#colors NoColor&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-5210216792180585942?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5210216792180585942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5210216792180585942'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/05/sage-prompt-in-color.html' title='Sage prompt in color'/><author><name>Pol</name><uri>http://www.blogger.com/profile/07404997633089841331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/1822/3020/1600/Pola.0.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-2316328211988839811</id><published>2009-05-04T14:22:00.000-07:00</published><updated>2009-05-04T15:26:19.779-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sage'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Installing sagetex in sage</title><content type='html'>This post describes how I installed sagetex-2.0 recently. Of course, sage was already installed on my computer as well as texlive-full. First, I installed sagetex :&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt; &lt;b&gt;sage -i sagetex-2.0&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Then, I created the folder &lt;code&gt;~/.texmf/tex&lt;/code&gt; (for &lt;code&gt;*.sty&lt;/code&gt; files) and I edited the file &lt;code&gt;/etc/texmf/texmf.cnf&lt;/code&gt; by replacing the line&lt;br /&gt;&lt;pre&gt;&lt;code&gt;HOMETEXMF = $HOME/texmf&lt;/code&gt;&lt;/pre&gt;by&lt;br /&gt;&lt;pre&gt;&lt;code&gt;HOMETEXMF = $HOME/.texmf&lt;/code&gt;&lt;/pre&gt;Then, I copied the &lt;code&gt;&lt;span style="font-family:Georgia,serif;"&gt;sagetex.sty&lt;/span&gt;&lt;/code&gt; :&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt; &lt;b&gt;cp sage-3.4/examples/latex_embed/sagetex.sty ~/.texmf/tex/&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;and I ran the command&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt; &lt;b&gt;sudo texhash&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This allowed me to use sagetex from any repository without sagetex.sty inside. I found how to do it on the &lt;a href="http://forum.ubuntu-fr.org/viewtopic.php?id=156001"&gt;Ubuntu-fr forum&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-2316328211988839811?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/2316328211988839811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/2316328211988839811'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/05/installing-sagetex-in-sage.html' title='Installing sagetex in sage'/><author><name>Pol</name><uri>http://www.blogger.com/profile/07404997633089841331</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.blogger.com/blogger/1822/3020/1600/Pola.0.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-6115588184929740356</id><published>2009-01-20T04:17:00.000-08:00</published><updated>2009-01-20T04:18:58.724-08:00</updated><title type='text'>Reinstall deleted or damaged files in Debian/Ubuntu</title><content type='html'>Suppose you delete or damage a system file named&lt;i&gt;&lt;b&gt; idoit.iam&lt;/b&gt;&lt;/i&gt;. To recover the file, do the following.&lt;br /&gt;&lt;br /&gt;1. Locate the package which installed &lt;i&gt;&lt;b&gt;idoit.iam&lt;/b&gt;&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt; &lt;b&gt;dpkg-query -S &lt;i&gt;idiot.iam&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Say the package name is &lt;i&gt;&lt;b&gt;idiotic&lt;/b&gt;&lt;/i&gt;. (It is possible that there is more than one package, especially if you deleted a directory. Replace the package name with all the package names in what follows.)&lt;br /&gt;&lt;br /&gt;2. Try to reinstall the package:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;b&gt;apt-get --reinstall install &lt;i&gt;idoitic&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;3. Check to see whether your file has been replaced. If so, then you are happy &lt;img goomoji="360" style="margin: 0pt 0.2ex; vertical-align: middle;" src="http://mail.google.com/mail/e/360" /&gt; and owe me a beer &lt;img goomoji="983" style="margin: 0pt 0.2ex; vertical-align: middle;" src="http://mail.google.com/mail/e/983" /&gt;. If not, then it must be a configuration file (the previous command will not restore configuration files). But all is not lost. Proceed.&lt;br /&gt;&lt;br /&gt;4. Download the package without installing:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;b&gt;apt-get -d --reinstall install &lt;i&gt;idiotic&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;   &lt;br /&gt;(Technically you don't have to do this because the command in step 2 should have downloaded the packages already.)&lt;br /&gt;&lt;br /&gt;5. Change to the directory containing the packages:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;b&gt;cd /var/cache/apt/archives/&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;6. Now install the packages using &lt;i&gt;&lt;b&gt;dpkg&lt;/b&gt;&lt;/i&gt;, but forcing it to reinstall the missing configuration files:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;b&gt;dpkg --install --force-confmiss &lt;i&gt;idoitic&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Now you should be happy &lt;img goomoji="360" style="margin: 0pt 0.2ex; vertical-align: middle;" src="http://mail.google.com/mail/e/360" /&gt;, and still owe me a beer &lt;img goomoji="983" style="margin: 0pt 0.2ex; vertical-align: middle;" src="http://mail.google.com/mail/e/983" /&gt;.&lt;br /&gt;&lt;br /&gt;PS: Technically, I prefer a good glass of red wine over any beer, but there is no Google icon for wine. &lt;img goomoji="347" style="margin: 0pt 0.2ex; vertical-align: middle;" src="http://mail.google.com/mail/e/347" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-6115588184929740356?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6115588184929740356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6115588184929740356'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2009/01/reinstall-deleted-or-damaged-files-in.html' title='Reinstall deleted or damaged files in Debian/Ubuntu'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4267519096449579671</id><published>2008-07-13T11:11:00.000-07:00</published><updated>2008-07-13T12:26:14.110-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Install Ubuntu Hardy Heron (8.04.1) on Macbook</title><content type='html'>I was forced to upgrade my MacBook a few days ago. I don't mean upgrading the software, AppleCare replaced the MacBook. So I have 4 times the RAM and double the hard disk space now, and a whole bunch of components that don't work with Ubuntu out of the box.&lt;br /&gt;&lt;br /&gt;I have a MacBook4,1 (Apple --&gt; About this Mac --&gt; More Info...; look at the "Model Identifier" entry), and the relevent Ubuntu community document pages are:&lt;br /&gt;&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/MacBook"&gt;How to install Ubuntu on a MacBook&lt;/a&gt;&lt;br /&gt;&lt;a href="https://help.ubuntu.com/community/MacBook_Santa_Rosa"&gt;MacBook_Santa_Rosa&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There are three parts:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Installation: install Ubuntu.&lt;/li&gt;&lt;li&gt;Hardward configuration: configure devices.&lt;/li&gt;&lt;li&gt;Enable some neat software.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt; &lt;hr /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;Installation&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Software Update.&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Update Mac OS X.&lt;blockquote&gt;Apple Menu -&gt; Software Update...&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Update Firmware if needed. See the following webpage.&lt;blockquote&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=303880"&gt;&lt;/a&gt;&lt;a href="http://support.apple.com/kb/HT1237"&gt;http://support.apple.com/kb/HT1237&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Install the rEFIt Boot Menu.&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Download from &lt;a href="http://refit.sourceforge.net/"&gt;http://refit.sourceforge.net&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Mount the image.&lt;/li&gt;&lt;li&gt;Double-click on the "rEFIt.mpkg" icon.&lt;/li&gt;&lt;li&gt;Reboot to make sure rEFIt is installed.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;Resize Hard Drive.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;From the output of the &lt;code&gt;mount&lt;/code&gt; command, look for the disk mounted on /. In my case it is disk0s2. Change the following command accordingly.&lt;blockquote&gt;diskutil resizeVolume disk0s2 50G&lt;/blockquote&gt;Reboot.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Install Ubuntu 8.04.1.&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download and burn the Ubuntu CD image from &lt;a href="http://www.ubuntu.com/"&gt;www.ubuntu.com&lt;/a&gt;. (I used the 64 bit version because I have the Core 2 Duo Macbook.) &lt;/li&gt;&lt;li&gt;Put it in your computer and reboot.&lt;/li&gt;&lt;li&gt;Select the penguin from the rEFIt menu. (Or hold down C while booting.)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select "Check CD for defects". It takes a while, but is good to do.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select the penguin from the rEFIt menu.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select "Start or install Ubuntu". The Ubuntu desktop will load.&lt;/li&gt;&lt;li&gt;Click the Install icon.&lt;/li&gt;&lt;li&gt;Follow the on-screen instructions. Some notes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Make sure to select the US English -- Macintosh keyboard layout.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Choose to manually edit the partition table.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Make sure that EFI GPT partition is &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; mounted.&lt;/li&gt;&lt;li&gt;Create some partitions (I created: 10G for /; 10G for /scratch; 2G swap; the rest for /home).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Also make sure that your partitions are mounted in the correct spots (/, /home,...).&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select "Start Partitioning Tool" at the rEFIt menu. It might ask you to sync the MBR GPT maps. Select yes.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select the Penguin at the rEFIt menu.&lt;/li&gt;&lt;/ol&gt; &lt;hr /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;Hardware Configuration&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Wireless&lt;/span&gt; (BROADCOM BCM4328)&lt;br /&gt;&lt;br /&gt;You need to have a wired internet connect for this.&lt;br /&gt;&lt;br /&gt;Install firmware:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get update&lt;br /&gt;aptitude install ndiswrapper-utils-1.9&lt;br /&gt;&lt;br /&gt;wget http://ftp.us.dell.com/network/R151517.EXE&lt;br /&gt;mkdir driver&lt;br /&gt;unzip -a R151517.EXE -d driver/&lt;br /&gt;cd driver/DRIVER/&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Activate:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;ndiswrapper -i bcmwl5.inf&lt;br /&gt;ndiswrapper -l&lt;br /&gt;ndiswrapper -m&lt;br /&gt;modprobe ndiswrapper&lt;/code&gt;&lt;/pre&gt;Activate on startup:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;echo ndiswrapper &gt;&gt; /etc/modules&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Sound&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add to /etc/modprobe.d/options:&lt;pre&gt;&lt;code&gt;options snd_hda_intel model=mbp3&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Reboot.&lt;br /&gt;Right click volume control icon.&lt;br /&gt;Select the Switches tab.&lt;br /&gt;Enable Speaker.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;iSight&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;a href="http://ubuntuforums.org/showthread.php?t=764616"&gt;Ubuntu Forum Post.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Grab firmware from OSX partition.&lt;pre&gt;&lt;code&gt;sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/$(uname -r)&lt;/code&gt;&lt;/pre&gt;Add Mactel repositories to /etc/apt/sources.list.&lt;pre&gt;&lt;code&gt;# Mactel PPA&lt;br /&gt;deb http://ppa.launchpad.net/mactel-support/ubuntu hardy main&lt;br /&gt;deb-src http://ppa.launchpad.net/mactel-support/ubuntu hardy main&lt;/code&gt;&lt;/pre&gt;Installation.&lt;pre&gt;&lt;code&gt;apt-get update&lt;br /&gt;apt-get install isight-firmware-tools&lt;br /&gt;ift-extract -a /lib/firmware/$(uname -r)/AppleUSBVideoSupport&lt;/code&gt;&lt;/pre&gt;Enable changes:&lt;pre&gt;&lt;code&gt;/etc/init.d/hal restart&lt;/code&gt;&lt;/pre&gt;Test with cheese: &lt;pre&gt;&lt;code&gt;apt-get install cheese&lt;br /&gt;cheese&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Touchpad&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the following InputDevice section to &lt;code&gt;/etc/X11/sorg.conf&lt;/code&gt;.&lt;pre&gt;&lt;code&gt;Section "InputDevice"&lt;br /&gt; Identifier      "MacBook Touchpad"&lt;br /&gt; Driver          "synaptics"&lt;br /&gt; Option          "AccelFactor"           "0.015"&lt;br /&gt; Option          "BottomEdge"            "310"&lt;br /&gt; Option          "Device"                "/dev/psaux"&lt;br /&gt; Option          "FingerHigh"            "30"&lt;br /&gt; Option          "FingerLow"             "20"&lt;br /&gt; Option          "HorizScrollDelta"      "0"&lt;br /&gt; Option          "LeftEdge"              "100"&lt;br /&gt; Option          "MaxDoubleTapTime"      "180"&lt;br /&gt; Option          "MaxSpeed"              "0.88"&lt;br /&gt; Option          "MaxTapMove"            "220"&lt;br /&gt; Option          "MaxTapTime"            "150"&lt;br /&gt; Option          "MinSpeed"              "0.79"&lt;br /&gt; Option          "Protocol"              "auto-dev"&lt;br /&gt; Option          "RightEdge"             "1120"&lt;br /&gt; Option          "SendCoreEvents"        "true"&lt;br /&gt; Option          "SHMConfig"             "on"&lt;br /&gt; Option          "TapButton2"            "3"&lt;br /&gt; Option          "TapButton3"            "2"&lt;br /&gt; Option          "TopEdge"               "50"&lt;br /&gt; Option          "VertScrollDelta"       "25"&lt;br /&gt; Option          "VertTwoFingerScroll"   "true"&lt;br /&gt;EndSection&lt;/code&gt;&lt;/pre&gt;Change the InputDevice to "Macbook Touchpad" in the ServerLayout section.&lt;br /&gt;&lt;br /&gt;Add syndaemon to the startup programs (System --&gt; Preferences --&gt; Sessions). &lt;pre&gt;&lt;code&gt;syndaemon -i 2 -t -d&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Mic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It works, the settings just need to be adjusted: open volume control, unmute Mic and Capture; and make sure that Mic is the Input Source.&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;Software Configuration&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Power Consumption&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install powertop.&lt;pre&gt;&lt;code&gt;apt-get install powertop&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Run powertop, wait and implement suggestions.&lt;pre&gt;&lt;code&gt;powertop&lt;/code&gt;&lt;/pre&gt;I got the following suggestions:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Suggestion: turn bluetooth off.&lt;pre&gt;&lt;code&gt;hciconfig hci0 down ; rmmod hci_usb&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Suggestion: increase the VM dirty writeback time from 5.00 to 15 seconds.&lt;pre&gt;&lt;code&gt;echo 1500 &gt; /proc/sys/vm/dirty_writeback_centisecs&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Suggestion: Disable 'hal' from polling your cdrom.&lt;pre&gt;&lt;code&gt;hal-disable-polling --device /dev/cdrom&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Compiz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enable:&lt;pre&gt;&lt;code&gt;System --&gt; Preferences --&gt; Appearance --&gt; Visual Effects --&gt; Extra&lt;/code&gt;&lt;/pre&gt;Install settings manager:&lt;pre&gt;&lt;code&gt;apt-get install compizconfig-settings-manager&lt;/code&gt;&lt;/pre&gt;Edit settings:&lt;pre&gt;&lt;code&gt;System --&gt; Preferences --&gt; Advanced Desktop Effects Settings&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Amarok&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;apt-get install amarok k3b libk3b2-extracodecs&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Note: k3b and libk3b2-extracodecs are needed to enable disc burning&lt;br /&gt;from Amarok&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Google Gadgets&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add repositories to /etc/apt/sources.list.&lt;pre&gt;&lt;code&gt;## Google Gadgets&lt;br /&gt;deb http://ppa.launchpad.net/googlegadgets/ubuntu hardy main&lt;br /&gt;deb-src http://ppa.launchpad.net/googlegadgets/ubuntu hardy main&lt;/code&gt;&lt;/pre&gt;Install:&lt;pre&gt;&lt;code&gt;aptitude install google-gadgets&lt;/code&gt;&lt;/pre&gt;Add to list of startup programs:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;System --&gt; Preferences --&gt; Sessions --&gt; Startup Programs --&gt; Add&lt;br /&gt;Name: Google Gadgets&lt;br /&gt;Command: /usr/bin/ggl-gtk -bg&lt;br /&gt;Comment: Google Gadgets&lt;/code&gt;&lt;/pre&gt;You can add the Google Gadgets to the Widget layer of Compiz.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;LaTeX&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;code&gt;aptitude install texlive-full vim-latexsuite subversion vim-gtk xpdf&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Sage&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install software for compiling Sage:&lt;pre&gt;&lt;code&gt;aptitude apt-get install gcc-4.2-base make m4 bison flex tar perl binutils libstdc++6-dev g++ openssh-client&lt;/code&gt;&lt;/pre&gt; Download and Install Sage:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;wget http://www.sagemath.org/src/sage-3.0.5.tar&lt;br /&gt;tar cvf sage-3.0.5&lt;br /&gt;cd sage-3.0.5&lt;br /&gt;make&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4267519096449579671?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4267519096449579671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4267519096449579671'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2008/07/install-ubuntu-hardy-heron-8041-on.html' title='Install Ubuntu Hardy Heron (8.04.1) on Macbook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-6189204656058890589</id><published>2008-01-10T11:40:00.000-08:00</published><updated>2008-01-10T13:24:44.555-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Dual-Booting Ubuntu Gutsy Gibbon (7.10) on a MacBook</title><content type='html'>The following explains how to dual-boot Mac OS X and Ubuntu Gutsy Gibbon (7.10) on an (Intel Core Duo) Macbook. This post will only deal with installation, post-installation setup will be dealt with in a later post.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software Update.&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Update Mac OS X.&lt;blockquote&gt;Apple Menu -&gt; Software Update...&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Update Firmware if needed. See the following webpage.&lt;blockquote&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=303880"&gt;http://docs.info.apple.com/article.html?artnum=303880&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;Install the rEFIt Boot Menu.&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Download from &lt;a href="http://refit.sourceforge.net/"&gt;http://refit.sourceforge.net&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Mount the image.&lt;/li&gt;&lt;li&gt;Double-click on the "rEFIt.mpkg" icon.&lt;/li&gt;&lt;li&gt;Reboot to make sure rEFIt is installed.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Resize Hard Drive.&lt;/span&gt;&lt;br /&gt;I have a 74G hard drive, which I will partition in half. From the output of the &lt;span style="font-style: italic;"&gt;mount&lt;/span&gt; command, look for the disk mounted on /. In my case it is disk0s2. Change the following command accordingly.&lt;blockquote&gt;diskutil resizeVolume disk0s2 37G&lt;/blockquote&gt;Reboot.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Ubuntu 7.10.&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download and burn the Ubuntu CD image (i386 Desktop) from www.ubuntu.com. &lt;/li&gt;&lt;li&gt;Put it in your computer and reboot.&lt;/li&gt;&lt;li&gt;Select the penguin from the rEFIt menu. (Or hold down C while booting.)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select "Check CD for defects". It takes a while, but is good to do.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select the penguin from the rEFIt menu.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Select "Start or install Ubuntu". The Ubuntu desktop will load.&lt;/li&gt;&lt;li&gt;Click the Install icon.&lt;/li&gt;&lt;li&gt;Follow the on-screen instructions. Some notes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Make sure to select the US English -- Macintosh keyboard layout.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Choose to manually edit the partition table.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Make sure that EFI GPT partition is &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; mounted.&lt;/li&gt;&lt;li&gt;I created: 2G swap; 10G for /; 25G for /home.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Also make sure that your partitions are mounted in the correct spots (swap, /home, /).&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select "Start Partitioning Tool" at the rEFIt menu. It might ask you to sync the MBR GPT maps. Select yes.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select the Penguin at the rEFIt menu.&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/8844925233998417938-6189204656058890589?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6189204656058890589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6189204656058890589'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2008/01/dual-booting-ubuntu-gutsy-gibbon-710-on.html' title='Dual-Booting Ubuntu Gutsy Gibbon (7.10) on a MacBook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-1997883738781651707</id><published>2007-11-01T15:03:00.000-07:00</published><updated>2007-11-01T15:07:13.699-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Synergy: share a mouse and keyboard among computers.</title><content type='html'>From the project website:&lt;blockquote&gt;&lt;a href="http://synergy2.sourceforge.net"&gt;Synergy&lt;/a&gt; lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It's intended for users with multiple computers on their desk since each system uses its own monitor(s).&lt;/blockquote&gt;&lt;b&gt;Configuration and use.&lt;/b&gt; Create a configuration file synergy.conf defining the hostname of the server, the hostnames of the clients and the geometry of the machines, as follows.&lt;pre&gt;&lt;code&gt;section: screens&lt;br /&gt;   servername:&lt;br /&gt;   clientname:&lt;br /&gt;end&lt;br /&gt;section: links&lt;br /&gt;   servername:&lt;br /&gt;       right = clientname&lt;br /&gt;   clientname:&lt;br /&gt;       left = servername&lt;br /&gt;end&lt;/code&gt;&lt;/pre&gt;Start the server (Linux or Mac OS X). &lt;pre&gt;&lt;code&gt;synergys -f --config synergy.conf&lt;/code&gt;&lt;/pre&gt;Connect the clients (Linux or Mac OS X).&lt;pre&gt;&lt;code&gt;synergyc -f --name clientname server&lt;/code&gt;&lt;/pre&gt;where clientname is the hostname of the client as defined in synergy.conf above, and server is the ip address (or hostname) of the server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-1997883738781651707?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/1997883738781651707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/1997883738781651707'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/11/synergy-share-mouse-and-keyboard-among.html' title='Synergy: share a mouse and keyboard among computers.'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3420202989315217020</id><published>2007-10-30T14:58:00.000-07:00</published><updated>2007-10-30T15:04:01.578-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Paper size configuration for LaTeX</title><content type='html'>Run &lt;code&gt;texconfig&lt;/code&gt;, choose &lt;code&gt;PAPER&lt;/code&gt;, then select &lt;code&gt;LETTER&lt;/code&gt;. Now wait until all the appropriate configuration files are created. &lt;br /&gt;&lt;br /&gt;Then return to the menu, select &lt;code&gt;DVIPS&lt;/code&gt;, then select &lt;code&gt;PAPER&lt;/code&gt;, then select &lt;code&gt;LETTER&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;The settings are saved in &lt;code&gt;~/.texmf-config&lt;/code&gt; and &lt;code&gt;~/.texmf-var&lt;/code&gt;, so if something goes wrong, delete those directories and start again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3420202989315217020?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3420202989315217020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3420202989315217020'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/10/paper-size-configuration-for-latex.html' title='Paper size configuration for LaTeX'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-6906543501755155046</id><published>2007-08-30T13:27:00.000-07:00</published><updated>2007-08-30T13:30:45.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Import a repository into another repository.</title><content type='html'>1. First dump the first repository.&lt;pre&gt;&lt;code&gt;svnadmin dump repo1 &gt; repo1.dumpfile&lt;/code&gt;&lt;/pre&gt;2. Filter if necessary (see svndumpfilter). Not necessary for me.&lt;br /&gt;&lt;br /&gt;3. Create a directory in your repository for the project.&lt;pre&gt;&lt;code&gt;svn mkdir projectdir&lt;br /&gt;svn commit -m "getting ready to import new project"&lt;/code&gt;&lt;/pre&gt;4. Load the project into the repository.&lt;pre&gt;&lt;code&gt;svnadmin load --parent-dir relative/path/to/projectdir repo2 &lt; repo1.dumpfile&lt;/code&gt;&lt;/pre&gt;5. Now update your working copies.&lt;pre&gt;&lt;code&gt;svn update&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-6906543501755155046?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6906543501755155046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6906543501755155046'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/08/import-repository-into-another.html' title='Import a repository into another repository.'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7697124895191758181</id><published>2007-08-30T13:20:00.000-07:00</published><updated>2007-08-30T13:27:13.036-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Convert a Subversion repository from BDB to FSFS</title><content type='html'>Create a FSFS repository.&lt;pre&gt;&lt;code&gt;svnadmin --fs-type create repo2&lt;/code&gt;&lt;/pre&gt;Dump the first repository.&lt;pre&gt;&lt;code&gt;svnadmin dump repo1 &gt; repo2.dumpfile&lt;/code&gt;&lt;/pre&gt;Load the dumpfile into the new FSFS repository.&lt;pre&gt;&lt;code&gt;svnadmin load repo2 &lt; repo2.dumpfile&lt;/code&gt;&lt;/pre&gt;A lot more information is available in the Subversion FAQ &lt;a href="http://subversion.tigris.org/faq.html#bdb-fsfs-convert"&gt;http://subversion.tigris.org/faq.html#bdb-fsfs-convert&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-7697124895191758181?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7697124895191758181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7697124895191758181'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/08/convert-subversion-repository-from-bdb.html' title='Convert a Subversion repository from BDB to FSFS'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-6411707419424011445</id><published>2007-08-29T06:45:00.000-07:00</published><updated>2007-08-29T10:25:20.481-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Fixing LaTeX-Suite's jump to error feature.</title><content type='html'>LaTeX-Suite's &lt;span style="font-style: italic;"&gt;jump to error&lt;/span&gt; feature doesn't always work correctly. The following is a fix proposed by Martin Sander on the &lt;span style="font-style: italic;"&gt;vim-latex-dev&lt;/span&gt; mailing list.&lt;br /&gt;&lt;br /&gt;The key observation is that passing the option &lt;span style="font-style: italic;"&gt;-file-line-error-style &lt;/span&gt;to latex formats the output in a parser-friendly manner. So add the following to your &lt;span style="font-style: italic;"&gt;.vimrc&lt;/span&gt; file.&lt;pre&gt;&lt;code&gt;let g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode -file-line-error-style $*'&lt;/code&gt;&lt;/pre&gt;And the following line needs to be added (at the appropriate place; see the patch below for context) to the &lt;span style="font-style: italic;"&gt;tex.vim&lt;/span&gt; script of the LaTeX-Suite Package.&lt;pre&gt;&lt;code&gt;setlocal efm+=%E%f:%l:\ %m&lt;/code&gt;&lt;/pre&gt;Here is Martin's patch.&lt;pre&gt;&lt;code&gt;--- /usr/share/vim/addons/compiler/tex.vim      2007-01-29&lt;br /&gt;13:39:58.000000000 +0100&lt;br /&gt;+++ /home/lennox/.vim/compiler/tex.vim  2007-06-14 23:33:33.000000000&lt;br /&gt;+0200&lt;br /&gt;@@ -202,6 +202,7 @@ function! &lt;sid&gt;SetLatexEfm()&lt;br /&gt;&lt;br /&gt;     setlocal efm+=%E!\ LaTeX\ %trror:\ %m&lt;br /&gt;     setlocal efm+=%E!\ %m&lt;br /&gt;+       setlocal efm+=%E%f:%l:\ %m&lt;br /&gt;&lt;br /&gt;     setlocal efm+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#&lt;br /&gt;     setlocal efm+=%+W%.%#\ at\ lines\ %l--%*\\d&lt;/sid&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-6411707419424011445?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6411707419424011445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6411707419424011445'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/08/fixing-latex-suites-jump-to-error.html' title='Fixing LaTeX-Suite&apos;s jump to error feature.'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4346372997808942604</id><published>2007-08-20T20:07:00.000-07:00</published><updated>2007-08-20T20:25:39.611-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>AIGLX + Compiz Fusion on MacBook</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Install AIGLX.&lt;/span&gt; Following the &lt;a href="https://help.ubuntu.com/community/CompositeManager/AIGLXOnEdgy"&gt;instructions&lt;/a&gt; for setting up AIGLX, I did the following.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Edit /etc/X11/xorg.conf file as suggested in the above instructions. My xorg.conf file is below.&lt;/li&gt;&lt;li&gt;Restart the X server with '/etc/init.d/gdm restart'.&lt;br /&gt;&lt;div style="overflow: scroll; height: 300px;"&gt;&lt;code&gt;# /etc/X11/xorg.conf (xorg X Window System server configuration file)&lt;br /&gt;#&lt;br /&gt;# This file was generated by dexconf, the Debian X Configuration tool, using&lt;br /&gt;# values from the debconf database.&lt;br /&gt;#&lt;br /&gt;# Edit this file with caution, and see the xorg.conf(5) manual page.&lt;br /&gt;# (Type "man xorg.conf" at the shell prompt.)&lt;br /&gt;#&lt;br /&gt;# This file is automatically updated on xserver-xorg package upgrades *only*&lt;br /&gt;# if it has not been modified since the last upgrade of the xserver-xorg&lt;br /&gt;# package.&lt;br /&gt;#&lt;br /&gt;# If you have edited this file but would like it to be automatically updated&lt;br /&gt;# again, run the following command:&lt;br /&gt;#   sudo dpkg-reconfigure -phigh xserver-xorg&lt;br /&gt;&lt;br /&gt;Section "Files"&lt;br /&gt;FontPath "/usr/share/fonts/X11/misc"&lt;br /&gt;FontPath "/usr/share/fonts/X11/cyrillic"&lt;br /&gt;FontPath "/usr/share/fonts/X11/100dpi/:unscaled"&lt;br /&gt;FontPath "/usr/share/fonts/X11/75dpi/:unscaled"&lt;br /&gt;FontPath "/usr/share/fonts/X11/Type1"&lt;br /&gt;FontPath "/usr/share/fonts/X11/100dpi"&lt;br /&gt;FontPath "/usr/share/fonts/X11/75dpi"&lt;br /&gt;# path to defoma fonts&lt;br /&gt;FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Module"&lt;br /&gt;Load "i2c"&lt;br /&gt;Load "bitmap"&lt;br /&gt;Load "ddc"&lt;br /&gt;Load "dri"&lt;br /&gt;Load "extmod"&lt;br /&gt;Load "freetype"&lt;br /&gt;Load "glx"&lt;br /&gt;Load "int10"&lt;br /&gt;Load "vbe"&lt;br /&gt;Load "dbe"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Identifier "Generic Keyboard"&lt;br /&gt;Driver  "kbd"&lt;br /&gt;Option  "CoreKeyboard"&lt;br /&gt;Option  "XkbRules" "xorg"&lt;br /&gt;Option  "XkbModel" "pc105"&lt;br /&gt;Option  "XkbLayout" "us"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Identifier "Configured Mouse"&lt;br /&gt;Driver  "mouse"&lt;br /&gt;Option  "CorePointer"&lt;br /&gt;Option  "Device"  "/dev/input/mice"&lt;br /&gt;Option  "Protocol"  "ImPS/2"&lt;br /&gt;Option  "ZAxisMapping"  "4 5"&lt;br /&gt;Option  "Emulate3Buttons" "true"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Identifier "Synaptics Touchpad"&lt;br /&gt;Driver  "synaptics"&lt;br /&gt;Option  "SendCoreEvents" "true"&lt;br /&gt;Option  "Device"  "/dev/psaux"&lt;br /&gt;Option  "Protocol"  "auto-dev"&lt;br /&gt;Option  "HorizScrollDelta" "0"&lt;br /&gt;Option   "SHMConfig"  "on"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Identifier "MacBook Touchpad"&lt;br /&gt;Driver  "synaptics"&lt;br /&gt;Option   "AccelFactor"  "0.015"&lt;br /&gt;Option   "BottomEdge"  "310"&lt;br /&gt;Option  "Device"  "/dev/psaux"&lt;br /&gt;Option   "FingerHigh"  "30"&lt;br /&gt;Option   "FingerLow"  "20"&lt;br /&gt;Option  "HorizScrollDelta" "0"&lt;br /&gt;Option   "LeftEdge"  "100"&lt;br /&gt;Option   "MaxDoubleTapTime" "180"&lt;br /&gt;Option   "MaxSpeed"  "0.88"&lt;br /&gt;Option   "MaxTapMove"  "220"&lt;br /&gt;Option   "MaxTapTime"  "150"&lt;br /&gt;Option   "MinSpeed"  "0.79"&lt;br /&gt;Option   "Protocol"  "auto-dev"&lt;br /&gt;Option   "RightEdge"  "1120"&lt;br /&gt;Option  "SendCoreEvents" "true"&lt;br /&gt;Option   "SHMConfig"  "on"&lt;br /&gt;Option   "TapButton2"  "3"&lt;br /&gt;Option   "TapButton3"  "2"&lt;br /&gt;Option   "TopEdge"  "50"&lt;br /&gt;Option   "VertScrollDelta" "25"&lt;br /&gt;Option   "VertTwoFingerScroll" "true"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver  "wacom"&lt;br /&gt;Identifier "stylus"&lt;br /&gt;Option  "Device" "/dev/input/wacom"&lt;br /&gt;Option  "Type"  "stylus"&lt;br /&gt;Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver  "wacom"&lt;br /&gt;Identifier "eraser"&lt;br /&gt;Option  "Device" "/dev/input/wacom"&lt;br /&gt;Option  "Type"  "eraser"&lt;br /&gt;Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver  "wacom"&lt;br /&gt;Identifier "cursor"&lt;br /&gt;Option  "Device" "/dev/input/wacom"&lt;br /&gt;Option  "Type"  "cursor"&lt;br /&gt;Option  "ForceDevice" "ISDV4"  # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt;Identifier "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"&lt;br /&gt;Driver  "i810"&lt;br /&gt;Option "XAANoOffscreenPixmaps"&lt;br /&gt;BusID  "PCI:0:2:0"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;Identifier "Generic Monitor"&lt;br /&gt;Option  "DPMS"&lt;br /&gt;HorizSync 28-64&lt;br /&gt;VertRefresh 43-60&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt;Identifier "Default Screen"&lt;br /&gt;Device  "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"&lt;br /&gt;Monitor  "Generic Monitor"&lt;br /&gt;DefaultDepth 24&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  1&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  4&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  8&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  15&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  16&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;SubSection "Display"&lt;br /&gt; Depth  24&lt;br /&gt; Modes  "1280x800"&lt;br /&gt;EndSubSection&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "ServerLayout"&lt;br /&gt;Identifier "Default Layout"&lt;br /&gt;Screen  "Default Screen"&lt;br /&gt;InputDevice "Generic Keyboard"&lt;br /&gt;InputDevice "Configured Mouse"&lt;br /&gt;InputDevice     "stylus" "SendCoreEvents"&lt;br /&gt;InputDevice     "cursor" "SendCoreEvents"&lt;br /&gt;InputDevice     "eraser" "SendCoreEvents"&lt;br /&gt;# InputDevice "Synaptics Touchpad"&lt;br /&gt;InputDevice "MacBook Touchpad"&lt;br /&gt;Option "AIGLX" "true"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "DRI"&lt;br /&gt;Mode 0666&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Extensions"&lt;br /&gt;Option "Composite" "Enable"&lt;br /&gt;EndSection&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Un-install Beryl, Compiz, Emerald, etc.&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get remove compiz-core desktop-effects&lt;br /&gt;apt-get remove beryl-ubuntu beryl-manager emerald&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;"&gt;Install Compiz Fusion.&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Add repositories.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;deb http://download.tuxfamily.org/3v1deb feisty eyecandy&lt;br /&gt;deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Import key.&lt;pre&gt;&lt;code&gt;wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O - | sudo apt-key add -&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia,serif;"&gt;Install Compiz Fusion.&lt;pre&gt;&lt;code&gt;apt-get update&lt;br /&gt;apt-get install compiz compizconfig-settings-manager compiz-plugins compiz-gnome compiz-fusion-plugins-extra compiz-fusion-plugins-unofficial libcompizconfig-backend-gconf&lt;br /&gt;apt-get install sexy-python&lt;br /&gt;apt-get upgrade&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;[Optional] Test.&lt;br /&gt;&lt;/li&gt;&lt;pre&gt;&lt;code&gt;compiz --replace&lt;/code&gt;&lt;/pre&gt;&lt;li&gt;Setup with the Compiz Config Settings Manager.&lt;pre&gt;&lt;code&gt;ccsm&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Add compiz to AutoStarted Programs.&lt;/li&gt;&lt;li&gt;Restart the X server with '/etc/init.d/gdm restart'.&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/8844925233998417938-4346372997808942604?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4346372997808942604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4346372997808942604'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/08/aiglx-compiz-fusion-on-macbook.html' title='AIGLX + Compiz Fusion on MacBook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-581612013243185446</id><published>2007-07-13T09:22:00.000-07:00</published><updated>2007-07-13T09:43:14.030-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Macbook/Synaptics Trackpad Configuration</title><content type='html'>A while back I upgraded my Macbook to Ubuntu Feisty Fawn. The installation was extremely smooth, and everything just worked.&lt;br /&gt;&lt;br /&gt;But I have tweaked my TrackPad configuration. Make sure to edit the &lt;span style="font-style:italic;"&gt;ServerLayout&lt;/span&gt; section to use the &lt;span style="font-style:italic;"&gt;MacBook Touchpad&lt;/span&gt; input device.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;Section "InputDevice"&lt;br /&gt;        Identifier      "MacBook Touchpad"&lt;br /&gt;        Driver          "synaptics"&lt;br /&gt;        Option          "AccelFactor"           "0.015"&lt;br /&gt;        Option          "BottomEdge"            "310"&lt;br /&gt;        Option          "Device"                "/dev/psaux"&lt;br /&gt;        Option          "FingerHigh"            "30"&lt;br /&gt;        Option          "FingerLow"             "20"&lt;br /&gt;        Option          "HorizScrollDelta"      "0"&lt;br /&gt;        Option          "LeftEdge"              "100"&lt;br /&gt;        Option          "MaxDoubleTapTime"      "180"&lt;br /&gt;        Option          "MaxSpeed"              "0.88"&lt;br /&gt;        Option          "MaxTapMove"            "220"&lt;br /&gt;        Option          "MaxTapTime"            "150"&lt;br /&gt;        Option          "MinSpeed"              "0.79"&lt;br /&gt;        Option          "Protocol"              "auto-dev"&lt;br /&gt;        Option          "RightEdge"             "1120"&lt;br /&gt;        Option          "SendCoreEvents"        "true"&lt;br /&gt;        Option          "SHMConfig"             "on"&lt;br /&gt;        Option          "TapButton2"            "3"&lt;br /&gt;        Option          "TapButton3"            "2"&lt;br /&gt;        Option          "TopEdge"               "50"&lt;br /&gt;        Option          "VertScrollDelta"       "25"&lt;br /&gt;        Option          "VertTwoFingerScroll"   "true"&lt;br /&gt;EndSection&lt;/code&gt;&lt;/pre&gt;There are several advantages to this configuration, including mimicking the Mac OS X two finger scrolling and two finger tapping for a right click. But most importantly: &lt;span style="font-style:italic;"&gt;SHMConfig&lt;/span&gt; is activated; and so we can enable &lt;span style="font-style:italic;"&gt;syndaemon&lt;/span&gt; (at startup)&lt;pre&gt;&lt;code&gt;syndaemon -i 2 -t -d&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-style:italic;"&gt;syndaemon&lt;/span&gt; is a program that monitors keyboard activity and disables the touchpad when the keyboard is being used. The -i option specifics the time in seconds to wait after the last keypress before enabling the touchpad; -t disables only tapping, not mouse movements; there are -k and -K options to ignore modifier keys or modifier+key combinations; finally, -d starts the program as a daemon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-581612013243185446?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/581612013243185446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/581612013243185446'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/macbooksynaptics-trackpad-configuration.html' title='Macbook/Synaptics Trackpad Configuration'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-879348295950034745</id><published>2007-07-08T11:28:00.000-07:00</published><updated>2007-07-08T11:41:04.790-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><title type='text'>Linux workstation setup (LaTeX+Vim+Xpdf+SVN+LaTeXSuite)</title><content type='html'>Here is what I do with a fresh Ubuntu/Debian installation to get my optimal LaTeX configuration setup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Installation.&lt;/span&gt; Install LaTeX, Vim, LaTeXSuite, Subversion and XPDF.&lt;pre&gt;&lt;code&gt;aptitude install texlive-full&lt;br /&gt;aptitude install vim-latexsuite&lt;br /&gt;aptitude install subversion&lt;br /&gt;aptitude install vim-gtk&lt;br /&gt;aptitude install xpdf&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Configuration.&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-style:italic;"&gt;Xmodmap.&lt;/span&gt; Swap the CapsLock and Control keys. Add the following to the file &lt;span style="font-style: italic;"&gt;~/.xmodmaprc&lt;/span&gt;.&lt;br /&gt;&lt;pre&gt;&lt;code&gt; ! Swap Caps_Lock and Control_L&lt;br /&gt;remove Lock = Caps_Lock&lt;br /&gt;remove Control = Control_L&lt;br /&gt;keysym Control_L = Caps_Lock&lt;br /&gt;keysym Caps_Lock = Control_L&lt;br /&gt;add Lock = Caps_Lock&lt;br /&gt;add Control = Control_L&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Run &lt;span style="font-style: italic;"&gt;xmodmap&lt;/span&gt; to implement the changes.&lt;pre&gt;&lt;code&gt;xmodmap ~/.xmodmaprc&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-style:italic;"&gt;Xpdf.&lt;/span&gt; Configure XPDF to use vi keybindings for navigation. Add the following to the file &lt;span style="font-style:italic;"&gt;~/.Xresouces&lt;/span&gt;.&lt;pre&gt;&lt;code&gt;xpdf.viKeys: true&lt;/code&gt;&lt;/pre&gt;Enable the changes with &lt;span style="font-style:italic;"&gt;xrdb:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;xrdb ~/.Xresouces.&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt; &lt;span style="font-style:italic;"&gt;Vim.&lt;/span&gt; Download my &lt;span style="font-style:italic;"&gt;.vimrc&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;.gvimrc&lt;/span&gt; files.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-879348295950034745?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/879348295950034745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/879348295950034745'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/linux-workstation-setup.html' title='Linux workstation setup (LaTeX+Vim+Xpdf+SVN+LaTeXSuite)'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-356480214761128585</id><published>2007-07-08T11:24:00.000-07:00</published><updated>2007-07-08T11:27:54.433-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>XPDF with vi keybindings</title><content type='html'>Here is how to enable vi keybindings for xpdf navigation (j for up, k for down, h for left, l for right).&lt;br /&gt;&lt;br /&gt;Add the following line to your &lt;span style="font-style: italic;"&gt;~/.Xresouces&lt;/span&gt; file.&lt;pre&gt;&lt;code&gt;xpdf.viKeys: true&lt;/code&gt;&lt;/pre&gt;Then run &lt;span style="font-style: italic;"&gt;xrdb&lt;/span&gt; to load the changes:&lt;pre&gt;&lt;code&gt;xrdb ~/.Xresouces&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-356480214761128585?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/356480214761128585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/356480214761128585'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/xpdf-with-vi-keybindings.html' title='XPDF with vi keybindings'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4404643890687509466</id><published>2007-07-08T11:07:00.000-07:00</published><updated>2007-07-08T11:18:23.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>PDFEdit: Edit PDF files in Linux</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://upload.wikimedia.org/wikipedia/en/0/03/Pdfedit-screenshot.jpg/250px-Pdfedit-screenshot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px;" src="http://upload.wikimedia.org/wikipedia/en/0/03/Pdfedit-screenshot.jpg/250px-Pdfedit-screenshot.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://pdfedit.petricek.net/pdfedit.index_e"&gt;PDFEdit&lt;/a&gt; is the PDF editor that I have been &lt;a href="http://linuxwisdom.blogspot.com/2006/09/editing-pdfs-in-linux.html"&gt;looking&lt;/a&gt; &lt;a href="http://linuxwisdom.blogspot.com/2006/09/xournal-or-annotating-pdf-files.html"&gt;for&lt;/a&gt;. It supports drawing and annotating PDF documents. It isn't included in the Ubuntu repositories yet, but there is a Debian/Ubuntu package.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Installation.&lt;/span&gt; Get the latest version of the software from &lt;a href="http://download.tuxfamily.org/3v1deb/pool/feisty/3v1n0/"&gt;here&lt;/a&gt;. The filename begins with &lt;span style="font-style: italic;"&gt;pdfedit.&lt;/span&gt; Then install it with &lt;span style="font-style: italic;"&gt;dpkg:&lt;/span&gt; &lt;pre&gt;&lt;code&gt;dpkg -i pdfedit_0.3.1-1~3v1ubuntu0_i386.deb&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Use.&lt;/span&gt; Launch; load a PDF file; annotate.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4404643890687509466?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4404643890687509466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4404643890687509466'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/pdfedit-edit-pdf-files-in-linux.html' title='PDFEdit: Edit PDF files in Linux'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-84236647682280846</id><published>2007-07-08T10:15:00.000-07:00</published><updated>2007-07-08T10:46:05.205-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Vim + LaTeXSuite + XPDF for LaTeX editing</title><content type='html'>&lt;div style="direction: ltr;"&gt;Here is my LaTeX editing configuration.&lt;br /&gt;&lt;br /&gt;Since &lt;a href="http://www.foolabs.com/xpdf"&gt;XPDF&lt;/a&gt; has a refresh feature, I have set up my LaTeX editor (&lt;a href="http://www.vim.org/"&gt;Vim&lt;/a&gt; + &lt;a href="http://vim-latex.sourceforge.net/"&gt;LaTeXSuite&lt;/a&gt;) to generate a PDF file and automatically refresh the XPDF window. Hence, one command compiles the LaTeX file (an appropriate number of times to get the references and citations correct!), converts the dvi file to a PDF file and refreshes the XPDF window.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;General comment.&lt;/span&gt; If you spend a lot of time editing text, then it is well worth your time to learn to use an &lt;a href="http://www.moolenaar.net/habits.html"&gt;efficient editor&lt;/a&gt;. &lt;a href="http://www.vim.org"&gt;Vim&lt;/a&gt; is one example of such an editor. Another is Emacs.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Installation.&lt;/span&gt; Use apt-get to install all the software.&lt;pre&gt;&lt;code&gt;apt-get install vim-gtk vim-latexsuite xpdf&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Configuration.&lt;/span&gt; Here are the relevant entries of my &lt;span style="font-style: italic;"&gt;.vimrc&lt;/span&gt; file.&lt;pre&gt;&lt;code&gt;" General features.&lt;br /&gt;syntax enable " enable syntax highlighting&lt;br /&gt;set hlsearch " hightlight search&lt;br /&gt;set textwidth=70 " set textwidth to 70 to cause wrapping&lt;br /&gt;set history=50 " 50 lines of command lines history&lt;br /&gt;set viminfo='20,\"50 " read/write a .viminfo file with at most 50 lines&lt;br /&gt;set ruler " show the cursor position all the time&lt;br /&gt;set spell " turn on speel checking&lt;br /&gt;set nojoinspaces " only put one space after periods&lt;br /&gt;&lt;br /&gt;"""""&lt;br /&gt;" For latex-suite, as suggested by the LatexSuite documentation.&lt;br /&gt;filetype plugin on " to enable latex-suite when a tex file is loaded&lt;br /&gt;set shellslash&lt;br /&gt;set grepprg=grep\ -nH\ $*&lt;br /&gt;filetype indent off&lt;br /&gt;&lt;br /&gt;" Run latex, then dvipdf, then refresh the xpdf window.&lt;br /&gt;let g:Tex_FormatDependency_pdf = 'dvi,pdf'&lt;br /&gt;let g:Tex_CompileRule_pdf = 'dvipdf $*.dvi; xpdf -remote 127.0.0.1 -reload -raise'&lt;br /&gt;let g:Tex_ViewRule_pdf = 'xpdf -remote 127.0.0.1'&lt;br /&gt;let g:Tex_DefaultTargetFormat = 'pdf'&lt;br /&gt;" Set the target format to pdf.&lt;br /&gt;&lt;br /&gt;" Set the warning messages to ignore.&lt;br /&gt;let g:Tex_IgnoredWarnings =&lt;br /&gt;\"Underfull\n".&lt;br /&gt;\"Overfull\n".&lt;br /&gt;\"specifier changed to\n".&lt;br /&gt;\"You have requested\n".&lt;br /&gt;\"Missing number, treated as zero.\n".&lt;br /&gt;\"There were undefined references\n".&lt;br /&gt;\"Citation %.%# undefined\n".&lt;br /&gt;\'LaTeX Font Warning:'"&lt;br /&gt;" This number N says that latex-suite should ignore the first N of the above.&lt;br /&gt;let g:Tex_IgnoreLevel = 8&lt;br /&gt;&lt;br /&gt;" TIP: if you write your \label's as \label{fig:something}, then if you&lt;br /&gt;" type in \ref{fig: and press Ctrl-N you will automatically cycle through&lt;br /&gt;" all the figure labels. Very useful!&lt;br /&gt;set iskeyword+=:&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Use.&lt;/span&gt; The command &lt;span style="font-weight: bold; font-style: italic;"&gt;\lv&lt;/span&gt; launches xpdf and &lt;span style="font-style: italic; font-weight: bold;"&gt;\ll&lt;/span&gt; runs &lt;span style="font-style: italic;"&gt;latex&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;dvipdf&lt;/span&gt;, &lt;span style="font-style: italic;"&gt;xpdf -reload&lt;/span&gt;. LaTeXSuite has many interesting features to allow for quick writing of LaTeX documents. For example, typing &lt;code&gt;`a&lt;/code&gt; will insert &lt;code&gt;\alpha&lt;/code&gt; and &lt;code&gt;F5&lt;/code&gt; offers a shortcut to inserting an environment (e.g., displaymath). Check out the &lt;a href="http://vim-latex.sourceforge.net/documentation/latex-suite-quickstart/"&gt;online tutorial&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-84236647682280846?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/84236647682280846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/84236647682280846'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/vim-latexsuite-xpdf-for-latex-editing.html' title='Vim + LaTeXSuite + XPDF for LaTeX editing'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3165234620937225314</id><published>2007-07-08T10:03:00.000-07:00</published><updated>2007-07-08T10:13:54.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Set svn to ignore auxiliary LaTeX files</title><content type='html'>Using &lt;a href="http://subversion.tigris.org"&gt;SubVersion&lt;/a&gt; for LaTeX document management is great. (See my &lt;a href="http://linuxwisdom.blogspot.com/2006/12/subversion-for-document-management.html"&gt;earlier post&lt;/a&gt; on setting this up.) However, there are certain files (.aux, .log, etc.) that are best not put under revision control because they change very often. The following describes how to set svn to ignore these files, so that the output of 'svn status' doesn't report them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;1) &lt;/span&gt;Create a file called "ignore-these" with the (patterns of) files you want svn to ignore. For example,&lt;pre&gt;&lt;code&gt;*.aux&lt;br /&gt;*.bbl&lt;br /&gt;*.blg&lt;br /&gt;*.bst&lt;br /&gt;*.dvi&lt;br /&gt;*.idx&lt;br /&gt;*.lof&lt;br /&gt;*.log&lt;br /&gt;*.pdf&lt;br /&gt;*.toc&lt;br /&gt;includeonly.tex&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;2) &lt;/span&gt;Then run the command,&lt;pre&gt;&lt;code&gt;svn -R propset svn:ignore . -F ignore-these&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;3)&lt;/span&gt; Should you need to edit these properties, use the following command.&lt;pre&gt;&lt;code&gt;svn propedit svn:ignore .&lt;/code&gt;&lt;/pre&gt; (On Mac OS X you need to set the EDITOR variable: 'export EDITOR=&lt;span id="st" name="st" class="st"&gt;vim&lt;/span&gt;')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3165234620937225314?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3165234620937225314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3165234620937225314'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/set-svn-to-ignore-auxiliary-latex-files.html' title='Set svn to ignore auxiliary LaTeX files'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-37500208991772046</id><published>2007-07-08T09:45:00.000-07:00</published><updated>2007-07-08T10:02:16.386-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>KeyJNote: stylish presentations</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://keyjnote.sourceforge.net/oview.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://keyjnote.sourceforge.net/oview.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://keyjnote.sourceforge.net"&gt;KeyJNote&lt;/a&gt; is a PDF presentation displaying application. It is a python script that uses pdf and ghostscript for PDF rendering. It is very stylish and includes many cool page transitions, an overview feature and the ability to highlight and spotlight parts of the slide during the presentation. The above image shows the overview feature.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Installation.&lt;/span&gt; On Ubuntu, use apt-get: &lt;pre&gt;&lt;code&gt;apt-get install keyjnote&lt;/code&gt;&lt;/pre&gt; Otherwise download the software from the project site.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;Use.&lt;/span&gt;&lt;/span&gt; Just launch the program from the command line with the name of a pdf file; it will use random transitions. You can specify which transitions to use through an auxiliary file. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;More information.&lt;/span&gt; There is an &lt;a href="http://keyjnote.sourceforge.net/manual.php"&gt;online manual&lt;/a&gt;, and a &lt;a href="http://ftp-master.debian.org/%7Ejoerg/demo.pdf"&gt;demo presentation&lt;/a&gt; that highlights KeyJNote's features. It is best viewed with KeyJNote.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-37500208991772046?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/37500208991772046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/37500208991772046'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/keyjnote-stylish-presentations.html' title='KeyJNote: stylish presentations'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7749480261109462494</id><published>2007-07-08T09:42:00.000-07:00</published><updated>2007-07-08T09:43:33.675-07:00</updated><title type='text'>Mathematics on Linux</title><content type='html'>I should probably change the name of this blog to &lt;span style="font-style: italic; font-weight: bold;"&gt;Mathematics on Linux&lt;/span&gt;, or something to that effect.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-7749480261109462494?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7749480261109462494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7749480261109462494'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/mathematics-on-linux.html' title='Mathematics on Linux'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-5120647007152938463</id><published>2007-07-08T09:24:00.000-07:00</published><updated>2007-07-08T09:42:27.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>LaTeXDraw -- Pictue drawing for LaTeX and PSTricks: Part 2</title><content type='html'>&lt;!--&lt;h1&gt;The LaTeXDraw Project main page&lt;/h1&gt; --&gt;&lt;a href="http://latexdraw.sourceforge.net/"&gt;LaTeXDraw&lt;/a&gt; is another GPL'd &lt;a href="http://tug.org/PSTricks/main.cgi/"&gt; &lt;/a&gt;graphical PSTricks editor for LateX. It is developed in java, so it's independent of the OS, and it's available in English, in Spanish and in French.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Installation. &lt;/span&gt;Download and unzip. There is a readme.txt file with instructions, but you need only run 'java -jar installer.jar'.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Configuration. &lt;/span&gt;You need to configure some things, but the program lets you know if you try to do something that needs configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Use. &lt;/span&gt;Draw. Cut and paste the PSTricks code into your LaTeX document.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Comparison with &lt;/span&gt;&lt;a style="font-weight: bold; font-style: italic;" href="http://linuxwisdom.blogspot.com/2007/07/jpicedt.html"&gt;JPicEdt&lt;/a&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;. &lt;/span&gt;Both have their strengths. It seems JPicEdt implements more drawing functions, but that is something that can easily change with some development. I like that one can see the PSTricks code generated by LaTeXDraw as one draws. I also prefer the look of the LaTeXDraw interface.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-5120647007152938463?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5120647007152938463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5120647007152938463'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/latexdraw-pictue-drawing-for-latex-and.html' title='LaTeXDraw -- Pictue drawing for LaTeX and PSTricks: Part 2'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-11201949295928550</id><published>2007-07-08T08:55:00.000-07:00</published><updated>2007-07-08T09:38:38.150-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>JPicEdt -- Picture drawing for LaTeX and PSTricks: Part 1</title><content type='html'>&lt;a href="http://jpicedt.sourceforge.net/"&gt;JPicEdt&lt;/a&gt; is an &lt;span style="font-style: italic;"&gt;open source, multi-platform and interactive picture editor for LaTeX and PSTricks.&lt;/span&gt; You use a GUI to draw your pictures and the pictures are saved as tex source code, so you just paste the code into your latex document.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Installation.&lt;/span&gt; The &lt;a href="http://jpicedt.sourceforge.net/"&gt;webpage&lt;/a&gt; has installation instructions. Basically: download and launch the installer and follow the on-screen instructions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Configuration.&lt;/span&gt; You must configure the program to point to the location of latex and friends. But I have already done this, so just copy the contents in the box below to the file ~/.jpicedt/preferences, and change &lt;span style="font-style: italic;"&gt;USERNAME&lt;/span&gt; to your username.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;Use.&lt;/span&gt; Use the TeX button to compile the image, the DviPS button to convert the image to PostScript, and the PS button to view the PostScript file. When completed, save it as a TeX file, then copy and paste it into your LaTeX document.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Comparison with&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt; &lt;a href="http://linuxwisdom.blogspot.com/2007/07/latexdraw-pictue-drawing-for-latex-and.html"&gt;LaTeXDraw&lt;/a&gt;. &lt;/span&gt;Both have their strengths. It seems JPicEdt implements more drawing functions, but that is something that can easily change with some development. I like that one can see the PSTricks code generated by LaTeXDraw as one draws. I also prefer the look of the LaTeXDraw interface.&lt;br /&gt;&lt;pre height="20em"&gt;&lt;code&gt;#jPicEdt Preferences&lt;br /&gt;#Sun Jul 08 11:55:29 EDT 2007&lt;br /&gt;view.page-format=170 100 5 5&lt;br /&gt;command.user2=&lt;br /&gt;command.user1=&lt;br /&gt;latex.max-emulated-line-slope=1000&lt;br /&gt;latex.max-circle-diameter=14&lt;br /&gt;latex.file-wrapper-prolog=\\documentclass{article} \n\\thispagestyle{empty}\n\\begin{document} \n&lt;br /&gt;directory.files=/home/USERNAME&lt;br /&gt;ui.dockable-panel.Toolkit.y=7&lt;br /&gt;grid.snap-on=true&lt;br /&gt;ui.dockable-panel.Toolkit.x=651&lt;br /&gt;ui.dockable-panel.Toolkit.visible=true&lt;br /&gt;eepic.thicklines=0.3&lt;br /&gt;ui.desktop-color=-9803313&lt;br /&gt;rendering.render=speed&lt;br /&gt;pstricks.file-wrapper-epilog=\\end{document}&lt;br /&gt;command.ghostview={i}/unix/tetex/ext_proc.sh {p} evince {f}.ps&lt;br /&gt;ui.dockable-panel.Toolkit.width=165&lt;br /&gt;canvas.zoom=100%&lt;br /&gt;canvas.max-undoable-steps=100&lt;br /&gt;app.language=en&lt;br /&gt;ui.dockable-panel.Attributes.width=128&lt;br /&gt;eepic.file-wrapper-prolog=\\documentclass{article} \n\\usepackage{epic,eepic} \n\\thispagestyle{empty}\n\\begin{document}\n&lt;br /&gt;command.dvips={i}/unix/tetex/ext_proc.sh {p} dvips {f}&lt;br /&gt;eepic.thinlines=0.15&lt;br /&gt;latex.max-emulated-circle-segment-length=1&lt;br /&gt;ui.dockable-panel.Attributes.y=0&lt;br /&gt;latex.file-wrapper-epilog=\\end{document}&lt;br /&gt;ui.dockable-panel.Attributes.x=0&lt;br /&gt;ui.dockable-panel.Attributes.height=0&lt;br /&gt;command.dvi={i}/unix/tetex/ext_proc.sh {p} xdvi {f}&lt;br /&gt;view.text-font=SansSerif-10&lt;br /&gt;grid.color=-4144960&lt;br /&gt;latex.emulated-line-length=0.12&lt;br /&gt;app.tmpdir=/tmp&lt;br /&gt;grid.visible=true&lt;br /&gt;ui.mdimgr=child-frames&lt;br /&gt;ui.dockable-panel.Toolkit.height=343&lt;br /&gt;menu.recent-file.1=/tmp/foo.tex&lt;br /&gt;rendering.antialiasing=off&lt;br /&gt;grid.snap-step=5.0&lt;br /&gt;ui.look-and-feel=Metal&lt;br /&gt;grid.line-style=solid&lt;br /&gt;ui.geometry.height=720&lt;br /&gt;eepic.file-wrapper-epilog=\\end{document}&lt;br /&gt;ui.dockable-panel.Attributes.visible=false&lt;br /&gt;rendering.fractional-metrics=off&lt;br /&gt;pstricks.file-wrapper-prolog=\\documentclass{article} \n\\usepackage{pst-all} \n\\thispagestyle{empty}\n\\begin{document} \n&lt;br /&gt;ui.geometry.y=0&lt;br /&gt;ui.geometry.x=53&lt;br /&gt;grid.display-step=10.0&lt;br /&gt;rendering.text-antialiasing=off&lt;br /&gt;ui.geometry.width=823&lt;br /&gt;command.latex={i}/unix/tetex/ext_proc.sh {p} latex {f}&lt;br /&gt;latex.max-disk-diameter=5.4&lt;br /&gt;rendering.dither=off&lt;br /&gt;canvas.content-type=jpicedt.format.output.latex.LatexContentType&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-11201949295928550?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/11201949295928550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/11201949295928550'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/07/jpicedt.html' title='JPicEdt -- Picture drawing for LaTeX and PSTricks: Part 1'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7741379437713831104</id><published>2007-02-01T11:33:00.000-08:00</published><updated>2007-02-01T12:05:05.943-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nokia 770'/><title type='text'>Nokia 770 Connectivity: WPA with PEAP and .p7b Certificates</title><content type='html'>(I've had a &lt;a href="http://www.nokia.com/700"&gt;Nokia 770 Internet Tablet&lt;/a&gt; for almost a year now; this seems to be my first post about the device.)&lt;br /&gt;&lt;br /&gt;Here are instructions for connecting to a wireless network with the Nokia 770 via WPA with PEAP and a pre-issued .p7b certificate.&lt;ol&gt;&lt;li&gt;&lt;i&gt;Convert the .p7b certificate to .cer certificates.&lt;/i&gt;The Certificate Manager &lt;a href="https://maemo.org/bugzilla/show_bug.cgi?id=639"&gt;cannot&lt;/a&gt; import .p7b certificates, so they must be converted to .cer files. Since .p7b files can contain individual certificates, you need to unpack the certificates and import each one individually. I did this in Mac OS X since it was the nearest machine at the time: &lt;ul&gt;&lt;li&gt;Double click the .p7b file; &lt;li&gt;KeyChain Access launches; choose to import the key; &lt;li&gt;One at a time, select each certificate and select Export from the File menu; export as .cer files.&lt;/ul&gt;&lt;li&gt;&lt;i&gt;Import the keys&lt;/i&gt;. Copy the .cer files to the Nokia 770; launch the Certificate Manager (found on the Control Panel) and import each key individually.&lt;li&gt;&lt;i&gt;Connect to the network.&lt;/i&gt; Start the network connection process.&lt;ul&gt;&lt;li&gt;Security method: WPA with EAP;&lt;li&gt;EAP Type: PEAP;&lt;li&gt;Certificate: None;&lt;li&gt;EAP Method: MSCHAPv2;&lt;li&gt;User name: ********;&lt;li&gt;Password: ********;&lt;li&gt;&lt;a href="http://maemo.org/maemowiki/HowToConnectUsingWpaPEAP"&gt;As recommended&lt;/a&gt;, in the Advanced section, under the EAP tab, select "Use manual user name" and enter your username there as well. &lt;/ul&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-7741379437713831104?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7741379437713831104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7741379437713831104'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2007/02/nokia-770-connectivity-wpa-with-peap.html' title='Nokia 770 Connectivity: WPA with PEAP and .p7b Certificates'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3845558241866858595</id><published>2006-12-31T05:42:00.000-08:00</published><updated>2006-12-31T05:56:47.642-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><title type='text'>Including Code Samples in Blogger Posts</title><content type='html'>To include code samples as nice as mine, do the following. Of course, the following instructions are  &lt;a href="http://www.blogger.com/"&gt;blogger&lt;/a&gt; specific. Also, the code was copied from &lt;a href="http://linuxhelp.blogspot.com/"&gt;All about Linux&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Go to your template and select "Edit HTML". Add the following code to the section entitled &lt;span style="font-style: italic;"&gt;Posts&lt;/span&gt;.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;.post pre {&lt;br /&gt;background-color: #efefef;&lt;br /&gt;font-family: 'andale mono','Courier New', Monaco, monospace;&lt;br /&gt;font-size: 1.25em;&lt;br /&gt;padding: 1em 1em;&lt;br /&gt;width: 90%;&lt;br /&gt;border: 2px dotted #ddd;&lt;br /&gt;overflow: auto;&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;Now if you want to include some code in your post, then just do the following.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&amp;#60;pre&amp;#62;&amp;#60;code&amp;#62;Include code here.&amp;#60;/code&amp;#62;&amp;#60;/pre&amp;#62;&lt;/pre&gt;&lt;/code&gt;You will have to replace HTML characters (like &amp;#60;&amp;#62;) with the appropriate decimal codes. There are plenty of sites with &lt;a href="http://www.natural-innovations.com/wa/doc-charset.html"&gt;character tables&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3845558241866858595?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3845558241866858595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3845558241866858595'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/12/including-code-samples-in-blog-posts.html' title='Including Code Samples in Blogger Posts'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4586910648495886209</id><published>2006-12-30T19:30:00.000-08:00</published><updated>2006-12-31T05:41:47.191-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='shell tools'/><title type='text'>Subversion for Document Management</title><content type='html'>I am going to use subversion and ssh for document management and off-site document storage.  &lt;a href="http://subversion.tigris.org/"&gt;Subversion&lt;/a&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Revision_control"&gt;revision control system&lt;/a&gt;. It will allow me to work on the project from any computer since I can download the project files, work on them, and then upload the changes. Moreover, Subversion will keep track of the revisions, allowing me to revert to older versions if necessary. This post describes how to use subversion for document or small project management. See the &lt;a href="http://svnbook.red-bean.com/nightly/en/svn.tour.cycle.html"&gt;work cycle section&lt;/a&gt; of the &lt;a href="http://svnbook.red-bean.com/"&gt;Subversion Book&lt;/a&gt; for a more detailed exposition. [I recommend using ssh-keys and ssh-agent on your main computer so you don't have to type your ssh password several times per session; see the post on &lt;a href="http://linuxwisdom.blogspot.com/2006/12/ssh-keys-to-simplify-ssh-logins.html"&gt;creating and using ssh-keys&lt;/a&gt;.]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Setup.&lt;/span&gt; Install Subversion. Both on your client machines and on the server (ask your sysadmin). On Ubuntu:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apt-get install subversion&lt;/code&gt;&lt;/pre&gt;Below the subversion server will be called &lt;span style="font-style: italic;"&gt;svn.server.com&lt;/span&gt;, and the username will be &lt;span style="font-style: italic;"&gt;username&lt;/span&gt;. I ssh'd to svn.server.com and ran the following command to create a Subversion repository where Subversion will store the projects.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;svnadmin create ~/subversion-repo&lt;/code&gt;&lt;/pre&gt; &lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Create Project&lt;/span&gt;.&lt;/span&gt; To create a new project, create a new directory and populate the directory with files that you will need. &lt;pre&gt;&lt;code&gt;mkdir brilliant-paper&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Import Project.&lt;/span&gt; Import the project into your subversion repository with the following command. &lt;pre&gt;&lt;code&gt; svn import -m "My Brilliant Paper" brilliant-paper svn+ssh://username@svn.server.com/home/username/subversion-repo/brilliant-paper&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Now delete your project directory. (You will download a working copy in the next step.)&lt;br /&gt;&lt;pre&gt;&lt;code&gt; rm -rf brilliant-paper/*&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Work Cycle.&lt;/span&gt; The following steps describe how to use Subversion to work on the project.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Download Project.&lt;/span&gt; Sit down at a computer, any computer, install Subversion if necessary, and download the latest version of the project. Either:&lt;br /&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;download the project, if is hasn't been downloaded before: &lt;br /&gt;&lt;pre&gt;&lt;code&gt;svn checkout svn+ssh://username@svn.server.com/home/username/subversion-repo/brilliant-paper&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;or update the project if you've already downloaded a version of the project: in the project directory run,&lt;br /&gt;&lt;pre&gt;&lt;code&gt;svn update&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Make changes.&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;You can edit any files that exist and subversion will detect those changes.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;If you want to add a new file, then use the add command.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;svn add newfile&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Similarly, you can delete, copy and move files or directories.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;svn delete filename&lt;br /&gt;svn copy filename copyname&lt;br /&gt;svn move filename newname&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Examine Changes.&lt;/span&gt; Nothing above makes changes to the project in the repository. Before you commit any changes you might want to examine the changes you have made. Use the '&lt;span style="font-style: italic;"&gt;svn status&lt;/span&gt;' and '&lt;span style="font-style: italic;"&gt;svn diff&lt;/span&gt;' commands. If a file has changed and you want to revert to a previous version, then revert to the most recent version of that file in the repository with the command &lt;span style="font-style: italic;"&gt;'svn revert filename&lt;/span&gt;'.&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Commit Changes.&lt;/span&gt; Commit your changes with the commit command.&lt;pre&gt;&lt;code&gt;svn commit -m 'Write a summary of your changes here.'&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Check Commit.&lt;/span&gt; In the top of your project directory run the status command.&lt;pre&gt;&lt;code&gt;svn status&lt;/code&gt;&lt;/pre&gt;If there is no output, then all changes have been committed. If there is some output, then there are files that have been changed or added, but not committed for some reason. See the help page to decode the output: &lt;span style="font-style: italic;"&gt;svn help status&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;References.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.csoft.net/docs/micro/svn.html"&gt;SSH + SVN Micro-Howto.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://svnbook.red-bean.com/"&gt;The Subversion Book.&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4586910648495886209?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4586910648495886209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4586910648495886209'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/12/subversion-for-document-management.html' title='Subversion for Document Management'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4166914706204299096</id><published>2006-12-30T19:10:00.000-08:00</published><updated>2006-12-30T19:30:23.130-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='shell tools'/><title type='text'>SSH-Keys to simplify SSH Logins</title><content type='html'>By creating an ssh key you can login to a remote machine multiple times with only one password.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Setup: Create the ssh-key.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Create the ssh-key with the following command. Hit enter; pick a good passphrase.&lt;br /&gt;&lt;blockquote&gt;ssh-keygen -t rsa&lt;/blockquote&gt;Copy the resulting public key to the remote machine:&lt;br /&gt;&lt;blockquote&gt;scp ~/.ssh/id_rsa.pub remote.server.com:~/.ssh/authorized_keys&lt;br /&gt;&lt;/blockquote&gt;Enter you password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Using ssh-agent&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The following command adds your new ssh key to your 'keyring'. You will be prompted for the passphrase.&lt;blockquote&gt;ssh-add&lt;/blockquote&gt;[If the above command fails, then ssh-agent is not running. Start it with eval `&lt;span id="st" name="st" class="st"&gt;ssh&lt;/span&gt;-&lt;span id="st" name="st" class="st"&gt;agent&lt;/span&gt;`.]&lt;br /&gt;&lt;br /&gt;Now you won't be prompted for the passphrase again until the next time you log in. You can ssh into the remote machine using ssh as usual without being prompted for a password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4166914706204299096?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4166914706204299096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4166914706204299096'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/12/ssh-keys-to-simplify-ssh-logins.html' title='SSH-Keys to simplify SSH Logins'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-404493334999708311</id><published>2006-12-20T10:14:00.000-08:00</published><updated>2007-02-01T12:06:35.811-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>LaTeX Editing on the 13.3" Macbook (on Linux)</title><content type='html'>Here is my configuration for &lt;a href="http://www.latex-project.org/"&gt;LaTeX&lt;/a&gt; editing on the 13.3" Macbook (running Linux). I configured &lt;a href="http://www.vim.org/"&gt;gvim&lt;/a&gt; and &lt;a href="http://xdvi.sourceforge.net/"&gt;xdvi&lt;/a&gt; so that the former occupies the left half of the screen and the latter occupies the right half of the screen. I then use a program that watches the tex file for changes; when I save any changes, the file is compiled and the xdvi window is updated. (One such program is &lt;a href="http://www.lecb.ncifcrf.gov/%7Etoms/atchange.html"&gt;atchange&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;My ~/.gvimrc file sets the window position and geometry of the gvim window.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;set lines=39 columns=73&lt;br /&gt;winpos 0 0&lt;/code&gt;&lt;/pre&gt;My ~/.Xresources file sets the window position, geometry and other options for xdvi.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;xdvi*paper: us&lt;br /&gt;xdvi*expert: true&lt;br /&gt;xdvi*pixelsPerInch: 300&lt;br /&gt;xdvi*mfMode: ljfour:600&lt;br /&gt;xdvi*thorough: true&lt;br /&gt;xdvi*background: light yellow&lt;br /&gt;xdvi*shrinkFactor: 7&lt;br /&gt;xdvi*geometry: 590x745-0+0&lt;br /&gt;xdvi.sideMargin: 2cm&lt;br /&gt;xdvi.topMargin: 2cm&lt;br /&gt;xdvi.mainTranslations: #override\&lt;br /&gt;Shift&amp;#60;key&amp;#62;space: up-or-previous()\n\&lt;br /&gt;&amp;#60;key&amp;#62;space: unpause-or-next()\n\&lt;br /&gt;&amp;#60;key&amp;#62;j: down(0.015)\n\&lt;br /&gt;&amp;#60;key&amp;#62;k: up(0.015)\n\&lt;br /&gt;&amp;#60;key&amp;#62;l: right(0.015)\n\&lt;br /&gt;&amp;#60;key&amp;#62;h: left(0.015)&lt;/code&gt;&lt;/pre&gt; My ~/.vimrc file sets the textwidth, syntax-highlighting and some other options. &lt;pre&gt;&lt;code&gt;" enable syntax highlighting&lt;br /&gt;syntax enable&lt;br /&gt;&lt;br /&gt;" hightlight search&lt;br /&gt;set hlsearch&lt;br /&gt;&lt;br /&gt;" set textwidth to 70 to cause wrapping&lt;br /&gt;set textwidth=70&lt;br /&gt;&lt;br /&gt;" autoindenting&lt;br /&gt;set ai&lt;br /&gt;&lt;br /&gt;" 50 lines of command lines history&lt;br /&gt;set history=50&lt;br /&gt;&lt;br /&gt;" .viminfo file with 50 lines of registers&lt;br /&gt;set viminfo='20,\"50&lt;br /&gt;&lt;br /&gt;" show the cursor position all the time&lt;br /&gt;set ruler&lt;br /&gt;&lt;br /&gt;" turn on speel cheqing&lt;br /&gt;set spell&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Finally, check out the &lt;a href="http://vim-latex.sourceforge.net/"&gt;LaTeX Suite&lt;/a&gt; package that provides several useful tools for LaTeX editing with vim.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-404493334999708311?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/404493334999708311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/404493334999708311'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/12/optimal-latex-configuration-for-macbook.html' title='LaTeX Editing on the 13.3&quot; Macbook (on Linux)'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-5058961130775452592</id><published>2006-12-20T10:00:00.000-08:00</published><updated>2006-12-20T10:17:23.969-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='LaTeX'/><title type='text'>Enable Shift-Space in XDvi for Page-Up</title><content type='html'>I use &lt;a href="http://www.gnome.org/projects/evince"&gt;evince&lt;/a&gt; and &lt;a href="http://xdvi.sourceforge.net/"&gt;xdvi&lt;/a&gt; for document viewing and I want the page navigation to be same: while both use Space for page down, the page up keys are difference (evince uses Shift-Space; xdvi uses Delete). This is how to set Shift-Space to act as page up for xdvi.&lt;br /&gt;&lt;br /&gt;Add the following lines to ~/.Xresources (or ~/.Xdefaults).&lt;br /&gt;&lt;blockquote&gt;xdvi.mainTranslations: #override\&lt;br /&gt;Shift&lt;key&gt;space: up-or-previous()\n\&lt;br /&gt;&lt;key&gt;space: unpause-or-next()\n&lt;br /&gt;&lt;/key&gt;&lt;/key&gt;&lt;/blockquote&gt;Then run the following command&lt;blockquote&gt;xrdb ~/.Xresources&lt;br /&gt;&lt;/blockquote&gt;You're all set.&lt;br /&gt;&lt;br /&gt;Some notes.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;The order is important. The translation table is searched from top to bottom, so if the line beginning &lt;key&gt;space... appeared before the line Shift&lt;key&gt;space..., then both Space and Shift-Space would trigger unpause-or-next().&lt;/key&gt;&lt;/key&gt;&lt;/li&gt;&lt;li&gt;There are many other options for xdvi (and other programs) that can be set in ~/.Xresources. See the man page for xdvi for more information.&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/8844925233998417938-5058961130775452592?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5058961130775452592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5058961130775452592'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/12/enable-shift-space-in-xdvi-for-page-up.html' title='Enable Shift-Space in XDvi for Page-Up'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-5539809512581759024</id><published>2006-11-09T08:23:00.000-08:00</published><updated>2006-11-09T08:41:52.356-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Making the Apple Command Key work Properly in Linux</title><content type='html'>This post explains how to get the Apple Command key to behave like an Alt key; and how to configure Firefox to use the Alt key instead of the Control key as its accelerator key. The goal is to get Firefox and the Apple Command key to work similarly under both Mac OS X and Linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Map Command Key to Alt.&lt;/span&gt; Add the following lines to ~/.xmodmaprc.&lt;blockquote&gt;! Set the left Apple key act as an alt key.&lt;br /&gt;keycode 115 = Alt_L Meta_L&lt;br /&gt;add mod1 = Alt_L Meta_L&lt;/blockquote&gt;The following command enacts these changes.&lt;br /&gt;&lt;blockquote&gt;xmodmap .xmodmaprc&lt;br /&gt;&lt;/blockquote&gt;(These changes can be set to begin at boot time. Gnome notices the files and will ask you if you want to use it. There is an earlier post here on getting it to work in XFce4.)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Change Accelerator Key in Firefox.&lt;/span&gt; Launch Firefox. Type &lt;span style="font-style: italic;"&gt;about:config&lt;/span&gt; in the location bar and hit enter. Set the following two attributes as follows.&lt;blockquote&gt;ui.key.accelkey 18&lt;br /&gt;ui.key.menuAccessKey 0&lt;br /&gt;&lt;/blockquote&gt;The first defines the accelerator key to be the Alt key, while the second disables accessing the menu from the keyboard, which is the usual behaviour for the Alt key.&lt;br /&gt;&lt;br /&gt;Now restart Firfox. The menus should reflect the change by reading "Alt+" instead of "Ctrl+" in defining the shortcuts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-5539809512581759024?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5539809512581759024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5539809512581759024'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/11/making-apple-command-key-work-properly.html' title='Making the Apple Command Key work Properly in Linux'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3478734907500260587</id><published>2006-11-05T13:01:00.000-08:00</published><updated>2006-11-05T14:12:36.934-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Automatix: Automated Post-Installation Setup for Ubuntu</title><content type='html'>&lt;a href="http://www.getautomatix.com/"&gt;Automatix&lt;/a&gt; is a python script that automates some post-installation setup of Ubuntu. From the website, &lt;strong style="font-style: italic; font-weight: normal;"&gt;Automatix is a graphical interface for automating the installation of the most commonly requested applications in Debian based linux operating systems.&lt;/strong&gt;&lt;strong style="font-weight: normal;"&gt; This includes multimedia codecs, multimedia players, browser plugins, etc. The Automatix website includes a &lt;a href="http://getautomatix.com/wiki/index.php?title=Software_and_Tweaks"&gt;page&lt;/a&gt;&lt;/strong&gt; delineating all the software installed by this script.&lt;br /&gt;&lt;br /&gt;Add the Automatix repository to /etc/apt/sources.list.&lt;br /&gt;&lt;blockquote&gt;## Automatix Repository&lt;br /&gt;deb http://www.getautomatix.com/apt edgy main&lt;/blockquote&gt;Download and import the gpg key.&lt;br /&gt;&lt;blockquote&gt;wget http://www.getautomatix.com/apt/key.gpg.asc&lt;br /&gt;gpg --import key.gpg.asc&lt;br /&gt;gpg --export --armor 521A9C7C | sudo apt-key add -&lt;br /&gt;&lt;/blockquote&gt;Install Automatix.&lt;br /&gt;&lt;blockquote&gt;apt-get update&lt;br /&gt;apt-get install automatix2&lt;br /&gt;&lt;/blockquote&gt;Run Automatix and select what you want to install. I selected just about everything (no wine).&lt;br /&gt;&lt;blockquote&gt;automatix2&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3478734907500260587?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3478734907500260587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3478734907500260587'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/11/automatix-automated-post-installation.html' title='Automatix: Automated Post-Installation Setup for Ubuntu'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-5691101500769960562</id><published>2006-11-05T12:03:00.000-08:00</published><updated>2006-11-05T12:08:58.902-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Resolution on the MacBook</title><content type='html'>To fix the resolution on the MacBook: activate the universe repositories and install 915resolution:&lt;br /&gt;&lt;blockquote&gt;apt-get install 915resolution&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-5691101500769960562?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5691101500769960562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/5691101500769960562'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/11/resolution-on-macbook.html' title='Resolution on the MacBook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7994293377098161301</id><published>2006-10-29T09:51:00.000-08:00</published><updated>2006-10-29T10:22:20.964-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>AIGLX + Beryl on MacBook</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Install AIGLX.&lt;/span&gt; Following the &lt;a href="https://help.ubuntu.com/community/CompositeManager/AIGLXOnEdgy"&gt;instructions&lt;/a&gt; for setting up AIGLX, I did the following.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Edit /etc/X11/xorg.conf file. My xorg.conf file is below.&lt;/li&gt;&lt;li&gt;Restart the X server with '/etc/init.d/gdm restart'.&lt;br /&gt;&lt;div style="overflow: scroll; height: 300px;"&gt;&lt;code&gt;&lt;br /&gt;# /etc/X11/xorg.conf (xorg X Window System server configuration file)&lt;br /&gt;#&lt;br /&gt;# This file was generated by dexconf, the Debian X Configuration tool, using&lt;br /&gt;# values from the debconf database.&lt;br /&gt;#&lt;br /&gt;# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.&lt;br /&gt;# (Type "man /etc/X11/xorg.conf" at the shell prompt.)&lt;br /&gt;#&lt;br /&gt;# This file is automatically updated on xserver-xorg package upgrades *only*&lt;br /&gt;# if it has not been modified since the last upgrade of the xserver-xorg&lt;br /&gt;# package.&lt;br /&gt;#&lt;br /&gt;# If you have edited this file but would like it to be automatically updated&lt;br /&gt;# again, run the following command:&lt;br /&gt;#   sudo dpkg-reconfigure -phigh xserver-xorg&lt;br /&gt;&lt;br /&gt;Section "Files"&lt;br /&gt; FontPath "/usr/share/X11/fonts/misc"&lt;br /&gt; FontPath "/usr/share/X11/fonts/cyrillic"&lt;br /&gt; FontPath "/usr/share/X11/fonts/100dpi/:unscaled"&lt;br /&gt; FontPath "/usr/share/X11/fonts/75dpi/:unscaled"&lt;br /&gt; FontPath "/usr/share/X11/fonts/Type1"&lt;br /&gt; FontPath "/usr/share/X11/fonts/100dpi"&lt;br /&gt; FontPath "/usr/share/X11/fonts/75dpi"&lt;br /&gt; FontPath "/usr/share/fonts/X11/misc"&lt;br /&gt; # path to defoma fonts&lt;br /&gt; FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Module"&lt;br /&gt; Load "i2c"&lt;br /&gt; Load "bitmap"&lt;br /&gt; Load "ddc"&lt;br /&gt; Load "dri"&lt;br /&gt; Load "extmod"&lt;br /&gt; Load "freetype"&lt;br /&gt; Load "glx"&lt;br /&gt; Load "int10"&lt;br /&gt; Load "type1"&lt;br /&gt; Load "vbe"&lt;br /&gt; Load "dbe"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Identifier "Generic Keyboard"&lt;br /&gt; Driver  "kbd"&lt;br /&gt; Option  "CoreKeyboard"&lt;br /&gt; Option  "XkbRules" "xorg"&lt;br /&gt; Option  "XkbModel" "pc105"&lt;br /&gt; Option  "XkbLayout" "us"&lt;br /&gt; Option  "XkbOptions" "lv3:ralt_switch"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt; Identifier "Configured Mouse"&lt;br /&gt; Driver  "mouse"&lt;br /&gt; Option  "CorePointer"&lt;br /&gt; Option  "Device"  "/dev/input/mice"&lt;br /&gt; Option  "Protocol"  "ExplorerPS/2"&lt;br /&gt; Option  "ZAxisMapping"  "4 5"&lt;br /&gt; Option  "Emulate3Buttons" "true"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver        "wacom"&lt;br /&gt;Identifier    "stylus"&lt;br /&gt;Option        "Device"        "/dev/wacom"          # Change to&lt;br /&gt;                                              # /dev/input/event&lt;br /&gt;                                              # for USB&lt;br /&gt;Option        "Type"          "stylus"&lt;br /&gt;Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver        "wacom"&lt;br /&gt;Identifier    "eraser"&lt;br /&gt;Option        "Device"        "/dev/wacom"          # Change to&lt;br /&gt;                                              # /dev/input/event&lt;br /&gt;                                              # for USB&lt;br /&gt;Option        "Type"          "eraser"&lt;br /&gt;Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "InputDevice"&lt;br /&gt;Driver        "wacom"&lt;br /&gt;Identifier    "cursor"&lt;br /&gt;Option        "Device"        "/dev/wacom"          # Change to&lt;br /&gt;                                              # /dev/input/event&lt;br /&gt;                                              # for USB&lt;br /&gt;Option        "Type"          "cursor"&lt;br /&gt;Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Device"&lt;br /&gt; Identifier "Intel Corporation Mobile Integrated Graphics Controller"&lt;br /&gt; Driver  "i810"&lt;br /&gt; Option   "XAANoOffscreenPixmaps"&lt;br /&gt; BusID  "PCI:0:2:0"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt; Identifier "Color LCD"&lt;br /&gt; Option  "DPMS"&lt;br /&gt; HorizSync 28-64&lt;br /&gt; VertRefresh 43-60&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Screen"&lt;br /&gt; Identifier "Default Screen"&lt;br /&gt; Device  "Intel Corporation Mobile Integrated Graphics Controller"&lt;br /&gt; Monitor  "Color LCD"&lt;br /&gt; DefaultDepth 24&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  1&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  4&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  8&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  15&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  16&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt; SubSection "Display"&lt;br /&gt;  Depth  24&lt;br /&gt;  Modes  "1280x800"&lt;br /&gt; EndSubSection&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "ServerLayout"&lt;br /&gt; Identifier "Default Layout"&lt;br /&gt; Screen  "Default Screen"&lt;br /&gt; InputDevice "Generic Keyboard"&lt;br /&gt; InputDevice "Configured Mouse"&lt;br /&gt; InputDevice     "stylus" "SendCoreEvents"&lt;br /&gt; InputDevice     "cursor" "SendCoreEvents"&lt;br /&gt; InputDevice     "eraser" "SendCoreEvents"&lt;br /&gt; Option  "AIGLX" "true"&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "DRI"&lt;br /&gt;Mode 0666&lt;br /&gt;EndSection&lt;br /&gt;&lt;br /&gt;Section "Extensions"&lt;br /&gt;Option "Composite" "Enable"&lt;br /&gt;EndSection&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Beryl.&lt;/span&gt; Follow the &lt;a href="http://wiki.beryl-project.org/index.php/Install/Ubuntu/Edgy/AiGLX"&gt;instructions&lt;/a&gt;:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Add repository.&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;deb http://ubuntu.beryl-project.org/ edgy main-edgy&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Import key.&lt;blockquote&gt;&lt;pre&gt;wget &lt;a href="http://ubuntu.beryl-project.org/quinn.key.asc" class="external free" title="http://ubuntu.beryl-project.org/quinn.key.asc" rel="nofollow"&gt;http://ubuntu.beryl-project.org/quinn.key.asc&lt;/a&gt; -O - | sudo apt-key add -&lt;span style="font-family:Georgia,serif;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Georgia,serif;"&gt;Install Beryl.&lt;blockquote&gt;apt-get update&lt;br /&gt;apt-get install beryl emerald-themes&lt;/blockquote&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;[Optional] Test the Beryl window manager.&lt;br /&gt;&lt;/li&gt;&lt;blockquote&gt;beryl-manager&lt;/blockquote&gt;&lt;li&gt;Add beryl-manager to System -&gt; Preferences -&gt; Sessions -&gt; Startup Programs.&lt;/li&gt;&lt;li&gt;Restart the X server with '/etc/init.d/gdm restart'.&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/8844925233998417938-7994293377098161301?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7994293377098161301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7994293377098161301'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/10/aiglx-beryl-on-macbook.html' title='AIGLX + Beryl on MacBook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-6844673569963763355</id><published>2006-10-28T23:35:00.000-07:00</published><updated>2006-10-29T00:30:17.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MacBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Dual-Boot Ubuntu Edgy Eft (6.10) on a MacBook</title><content type='html'>The following explains how to dual-boot Mac OS X and Ubuntu Edge Eft (6.10) on the new Intel Macbooks. This will only deal with the installation, post-installation setup will be dealt with in a later post.&lt;br /&gt;&lt;br /&gt;This is an amalgamation of instructions for Ubuntu Dapper Dan (6.06) from various sources. Most notably, Felipe Alfaro Solana's blog entry about&lt;br /&gt;&lt;a href="http://felipe-alfaro.org/blog/2006/08/19/installing-ubuntu-linux-on-a-macbook-pro/"&gt;Installing Ubuntu Linux on a MacBook Pro&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software Update.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Update Mac OS X.&lt;blockquote&gt;Apple Menu -&gt; Software Update...&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Update Firmware if needed. See the following webpage.&lt;blockquote&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=303880"&gt;http://docs.info.apple.com/article.html?artnum=303880&lt;br /&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Install the rEFIt Boot Menu.&lt;br /&gt;&lt;/span&gt;&lt;ol&gt;&lt;li&gt;Download from &lt;a href="http://refit.sourceforge.net/"&gt;http://refit.sourceforge.net&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Mount the image.&lt;/li&gt;&lt;li&gt;Drag the efi folder to Macintosh HD icon on desktop.&lt;/li&gt;&lt;li&gt;Open a terminal.&lt;blockquote&gt;  cd /efi/refit&lt;br /&gt;./enable-always.sh&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Unmount the image.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Resize Hard Drive.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I have a 80G hard drive. I will create a 50G partition for OS X and the rest for Linux. I will further partition the latter partition into three partitions during the Ubuntu installation: one of 15G (/home); one of 2G (swap); and the rest for the root partition /.&lt;br /&gt;&lt;blockquote&gt;diskutil resizeVolume disk0s2 50G&lt;br /&gt;&lt;/blockquote&gt;I got the name of my disk (disk0s2) from the output of the &lt;span style="font-style: italic;"&gt;mount&lt;/span&gt; command. Look for the disk mounted on /.&lt;br /&gt;&lt;br /&gt;[You can use &lt;a href="http://www.apple.com/macosx/bootcamp"&gt;Bootcamp&lt;/a&gt; for partitioning instead, if you'd like.]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install Ubuntu.&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the Ubuntu CD image (i386 Desktop) from www.ubuntu.com. &lt;/li&gt;&lt;li&gt;Create a CD. &lt;/li&gt;&lt;li&gt;Put it in your computer and reboot.&lt;/li&gt;&lt;li&gt;During startup hold the C key.&lt;/li&gt;&lt;li&gt;Check CD for defects. It takes a while, but is good to do.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select Start or install Ubuntu. The Ubuntu desktop loads.&lt;/li&gt;&lt;li&gt;Click the Install icon.&lt;/li&gt;&lt;li&gt;Follow the on screen instructions. Some notes on partitioning:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Manually edit the partition table. I created: 2G swap; 15G /home; 7+G /. &lt;/li&gt;&lt;li&gt;On the next screen make sure that EFI GPT partition is &lt;span style="font-weight: bold;"&gt;not&lt;/span&gt; mounted.&lt;/li&gt;&lt;li&gt;Also make sure that your partitions are mounted in the correct spots (swap, /home, /).&lt;/li&gt;&lt;li&gt;Remember what your / partition is (mine is /dev/sda5).&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;Grub &lt;span style="font-weight: bold;"&gt;will fail&lt;/span&gt; to install. This is expected. We'll install LILO later.&lt;/li&gt;&lt;li&gt;Make the / partition bootable (mine is /dev/sda5).&lt;br /&gt;&lt;blockquote&gt;parted /dev/sda&lt;br /&gt;set 5&lt;br /&gt;boot&lt;br /&gt;on&lt;br /&gt;quit&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Install LILO.&lt;blockquote&gt;mount -t proc none /target/proc&lt;br /&gt;mount -o bind /dev /target/dev&lt;br /&gt;chroot /target&lt;br /&gt;apt-get install lilo lilo-doc linux-686-smp&lt;br /&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Create /etc/lilo.conf, adjusting /dev/sda5 to reflect your / partition.&lt;br /&gt;&lt;blockquote&gt;boot=/dev/sda5&lt;br /&gt;default=Ubuntu&lt;br /&gt;map=/boot/map&lt;br /&gt;delay=20&lt;br /&gt;image=/vmlinuz initrd=/initrd.img&lt;br /&gt;root=/dev/sda5&lt;br /&gt;append=noapic&lt;br /&gt;label=Ubuntu&lt;br /&gt;read-only&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Install LILO. &lt;blockquote&gt;lilo -b /dev/sda&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Exit the chrooted environment.&lt;blockquote&gt;exit&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Check that LILO is installed. Look for LILO at the beginning of the output of the following command.&lt;blockquote&gt;hexdump -C /dev/sda | less&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Reboot.&lt;blockquote&gt;umount /target/proc&lt;br /&gt;umount /target/dev&lt;br /&gt;umount /target&lt;br /&gt;reboot&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Select "Start Partitioning Tool" at the rEFIt menu. It might ask you to sync the MBR GPT maps. Select yes.&lt;/li&gt;&lt;li&gt;Reboot.&lt;/li&gt;&lt;li&gt;Select the Penguin at the rEFIt menu.&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/8844925233998417938-6844673569963763355?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6844673569963763355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/6844673569963763355'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/10/dual-boot-ubuntu-edgy-eft-610-on.html' title='Dual-Boot Ubuntu Edgy Eft (6.10) on a MacBook'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-2028758763225699437</id><published>2006-09-20T22:14:00.000-07:00</published><updated>2006-09-20T22:18:33.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Avoiding Google's Local Redirection</title><content type='html'>When visiting &lt;a href="http://www.google.com"&gt;www.google.com&lt;/a&gt; from a Canadian IP address I am automatically redirected to &lt;a href="http://www.google.ca"&gt;www.google.ca&lt;/a&gt;. To correct this unwanted behaviour click on &lt;a href="http://www.google.com/ncr"&gt;Go to Google.com&lt;/a&gt; at the bottom of the latter page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-2028758763225699437?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/2028758763225699437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/2028758763225699437'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/avoiding-googles-local-redirection.html' title='Avoiding Google&apos;s Local Redirection'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3435812658735035402</id><published>2006-09-20T18:21:00.000-07:00</published><updated>2007-07-07T17:54:58.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><title type='text'>Editing PDFs in Linux</title><content type='html'>&lt;a href="http://www.gnome.org/projects/evince/"&gt;Evince&lt;/a&gt; is my document viewer of choice these days because it supports PDF, PostScript, DVI and DejaVu files. But it doesn't support annotating documents. So far, I have found the following programs for editing PDF files.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ecademix.com/JohannesHofmann/#flpsed"&gt;flpsed&lt;/a&gt; is a PostScript annotator. So convert PDF files to PostScript using pdftops and use flpsed.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.scribus.net/"&gt;Scribus&lt;/a&gt; is an open-source application for "professional page layout". This means that it is overkill for a PDF viewer if you only annotate occasionally. Hmm. It seems that you have to convert to PostScript here as well (then File -&gt; Import -&gt; Import PS).&lt;br /&gt;&lt;br /&gt;These programs can be installed with apt-get.&lt;br /&gt;&lt;blockquote&gt;apt-get install evince&lt;br /&gt;apt-get install scribus&lt;br /&gt;apt-get install flpsed&lt;/blockquote&gt;I wonder how hard it would be to merge flpsed and evince.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3435812658735035402?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3435812658735035402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3435812658735035402'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/editing-pdfs-in-linux.html' title='Editing PDFs in Linux'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-8541037220341846118</id><published>2006-09-14T11:36:00.000-07:00</published><updated>2006-09-14T12:08:45.621-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cool Programs'/><title type='text'>Xournal (or Annotating PDF files)</title><content type='html'>&lt;a href="http://www-math.mit.edu/%7Eauroux/software/xournal"&gt;Xournal&lt;/a&gt; is software written specifically for tablet computers for hand writing notes, or journals, say. I've used it on my Nokia 770. But it has an excellent feature that makes it useful on a non-tablet computer: It allows you to annotate pdf files! This includes highlighting and doodling. Here is a screenshot.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger2/4114/1079702787353322/1600/xournal.0.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger2/4114/1079702787353322/400/xournal.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To install it, download the latest version from the project &lt;a href="http://www-math.mit.edu/%7Eauroux/software/xournal"&gt;website&lt;/a&gt;. Unpack it and run the script called install-binary.&lt;br /&gt;&lt;blockquote&gt;tar -xzvf xournal.tar.gz&lt;br /&gt;cd xournal-0.3.1&lt;br /&gt;sudo ./install-binary&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-8541037220341846118?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/8541037220341846118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/8541037220341846118'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/xournal-or-annotating-pdf-files.html' title='Xournal (or Annotating PDF files)'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3137063642208239423</id><published>2006-09-13T22:19:00.000-07:00</published><updated>2007-01-31T23:18:12.550-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iPod'/><title type='text'>iPod Shuffle and (X)Ubuntu</title><content type='html'>I got a free iPod shuffle for switching banks. Yeah, I'm a gadget whore.&lt;br /&gt;&lt;br /&gt;Here is how to use it with (X)Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Software.&lt;/span&gt; Install &lt;a href="http://www.gnu.org/software/gnupod"&gt;GNUPod&lt;/a&gt;.&lt;br /&gt;&lt;blockquote&gt;apt-get install gnupod-tools&lt;/blockquote&gt;Install &lt;a href="http://shuffle-db.sourceforge.net/"&gt;iPod Shuffle DB Rebuilder&lt;/a&gt; (shuffle_db).&lt;br /&gt;&lt;blockquote&gt;Download the script from the project &lt;a href="http://shuffle-db.sourceforge.net/"&gt;website&lt;/a&gt;.&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Initialization.&lt;/span&gt; This only needs to be done once (or anytime you mess up the shuffle).&lt;br /&gt;&lt;blockquote&gt;mount /dev/sda1 /media/ipod/&lt;br /&gt;gnupod_INIT -m /media/ipod/&lt;br /&gt;mkdir /media/ipod/music/&lt;br /&gt;cp rebuild_db.py /media/ipod/&lt;br /&gt;&lt;/blockquote&gt;The device file /dev/sda1 might differ on different machines.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Transfering Music&lt;/span&gt; is a four step process: mount; copy mp3s into the music directory; rebuild the database; umount.&lt;br /&gt;&lt;blockquote&gt;mount -o exec /dev/sda1 /media/ipod&lt;br /&gt;cp ~/music/songs /media/ipod/music/&lt;br /&gt;/media/ipod/rebuild_db.py -l music&lt;br /&gt;umount /media/ipod&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Alternatives&lt;/span&gt;. You can transfer music to the Shuffle with &lt;a href="http://www.gnu.org/software/gnupod/"&gt;GNUPod&lt;/a&gt; or &lt;a href="http://www.gtkpod.org/"&gt;GTKPod&lt;/a&gt;, but I like the shuffle_db better because it is very simple and because it maintains directory structure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3137063642208239423?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3137063642208239423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3137063642208239423'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/ipod-shuffle.html' title='iPod Shuffle and (X)Ubuntu'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-1378889620228494958</id><published>2006-09-10T21:28:00.000-07:00</published><updated>2006-09-10T21:34:11.652-07:00</updated><title type='text'>Google Picasa</title><content type='html'>Install &lt;a href="http://picasa.google.com/"&gt;Google's Picasa&lt;/a&gt;. &lt;a href="http://picasa.google.com/linux/download.html"&gt;Download&lt;/a&gt; the .deb package for Debian/Ubuntu and install with&lt;br /&gt;&lt;blockquote&gt;dpkg -i picasa_2.2.2820-5_i386.deb&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-1378889620228494958?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/1378889620228494958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/1378889620228494958'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/google-picasa.html' title='Google Picasa'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4178888751786148123</id><published>2006-09-10T20:41:00.000-07:00</published><updated>2006-09-10T21:28:34.477-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Games'/><category scheme='http://www.blogger.com/atom/ns#' term='XFce4'/><title type='text'>Pipe Panic!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger2/4114/1079702787353322/1600/pipepanic.0.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://photos1.blogger.com/blogger2/4114/1079702787353322/320/pipepanic.0.png" alt="" border="0" /&gt;&lt;/a&gt;I came across &lt;a href="http://www.users.waitrose.com/%7Ethunor/pipepanic/"&gt;Pipe Panic&lt;/a&gt; for the &lt;a href="http://www.nokia.com/770"&gt;Nokia 770&lt;/a&gt;, and I really like it. It's a pipe connecting game: the goal is to connect pipes to create a leak-proof path from a water source to its destination.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Requirements.&lt;/span&gt; Install the libSDL libraries with apt-get.&lt;br /&gt;&lt;blockquote&gt;apt-get install libsdl1.2-dev&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Installation.&lt;/span&gt; Download the sourcecode from the Pipe Panic &lt;a href="http://www.users.waitrose.com/%7Ethunor/pipepanic/downloads.html"&gt;website&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Extract and compile the package.&lt;br /&gt;&lt;blockquote&gt;tar -xzvf pipepanic-0.1.3-source.tar.gz&lt;br /&gt;cd pipepanic&lt;br /&gt;make&lt;br /&gt;&lt;/blockquote&gt;(For the last step above you need to have the build tools installed. See my earlier post on post-installation setup.)&lt;br /&gt;&lt;br /&gt;Test it.&lt;br /&gt;&lt;blockquote&gt;./pipepanic -f&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Install system wide.&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;mv pipepanic pipepanic.bin&lt;br /&gt;&lt;/blockquote&gt;Create a file called pipepanic containing the following three lines.&lt;br /&gt;&lt;blockquote&gt;#!/bin/bash&lt;br /&gt;cd /usr/local/pipepanic-0.1.3&lt;br /&gt;exec ./pipepanic.bin -f&lt;/blockquote&gt;Copy the pipepanic directory into /usr/local.&lt;br /&gt;&lt;blockquote&gt;cd ..&lt;br /&gt;mv pipepanic-0.1.3-source /usr/local/pipepanic-0.1.3&lt;br /&gt;&lt;/blockquote&gt;Create symbolic links&lt;br /&gt;&lt;blockquote&gt;cd /usr/local/bin&lt;br /&gt;ln -s ../pipepanic-0.1.3/pipepanic .&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold;"&gt;Add a menu entry.&lt;/span&gt; To add an entry to the Xfce menu, create a file called /usr/share/applications/pipepanic.desktop containing the following.&lt;br /&gt;&lt;blockquote&gt;[Desktop Entry]&lt;br /&gt;Encoding=UTF-8&lt;br /&gt;Name=Pipe Panic&lt;br /&gt;Comment=Connect the Pipes!&lt;br /&gt;Exec=pipepanic&lt;br /&gt;Icon=&lt;br /&gt;Terminal=false&lt;br /&gt;X-MultipleArgs=false&lt;br /&gt;Type=Application&lt;br /&gt;Categories=Application;Game;ArcadeGame;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4178888751786148123?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4178888751786148123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4178888751786148123'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/09/pipe-panic.html' title='Pipe Panic!'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-7257926288155223695</id><published>2006-08-20T08:58:00.000-07:00</published><updated>2006-08-20T09:30:10.914-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shell tools'/><title type='text'>Start GNU Screen Automatically</title><content type='html'>&lt;a href="http://www.gnu.org/software/screen/"&gt;GNU Screen&lt;/a&gt; is a very useful program that creates multiple interactive shells inside one physical terminal. It is extremely useful for system administrators and for using with SSH connections and tunnels. See the webpage for more information, guides and manuals.&lt;br /&gt;&lt;br /&gt;To have screen start automatically upon login, add the following line to ~/.bash_profile.&lt;br /&gt;&lt;blockquote&gt;exec /usr/bin/screen&lt;/blockquote&gt;&lt;br /&gt;Add the following to ~/.bashrc. This produces a message acknowledging screen is activated.&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;if [ "$TERM" = "screen" ]; then&lt;br /&gt;echo "[ screen is activated ]"&lt;br /&gt;fi&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;Add the following to ~/.screenrc. It prevents screen from popping up its startup message; and defines the number of scrollback lines available.&lt;br /&gt;&lt;blockquote&gt;startup_message off&lt;br /&gt;defscrollback 10000&lt;/blockquote&gt;&lt;br /&gt;Finally, to force xterm to start bash as a login shell (so that bash reads ~/.bash_profile), add the following line to ~/.Xresources. (This will have to be modified appropriately for other terminals.)&lt;br /&gt;&lt;blockquote&gt;Xterm*loginShell: true&lt;/blockquote&gt;&lt;br /&gt;You can implement the changes to ~/.Xresources with the following command.&lt;br /&gt;&lt;blockquote&gt;xrdb ~/.Xresources&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-7257926288155223695?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7257926288155223695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/7257926288155223695'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/start-gnu-screen-automatically.html' title='Start GNU Screen Automatically'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-8709432981338234137</id><published>2006-08-18T11:18:00.000-07:00</published><updated>2006-08-18T11:21:39.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vi'/><title type='text'>Vi editing mode on the command line</title><content type='html'>To set the default command line editing mode to vi (instead of emacs),  add the following to ~/.inputrc.&lt;br /&gt;&lt;blockquote&gt;set editing-mode vi&lt;br /&gt;set keymap vi-insert&lt;br /&gt;&lt;/blockquote&gt;Or add the following to ~/.bashrc.&lt;br /&gt;&lt;blockquote&gt;set -o vi&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-8709432981338234137?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/8709432981338234137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/8709432981338234137'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/vi-editing-mode-on-command-line.html' title='Vi editing mode on the command line'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-3422801677330552895</id><published>2006-08-18T11:03:00.000-07:00</published><updated>2006-08-18T11:10:27.698-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Xmodmap on login.</title><content type='html'>I use xmodmap to change a few keybindings. This post describes how to get xmodmap to load your settings upon login.&lt;br /&gt;&lt;br /&gt;Create ~/.xinitrc (or maybe ~/.xsession) with two lines: the first loads your xmodmap file; the second starts the windowmanager. Since I am using xfce4, my .xinitrc file looks like so.&lt;br /&gt;&lt;blockquote&gt; /usr/bin/xmodmap ~/.xmodmaprc&lt;br /&gt;exec /usr/bin/startxfce4&lt;/blockquote&gt;Exit. At the login screen change the "session" setting to "Default System Session" and log in.&lt;br /&gt;&lt;br /&gt;Here is my .xmodmaprc file.&lt;br /&gt;&lt;blockquote&gt;keycode 112 = 30&lt;br /&gt;&lt;br /&gt; ! Swap Caps_Lock and Control_L&lt;br /&gt; ! since my pinkie hurts.&lt;br /&gt;&lt;br /&gt;remove Lock = Caps_Lock&lt;br /&gt;remove Control = Control_L&lt;br /&gt;keysym Control_L = Caps_Lock&lt;br /&gt;keysym Caps_Lock = Control_L&lt;br /&gt;add Lock = Caps_Lock&lt;br /&gt;add Control = Control_L&lt;br /&gt;&lt;br /&gt; ! bind the menu key to the right control key&lt;br /&gt; ! since my laptop does not have a right CTRL.&lt;br /&gt;&lt;br /&gt;keycode 117 = Control_R&lt;br /&gt;add Control = Control_R&lt;br /&gt;&lt;br /&gt; ! On the Compaq Presario 2800CA, the the following&lt;br /&gt; ! keycodes are listed for the special keys at the&lt;br /&gt; ! top of the keyboard.&lt;br /&gt; !&lt;br /&gt; !     163  i&lt;br /&gt; !     158  envelope&lt;br /&gt; !     154  magnifying glass&lt;br /&gt; !     239  music note&lt;br /&gt; !     174  - (volume down)&lt;br /&gt; !     176  + (volume up)&lt;br /&gt;&lt;br /&gt;keycode 174 = F18&lt;br /&gt;keycode 176 = F19&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-3422801677330552895?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3422801677330552895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/3422801677330552895'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/xmodmap-on-login.html' title='Xmodmap on login.'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-788700651133352220</id><published>2006-08-18T10:53:00.000-07:00</published><updated>2006-08-18T11:01:12.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Two-Finger Scrolling on the Trackpad</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Pre-requisites.&lt;/span&gt; You will need the xorg-dev package.&lt;br /&gt;&lt;blockquote&gt; apt-get install xorg-dev&lt;br /&gt;&lt;/blockquote&gt;(You must also have compliers and libraries installed; see the Xubuntu 6.06 LTS post.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install the new Synaptics driver. &lt;/span&gt;The included synaptics mouse driver does not support two-finger scrolling, but the latest one does (0.14.6). So download the latest synaptics driver.&lt;br /&gt;&lt;blockquote&gt;&lt;a href="http://web.telia.com/%7Eu89404340/touchpad"&gt;http://web.telia.com/~u89404340/touchpad&lt;/a&gt;&lt;/blockquote&gt;Extract and compile using 'make'.&lt;br /&gt;&lt;br /&gt;Copy synaptics_drv.o into place. (I crashed my systems doing this, so you&lt;br /&gt;may want to exit X before you put the driver in place.)&lt;br /&gt;&lt;blockquote&gt; cp synaptics_drv.o /usr/lib/xorg/modules/input/&lt;/blockquote&gt;Now edit the InputDevice section of your xorg.conf file. My InputDevice section now reads like so.&lt;br /&gt;&lt;blockquote&gt;Section "InputDevice"&lt;br /&gt;Identifier      "Synaptics Touchpad"&lt;br /&gt;Driver          "synaptics"&lt;br /&gt;Option          "SendCoreEvents"        "true"&lt;br /&gt;Option          "Device"                "/dev/psaux"&lt;br /&gt;Option          "Protocol"              "auto-dev"&lt;br /&gt;Option          "HorizScrollDelta"      "0"&lt;br /&gt;Option          "HorizTwoFingerScroll"  "1"&lt;br /&gt;Option          "VertTwoFingerScroll"   "1"&lt;br /&gt;EndSection&lt;/blockquote&gt;(I only added the two *TwoFingerScroll options.)&lt;br /&gt;&lt;br /&gt;Restart X.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Firefox.&lt;/span&gt; In about:config make the following changes.&lt;br /&gt;&lt;blockquote&gt;mousewheel.withnokey.action 0&lt;br /&gt;mousewheel.withnokey.numlines 1&lt;br /&gt;mousewheel.withnokey.sysnumlines false&lt;br /&gt;mousewheel.horizscroll.withnokey.action 0&lt;br /&gt;mousewheel.horizscroll.withnokey.numlines 1&lt;br /&gt;mousewheel.horizscroll.withnokey.sysnumlines false&lt;br /&gt;general.smoothScroll true&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-788700651133352220?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/788700651133352220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/788700651133352220'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/two-finger-scrolling-on-trackpad.html' title='Two-Finger Scrolling on the Trackpad'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4780285317830826035</id><published>2006-08-18T10:46:00.000-07:00</published><updated>2006-08-18T10:52:56.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>More Post-Installation Packages</title><content type='html'>Image Magick for image manipulation.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install imagemagick&lt;/li&gt;&lt;/ul&gt;Xnest.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install xnest&lt;/li&gt;&lt;/ul&gt;LaTeX macros for Vim.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;aptitude install vim-latexsuite&lt;/li&gt;&lt;/ul&gt;The Amarok music player.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install amarok amarok-xine&lt;/li&gt;&lt;/ul&gt;Terminal program for changing audio settings.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install aumix&lt;/li&gt;&lt;/ul&gt;Download the Debian package for skype from &lt;a href="http://www.skype.com/"&gt;skype.com&lt;/a&gt;, then&lt;br /&gt;&lt;ul&gt;&lt;li&gt;  dpkg -i skype*.deb&lt;/li&gt;&lt;/ul&gt;OpenOffice.org. (This is included in Ubuntu, but not in Xubuntu.)&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install openoffice.org&lt;/li&gt;&lt;/ul&gt;Radeon tool: for effecting changes on Radeon graphics cards.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install radeontool&lt;/li&gt;&lt;/ul&gt;More games: the Multiple Arcade Machine Emulator; and a gui frontend.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install xmame-x&lt;/li&gt;&lt;li&gt;apt-get install kxmame&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4780285317830826035?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4780285317830826035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4780285317830826035'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/more-post-installation-packages.html' title='More Post-Installation Packages'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4612603652075631063</id><published>2006-08-18T10:12:00.000-07:00</published><updated>2006-12-04T18:46:33.582-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Xubuntu 6.06 Installation</title><content type='html'>I installed &lt;a href="http://www.xubuntu.org/"&gt;Xubuntu 6.06&lt;/a&gt; because I wanted to try &lt;a href="http://www.xfce.org/"&gt;XFce4&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Initial impression:&lt;/span&gt; XFce is quite nice and seems fast. I just need to learn the keyboard shortcuts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Post-Installation:&lt;/span&gt; Followed some of the suggestions on &lt;a href="http://www.cs.cornell.edu/%7Edjm/ubuntu/"&gt;http://www.cs.cornell.edu/~djm/ubuntu&lt;/a&gt;; did the following.&lt;br /&gt;&lt;br /&gt;Add networking information (essid, keys, etc.).&lt;br /&gt;&lt;ul&gt;&lt;li&gt;vi /etc/network/interfaces&lt;/li&gt;&lt;li&gt;/etc/init.d/networking restart&lt;/li&gt;&lt;/ul&gt;Update and Upgrade.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get update&lt;/li&gt;&lt;li&gt;apt-get upgrade&lt;/li&gt;&lt;/ul&gt;Copy my xorg.conf into place.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;cd /etc/X11&lt;/li&gt;&lt;li&gt;mv xorg.conf{,.original}&lt;/li&gt;&lt;li&gt;cp /scratch/etc/X11/xorg.conf .&lt;/li&gt;&lt;/ul&gt;Edit sources.list.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;cp sources.list sources.list.original&lt;/li&gt;&lt;li&gt;vi sources.list&lt;/li&gt;&lt;li&gt;apt-get update&lt;/li&gt;&lt;/ul&gt;Install Microsoft fonts.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install msttcorefonts&lt;/li&gt;&lt;/ul&gt;Install mutlimedia codecs.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;wget -c -O /tmp/w32codecs.deb http://packages.freecontrib.org/ubuntu/plf/pool/dapper/i386/non-free/w32codecs/w32codecs_20060611-1plf1_i386.deb&lt;/li&gt;&lt;li&gt;dpkg -i /tmp/w32codecs.deb&lt;/li&gt;&lt;li&gt;apt-get install libdvdread3&lt;/li&gt;&lt;li&gt;/usr/share/doc/libdvdread3/examples/install-css.sh&lt;/li&gt;&lt;/ul&gt;Install mutlimedia players.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install lame sox ffmpeg mjpegtools mpg321 vorbis-tools&lt;/li&gt;&lt;li&gt;apt-get install mplayer&lt;/li&gt;&lt;li&gt;sed -i.backup -e's@vo=x11,@vo=xv,@g' /etc/mplayer/mplayer.conf&lt;/li&gt;&lt;li&gt;apt-get install sound-juicer&lt;/li&gt;&lt;/ul&gt;Install Acrobat Reader.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install acroread&lt;/li&gt;&lt;/ul&gt;Install Flash plugins.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install flashplugin-nonfree&lt;/li&gt;&lt;li&gt;update-flashplugin&lt;/li&gt;&lt;/ul&gt;Install Java (Sun).&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install sun-java5-jre sun-java5-plugin&lt;/li&gt;&lt;li&gt;update-alternatives --config java&lt;/li&gt;&lt;/ul&gt;Install LaTeX.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install tetex-base tetex-bin tetex-extra gv xpdf-reader texinfo texi2html dvipng sam2p tetex-doc dialog psutils&lt;/li&gt;&lt;/ul&gt;Install Octave (Matlab replacement) and Gnuplot.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install octave&lt;/li&gt;&lt;li&gt;apt-get install gnuplot{,-doc}&lt;/li&gt;&lt;/ul&gt;Install subversion.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install subversion&lt;/li&gt;&lt;/ul&gt;Install vim-gtk and set it as the default editor.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install vim-gtk vim-doc&lt;br /&gt;&lt;/li&gt;&lt;li&gt;sed -i.backup.gvim -e's@gedit.desktop@gvim.desktop@g'&lt;br /&gt;-e's@text/x-csrc=gvim.desktop@text/x-csrc=gvim.desktop\ntext/x-c++hdr=gvim.desktop\ntext/x-c++src=gvim.desktop\ntext/x-csharp=gvim.desktop\ntext/x-tex=gvim.desktop@g'&lt;br /&gt;/usr/share/applications/defaults.list&lt;br /&gt;&lt;/li&gt;&lt;li&gt;sed -i.backup&lt;br /&gt;-e's@MimeType=text/plain;@MimeType=text/plain;text/html;text/css;text/xml;text/x-dtd;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;text/x-java;text/x-csharp;text/x-tex;text/x-bibtex;text/x-readme;@g'&lt;br /&gt;-e's@NoDisplay=true@NoDisplay=false@g' /usr/share/applications/gvim.desktop&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Install games.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install supertux&lt;/li&gt;&lt;li&gt;apt-get install frozen-bubble&lt;/li&gt;&lt;/ul&gt;Install Openssh-server.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install openssh-server&lt;/li&gt;&lt;/ul&gt;Install basic compilers and libraries.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;apt-get install build-essential manpages-dev&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4612603652075631063?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4612603652075631063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4612603652075631063'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/xubuntu-606-lts.html' title='Xubuntu 6.06 Installation'/><author><name>Franco</name><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></entry><entry><id>tag:blogger.com,1999:blog-8844925233998417938.post-4671406174267863418</id><published>2006-08-18T09:42:00.000-07:00</published><updated>2006-08-18T09:43:17.477-07:00</updated><title type='text'>Linux Wisdom</title><content type='html'>The following posts document various linux tasks.&lt;br /&gt;&lt;br /&gt;For the record, I generally use &lt;a href="http://www.ubuntu.com"&gt;Ubuntu&lt;/a&gt;, most recently &lt;a href="http://www.xubuntu.org"&gt;Xubuntu&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8844925233998417938-4671406174267863418?l=linuxwisdom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4671406174267863418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8844925233998417938/posts/default/4671406174267863418'/><link rel='alternate' type='text/html' href='http://linuxwisdom.blogspot.com/2006/08/linux-wisdom.html' title='Linux Wisdom'/><author><name>Franco</name><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></entry></feed>
