<?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>Steve's Software Trek &#187; Linux</title>
	<atom:link href="http://steve.kargs.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://steve.kargs.net</link>
	<description>Open Source Software Haven</description>
	<lastBuildDate>Fri, 09 Dec 2011 15:49:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Wireshark on Ubuntu not as root</title>
		<link>http://steve.kargs.net/bacnet/wireshark-on-ubuntu-not-as-root/</link>
		<comments>http://steve.kargs.net/bacnet/wireshark-on-ubuntu-not-as-root/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 21:03:28 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[BACnet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[bacnet]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/?p=212</guid>
		<description><![CDATA[I often need to capture BACnet network traffic using Wireshark while I am running Ubuntu Linux. I&#8217;ve always had to run Wireshark as root (usually via gksu or kdesu) in order to capture from any interfaces (i.e. eth0, wlan0).  For awhile, there was an additional Wireshark menu item that included the &#8220;run as root&#8221; option. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://steve.kargs.net/wp-content/uploads/2010/10/chris-mario-happy.jpg"><img class="alignright size-medium wp-image-220" title="chris-mario-happy" src="http://steve.kargs.net/wp-content/uploads/2010/10/chris-mario-happy-176x300.jpg" alt="" width="176" height="300" /></a>I often need to capture <a href="http://www.bacnet.org/" target="_blank">BACnet</a> network traffic using <a href="http://wireshark.org/" target="_blank">Wireshark</a> while I am running <a href="http://ubuntu.com/" target="_blank">Ubuntu Linux</a>. I&#8217;ve always had to run Wireshark as root (usually via gksu or kdesu) in order to capture from any interfaces (i.e. eth0, wlan0).  For awhile, there was an additional Wireshark menu item that included the &#8220;run as root&#8221; option.  However, running an application &#8220;as root&#8221; has some downsides (like being insecure), and in the latest release of Ubuntu, there is no menu item to run &#8220;as root&#8221;.   The downside of running as root for me was that the capture files saved by default into /root directory, and saved with root group and owner permissions.</p>
<p>Today, after launching the menu and seeing no interfaces (again), I decided to search the Internet and find a better way, and found two things of note.  The first method, which I found posted on <a href="http://start.ubuntuforums.org/showthread.php?p=9903794#post9903794" target="_blank">Ubuntu Forums</a>, is the manual way of configuring Wireshark to run as a normal user (with admin group privileges) by configuring only dumpcap to have the elevated privileges:</p>
<pre>$ sudo apt-get install libcap2-bin wireshark
$ sudo chgrp admin /usr/bin/dumpcap
$ sudo chmod 750 /usr/bin/dumpcap
$ sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap</pre>
<p>The second method was outlined in <a href="https://bugs.launchpad.net/ubuntu/+source/wireshark/+bug/513903" target="_blank">Ubuntu Bug #513903 at Lauchpad</a> and can be done with Ubuntu Lucid and beyond.  It creates a new group &#8220;wireshark&#8221;, configures dumpcap with setcap, and requires the user to manually add themselves to the &#8220;wireshark&#8221; group (then log out and log back in to activate it).</p>
<pre>$ sudo dpkg-reconfigure wireshark-common
$ sudo adduser skarg wireshark
$ exit</pre>
<p>Don&#8217;t do both methods, as they are slightly different solutions.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/bacnet/wireshark-on-ubuntu-not-as-root/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux on Desktop PC</title>
		<link>http://steve.kargs.net/software/ubuntu-linux-on-desktop-pc/</link>
		<comments>http://steve.kargs.net/software/ubuntu-linux-on-desktop-pc/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:47:12 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/?p=163</guid>
		<description><![CDATA[I refurbished a couple of PCs for my family to use, and installed the latest Ubuntu Linux on them &#8211; Ubuntu 9.04 Jaunty.  I also updated my dual boot work computer with the latest Ubuntu &#8211; it was running Kubuntu and the latest Kubuntu is just foreign to me. As is usually the case, adding [...]]]></description>
			<content:encoded><![CDATA[<p>I refurbished a couple of PCs for my family to use, and installed the latest Ubuntu Linux on them &#8211; Ubuntu 9.04 Jaunty.  I also updated my dual boot work computer with the latest Ubuntu &#8211; it was running Kubuntu and the latest Kubuntu is just foreign to me.</p>
<p>As is usually the case, adding additional packages is essential to getting the computer working right for me.</p>
<h3>Add Codecs, Java, and other Customizations</h3>
<p>The official way to do this is documented in the Ubuntu Wiki under <a href="https://wiki.ubuntu.com/CommonCustomizations" target="_blank">CommonCustomizations</a>.  There is also a wiki page on <a href="https://wiki.ubuntu.com/EasyCodecInstallation">EasyCodecInstallation</a>.  The official meta package is called “ubuntu-restricted-extras” and this installs:</p>
<ul>
<li>MP3 playback and decoding</li>
<li>Sun Java runtime environment</li>
<li>Flash plugin</li>
<li>DVD playback</li>
<li>LAME (to create MP3 compressed audio files)</li>
<li>msttcorefonts (may be missing in kubuntu extras)</li>
<li>DeCSS script to download and install for DVD viewing</li>
</ul>
<p><code>$ sudo apt-get install ubuntu-restricted-extras</code><br />
<code>$ sudo /usr/share/doc/libdvdread4/install-css.sh</code><br />
<code>$ sudo apt-get install msttcorefonts</code></p>
<h3>Add the ability to compile, edit, and maintain code</h3>
<p>Here are the compilers and their documents<br />
<code>$ sudo apt-get install build-essential subversion-tools  gcc-4.2-doc glibc-doc manpages-dev</code><br />
<code>$ sudo apt-get install mingw32 mingw32-binutils mingw32-runtime</code><br />
I need access to subversion and XSLT ChangeLog tools<br />
<code>$ sudo apt-get install subversion-tools</code><br />
<code>$ sudo apt-get install xsltproc</code><br />
I install a couple of editors, useful for various things.  Kate is already installed.<br />
<code>$ sudo apt-get install scite</code><br />
<code>$ sudo apt-get install vim-full</code><br />
Useful tools for cleaning up code, converting comments and line endings, and code statistics:<br />
<code>$ sudo apt-get install splint</code><br />
<code>$ sudo apt-get install sloccount</code><br />
<code>$ sudo apt-get install indent</code><br />
<code>$ sudo apt-get install liwc</code><br />
<code>$ sudo apt-get install tofrodos</code></p>
<h3>Add favorite online music source and music/video player VLC</h3>
<p><code>$ sudo apt-get install streamtuner</code><br />
<code>$ sudo apt-get install vlc</code></p>
<h3>Add the Adobe Flash Plugin and Sun Java JRE</h3>
<p>A lot of websites use Flash or Java for their user interface, so it seems that they are essential.</p>
<p><code>$ sudo apt-get install adobe-flashplugin</code><code><br />
$ sudo apt-get install sun-java6-jre</code></p>
<h3>Get rid of annoying PC speaker beep</h3>
<p>Using a console, remove the PC Speaker driver from the kernel:<br />
<code>$ sudo modprobe -r pcspkr</code><br />
Create <strong>/etc/modprobe.d/blacklist-user.conf</strong> and add a line to keep the PC Speaker driver from automatically loading:</p>
<p><code># Keep the annoying beep from occurring</code><code><br />
# don't load the PC Speaker driver</code><br />
<code>blacklist pcspkr</code></p>
<h2><a rel="nofollow" href="https://help.ubuntu.com/community/SynapticsTouchpad" target="_blank">SynapticsTouchpad</a></h2>
<p>The laptop has a touchpad, which is really annoying when you also have a USB mouse attached, because the touchpad picks up thumps made by my big fingers and makes the mouse click somewhere that you didn&#8217;t want it to click.  Correcting this in Ubunut Jaunty is as easy as selecting <strong>System &gt; Preferences &gt; Mouse</strong>, under the Touchpad tab. Uncheck the <strong>Enable mouse clicks with touchpad</strong> check box.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/software/ubuntu-linux-on-desktop-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AVR ISP mkII on Ubuntu Hardy</title>
		<link>http://steve.kargs.net/bacnet/avr-isp-mkii-on-ubuntu-hardy/</link>
		<comments>http://steve.kargs.net/bacnet/avr-isp-mkii-on-ubuntu-hardy/#comments</comments>
		<pubDate>Wed, 13 May 2009 01:10:52 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[BACnet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/?p=154</guid>
		<description><![CDATA[I created a BACnet Development Kit, compiled the open source BACnet Protocol Stack hosted on SourceForge.net firmware using gcc-avr, and attempted to load the firmware onto the kit using an Atmel AVR ISP mkII USB programmer.  I connected the AVR ISP mkII to my Ubuntu Hardy Linux PC and attached the 2&#215;3 ISP cable to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://steve.kargs.net/wp-content/uploads/2009/05/bdk-atxx4-mstp.jpg"><img class="size-thumbnail wp-image-156 alignright" title="bdk-atxx4-mstp" src="http://steve.kargs.net/wp-content/uploads/2009/05/bdk-atxx4-mstp-150x150.jpg" alt="BACnet Development Kit" width="150" height="150" /></a></p>
<p>I created a <a href="http://bacnetdevelopmentkit.com/" target="_blank">BACnet Development Kit</a>, compiled the <a href="http://bacnet.sourceforge.net/" target="_blank">open source BACnet Protocol Stack hosted on SourceForge.net</a> firmware using <a href="http://www.avrfreaks.net/AVRGCC/" target="_blank">gcc-avr</a>, and attempted to load the firmware onto the kit using an <a href="http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=3808" target="_blank">Atmel AVR ISP mkII</a> USB programmer.  I connected the AVR ISP mkII to my Ubuntu Hardy Linux PC and attached the 2&#215;3 ISP cable to the development kit board, and attempted to program using <a href="http://www.bsdhome.com/avrdude/" target="_blank">avrdude</a>:</p>
<pre>$ avrdude -c avrispmkII -p m644p -P usb -e -U flash:w:bacnet.hex</pre>
<pre>avrdude: usb_open(): cannot read serial number "error sending..."
avrdude: usb_open(): cannot read product name "error sending..."
avrdude: usbdev_open(): error setting configuration...
avrdude: usbdev_open(): did not find any USB device "usb"</pre>
<p>Wow! That wasn&#8217;t nice.  A search on the Internet turned up <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;t=58673&amp;start=0" target="_blank">some answers about how to fix the problem</a>, and I modified my /etc/udev/avarice.rules file to look like this:</p>
<pre>SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avarice_end"

# Atmel Corp. JTAG ICE mkII
SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avarice_end"</pre>
<p>I disconnected and reconnected my AVR ISP mkII, and tried again.  I still had the same results.  I checked that I was a member of the dialout group:</p>
<pre>$ groups
skarg adm dialout cdrom floppy audio dip video plugdev users fuse lpadmin admin</pre>
<p>I looked at the symbolic link in the /etc/udev/rules.d/ directory and also consumed the README file.  My file had the following name:</p>
<pre>/etc/udev/rules.d/z60_avarice.rules</pre>
<p>So I changed the filename:</p>
<pre>$ sudo mv /etc/udev/rules.d/z60_avarice.rules /etc/udev/rules.d/60-avarice.rules</pre>
<p>I unplugged the AVR ISP mkII, and plugged it in again.  I tried to run avrdude again:</p>
<pre>avrdude -c avrispmkII   \
     -p m644p -P usb -e        \
     -U flash:w:bacnet.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e960a
avrdude: erasing chip
avrdude: reading input file "bacnet.hex"
avrdude: input file bacnet.hex auto detected as Intel Hex
avrdude: writing flash (57406 bytes):

Writing | ################################################## | 100% 6.31s

avrdude: 57406 bytes of flash written
avrdude: verifying flash memory against bacnet.hex:
avrdude: load data flash data from input file bacnet.hex:
avrdude: input file bacnet.hex auto detected as Intel Hex
avrdude: input file bacnet.hex contains 57406 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 5.41s

avrdude: verifying ...
avrdude: 57406 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.</pre>
<p>The kit programmed successfully, and began operation.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/bacnet/avr-isp-mkii-on-ubuntu-hardy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert to MP3 Konqueror Service Menu</title>
		<link>http://steve.kargs.net/linux/convert-to-mp3-konqueror-service-menu/</link>
		<comments>http://steve.kargs.net/linux/convert-to-mp3-konqueror-service-menu/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 13:17:22 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/?p=110</guid>
		<description><![CDATA[I wanted an easy way to convert music to MP3 from various formats under Konqueror in KDE on Kubuntu Linux.  I found an interesting post about creating a KDE Service Menu which got me started in the right direction.  However, I didn&#8217;t like the way ffmpeg converted to 64kbps MP3 quality and the bad sounding [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted an easy way to convert music to MP3 from various formats under Konqueror in KDE on Kubuntu Linux.  I found an <a href="http://ubuntuforums.org/showthread.php?t=684029" target="_blank">interesting post about creating a KDE Service Menu</a> which got me started in the right direction.  However, I didn&#8217;t like the way <a href="http://ffmpeg.mplayerhq.hu/" target="_blank">ffmpeg</a> converted to 64kbps MP3 quality and the bad sounding results regardless of the bitrate settings that I chose.  I tried <a href="http://lame.sourceforge.net/" target="_blank">lame</a>, and was quite pleased with the results.  I also didn&#8217;t like the way the service menu used the entire filename without stripping the dotted extension, so I copied another service menu <a href="http://groups.google.co.th/group/alt.comp.lang.perl/browse_thread/thread/dc04e1d8bd91bb35" target="_blank">perl example</a>.  My &#8220;Convert to MP3&#8243; service menu script goes into the following location:</p>
<pre>/usr/share/apps/konqueror/servicemenus/</pre>
<p>File <a href="http://steve.kargs.net/wp-content/uploads/2008/08/convert_mp3.desktop">convertmp3.desktop</a>:</p>
<pre>[Desktop Entry]
ServiceTypes=audio/*
Actions=convertToMP3

[Desktop Action convertToMP3]
Name=Convert to MP3
Exec=lame -V2 %f "`echo %f | perl -pe 's/\.[^.]+$//'`.mp3"</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/linux/convert-to-mp3-konqueror-service-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Kubuntu 8.04 Linux for Dell Latitude D820 Notebook</title>
		<link>http://steve.kargs.net/linux/configuring-kubuntu-804-linux-for-dell-latitude-d820-notebook/</link>
		<comments>http://steve.kargs.net/linux/configuring-kubuntu-804-linux-for-dell-latitude-d820-notebook/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 15:28:22 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/linux/configuring-kubuntu-804-linux-for-dell-latitude-d820-notebook/</guid>
		<description><![CDATA[I was pleasantly surprised to have all the hardware working and a smooth install of Kubuntu 8.04rc for a year old Dell Latitude D820 notebook PC. There was still a bit of customization to do to make it work like I wanted, but who can fault Canonical for not knowing what I like? Add Codecs, [...]]]></description>
			<content:encoded><![CDATA[<p>I was pleasantly surprised to have all the hardware working and a smooth install of <a href="http://kubuntu.com/" target="_blank">Kubuntu</a> 8.04rc for a year old <a href="http://dell.com/" target="_blank">Dell Latitude</a> D820 notebook PC.  There was still a bit of customization to do to make it work like I wanted, but who can fault <a href="http://www.canonical.com/" target="_blank">Canonical</a> for not knowing what I like?</p>
<h3>Add Codecs, Java, and other Customizations</h3>
<p>The official way to do this is documented in the Ubuntu Wiki under <a href="https://wiki.ubuntu.com/CommonCustomizations" target="_blank">CommonCustomizations</a>.  There is also a wiki page on <a href="https://wiki.ubuntu.com/EasyCodecInstallation">EasyCodecInstallation</a>.  The official meta package is called &#8220;ubuntu-restricted-extras&#8221; and this installs:</p>
<ul>
<li>MP3 playback and decoding</li>
<li>Sun Java runtime environment</li>
<li>Flash plugin</li>
<li>DVD playback</li>
<li>LAME (to create MP3 compressed audio files)</li>
<li>msttcorefonts (may be missing in kubuntu extras)</li>
<li>DeCSS script to download and install for DVD viewing</li>
</ul>
<p><code>$ sudo apt-get install kubuntu-restricted-extras</code><br />
<code>$ sudo /usr/share/doc/libdvdread3/install-css.sh</code><br />
<code>$ sudo apt-get install msttcorefonts</code></p>
<h3>Add the ability to compile, edit, and maintain code</h3>
<p>Here are the compilers and their documents<br />
<code>$ sudo apt-get install build-essential subversion-tools  gcc-4.2-doc glibc-doc manpages-dev</code><br />
<code>$ sudo apt-get install mingw32 mingw32-binutils mingw32-runtime</code><br />
I need access to subversion and XSLT ChangeLog tools<br />
<code>$ sudo apt-get install subversion-tools</code><br />
<code>$ sudo apt-get install xsltproc</code><br />
I install a couple of editors, useful for various things.  Kate is already installed.<br />
<code>$ sudo apt-get install scite</code><br />
<code>$ sudo apt-get install vim-full</code><br />
Useful tools for cleaning up code, converting comments and line endings, and code statistics:<br />
<code>$ sudo apt-get install splint</code><br />
<code>$ sudo apt-get install sloccount</code><br />
<code>$ sudo apt-get install indent</code><br />
<code>$ sudo apt-get install liwc</code><br />
<code>$ sudo apt-get install tofrodos</code></p>
<h3>Add favorite online music source and music/video player VLC</h3>
<p><code>$ sudo apt-get install streamtuner</code><br />
<code>$ sudo apt-get install vlc</code></p>
<h3>Get rid of limited use Dolphin</h3>
<p>This is one of the main reasons I use Kubuntu and KDE: Konqueror allows me to do many things that Nautilus and Dolphin prevent or are unable to customize<br />
<code>$ sudo apt-get remove dolphin</code></p>
<h3>Get Rid of IcedTea &#8211; Install Sun Java JRE</h3>
<p>I had several errors which prevented me from doing useful work on some websites that used Java.  Turns out that the default install of Kubuntu used <a href="http://iced-tea.org/" target="_blank">IcedTea &#8211; the OpenJDK</a>.  Well, apparently it doesn&#8217;t mimic Java the way the websites expected, and so, it didn&#8217;t work.  Into the hopper it goes, and Sun gets the install.<br />
<code>$ sudo apt-get remove openjdk-6-jre</code><br />
<code>$ sudo apt-get install sun-java6-jre</code></p>
<h3>Get rid of annoying PC speaker beep</h3>
<p>Using a console, remove the PC Speaker driver from the kernel:<br />
<code>$ sudo modprobe -r pcspkr</code><br />
Edit <strong>/etc/modprobe.d/blacklist</strong> and add a new line to keep the PC Speaker driver from automatically loading:<br />
<code># Keep the annoying beep from occurring - don't load the PC Speaker driver</code><br />
<code>blacklist pcspkr</code></p>
<h3>Get rid of annoying Synaptic Tap Button</h3>
<p>Edit the X11 configuration file <code>/etc/X11/xorg.conf</code></p>
<p>Add the Tapbutton line and any other missing lines in the Synaptic Touchpad section:</p>
<p><code>Section "InputDevice"</code><br />
<code>Identifier  "Synaptics Touchpad"</code><br />
<code>Driver      "synaptics"</code><br />
<code>Option      "SendCoreEvents" "true"</code><br />
<code>Option      "Device" "/dev/psaux"</code><br />
<code>Option      "Protocol" "auto-dev"</code><br />
<code>Option      "HorizScrollDelta" "0"</code><br />
<code>Option      "SHMConfig" "On"</code><br />
<code>Option      "TapButton1" "0"</code><br />
<code>EndSection</code></p>
<p>You can disable the Tap Button effect immediately using the synclient tool as long as SHMConfig is On:<br />
<code>$ synclient TapButton1=0</code></p>
<h3>Fix a bug in Firefox 3 rendering Check boxes and Radio boxes</h3>
<p>Check boxes and Radio boxes show as a blank box or circle until the focus is moved away.  This<a href="https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/194624" target="_blank"> bug was reported</a>, and the solution is to install a GTK2 engine:<br />
<code>$ sudo apt-get install gtk2-engines-qtcurve</code></p>
<p>Additionally,  go to System Settings-&gt;Appearance-&gt;GTK Styles and fonts, and Set: Use another style = QtCurve.</p>
<h3>Updating a Toshiba A135 Notebook</h3>
<p>I also updated our Toshiba A135 Notebook and the sound and sound controls now work!  I did have to fix <a href="https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.24/+bug/118605">an fglrx bug to keep from locking up on logout</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/linux/configuring-kubuntu-804-linux-for-dell-latitude-d820-notebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using GCC for ARM7 or AVR</title>
		<link>http://steve.kargs.net/bacnet/using-gcc-for-arm7-or-avr/</link>
		<comments>http://steve.kargs.net/bacnet/using-gcc-for-arm7-or-avr/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 16:43:44 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[BACnet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/bacnet/using-gcc-for-arm7-or-avr/</guid>
		<description><![CDATA[Inspired by Building Bare-Metal ARM Systems with GNU series of articles, I recently ported the BACnet MS/TP datalink layer to an Atmel AT91SAM7S-EK board &#8211; an ARM7 processor &#8211; using a GCC cross compiler for ARM. I evaluated GNU Toolchain for ARM, GNU ARM, WinARM, and YAGARTO toolchains on the Windows platform. They all have [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by <a href="http://www.embedded.com/design/opensource/200000632?_requestid=45088">Building Bare-Metal ARM Systems with GNU</a> series of articles, I recently ported the <a href="http://bacnet.sourceforge.net/">BACnet MS/TP datalink layer</a> to an <a href="http://www.atmel.com/dyn/products/other_docs.asp?family_id=605">Atmel AT91SAM7S-EK</a> board &#8211; an ARM7 processor &#8211; using a <a href="http://gcc.gnu.org/">GCC</a> cross compiler for ARM.</p>
<p>I evaluated <a href="http://www.codesourcery.com/gnu_toolchains/arm">GNU Toolchain for ARM</a>,  <a href="http://www.gnuarm.com/">GNU ARM</a>, <a href="http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/">WinARM</a>, and <a href="http://www.yagarto.de/">YAGARTO</a> toolchains on the Windows platform.  They all have their merits, but all have some slight differences too.  I followed an excellent tutorial by James P. Lynch called <em><a href="http://www.atmel.com/dyn/resources/prod_documents/atmel_tutorial_source.zip">Using Open Source Tools for AT91SAM7S Cross Development</a> </em>to get me up and running quickly.  Jim used the <a href="http://www.yagarto.de/">YAGARTO</a> project as his toolchain.</p>
<p>I used the <a href="http://www.yagarto.de/">YAGARTO</a> toolchain and created my own Makefile.  Makefiles are an interesting bit of programming that seems to be a lost art. Any of the cross compiler toolchain builds should work with the Makefile with a slight modification to the name of the compiler (one of the differences in each of the various GNU ARM cross compiler projects).</p>
<p>During my travels down the <a href="http://gcc.gnu.org/">GCC</a> road, I found the <a href="http://www.avrfreaks.net/wiki/index.php/Documentation:AVR_GCC/AVR_GCC_Tool_Collection">GCC-AVR</a> and <a href="http://winavr.sourceforge.net/">WinAVR</a> for Atmel AVR series of microcontrollers.  I searched for GCC for an 8051.  I found the <a href="http://sdcc.sourceforge.net/">SDCC</a> project &#8211; Small Device C Compiler &#8211; for Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08.  Both projects are also in the <a href="http://www.ubuntu.com/">Ubuntu Linux</a> repository.  I noticed that the <a href="http://www.microchip.com/">Microchip</a> <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en010065&amp;part=SW006012">PIC24 compiler C30</a> is based on GCC and the<a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en023073"> source code</a> is available on their website.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/bacnet/using-gcc-for-arm7-or-avr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux on a Toshiba Laptop</title>
		<link>http://steve.kargs.net/linux/ubuntu-linux-on-a-toshiba-laptop/</link>
		<comments>http://steve.kargs.net/linux/ubuntu-linux-on-a-toshiba-laptop/#comments</comments>
		<pubDate>Wed, 30 May 2007 05:05:19 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/linux/ubuntu-linux-on-a-toshiba-laptop/</guid>
		<description><![CDATA[I acquired two Toshiba laptops from a local computer store. They were close out models at significantly reduced prices. Their hardware specifications were faster than my existing desktop (Intel(R) Celeron(R) M CPU 430 @ 1.73GHz, 512MB RAM, Radeon Xpress 200M video, SB450 HDA Audio, Atheros wireless, 80GB harddrive, CD/DVD R/W, 3470 bogomips). I used a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://steve.kargs.net/wp-content/uploads/2007/toshiba_kde_desktop.png" rel="lightbox"><img src="http://steve.kargs.net/wp-content/uploads/2007/toshiba_kde_desktop.thumb.jpg" alt="toshiba KDE desktop" title="toshiba KDE desktop" vspace="4" align="right" border="0" hspace="4" /></a>I acquired two <a href="http://toshiba.com/" target="_blank">Toshiba</a> laptops from <a href="http://circuitcity.com/" target="_blank">a local computer store</a>.  They were close out models at significantly reduced prices.  Their hardware specifications were faster than my existing desktop (Intel(R) Celeron(R) M CPU 430 @ 1.73GHz, 512MB RAM, Radeon Xpress 200M video, SB450 HDA Audio, Atheros wireless, 80GB harddrive, CD/DVD R/W, 3470 bogomips).</p>
<p>I used a <a href="http://www.ubuntu.com/getubuntu/download">Ubuntu Feisty Linux Live CD</a> to test the functionality of several laptops at the store before I made my decision.  I think the two features of the laptop that made it stand out from the others were the Atheros wireless chipset and the ATI Radeon video, both of which have good driver support in Linux.  I also looked on the <a href="https://wiki.ubuntu.com/LaptopTestingTeam">Ubuntu Laptop Testing project</a> for advice before and after I went shopping.</p>
<p>After I got the laptops home, I powered them up and saw <a href="http://www.windowsvista.com/" target="_blank">Windows Vista Basic Edition</a>. Windows Vista was incredibly slow.  Apparently it requires a much faster CPU and significantly more RAM.  I shrunk the hard disk space and repartitioned under Windows.  I rebooted under <a href="http://kubuntu.org/">Kubuntu Feisty 7.04</a> and installed Linux on the 41GB SDA3 partition.  When Kubuntu started I was delighted to see the correct screen resolution and the wireless Ethernet picked up my internet access point using Wireless LAN Manager.   The only hardware that was not functioning was the sound card.  There was already a bug filed for the <a href="https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/88570">ATI SB450 HD Audio</a> and some work around solutions, but none of the easy workarounds worked for me.  A month later I stumbled upon another <a href="https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/103379">ATI SB450 HD Audio bug</a> on <a href="http://launchpad.net/">Launchpad.net</a>, and followed the fix at the end of the thread.  Edit the parameters passed to the ALSA driver:</p>
<p><code>$ sudo vim /etc/modprobe.d/alsa-base</code></p>
<p>Add the following line at the end of the file:</p>
<p><code>options snd-hda-intel probe_mask=8 model=3stack</code></p>
<p>Save the alsa-base file and restart the computer.  After I logged into KDE, I opened the Kmix controls, and enabled the front sound and it worked!</p>
<p>I installed the <a href="http://wiki.cchtml.com/">ATI graphics accelerator</a>.  I had to make some edits to the xorg.conf file to get it working.   I had to edit the kdmrc file to work around a problem when logging out.  I then had accelerated graphics!  I updated the <a href="http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide">community Wiki installation guide</a> with the edits required to make it work.</p>
<p>For the second laptop, I decided that sound was important since I didn&#8217;t have the fix yet, and installed Kubuntu Edgy 6.10 Linux.  The sound worked, but wireless ethernet did not.  Since that was important, I downloaded the latest <a href="http://madwifi.org/">MadWifi</a> source code, compiled it, installed the driver.  I also installed the <a href="http://wlassistant.sourceforge.net/">Wireless Internet Assistant</a> &#8211; a wonderful tool for jumping on a hotspot.</p>
<p>Edit: The<a href="http://steve.kargs.net/linux/configuring-kubuntu-804-linux-for-dell-latitude-d820-notebook/"> latest version</a> of <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> / <a href="http://kubuntu.org/" target="_blank">Kubuntu</a> seems to fix the issues that I had with this Toshiba laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/linux/ubuntu-linux-on-a-toshiba-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create favicon.ico with Ubuntu Linux</title>
		<link>http://steve.kargs.net/hosting/create-a-website-faviconico-with-ubuntu-linux/</link>
		<comments>http://steve.kargs.net/hosting/create-a-website-faviconico-with-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 06 Jan 2007 14:25:58 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[clipart]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/hosting/create-a-website-faviconico-with-ubuntu-linux/</guid>
		<description><![CDATA[I was interested in creating a favicon.ico file in Ubuntu Linux for a new website that I helped create. I recalled having used KIconEdit to do it before. I installed KIconEdit and used that to create the icon. However, KIconEdit did not have any options to save as favicon.ico. I turned to the internet for [...]]]></description>
			<content:encoded><![CDATA[<p>I was interested in creating a <a href="http://en.wikipedia.org/wiki/Favicon">favicon.ico</a> file in <a href="http://www.ubuntu.com/">Ubuntu Linux</a> for a <a href="http://bouncesbybob.com/">new website that I helped create</a>.  I recalled having used KIconEdit to do it before.  I installed KIconEdit and used that to create the icon.  However, KIconEdit did not have any options to save as favicon.ico.  I turned to the internet for help.</p>
<p>Most of the information gleened by <a href="http://google.com/">Google search</a> said to save the file as a 16&#215;16 pixel <a href="http://en.wikipedia.org/wiki/PNG">PNG file</a>, and use one of the icon command line tools to convert it to the favicon.ico format.  So I looked in <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">apt-get</a> cache to see if any icon tools were available.</p>
<p><code>$ apt-cache search favicon<br />
icoutils - Create and extract MS Windows icons and cursors</code></p>
<p>Yeah! That looked promising.  So I install icoutils using <a href="http://en.wikipedia.org/wiki/Advanced_Packaging_Tool">apt-get</a>.</p>
<p><code>$ sudo apt-get install icoutils</code></p>
<p>Wow!  That was easy!  Now how do I use this tool?  Well, <a href="http://en.wikipedia.org/wiki/Manual_page_%28Unix%29">man pages</a> usually help.</p>
<p><code>$ man icoutils<br />
No manual entry for icoutils</code></p>
<p>Bummer!  Well, maybe the package will give me some clues.</p>
<p><code>$ apt-cache show icoutils<br />
Package: icoutils<br />
Status: install ok installed<br />
Priority: optional<br />
Section: graphics<br />
Installed-Size: 172<br />
Maintainer: Colin Watson<br />
Architecture: i386<br />
Version: 0.25.0-1<br />
Depends: libc6 (>= 2.3.4-1), libpng12-0 (>= 1.2.8rel), zlib1g (>= 1:1.2.1), perl, libwww-perl<br />
Suggests: libterm-readline-gnu-perl | libterm-readline-perl-perl<br />
Description: Create and extract MS Windows icons and cursors<br />
Icoutils is a set of programs that deal with MS Windows icons and cursors. Resources such as icons and cursors can be extracted from MS Windows executable and library files with "wrestool". Conversion of these files to and from PNG images is done with "icotool". "extresso" automates these tasks with the help of special resource scripts.<br />
.<br />
This package can be used to create "favicon.ico" files for web sites.</code></p>
<p>Aha! I could potentially use icotool to convert the PNG icon to a favicon.  icotool had both a man page and a <code>--help</code> option.  I used icotool on the command line to convert my PNG file.</p>
<p><code>$ icotool -o favicon.ico -c favicon.png</code></p>
<p><a rel="lightbox" href="http://steve.kargs.net/wp-content/uploads/2007/maryfeet.jpg"><img width="128" vspace="4" hspace="4" height="98" border="0" align="right" alt="maryfeet.jpg" title="maryfeet.jpg" src="http://steve.kargs.net/wp-content/uploads/2007/.thumbs/.maryfeet.jpg" /></a>I also used <a href="http://gimp.org/">The GIMP</a> image tool to convert a <a href="http://en.wikipedia.org/wiki/JPEG">JPEG</a> scan of my daughter Mary Elizabeth&#8217;s footprints to a PNG. I opened the image, scaled it to 16&#215;16 pixels, and saved it as favicon.png.  I used icotool to convert the PNG file to a favicon.ico file.  I uploaded the favicon.ico file to her memorial website <a href="http://anencephaly.net/">anencephaly.net</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/hosting/create-a-website-faviconico-with-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>USB Drive Read-Only</title>
		<link>http://steve.kargs.net/linux/usb-drive-read-only/</link>
		<comments>http://steve.kargs.net/linux/usb-drive-read-only/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 14:23:22 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/linux/usb-drive-read-only/</guid>
		<description><![CDATA[I was in a hurry on Sunday as our family was about to leave on a road trip to visit some relatives. Joshua had a problem copying some music from his Kubuntu Linux PC to an MP3 player that I have because the MP3 player was full. I had purchased the 512MB Trio MP3 player [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://steve.kargs.net/wp-content/uploads/2006/12/trio_mp3_player.jpg"><img width="128" vspace="4" hspace="4" height="96" border="0" align="right" alt="trio_mp3_player.jpg" title="trio_mp3_player.jpg" src="http://steve.kargs.net/wp-content/uploads/2006/12/.thumbs/.trio_mp3_player.jpg" /></a>I was in a hurry on Sunday as our family was about to leave on a road trip to visit some relatives.  Joshua had a problem copying some music from his <a href="http://kubuntu.org/">Kubuntu Linux</a> PC to an MP3 player that I have because the MP3 player was full. I had purchased the 512MB Trio MP3 player from <a href="http://www.ecost.com/">eCost</a>, one of my favorite discount online stores.  I have used the MP3 player on many airline trips.<br />
Joshua tried to delete the existing files on the MP3 player but his <a href="http://www.konqueror.org/">KDE Konqueror</a> file manager window said that the files could not be deleted since the files were read-only.  I had put the files on there with my <a href="http://www.ubuntu.com/">Ubuntu Linux</a> PC.  Why couldn&#8217;t he use the USB drive?</p>
<p>I took over at his keyboard and attempted to remount the Trio USB thumb drive MP3 player as read-write:</p>
<p><code>$ mount -o remount,rw -t vfat /dev/sdb1 /media/sdb</code></p>
<p><a href="http://en.wikipedia.org/wiki/Mount_%28computing%29">mount</a> refused replying that it could not mount the read-only file system as read-write.  Maybe the drive was corrupted or something.  I searched the internet for some <a href="http://linuxactivist.blogspot.com/2006/08/linux-tip-resurrecting-broken-usb.html">information on fixing the filesystem of a USB flash drive</a>. Then I tried to repartition and reformat:</p>
<p><code>$ fdisk /dev/sdb</code></p>
<p>I entered the <a href="http://en.wikipedia.org/wiki/Fdisk">fdisk utility</a> as read-only and knew then that fdisk was not going to work. By this time I was really frustrated and it was time to leave.  Why wouldn&#8217;t Linux allow me to delete the existing files or partition or format?  We left the house without the music and began the trip.  I was deep in thought about this perplexing issue.</p>
<p><img width="128" vspace="4" hspace="4" height="96" border="0" align="right" title="trio_mp3_hold.jpg" alt="trio_mp3_hold.jpg" src="http://steve.kargs.net/wp-content/uploads/2006/12/trio_mp3_hold.jpg" />Then an idea came to me about half way to our destination.  The Trio MP3 player has a HOLD button that I use to keep the keys from being pressed while it is in my pocket.  I began to suspect that the hold button was preventing the USB flash drive files from being deleted.  When we returned home, I moved the HOLD button, and inserted the Trio MP3 thumb drive into my Linux PC.  I selected a music file and deleted it.  Success! The drive had automatically mounted as read-write, and I could add and remove files at will.   <a href="http://en.wikipedia.org/wiki/PEBKAC">PEBKAC</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/linux/usb-drive-read-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website backup using Linux Command Line</title>
		<link>http://steve.kargs.net/hosting/website-backup-using-linux-command-line/</link>
		<comments>http://steve.kargs.net/hosting/website-backup-using-linux-command-line/#comments</comments>
		<pubDate>Fri, 15 Dec 2006 16:11:32 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[hosting]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/hosting/website-backup-using-linux-command-line/</guid>
		<description><![CDATA[I needed to backup a website that I run onto a Linux server in my garage, and wondered what the easy button tool for Linux on the command line would be. Just try searching Google for &#8220;Website backup using Linux Command Line&#8221; and you don&#8217;t get what I was looking for. What I should have [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="lightbox" href="http://steve.kargs.net/wp-content/uploads/2006/12/easybutton.jpg"><img width="128" vspace="4" hspace="4" height="128" border="0" align="right" title="easy button" alt="easy button" src="http://steve.kargs.net/wp-content/uploads/2006/12/easybutton.jpg" /></a>I needed to backup a website that I run onto <a href="http://karg.us/">a Linux server in my garage</a>, and wondered what the <a href="http://en.wikipedia.org/wiki/Easy_Button">easy button</a> tool for <a href="http://www.ubuntu.com/">Linux</a> on the command line would be.  Just try searching <a href="http://google.com/">Google</a> for &#8220;Website backup using Linux Command Line&#8221; and you don&#8217;t get what I was looking for.  What I should have searched for was &#8220;<span class="txt"><span class="contentpagetitle">Website Mirroring With wget&#8221; but I didn&#8217;t know what tool I was looking for, remember?  As you may have guessed, I finally found <a href="http://www.devarticles.com/c/a/Web-Services/Website-Mirroring-With-wget/">a page full of ads and some outdated command line options for Windows describing how to website mirror with wget</a>.   </span></span></p>
<p><a href="http://www.gnu.org/software/wget/">wget</a> is a great tool for website backup, offline browsing, or mirroring as it is known in the server realm.  A simple one line command gets you all the files and images that are accessable from the website index and puts them in a directory it creates named after the domain name:</p>
<p><code>$ <a href="http://www.gnu.org/software/wget/">wget</a> -mp http://<a href="http://anencephaly.net/">anencephaly.net</a>/</code></p>
<p>Yeah! Job accomplished.  That was easy, and I didn&#8217;t even have to <a href="http://www.staples.com/sbd/cre/marketing/centers/holiday_06/agent-mrnibbles.html">ask the reindeer</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/hosting/website-backup-using-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux in-flight entertainment</title>
		<link>http://steve.kargs.net/bacnet/linux-in-flight-entertainment/</link>
		<comments>http://steve.kargs.net/bacnet/linux-in-flight-entertainment/#comments</comments>
		<pubDate>Thu, 19 Oct 2006 11:12:19 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[BACnet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/bacnet/linux-in-flight-entertainment/</guid>
		<description><![CDATA[I traveled to Phoenix this week to give a BACnet and Lighting Applications presentation to the NEMA JSC on DALI. I flew there aboard a Song Airlines 757. During the powerup sequence for the plane, all the passengers were greeted with the image of Tux and the Linux boot sequence as the in-flight entertainment system [...]]]></description>
			<content:encoded><![CDATA[<p><a class="imagelink" title="Linux entertainment LCD touch screen in every headrest of a Song airline 757." href="http://steve.kargs.net/wp-content/uploads/2006/10/PDC_0190.JPG"><img align="right" title="Linux entertainment LCD touch screen in every headrest of a Song airline 757." id="image55" alt="Linux entertainment LCD touch screen in every headrest of a Song airline 757." src="http://steve.kargs.net/wp-content/uploads/2006/10/PDC_0190.thumbnail.JPG" /></a>I traveled to Phoenix this week to give a <a id="p56" href="http://steve.kargs.net/wp-content/uploads/2006/10/BACnetAndLighting2006.pdf">BACnet and Lighting Applications</a> presentation to the <a href="http://www.nema.org/">NEMA</a> JSC on DALI.  I flew there aboard a <a href="http://www.flysong.com/">Song Airlines</a> 757.  During the powerup sequence for the plane, all the passengers were greeted with the image of Tux and the <a href="http://kernel.org/">Linux</a> boot sequence as the in-flight entertainment system in each headrest initialized.  The touch panel color LCD screens provided games, movies, music, flight information, and satellite television.  During the 3 hour flight, I watched <a href="http://www.foxnews.com/">Fox News</a>, <a href="http://en.wikipedia.org/wiki/Mythbusters">Mythbusters on Discovery</a>, <a href="http://tlc.discovery.com/">TLC</a>, and Sunday night football.  I also listened to some Ramones and The Smiths.  I played trivia with other passengers &#8211; I came in 3rd place out of 3 players.  I normally dread longer flights, but having satellite TV and Linux serving up entertainment really made the trip go by quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/bacnet/linux-in-flight-entertainment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba, CIFS, and Ubuntu Linux Server</title>
		<link>http://steve.kargs.net/applications/samba-cifs-and-ubuntu-linux-server/</link>
		<comments>http://steve.kargs.net/applications/samba-cifs-and-ubuntu-linux-server/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 23:00:08 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/applications/samba-cifs-and-ubuntu-linux-server/</guid>
		<description><![CDATA[I run a couple of servers at my house. One of them is my fileserver, and it uses Samba to do simple Windows filesharing. My 20 GB digital photos partition was full, so I got a 120 GB harddrive and setup an Ubuntu Server 6.06 based fileserver. I transferred the files using rsync, and installed [...]]]></description>
			<content:encoded><![CDATA[<p><img align="right" title="confused" id="image30" alt="confused" src="http://steve.kargs.net/wp-content/uploads/2006/07/head.thumbnail.png" />I run a couple of servers at my house. One of them is my fileserver, and it uses <a href="http://www.samba.org/">Samba</a> to do simple Windows filesharing. My 20 GB digital photos partition was full, so I got a 120 GB harddrive and setup an <a href="http://www.ubuntu.com/server/">Ubuntu Server</a> 6.06 based fileserver.  I transferred the files using <a href="http://samba.anu.edu.au/rsync/">rsync</a>, and installed samba on the new server. I set the UID=nobody and the GID=users on all the files. I set the group id inheritance bit on the Linux directories, and removed the world/other rights.</p>
<p><code>#!/bin/bash<br />
# files are read/write for group and owner<br />
find $1 -type f -exec chmod 660 {} \;<br />
# directories are read/write/cd-able/inherited GID<br />
find $1 -type d -exec chmod 02770 {} \;<br />
# make these files owner=nobody, group=users<br />
chown -R nobody:users $1</code></p>
<p>I setup Samba to mimic the Linux file system, and forced some settings when new files and directories are created. Here is my smb.conf entry:</p>
<p><code>[data]<br />
comment = Common Data Directory<br />
path = /home/skarg/data<br />
force user = nobody<br />
force group = users<br />
read only = No<br />
create mask = 0660<br />
force create mode = 0660<br />
directory mask = 02770<br />
force directory mode = 02770<br />
inherit permissions = Yes<br />
guest ok = Yes</code></p>
<p>Normally, you can add a CIFS mount in /etc/fstab, and specify the UID and GID that the linux filesystem will use. But the cifs filesystem mount wasn&#8217;t using the UID that I specified, and that&#8217;s when I discovered that Samba now has unix extensions, which cause the problem that I was seeing. Unix extensions can be turned off in samba by adding the following line to /etc/samba/smb.conf:</p>
<p><code>[global]<br />
unix extensions = no</code><br />
I also turned off the extensions on the workstation:</p>
<p><code>echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled</code></p>
<p>I was trying to get one of the other Ubuntu Server based linux servers to mount the Windows share, but kept getting an error message:</p>
<p><code>CIFS VFS: cifs_mount failed w/return code = -22<code /></code></p>
<p>Google found the <a href="http://www.nabble.com/Can-only-mount-using-server-IP-!--t1564210.html">mailing list where someone had that problem</a>, and the solution was to add the mount.cifs command, since the kernel didn't know the domain name to IP lookup. I tried to use the advanced package tool to find it:</p>
<p><code>apt-cache search mount.cifs</code></p>
<p>Nothing.  I tried several other solutions, but they didn't work. I Googled again, and found <a href="http://www.archlinux.org/pipermail/arch/2005-November/007401.html">another post about mount.cifs</a>, which made me think, and I searched the server for mount.cifs using the <a href="http://www.linuxheadquarters.com/howto/basic/locate.shtml">locate</a> command. mount.cifs wasn't there! Finally I went to the <a href="http://packages.ubuntu.com/">Ubuntu packages site</a>, and did a search in the contents of each package.  mount.cifs is part of the smbfs package.  I initially didn't want to install the smbfs package since smbfs is depracated in favor of cifs.</p>
<p><code>sudo apt-get install smbfs</code></p>
<p>Now the server has the CIFS filesystem mounted.  However, it is not perfect yet.  Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/applications/samba-cifs-and-ubuntu-linux-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ssh, VNC, and IMAP secure tunneling</title>
		<link>http://steve.kargs.net/applications/ssh-vnc-and-imap-secure-tunneling/</link>
		<comments>http://steve.kargs.net/applications/ssh-vnc-and-imap-secure-tunneling/#comments</comments>
		<pubDate>Thu, 08 Jun 2006 16:59:05 +0000</pubDate>
		<dc:creator>skarg</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://steve.kargs.net/applications/ssh-vnc-and-imap-secure-tunneling/</guid>
		<description><![CDATA[I run an IMAP server in the garage so that I can have my e-mail and folders in a central location. I have a domain name that I point to zoneedit.com and use ddclient to update the IP address. From Windows, I access the IMAP using an ssh tunnel with the fine PuTTY ssh client. [...]]]></description>
			<content:encoded><![CDATA[<p>I run an IMAP server in the garage so that I can have my e-mail and folders in a central location. I have a domain name that I point to <a href="http://zoneedit.com/">zoneedit.com</a> and use <a href="http://ddclient.sourceforge.net/">ddclient</a> to update the IP address.  From Windows, I access the IMAP using an ssh tunnel with the fine <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY ssh client</a>. From Linux, I just use the command line. I setup a local ssh IMAP tunnel to the potter machine which sets up the tunnel via the localhost:<br />
<code>$ sudo ssh -L143:potter:143 karg.us</code></p>
<p>I can then read email using <a href="http://www.mozilla.org/">Mozilla Thunderbird</a> by configuring IMAP to use localhost on the standard port (143).</p>
<p><img align="right" alt="Happy Jet" id="image19" title="Happy Jet" src="http://steve.kargs.net/wp-content/uploads/2006/06/jet_happy.jpg" /></p>
<p>ssh tunneling is also handy for troubleshooting. To do remote troubleshooting, a remote desktop control tool is need, and I use <a href="http://www.tightvnc.com/">Tight VNC</a>.  To launch a <a href="http://www.tightvnc.com/">Tight VNC</a> session to help my wife restart the printer queue, I run:<br />
<code>$ ssh -L5901:wilbur:5900 karg.us</code><br />
<code>$ xtightvncviewer -encodings "tight copyrect" localhost:1</code></p>
<p>Simple, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://steve.kargs.net/applications/ssh-vnc-and-imap-secure-tunneling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

