<?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>FettesPS &#187; ubuntu</title>
	<atom:link href="http://www.fettesps.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fettesps.com</link>
	<description>Fettes Programming Solutions</description>
	<lastBuildDate>Sun, 22 Jan 2012 18:21:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing the Arduino IDE on Linux Mint</title>
		<link>http://www.fettesps.com/installing-the-arduino-ide-on-linux-mint/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-the-arduino-ide-on-linux-mint</link>
		<comments>http://www.fettesps.com/installing-the-arduino-ide-on-linux-mint/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 12:43:38 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[atmega128]]></category>
		<category><![CDATA[ATMega328]]></category>
		<category><![CDATA[avr]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[diecimila]]></category>
		<category><![CDATA[duemillanove]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=761</guid>
		<description><![CDATA[The Arduino Playground does a pretty good job of directing users on how to install Arduino on Debian based distributions but there were a couple of spots where I found it was lacking, and had to go out to do my own research. The main thing it lacked was instructions on how to set up [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fettesps.com/wp-content/uploads/2009/12/arduino.png"><img src="http://www.fettesps.com/wp-content/uploads/2009/12/arduino.png" alt="arduino" title="arduino" width="128" height="128" class="aligncenter size-full wp-image-770" style="float:left; margin: 3px 10px 3px 0px" /></a></p>
<p>The Arduino Playground does a pretty good job of directing users on how to install Arduino on Debian based distributions but there were a couple of spots where I found it was lacking, and had to go out to do my own research.  The main thing it lacked was instructions on how to set up a launcher for your desktop or Gnome menu.  I will outline those at the end of this guide, but first I will give you a quick overview of the installation process from the start as I performed it on both my Linux Mint laptop and my Ubuntu 9.10 desktop.  Although this guide was written with Linux Mint users in mind, there is absolutely no reason this will not work on other Debian based distros.</p>
<p>Open up your console and run the following commands to install some necessary prerequisites.  If you know for a fact you have them installed you can skip installing them again.  You will most likely be prompted to enter Y before the installation will begin.</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get install sun-java5-jre
sudo apt-get install gcc-avr
sudo apt-get install avr-libc</pre>
<p>Now that you have the prerequisites installed you will need to <a href="http://arduino.googlecode.com/files/arduino-0017.tgz">download</a> the newest version of Arduino.  You can save it to your desktop for now.  After it has finished downloading open up the folder and extract it to your desired location (such as your home directory) or you can do it in your console as well:</p>
<pre class="brush: bash; title: ; notranslate">tar xvzf ~/Desktop/arduino-0017.tgz ~/Arduino</pre>
<p>At this point it is safe to delete the tarball on your desktop.  </p>
<p>At this point Arduino is installed and ready to use. This is also where the Arduino Playground leaves you hanging, no one wants to open up their console every time to launch a program or browse to it with their file explorer.  I initially tried creating an installer just as I normally would, by pointing it to ~/Arduino/arduino) only to find that the program did not launch when I clicked it.  So I then created a bash script which called the same file and made sure it was executable.  Still nothing!  So that&#8217;s when I realized that I had to do things a bit differently.  Nothing too fancy, just a slightly different way of approaching it.</p>
<p>First create an empty bash file and make it executable.  </p>
<pre class="brush: bash; title: ; notranslate">touch ~/Arduino/runArduino.sh
chmod a+x ~/Arduino/runArduino.sh</pre>
<p>Then open it in your favourite text editor (e.g. emacs or pico), and add the following contents to your bash script:</p>
<pre class="brush: bash; title: ; notranslate">#!/bin/bash
cd ~/Applications/Arduino &amp;&amp; ./arduino</pre>
<p>Save the file and close your terminal.  Right click the Gnome menu and select <strong>Add to Panel</strong>.  Select <strong>Custom Application Launcher</strong> and hit <strong>Add</strong>.  Enter <strong>Arduino</strong> for the name, and in the path put <strong>/home/username/Arduino/runArduino.sh</strong>. You can also select an icon for the launcher, which is another place Linux users were left out in the cold as the tarball does not contain an SVG file. Fortunately, I did manage to dig up a <a href="http://www.fettesps.com/wp-content/uploads/2009/12/arduino.png">PNG version</a> to use. Save this icon to your install directory and select it by clicking the &#8220;spring&#8221; icon and navigating to your install directory.  From there click close to save the settings and add the launcher to your panel.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/installing-the-arduino-ide-on-linux-mint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Archey on Ubuntu</title>
		<link>http://www.fettesps.com/installing-archey-on-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-archey-on-ubuntu</link>
		<comments>http://www.fettesps.com/installing-archey-on-ubuntu/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 12:58:43 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[archey]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1022</guid>
		<description><![CDATA[Ever since the first time I saw Arch Linux in action I&#8217;ve been in love with Archey.  For those of you who don&#8217;t know, Archey is just a little script that gets your current system information and displays it in the terminal with some ascii art. My initial search for Archey on the Debian platform [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since the first time I saw Arch Linux in action I&#8217;ve been in love with Archey.  For those of you who don&#8217;t know, Archey is just a little script that gets your current system information and displays it in the terminal with some ascii art.  My initial search for Archey on the Debian platform</p>
<pre class="brush: plain; title: ; notranslate">
sudo apt-get install lsb-release scrot
wget http://github.com/downloads/djmelik/archey/archey-0.2.8.deb
sudo dpkg -i archey-0.2.8.deb
</pre>
<p>If you&#8217;re running Crunchbang, which at the time of writing this article is using Ubuntu 9.04 as it&#8217;s base, you&#8217;ll need to get a more up-to-date version of coreutils or else Archey will give you the following error:</p>
<pre class="brush: plain; title: ; notranslate">
user@crunchbang:/usr/bin$ archey
df: unrecognised option '--total'
Try `df --help' for more information.
Traceback (most recent call last):
  File &quot;/usr/bin/archey&quot;, line 304, in &lt;module&gt;
    func()
  File &quot;/usr/bin/archey&quot;, line 285, in disk_display
    total = p1.splitlines()[-1]
IndexError: list index out of range
</pre>
<p>Naturally, I&#8217;d assume that anyone running a version of Ubuntu that&#8217;s 9.04 or older will encounter the same issue.  I did not run into it on my Linux Mint 8 box or my Ubuntu 10.10 box.  By typing <i>df &#8211;version</i> you&#8217;ll see that it only has 6.10 included. You&#8217;ll want at least version 7 or else your <i>df</i> command will not support the <i>&#8211;total</i> flag.  So go ahead and download the package and install it:</p>
<pre class="brush: plain; title: ; notranslate">
wget http://ftp.us.debian.org/debian/pool/main/c/coreutils/coreutils_8.5-1_i386.deb
sudo dpkg -i coreutils_8.5-1_i386.deb
</pre>
<p>Now when you run Archey it should run as expected, without any errors.  Your next step is then to add it to your .bashrc so that it executes each time you open a terminal.  Open it up with your favourite text editor and add <b>archey</b> to the end of it an dhten save it.  Now every time you open a terminal or SSH into your box you should be presented with something like this:</p>
<pre class="brush: bash; title: ; notranslate">
                          .oyhhs:   User: fettesps
                 ..--.., shhhhhh-   Hostname: fettesps-crunchbang
               -+++++++++`:yyhhyo`  OS: Ubuntu 9.04 i686
          .--  -++++++++/-.-::-`    Kernel: 2.6.28-13-generic
        .::::-   :-----:/+++/++/.   Uptime: 2 days, 4:44
       -:::::-.          .:++++++:  Window Manager: Openbox
  ,,, .:::::-`             .++++++- Shell: Bash
./+++/-`-::-                ./////: Terminal: Xterm
+++++++ .::-                        Packages: 1036
./+++/-`-::-                :yyyyyo CPU: Pentium(R) Dual-Core CPU E6300 @ 2.80GHz
  ``` `-::::-`             :yhhhhh: RAM: 266 MB / 497 MB
       -:::::-.         `-ohhhhhh+  Disk: 2.2G / 49G
        .::::-` -o+///+oyhhyyyhy:
         `.--  /yhhhhhhhy+,....
               /hhhhhhhhh-.-:::;
               `.:://::- -:::::;
                         `.-:-'
</pre>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/installing-archey-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Alpine 2.0 to Access Gmail on Ubuntu x64</title>
		<link>http://www.fettesps.com/configuring-alpine-2-0-to-access-gmail-on-ubuntu-x64/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-alpine-2-0-to-access-gmail-on-ubuntu-x64</link>
		<comments>http://www.fettesps.com/configuring-alpine-2-0-to-access-gmail-on-ubuntu-x64/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 03:08:09 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alpine 2.0]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1085</guid>
		<description><![CDATA[Continuation of from the last post Installing Alpine 2.0 in Ubuntu Linux is a fairly simple process but can be rather confusing and elusive as there is no GUI to help you out. I ran into a few hitches along the way so I thought I&#8217;d help out future command line enthusiasts who might run [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Continuation of <a href="http://www.fettesps.com/solving-ubuntus-the-following-packages-cannot-be-authenticated%E2%80%9D-error/">from the last post</a> </p></blockquote>
<p>Installing Alpine 2.0 in Ubuntu Linux is a fairly simple process but can be rather confusing and elusive as there is no GUI to help you out.  I ran into a few hitches along the way so I thought I&#8217;d help out future command line enthusiasts who might run into the same issue.</p>
<p>Installing Alpine is as simple as:</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get install alpine</pre>
<p>A few seconds later you&#8217;ll have Alpine up and running.  Type &#8220;alpine&#8221; into your terminal and then follow the prompts.  To configure it to use Gmail you&#8217;ll go into the Setup menu by pressing &#8220;S&#8221; and from there you&#8217;ll go into Config by hitting &#8220;C&#8221;.</p>
<p>This is how I configured mine for Gmail:</p>
<pre class="brush: plain; title: ; notranslate">
Personal Name                     = &lt;No Value Set: using &quot;Your Friendly Name&quot;&gt;
User Domain                       = gmail.com
SMTP Server (for sending)         = smtp.googlemail.com:587/tls/user=username@gmail.com
NNTP Server (for news)            = &lt;No Value Set&gt;
Inbox Path                        = {imap.gmail.com:993/user=username@gmail.com/ssl/novalidate-cert}Inbox
Incoming Archive Folders          = &lt;No Value Set&gt;
Pruned Folders                    = &lt;No Value Set&gt;
Default Fcc (File carbon copy)    = &lt;No Value Set: using &quot;sent-mail&quot;&gt;
Default Saved Message Folder      = &lt;No Value Set: using &quot;saved-messages&quot;&gt;
Postponed Folder                  = &lt;No Value Set: using &quot;postponed-msgs&quot;&gt;
Read Message Folder               = &lt;No Value Set&gt;
Form Letter Folder                = &lt;No Value Set&gt;
Trash Folder                      = &lt;No Value Set: using &quot;Trash&quot;&gt;
Literal Signature                 = &lt;No Value Set&gt;
Signature File                    = &lt;No Value Set: using &quot;.signature&quot;&gt; </pre>
<p>One thing worth noting there is the Inbox Path I set.  Every other guide I read said to use <br /><strong>{pop.gmail.com:993/pop3/ssl/novalidate-cert/user=user@gmail.com}</strong><br /> which simply did not work for me.  I struggled with this one for a good 20 min or so until I <a href="http://inferno.freedom-uplink.net/blog/2008/07/05/using-gmails-imap-through-alpine/">found this post</a> which did it slightly different than most.  Not sure why, but my computer needed that a bit different and if anything I&#8217;d guess it&#8217;s because I&#8217;m using the x64 build.</p>
<p>While you&#8217;re in the config menu you&#8217;ll also want to fix a few other things which were suggested on the <a href="http://ubuntuforums.org/showthread.php?t=1073916">Ubuntu Forums</a>. </p>
<pre class="brush: plain; title: ; notranslate">[Advanced User Preferences]
[x] &quot;Save Will Not Delete&quot;

[Pruning Rule]
[x] &quot;Don’t rename, don’t delete&quot; </pre>
<p>At this point you want to save your settings and exit Alpine.  So hit <strong>E</strong> and then <strong>Y</strong to save it.  At that point you should hit <strong>Q</strong> to exit and once again <strong>Y</strong> to confirm.</p>
<p>Now before you start Alpine again I suggest setting it to save your password.  Doing this is <a href="http://allforlinux.com/2010/07/read-your-e-mail-via-terminal/">a bit convoluted</a> but basically what you&#8217;re going to do is create an empty file in your home directory which will store your encrypted password.  </p>
<pre class="brush: plain; title: ; notranslate">cd ~
touch .pine-passfile
alpine</pre>
<p>When Alpine starts back up enter your Gmail password and it will then ask if you want to save it locally, hit <strong>Y</strong>.  You will have to do this once more the next time you send an outgoing mail but after that you will not be prompted again for your Gmail password.  </p>
<p>Now Alpine is all installed and you can be elite and say you read your email in the command line.  You can of course take it one step further and add it to your screen profile and then attach it every time you SSH in.  I&#8217;ve always got screen windows running for things like IRSSI and Hellanzb and Emacs, and now Alpine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/configuring-alpine-2-0-to-access-gmail-on-ubuntu-x64/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Solving Ubuntu&#8217;s &#8220;The following packages cannot be authenticated” Error</title>
		<link>http://www.fettesps.com/solving-ubuntus-the-following-packages-cannot-be-authenticated%e2%80%9d-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=solving-ubuntus-the-following-packages-cannot-be-authenticated%25e2%2580%259d-error</link>
		<comments>http://www.fettesps.com/solving-ubuntus-the-following-packages-cannot-be-authenticated%e2%80%9d-error/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 02:18:26 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=1083</guid>
		<description><![CDATA[I was just trying to install Pine on one of my Ubuntu based boxes and had an issue getting it installed. It seems there&#8217;s no 64 bit binary available so I figured I&#8217;d try Alpine instead since it was in the apt-get repository. So I did a quick sudo apt-get install alpine and was prompted [...]]]></description>
			<content:encoded><![CDATA[<p>I was just trying to install Pine on one of my Ubuntu based boxes and had an issue getting it installed.  It seems there&#8217;s no 64 bit binary available so I figured I&#8217;d try Alpine instead since it was in the apt-get repository.  So I did a quick <em>sudo apt-get install alpine</em> and was prompted with this pesky message:</p>
<pre class="brush: plain; title: ; notranslate">WARNING: The following packages cannot be authenticated!
  foo bar baz
Install these packages without verification [y/N]?</pre>
<p>I hit <em>y</em> but the install still failed.  I did a quick Google and <a href="http://changelog.complete.org/archives/496-how-to-solve-the-following-packages-cannot-be-authenticated">found this solution</a> to the problem.</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get install debian-archive-keyring
sudo apt-get update</pre>
<p>After running those commands I got the same error, and once again I said yes.  This time it installed successfully.  So I went back and ran the <em>sudo apt-get install alpine</em> command again, and was prompted with the same question.  Thinking it didn&#8217;t work I hit yes and to my chigrin it installed perfectly this time.  Now, to figure out how to use Alpine to read my Gmail&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/solving-ubuntus-the-following-packages-cannot-be-authenticated%e2%80%9d-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing the Desktop Icons from Linux Mint</title>
		<link>http://www.fettesps.com/removing-the-desktop-icons-from-linux-mint/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=removing-the-desktop-icons-from-linux-mint</link>
		<comments>http://www.fettesps.com/removing-the-desktop-icons-from-linux-mint/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 05:22:49 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linuxmint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=776</guid>
		<description><![CDATA[After upgrading the hard drive on my desktop Linux box I decided that I would install the newest version of Linux Mint on it. Although I love Ubuntu I find Mint to be quite refreshing and less time consuming to get all set up, as a result my 3 most used linux boxes are now [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading the hard drive on my desktop Linux box I decided that I would install the newest version of Linux Mint on it.  Although I love Ubuntu I find Mint to be quite refreshing and less time consuming to get all set up, as a result my 3 most used linux boxes are now all running Mint.  Despite how well configured Mint is &#8220;out of the box&#8221; I do find myself tweaking it extensively just as I would any OS.  After installing it I promptly moved the main panel to the top and removed the MintMenu, as I am not a fan of it, and decided that this time instead of my usual setup I would try using Docky for Gnome-Do as my application launcher.</p>
<p>I am one of those people who loves a clean desktop, I hate it when files and up scattered upon it and do not like how some icons are &#8220;glued&#8221; to the desktop by default in every operating system.  So when I went to remove these icons from my desktop I found that I couldn&#8217;t just delete them as I had expected.  I even tried doing it through the terminal, expecting to find symlinks in the ~/Desktop/ directory but it was empty.  At that point I figured I&#8217;d have to bust out the gconf-editor, having done so in the past to remove the mounted drives from the desktop.  It turns out there is a more simple solution in Linux Mint.</p>
<p><a href="http://www.fettesps.com/wp-content/uploads/2010/01/Screenshot-Desktop-Configuration-Tool.png"><img src="http://www.fettesps.com/wp-content/uploads/2010/01/Screenshot-Desktop-Configuration-Tool.png" alt="Screenshot-Desktop Configuration Tool" title="Screenshot-Desktop Configuration Tool" width="262" height="188" class="alignnone size-full wp-image-780" style='float:right; margin: 5px 0px 5px 15px' /></a></p>
<p>After digging around I found the Desktop Configuration Tool. If you are using the MintMenu then you can find it under </p>
<ul>
<li>MintMenu</li>
<li>Preferences</li>
<li>Desktop Configuration Tool</li>
</ul>
<p>Once it is loaded you will see that it is a very simple utility, on your first tab all you have to do is uncheck Computer, Home, and Mounted Volumes.  From there just click Apply and close the window, and you&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/removing-the-desktop-icons-from-linux-mint/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Remove the Fortune Message from the Linux Mint Terminal</title>
		<link>http://www.fettesps.com/how-to-remove-the-fortune-message-from-the-linux-mint-terminal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-remove-the-fortune-message-from-the-linux-mint-terminal</link>
		<comments>http://www.fettesps.com/how-to-remove-the-fortune-message-from-the-linux-mint-terminal/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:10:19 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fortune]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=687</guid>
		<description><![CDATA[LinuxMint is a refreshing new take on Ubuntu, for those of you who are getting tired of the &#8220;same old thing &#8221; but aren&#8217;t quite ready to venture away from a Debian based distro. It has a crisp UI, with a slightly more familiar menu for those of you coming straight from Windows. However, it [...]]]></description>
			<content:encoded><![CDATA[<p>LinuxMint is a refreshing new take on Ubuntu, for those of you who are getting tired of the &#8220;same old thing &#8221; but aren&#8217;t quite ready to venture away from a Debian based distro.  It has a crisp UI, with a slightly more familiar menu for those of you coming straight from Windows.  However, it has some quirks and requires a bit of fine tuning.  </p>
<p>The first thing that had to go was the annoying &#8220;fortune&#8221; message that would display every time you launched a terminal.  I have no idea why such a thing would be included in Mint as I can&#8217;t see very many people wanting it.  Thankfully, removing it is quite simple.  </p>
<p>If you just want to disable it, run  the following command:</p>
<pre class="brush: plain; title: ; notranslate">sudo pico /etc/bash.bashrc</pre>
<p>And scroll all the way to the bottom, you&#8217;ll want to disable or completely remove the line that says:</p>
<pre class="brush: plain; title: ; notranslate">/usr/bin/mint-fortune</pre>
<p>If, like me, you&#8217;re running Mint on a Netbook and need to free up as much resource as possible, you can completely remove it from your system by running the following command:</p>
<pre class="brush: plain; title: ; notranslate">sudo apt-get remove fortune</pre>
<p>Just be sure to complete the above step as well or you will get the error <strong>bash: /usr/bin/mint-fortune: No such file or directory</strong> every time you open your terminal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/how-to-remove-the-fortune-message-from-the-linux-mint-terminal/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>List All the Installed Packages in Ubuntu</title>
		<link>http://www.fettesps.com/list-all-the-installed-packages-in-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=list-all-the-installed-packages-in-ubuntu</link>
		<comments>http://www.fettesps.com/list-all-the-installed-packages-in-ubuntu/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 01:07:24 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=511</guid>
		<description><![CDATA[Sometimes you just can&#8217;t remember what packages you&#8217;ve already installed, or what version you are currently running. Thankfully you can quickly find out this information from the command line. You&#8217;ll find that there is far too much information returned by this command and the only way to find exactly what you need is to grep [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you just can&#8217;t remember what packages you&#8217;ve already installed, or what version you are currently running.  Thankfully you can quickly find out this information from the command line.</p>
<pre class="brush: bash; title: ; notranslate">$ dpkg --get-selections
acl							install
acpi-support				install
acpid						install
adduser						install
alacarte					install
alsa-base					install
alsa-utils					install
anacron						install
apmd						install
apparmor					install
apparmor-utils				install
apport						install
apport-gtk					install
apt							install
apt-transport-https			install
apt-utils					install
apt-xapian-index			install
aptitude					install
apturl						install</pre>
<p>You&#8217;ll find that there is far too much information returned by this command and the only way to find exactly what you need is to grep it with a specific query.  So for example if you were looking to find out what Python packages you had installed on that system you could use this command:</p>
<pre class="brush: bash; title: ; notranslate">$ dpkg --get-selections | grep python
libpython2.6					install
python							install
python-apport					install
python-apt						install
python-brlapi					install
python-cairo					install
python-central					install
python-cups						install
python-cupshelpers				install</pre>
<p>If you read the man pages on dpkg you&#8217;ll find there are many other useful commands you utilize.  If you&#8217;re trying to track down the location of a package you can use the following command:</p>
<pre class="brush: bash; title: ; notranslate">$ dpkg -L firefox
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/firefox
/usr/share/doc/firefox/copyright
/usr/share/doc/firefox/changelog.Debian.gz</pre>
<p>This will give you a good idea of where you need to look if you&#8217;re trying to find some config files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/list-all-the-installed-packages-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Creating a New User</title>
		<link>http://www.fettesps.com/unix-creating-a-new-user/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unix-creating-a-new-user</link>
		<comments>http://www.fettesps.com/unix-creating-a-new-user/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 02:50:18 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[man adduser]]></category>
		<category><![CDATA[man useradd]]></category>
		<category><![CDATA[mandrake]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[sh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[useradd]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=339</guid>
		<description><![CDATA[Creating a user in Linux is a simple task. Well, kinda. You can quickly create a user without specifying much of it&#8217;s characteristics, or you can get much more in depth with security, default shells and other customizations. I recommend taking the time to learn beyond the basics or you may find yourself making a [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a user in Linux is a simple task. Well, kinda.  You can quickly create a user without specifying much of it&#8217;s characteristics, or you can get much more in depth with security, default shells and other customizations.  I recommend taking the time to learn beyond the basics or you may find yourself making a simple mistake. For the longest time I created my user&#8217;s with a command like this:</p>
<pre class="brush: bash; title: ; notranslate">sudo useradd -d /home/username -m username
sudo passwd username</pre>
<p>I had thought for a long time this was sufficient.  It created their home directory with the <em>-m</em> parameter and specified that location with the <em>-d</em> parameter.  After that I set the password and the user was now able to login to the system with basic privileges. But after a while I began to notice some quirks with those users.  They didn&#8217;t act like the initial admin user that was created by the installation process.  I found that the prompt was a bit less informative.  It also lacked a history, and the ability to hit tab to complete a directory as you typed it.  I even found myself copying over the root .bashrc and trying to figure out what ws different between the users.  Then I typed in the following command just to make sure it was using bash:</p>
<pre class="brush: bash; title: ; notranslate">echo $SHELL</pre>
<p>I looked at the response.</p>
<pre class="brush: bash; title: ; notranslate">/bin/sh</pre>
<p>*face-palm*</p>
<p>No wonder .bashrc didn&#8217;t do anything, I was using a completely different shell for my subsequent users.  I had never taken the time to learn the difference between the various shells, most systems use bash by default so that is what I learned and got used to.  So I never even realized they were using sh instead of bash. </p>
<p>To quickly change the shell for an established user to bash just run the command:</p>
<pre class="brush: bash; title: ; notranslate">chsh -s /bin/bash username</pre>
<p>Since then I&#8217;ve adjusted my create user command to include bash as my default shell.</p>
<pre class="brush: bash; title: ; notranslate">sudo useradd -d /home/username -m username -s /bin/bash</pre>
<p>There are many more parameters that you can add on to this command. If you&#8217;d like to read up on those then just type <em>man useradd</em> and read through the documentation.  Or if you want a very verbose and easy to use command to create your users you can always try <em>adduser</em>.  Instead of passing in which parameters you want to specify it will prompt you on every possibility.  Great for if you don&#8217;t know which options exist, but also somewhat overwhelming in the beginning.</p>
<pre class="brush: bash; title: ; notranslate">mradmin@microsoft$ sudo adduser username
Password: ******
Adding user `username’…
Adding new group `username’ (1337).
Adding new user `username’ (1337) with group `username’.
Creating home directory `/home/username’.
Copying files from `/etc/skel’
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for username
Enter the new value, or press ENTER for the default
Full Name []: Example User
Room Number []: 0
Work Phone []: 604-6122
Home Phone []: 604-6222
Other []:
Is the information correct? [y/N] </pre>
<p>The choice of which two methods to use is a mater of preference.  In the long run, what matters is that you educate yourself on what all of the available options do.  And remember, <em>man useradd</em> and <em>man adduser</em> are your friends!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/unix-creating-a-new-user/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Removing Mounted Drives from the Gnome Desktop</title>
		<link>http://www.fettesps.com/removing-mounted-drives-from-the-desktop-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=removing-mounted-drives-from-the-desktop-2</link>
		<comments>http://www.fettesps.com/removing-mounted-drives-from-the-desktop-2/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 02:49:37 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[fat32]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[nautilis]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=186</guid>
		<description><![CDATA[One of the things I found annoying with Gnome is that any time I access one of my Fat32/NTFS partitions it ends up placing an icon on the desktop until I reboot.  Since I do most of my programming in a transparent shell I like to keep my desktop clean.  After doing a bit of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things I found annoying with Gnome is that any time I access one of my Fat32/NTFS partitions it ends up placing an icon on the desktop until I reboot.  Since I do most of my programming in a transparent shell I like to keep my desktop clean.  After doing a bit of research I found a solution:</p>
<p><code>Hit Alt+F2 and run <span style="font-style: italic;">gconf-editor</span><br />
Go to <span style="font-style: italic;">Apps</span> -&gt; <span style="font-style: italic;">Nautilus</span> -&gt; <span style="font-style: italic;">Desktop</span><br />
Remove the check mark from <span style="font-style: italic;">volumes_visible</span></code></p>
<p>You&#8217;ll notice that the Configuration Editor (gconf-editor) is similar to Window&#8217;s Registry Editor.  With that being said, use the same amount of caution you&#8217;d use when editing your Window&#8217;s Registry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/removing-mounted-drives-from-the-desktop-2/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Installing Pure-FTPd on Ubuntu 9.04 Server</title>
		<link>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-pure-ftpd-on-ubuntu-904-server</link>
		<comments>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/#comments</comments>
		<pubDate>Sun, 31 May 2009 21:46:12 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[pureftpd]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=140</guid>
		<description><![CDATA[Although I no longer install FTP servers on any of my Linux servers, as I favour the user of SFTP, I wanted to update my instructions for the newest version of Ubuntu Server. I’m sure these instructions are very similar for most distributions, but I thought I’d specifically target Ubuntu 9.04 Server since that is what [...]]]></description>
			<content:encoded><![CDATA[<div><span>Although I no longer install FTP servers on any of my Linux servers, as I favour the user of SFTP, I wanted to update my instructions for the newest version of Ubuntu Server. I’m sure these instructions are very similar for most distributions, but I thought I’d specifically target Ubuntu 9.04 Server since that is what I am most familiar with.<br />
<code>sudo apt-get install pure-ftpd</code></p>
<p style="font-size: 1.05em;">When prompted, enter Y and hit enter.</p>
<p style="font-size: 1.05em;">Now, set up a new account using the &#8216;useradd&#8217; command. You&#8217;ll also need to specify the home directory for the user by adding &#8216;-d /home/directoryname -m&#8217; so when the user logs in they have a folder to upload/download files from.  You don&#8217;t have to use the <span style="font-style: italic;">/home</span> dirctory for this but I always do to make things simple.  Here is the command I used.</p>
<p><code>sudo useradd -d /home/username -m username<br />
sudo passwd username<br />
</code></p>
<p style="font-size: 1.05em;">Since I don&#8217;t want this user being able to cruise through the file system and see everything I&#8217;m going to lock the user to the home directory we just made. Open up<span> </span><em>/etc/passwd</em><span> </span>for editing. I use pico for this, you can use whatever program you like. Search for the user you just made (ctrl+w in pico) and add<span> </span><em>/./</em><span> </span>to their home directory like this:</p>
<p><code>sudo pico /etc/passwd<br />
/home/username/./</code></p>
<p style="font-size: 1.05em;">Note that the line will be a lot messier than that, so just squeeze it in where appropriate. Also, make sure to put in a shell at the end of that line…<span> </span><em>/bin/bash</em><span> </span>works fine. After all of that, add their username to<span> </span><em>/etc/ftpallow</em> if you want to manually allow access to certain accounts.</p>
<p>Now just type<span> </span><em>pure-ftpd-control restart</em><span> </span>on the command line and you&#8217;re ready to test out your account!  Hop on another computer, or just SSH into another one and try from there.  If it doesn&#8217;t work its possible your install didn&#8217;t set up some of the proper configuration.  This happens automatically on Ubuntu 9.04 Server but on other distrobutions you may need to perform this next step.</p>
<p style="font-size: 1.05em;">Edit<span> </span><em>/etc/pam.d/pure-ftpd</em><span> </span>using your favourite editor to look like this:</p>
<p><code>auth sufficient pam_ftp.soauth required pam_unix_auth.so shadow use_first_pass</code><br />
<code>auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed</code><br />
<code>auth required pam_listfile.so item=user sense=allow file=/etc/ftpallow onerr=fail</code><br />
<code>auth required pam_shells.so</code></p>
<p style="font-size: 1.05em;">Save the file, restart the server again and try it out again.  If you&#8217;re having troubles still I suggest seeking help from the <a href="http://www.pureftpd.org/project/pure-ftpd/doc" target="_new">Documentation</a>.</p>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

