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

<channel>
	<title>Sam Lesher &#187; Ubuntu</title>
	<atom:link href="http://www.samlesher.com/category/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.samlesher.com</link>
	<description>Sam Lesher</description>
	<lastBuildDate>Fri, 22 Oct 2010 21:23:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Control which application launches when you attach your MP3 player &#8211; Ubuntu</title>
		<link>http://www.samlesher.com/ubuntu/control-which-application-launches-when-you-attach-your-mp3-player-ubuntu</link>
		<comments>http://www.samlesher.com/ubuntu/control-which-application-launches-when-you-attach-your-mp3-player-ubuntu#comments</comments>
		<pubDate>Sun, 01 Mar 2009 16:34:15 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=197</guid>
		<description><![CDATA[So you plug in your iPod, and Rhythmbox automatically starts up. But maybe you want GTKPod to start up, or maybe you don&#8217;t want any application to automatically launch when you attach your music player. Here&#8217;s how to control this: Open nautilus (file browser). Click Edit -> Preferences -> Media tab. Click the button next [...]]]></description>
			<content:encoded><![CDATA[<p>So you plug in your iPod, and Rhythmbox automatically starts up.  But maybe you want GTKPod to start up, or maybe you don&#8217;t want any application to automatically launch when you attach your music player.  Here&#8217;s how to control this:</p>
<p>Open nautilus (file browser).<br />
Click Edit -> Preferences -> Media tab.  Click the button next to &#8220;Music Player&#8221;.</p>
<p>This is the setting that controls what happens when you attach your MP3 player.  You can choose another program from the list, choose a program that is not listed, tell it to ask you each time, or choose &#8220;Do Nothing&#8221;.</p>
<p>This is a Gnome feature, so it should work on any Linux distribution that is running Gnome (Fedora, Suse, Arch, Debian, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/control-which-application-launches-when-you-attach-your-mp3-player-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu &#8211; Auto-login and lock screen</title>
		<link>http://www.samlesher.com/ubuntu/ubuntu-auto-login-and-lock-screen</link>
		<comments>http://www.samlesher.com/ubuntu/ubuntu-auto-login-and-lock-screen#comments</comments>
		<pubDate>Sun, 22 Feb 2009 22:11:15 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=174</guid>
		<description><![CDATA[I like to set up my Ubuntu workstation to automatically log into my account and then immediately lock the screen. This allows all my processes to start up and also allows me to VNC into the main console session via the Remote Desktop (vino) server. There are a few ways to set this up: First, [...]]]></description>
			<content:encoded><![CDATA[<p>I like to set up my Ubuntu workstation to automatically log into my account and then immediately lock the screen.  This allows all my processes to start up and also allows me to VNC into the main console session via the Remote Desktop (vino) server.  There are a few ways to set this up:</p>
<p>First, set up auto-login:<br />
System > Administration > Login Window > Security tab<br />
Check &#8216;Enable Automatic Login&#8217; and choose your username.   Click &#8216;Close&#8217;.</p>
<p>As for locking the screen after login, you can try adding the following command to System > Preferences > Sessions:<br />
<code>gnome-screensaver-command --lock</code><br />
or<br />
<code>xdg-screensaver lock</code></p>
<p>I found that these commands worked for me when logging in and out of the box.  However, I found that they did not work for me when I rebooted my workstation.  If any of the other commands listed Sessions utilize gnome-keyring, such as &#8216;mail-notification&#8217;, the gnome-keyring password prompt seems to keep the screen from being locked.  To work around this, I created a script called &#8216;lockstartup&#8217;.  This script does the following:</p>
<p>1. Pauses for 10 seconds (a step I found necessary in order to get the script to work correctly)<br />
2. Locks the screen<br />
3. Pauses for another 10 seconds (again, a step I found necessary)<br />
4. Starts any applications that use gnome-keyring</p>
<p>Here is what my script looks like:</p>
<pre><code>#!/bin/sh
sleep 10
xdg-screensaver lock
sleep 10
mail-notification</code></pre>
<p />
<p />
After you save the script, make it executable:<br />
<code>$ chmod +x lockstartup</code></p>
<p>And then add it to System > Preferences > Sessions.  If you reboot, you should be automatically logged in and then see the screen lock.  Once you unlock the screen you should be presented with the gnome-keyring password prompt.</p>
<p>I am using this on Ubuntu 8.10 Intrepid Ibex.  I have not tested this on any other releases.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/ubuntu-auto-login-and-lock-screen/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Convert mp3 to swf on Linux</title>
		<link>http://www.samlesher.com/ubuntu/ubuntu-convert-mp3-to-swf-on-linux</link>
		<comments>http://www.samlesher.com/ubuntu/ubuntu-convert-mp3-to-swf-on-linux#comments</comments>
		<pubDate>Mon, 19 Jan 2009 19:46:35 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[adobe flash]]></category>
		<category><![CDATA[macromedia flash]]></category>
		<category><![CDATA[shockwave flash]]></category>
		<category><![CDATA[Ubuntu Intrepid Ibex 8.10]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=146</guid>
		<description><![CDATA[I had an mp3 file that I wanted to convert to an SWF Flash file so that I could share a link to it in a project I was working on. Here&#8217;s how I did it: First, install ffmpeg and swftools $ sudo apt-get install ffmpeg swftools Convert the mp3 file to wav format $ [...]]]></description>
			<content:encoded><![CDATA[<p>I had an mp3 file that I wanted to convert to an SWF Flash file so that I could share a link to it in a project I was working on.   Here&#8217;s how I did it:</p>
<p>First, install ffmpeg and swftools<br />
<code>$ sudo apt-get install ffmpeg swftools</code></p>
<p>Convert the mp3 file to wav format<br />
<code>$ ffmpeg -i in.mp3 out.wav</code></p>
<p>Convert the wav file to an SWF Flash file<br />
<code>$ wav2swf -o filename.swf out.wav -s 44100 -l 100 -d</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/ubuntu-convert-mp3-to-swf-on-linux/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install PulseAudio on Xubuntu 8.10 (XFCE)</title>
		<link>http://www.samlesher.com/ubuntu/install-pulseaudio-on-xubuntu-810-xfce</link>
		<comments>http://www.samlesher.com/ubuntu/install-pulseaudio-on-xubuntu-810-xfce#comments</comments>
		<pubDate>Tue, 02 Dec 2008 21:27:11 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[pulse]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[XFCE]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=138</guid>
		<description><![CDATA[Here is how to install and use PulseAudio on Xubuntu 8.10 Intrepid Ibex. 1. Install packages for PulseAudio $ sudo apt-get install libasound2-plugins pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-hal pulseaudio-module-lirc pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils paman padevchooser paprefs pavucontrol pavumeter libao-pulse 2. Configure Alsa Edit the file /etc/asound.conf as root. Create it if it doesn&#8217;t exist. Enter the following [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how to install and use PulseAudio on Xubuntu 8.10 Intrepid Ibex.</p>
<p>1. Install packages for PulseAudio<br />
<code>$ sudo apt-get install libasound2-plugins pulseaudio pulseaudio-esound-compat pulseaudio-module-gconf pulseaudio-module-hal pulseaudio-module-lirc pulseaudio-module-x11 pulseaudio-module-zeroconf pulseaudio-utils paman padevchooser paprefs pavucontrol pavumeter libao-pulse</code></p>
<p>2.  Configure Alsa<br />
Edit the file <highlight>/etc/asound.conf</highlight> as root.  Create it if it doesn&#8217;t exist.  Enter the following in this file and save:</p>
<pre><code>pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}</code></pre>
<p />
<p />
3.  Add your user account to the pulse groups:</p>
<pre><code>$ sudo gpasswd -a YOURUSERNAME pulse
$ sudo gpasswd -a YOURUSERNAME pulse-access
$ sudo gpasswd -a YOURUSERNAME pulse-rt</code></pre>
<p />
<p />
4.  Configure PulseAudio<br />
Click Applications > Settings > PulseAudio Preferences<br />
On the Network Access tab, check:<br />
 &#8211; Enable network access to local sound devices<br />
 &#8211; Allow other machines on the LAN to discover local sound devices<br />
 &#8211; Don&#8217;t require authentication</p>
<p>On the Multicast/RTP tab, check:<br />
 &#8211; Enable Multicast/RTP receiver<br />
 &#8211; Enable Multicast/RTP sender</p>
<p>Configure PulseAudio to run as a daemon and allow users to load modules.  Edit the file <highlight>/etc/default/pulseaudio</highlight> as root.<br />
Change PULSEAUDIO_SYSTEM_START=<highlight>0</highlight> to <highlight>1</highlight><br />
Change DISALLOW_MODULE_LOADING=<highlight>1</highlight> to <highlight>0</highlight></p>
<p>Edit the file <highlight>/etc/libao.conf</highlight> as root, create it if it doesn&#8217;t exist.  Enter the following into that file:<br />
<code>default_driver=pulse</code></p>
<p>Restart your session or reboot to have changes go into effect.</p>
<p>Sources:  <a href="https://wiki.ubuntu.com/PulseAudio" target="_blank">Ubuntu Wiki</a>, <a href="http://ubuntu-utah.ubuntuforums.org/showpost.php?p=5068487&#038;postcount=7" target="_blank">ivotron on Ubuntu Forums</a>, <a href="http://www.pulseaudio.org/wiki/PerfectSetup" target="_blank">pulseaudio.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/install-pulseaudio-on-xubuntu-810-xfce/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Remote Desktop (VNC) Access on Xubuntu (XFCE) 8.10</title>
		<link>http://www.samlesher.com/ubuntu/remote-desktop-vnc-access-on-xubuntu-xfce-810</link>
		<comments>http://www.samlesher.com/ubuntu/remote-desktop-vnc-access-on-xubuntu-xfce-810#comments</comments>
		<pubDate>Mon, 01 Dec 2008 15:05:46 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[Ibex]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[Intrepid Ibex 8.10]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[vino]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[XFCE]]></category>
		<category><![CDATA[Xubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=133</guid>
		<description><![CDATA[Gnome on Ubuntu comes with an included &#8220;Remote Desktop&#8221; feature (vino) that allows you to VNC into your existing desktop session (usually on the :0 display). However, XFCE does not have a native VNC package built in. The best option I have found is to use vino, the same VNC app that Gnome uses. Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Gnome on Ubuntu comes with an included &#8220;Remote Desktop&#8221; feature (vino) that allows you to VNC into your existing desktop session (usually on the :0 display).  However, XFCE does not have a native VNC package built in.  The best option I have found is to use vino, the same VNC app that Gnome uses.   Here&#8217;s how:</p>
<p>Install vino:<br />
<code>$ sudo apt-get install vino</code></p>
<p>Configure vino:<br />
<code>$ vino-preferences</code></p>
<p>Then enter this command in your Autostarted Apps to start vino server:<br />
<code>/usr/lib/vino/vino-server</code></p>
<p>This works well for me, the only feature I have found that doesn&#8217;t work is the &#8220;disable wallpaper on remote login&#8221; setting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/remote-desktop-vnc-access-on-xubuntu-xfce-810/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Change screen resolution from the command line with xrandr</title>
		<link>http://www.samlesher.com/ubuntu/change-screen-resolution-from-the-command-line-with-xrandr</link>
		<comments>http://www.samlesher.com/ubuntu/change-screen-resolution-from-the-command-line-with-xrandr#comments</comments>
		<pubDate>Sat, 22 Nov 2008 03:15:28 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=127</guid>
		<description><![CDATA[The command xrandr can be used to change the screen resolution from the command line. Execute the xrandr command to see available screen resolutions. The output will look like this: Screen 0: minimum 320 x 240, current 1440 x 900, maximum 1440 x 900 default connected 1440x900+0+0 0mm x 0mm 1440x900 50.0* 1360x768 51.0 52.0 [...]]]></description>
			<content:encoded><![CDATA[<p>The command <highlight>xrandr</highlight> can be used to change the screen resolution from the command line.   Execute the <highlight>xrandr</highlight> command to see available screen resolutions.   The output will look like this:</p>
<pre><code>Screen 0: minimum 320 x 240, current 1440 x 900, maximum 1440 x 900
default connected 1440x900+0+0 0mm x 0mm
   1440x900       50.0*
   1360x768       51.0     52.0
   1152x864       53.0
   1024x768       54.0
   960x600        55.0
   960x540        56.0
   840x525        57.0     58.0
   800x600        59.0     60.0
   800x512        61.0
   720x450        62.0
   700x525        63.0
   680x384        64.0     65.0
   640x512        66.0
   640x480        67.0     68.0
   576x432        69.0
   512x384        70.0
   400x300        71.0
   320x240        72.0</code></pre>
<p />
<p />
To change the resolution:<br />
<code>xrandr -s 1024x768</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/change-screen-resolution-from-the-command-line-with-xrandr/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Pretty Anti-Aliased Fonts</title>
		<link>http://www.samlesher.com/ubuntu/pretty-anti-aliased-fonts</link>
		<comments>http://www.samlesher.com/ubuntu/pretty-anti-aliased-fonts#comments</comments>
		<pubDate>Fri, 21 Nov 2008 18:28:49 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=120</guid>
		<description><![CDATA[sudo dpkg-reconfigure fontconfig-config Select &#8220;Autohinter&#8221;, &#8220;Always&#8221; and &#8220;No&#8221; when prompted. sudo dpkg-reconfigure fontconfig Add the following to ~/.Xdefaults (create the file if it doesn&#8217;t exist): Xft.antialias: true Xft.hinting: true Xft.hintstyle: hintfull Xft.rgba: rgb Xft.dpi: 96 Add this command to your startup commands: xrdb -merge ~/.Xdefaults Restart X.]]></description>
			<content:encoded><![CDATA[<p><code>sudo dpkg-reconfigure fontconfig-config</code></p>
<p>Select &#8220;Autohinter&#8221;, &#8220;Always&#8221; and &#8220;No&#8221; when prompted.<br />
<code>sudo dpkg-reconfigure fontconfig</code></p>
<p>Add the following to ~/.Xdefaults (create the file if it doesn&#8217;t exist):</p>
<pre><code>Xft.antialias: true
Xft.hinting:   true
Xft.hintstyle: hintfull
Xft.rgba:      rgb
Xft.dpi: 96</code></pre>
<p />
<p />
Add this command to your startup commands:<br />
<code>xrdb -merge ~/.Xdefaults</code></p>
<p>Restart X.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/pretty-anti-aliased-fonts/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable SHMConfig for Synaptics Touchpad on Ubuntu Intrepid Ibex 8.10</title>
		<link>http://www.samlesher.com/code/enable-shmconfig-for-synaptics-touchpad-on-ubuntu-intrepid-ibex-810</link>
		<comments>http://www.samlesher.com/code/enable-shmconfig-for-synaptics-touchpad-on-ubuntu-intrepid-ibex-810#comments</comments>
		<pubDate>Sat, 01 Nov 2008 01:43:59 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[SHMConfig]]></category>
		<category><![CDATA[Synaptics gsynaptics]]></category>
		<category><![CDATA[Ubuntu Intrepid Ibex 8.10]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=105</guid>
		<description><![CDATA[****EDIT**** These instructions are no longer needed for me. I don&#8217;t need to install Gsynaptics to disable my touchpad. I can now simply click System > Preferences > Mouse, click the &#8220;Touchpad&#8221; tab and uncheck &#8220;Enable Touchpad. The touchpad stays disabled, even through reboots. I&#8217;m leaving the original post here in case this doesn&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p><strong>****EDIT****</strong><br />
<strong>These instructions are no longer needed for me.</strong>  I don&#8217;t need to install Gsynaptics to disable my touchpad.   I can now simply click System > Preferences > Mouse, click the &#8220;Touchpad&#8221; tab and uncheck &#8220;Enable Touchpad.   The touchpad stays disabled, even through reboots.   I&#8217;m leaving the original post here in case this doesn&#8217;t work on your system.</p>
<p><strong>**** Original Post ****</strong><br />
In order to disable your Synaptics touchpad on previous releases of Ubuntu, you would set &#8220;SHMConfig&#8221; to &#8220;true&#8221; in xorg.conf and then install the program gsynaptics to disable/enable the touchpad.</p>
<p>The xorg.conf file is different in Intrepid Ibex, there is no section for the touchpad anymore.   Now to enable SHMConfig you have to do it via HAL:</p>
<p>Edit this file:<br />
<code>/usr/share/hal/fdi/policy/20thirdparty/11-x11-synaptics.fdi</code></p>
<p>Find the section that starts with:<br />
<code>&lt;match key="info.product" contains="Synaptics TouchPad"&gt;</code></p>
<p>And add this line to that section before </match>:<br />
<code>&lt;merge key="input.x11_options.SHMConfig" type="string"&gt;On&lt;/merge&gt;</code></p>
<p>The file should end up looking something like this:</p>
<pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;deviceinfo version="0.2"&gt;
  &lt;device&gt;
    &lt;match key="info.capabilities" contains="input.touchpad"&gt;
      &lt;match key="info.product" contains="Synaptics TouchPad"&gt;
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;
	&lt;!-- Arbitrary options can be passed to the driver using
	     the input.x11_options property since xorg-server-1.5. --&gt;
	&lt;!-- EXAMPLE:
	&lt;merge key="input.x11_options.LeftEdge" type="string"&gt;120&lt;/merge&gt;
	--&gt;
	&lt;merge key="input.x11_options.SHMConfig" type="string"&gt;On&lt;/merge&gt;
      &lt;/match&gt;
      &lt;match key="info.product" contains="AlpsPS/2 ALPS"&gt;
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;
      &lt;/match&gt;
      &lt;match key="info.product" contains="appletouch"&gt;
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;
      &lt;/match&gt;
      &lt;match key="info.product" contains="bcm5974"&gt;
        &lt;merge key="input.x11_driver" type="string"&gt;synaptics&lt;/merge&gt;
        &lt;merge key="input.x11_options.LeftEdge" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.RightEdge" type="string"&gt;1280&lt;/merge&gt;
        &lt;merge key="input.x11_options.TopEdge" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.BottomEdge" type="string"&gt;800&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger1" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger2" type="string"&gt;3&lt;/merge&gt;
        &lt;merge key="input.x11_options.ClickFinger3" type="string"&gt;2&lt;/merge&gt;
        &lt;merge key="input.x11_options.HorizEdgeScroll" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.VertEdgeScroll" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.VertTwoFingerScroll" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.HorizTwoFingerScroll" type="string"&gt;1&lt;/merge&gt;
        &lt;merge key="input.x11_options.HorizScrollDelta" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.VertScrollDelta" type="string"&gt;40&lt;/merge&gt;
        &lt;merge key="input.x11_options.PressureMotionMinZ" type="string"&gt;10&lt;/merge&gt;
        &lt;merge key="input.x11_options.FingerLow" type="string"&gt;16&lt;/merge&gt;
        &lt;merge key="input.x11_options.FingerHigh" type="string"&gt;80&lt;/merge&gt;
        &lt;merge key="input.x11_options.FingerPress" type="string"&gt;256&lt;/merge&gt;
        &lt;merge key="input.x11_options.PalmDetect" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.PalmMinWidth" type="string"&gt;10&lt;/merge&gt;
        &lt;merge key="input.x11_options.PalmMinZ" type="string"&gt;200&lt;/merge&gt;
        &lt;merge key="input.x11_options.MinSpeed" type="string"&gt;0.8&lt;/merge&gt;
        &lt;merge key="input.x11_options.MaxSpeed" type="string"&gt;1.2&lt;/merge&gt;
        &lt;merge key="input.x11_options.AccelFactor" type="string"&gt;0.10&lt;/merge&gt;
        &lt;merge key="input.x11_options.MaxTapMove" type="string"&gt;25&lt;/merge&gt;
        &lt;merge key="input.x11_options.MaxTapTime" type="string"&gt;223&lt;/merge&gt;
        &lt;merge key="input.x11_options.MaxDoubleTapTime" type="string"&gt;200&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton1" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton2" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.TapButton3" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.RTCornerButton" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.RBCornerButton" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.LTCornerButton" type="string"&gt;0&lt;/merge&gt;
        &lt;merge key="input.x11_options.LBCornerButton" type="string"&gt;0&lt;/merge&gt;
      &lt;/match&gt;
    &lt;/match&gt;
  &lt;/device&gt;
&lt;/deviceinfo&gt;</code></pre>
<p>Reboot, and you should now be able to disable the touchpad with gsynaptics.<br />
Note, System > Preferences > Mouse also has a section for touchpad, so disable it there as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/code/enable-shmconfig-for-synaptics-touchpad-on-ubuntu-intrepid-ibex-810/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>What repository did I install that package from?</title>
		<link>http://www.samlesher.com/ubuntu/what-repository-did-i-install-that-package-from</link>
		<comments>http://www.samlesher.com/ubuntu/what-repository-did-i-install-that-package-from#comments</comments>
		<pubDate>Thu, 25 Sep 2008 19:30:34 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[repository]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/?p=98</guid>
		<description><![CDATA[To see what repository a package was installed via in Ubuntu using apt, use this command: $ apt-cache policy packagename Example: $ apt-cache policy firefox firefox: Installed: 3.0.3+build1+nobinonly-0ubuntu0.8.04.1 Candidate: 3.0.3+build1+nobinonly-0ubuntu0.8.04.1 Version table: *** 3.0.3+build1+nobinonly-0ubuntu0.8.04.1 0 500 http://security.ubuntu.com hardy-security/main Packages 100 /var/lib/dpkg/status 3.0.2+build6+nobinonly-0ubuntu0.8.04.1 0 500 http://archive.ubuntu.com hardy-updates/main Packages 3.0~b5+nobinonly-0ubuntu3 0 500 http://archive.ubuntu.com hardy/main Packages]]></description>
			<content:encoded><![CDATA[<p>To see what repository a package was installed via in Ubuntu using apt, use this command:<br />
<code>$ apt-cache policy packagename</code></p>
<p>Example:</p>
<pre><code>$ apt-cache policy firefox
firefox:
  Installed: 3.0.3+build1+nobinonly-0ubuntu0.8.04.1
  Candidate: 3.0.3+build1+nobinonly-0ubuntu0.8.04.1
  Version table:
 *** 3.0.3+build1+nobinonly-0ubuntu0.8.04.1 0
        500 http://security.ubuntu.com hardy-security/main Packages
        100 /var/lib/dpkg/status
     3.0.2+build6+nobinonly-0ubuntu0.8.04.1 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
     3.0~b5+nobinonly-0ubuntu3 0
        500 http://archive.ubuntu.com hardy/main Packages</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/what-repository-did-i-install-that-package-from/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a &quot;whitelist&quot; content filtering proxy for Firefox</title>
		<link>http://www.samlesher.com/ubuntu/create-a-whitelist-content-filtering-proxy-for-firefox</link>
		<comments>http://www.samlesher.com/ubuntu/create-a-whitelist-content-filtering-proxy-for-firefox#comments</comments>
		<pubDate>Sun, 03 Aug 2008 02:45:39 +0000</pubDate>
		<dc:creator>samlesher</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.samlesher.com/ubuntu/create-a-whitelist-content-filtering-proxy-for-firefox/</guid>
		<description><![CDATA[When my kids use the internet, I set up Firefox so that they can only access a list of approved sites. Here&#8217;s how I do it (thanks to DrBacchus and skippy for the assist): Install squid (Squid is a caching proxy for the Web): $ sudo apt-get install squid Modify squid.conf: $ sudo vi /etc/squid/squid.conf [...]]]></description>
			<content:encoded><![CDATA[<p>When my kids use the internet, I set up Firefox so that they can only access a list of approved sites.  Here&#8217;s how I do it (thanks to <a href="http://wooga.drbacchus.com/whitelisting">DrBacchus</a> and <a href="http://skippy.net/">skippy</a> for the assist):</p>
<p>Install squid (<a href="http://www.squid-cache.org/">Squid</a> is a caching proxy for the Web):<br />
<code>$ sudo apt-get install squid</code></p>
<p>Modify squid.conf:<br />
<code>$ sudo vi /etc/squid/squid.conf</code></p>
<p>Set &#8220;visible_hostname&#8221; to the hostname of the machine:<br />
<code>visible_hostname yourmachinename</code><br />
<em>Replace &#8220;yourmachinename&#8221; with the name of your machine</em></p>
<p>Set &#8220;http_access&#8221; to allow access only to the domains specified in your whitelist (I store my whitelist at /opt/squid/allowed_domains):</p>
<pre><code>acl allowed_dstdomains dstdomain "/opt/squid/allowed_domains"
http_access allow allowed_dstdomains</code></pre>
<p />
<p />
Set up your whitelist file, here is an example:</p>
<pre><code>$ sudo vi /opt/squid/allowed_domains
.tamatown.com
.tamagotchi.com
.webkinz.com</code></pre>
<p />
<p />
Restart squid for the changes to take affect:<br />
<code>$ sudo /etc/init.d/squid restart</code></p>
<p>Then, set your child&#8217;s Firefox settings to use your squid instance as their proxy server.  In Firefox, Edit > Preferences > Advanced > Network > Connection Settings > Manual Proxy Configuration:</p>
<p>Hostname: <b>yourmachinehostname</b>  (or localhost)<br />
Port: 3128 (this is the default port for squid)<br />
Use this proxy server for all protocols.</p>
<p>Drawbacks:  You must manually add any address you want your child to be allowed to access into your allowed_domains file (hence &#8220;whitelist&#8221; instead of &#8220;blacklist&#8221;).  Also, if your child is savvy enough to know how to disable the Firefox proxy settings, then they can bypass this.</p>
<p>I created a shell script to automatically append a domain to my &#8220;allowed_domains&#8221; file and then restart the squid service:</p>
<pre><code>#!/bin/sh
if [ "$#" != "1" ] ; then
echo "usage is $0 [domain] "
exit
fi
echo $1 | sudo tee -a /opt/squid/allowed_domains
sudo /etc/init.d/squid restart</code></pre>
<p><em>Replace &#8220;/opt/squid/allowed_domains&#8221; with the location and name of your allowed domains list</em></p>
<p>Example usage would be:<br />
<code>./squid_add .wikipedia.org</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.samlesher.com/ubuntu/create-a-whitelist-content-filtering-proxy-for-firefox/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

