www.duckland.org/output/index-5.html
2015-06-09 22:50:31 -05:00

323 lines
19 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="News from duckland.org">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>duckland.org news (old posts, page 5) | duckland.org news</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="http://www.duckland.org/index-5.html">
<link rel="prev" href="index-6.html" type="text/html">
<link rel="next" href="index-4.html" type="text/html">
<!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
<!-- Menubar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><div class="container">
<!-- This keeps the margins nice -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://www.duckland.org/">
<span id="blog-title">duckland.org news</span>
</a>
</div>
<!-- /.navbar-header -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="stories/about.html">About me</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">My Sites<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="http://www.donaldharper.com">My Photo Blog</a>
</li>
<li>
<a href="http://p365.donaldharper.com">My Attempt at a Project 365</a>
</li>
<li>
<a href="http://www.duckland.org">My Personal and Tech Blog</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Social Sites<b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="https://twitter.com/duckunix">My Twitter</a>
</li>
<li>
<a href="https://plus.google.com/+DonHarper/">My Google+</a>
</li>
<li>
<a href="http://www.linkedin.com/in/donaldharper/">My LinkedIN</a>
</li>
</ul>
</li>
<li>
<a href="archive.html">Archive</a>
</li>
<li>
<a href="categories/index.html">Tags</a>
</li>
<li>
<a href="rss.xml">RSS</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content">
<div class="body-content">
<!--Body content-->
<div class="row">
<div class="postindex">
<article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/201002cmus-project-restarted.html" class="u-url">cmus project restarted</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/201002cmus-project-restarted.html" rel="bookmark"><time class="published dt-published" datetime="2010-02-27T17:02:00-06:00" title="2010-02-27">2010-02-27</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>cmus project restarted</h1>
<p>Just a quick note. The cmus project has been restarted recently, and they are working on a new release. This one should have better integration with things like PulseAudio.</p>
<p>Good news!</p>
<p>Go check out <a href="http://cmus.sourceforge.net/">http://cmus.sourceforge.net/</a> for more details.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200912making-life-easy-over-flaky-links.html" class="u-url">Making life easy over flaky links</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200912making-life-easy-over-flaky-links.html" rel="bookmark"><time class="published dt-published" datetime="2009-12-28T17:12:00-06:00" title="2009-12-28">2009-12-28</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Making life easy over flaky links</h1>
<p>I tend to work over VPN, which we know can be flaky at times, Since I work on server, I spend a lot of time sshed into hosts. I was getting tired of the lost time having to restart what I was working on every time the VPN dropped (which could be as much as every 15 minutes on a bad day). While I already used screen to handle the lack of terminals (Alas, I am forced to use a Windows laptop to VPN in with), I thought there could be an easier way to do this.</p>
<p>The way I tend to work is that I ssh into a jump server, fire up screen, then ssh into the hosts I need to work on, and fire up screen on those hosts.</p>
<p>Now, this is nice, but it can get a bit tiring to do it all over
again. So, I found a tool called
<a href="http://www.harding.motd.ca/autossh/">autossh</a> which will automatically restart your ssh session if it drops for any reason but a graceful disconnect. (Well, there are others, but this is basically it). Combine this with your ssh-agent, and you can re-attach with easy. I also use <a href="http://www.funtoo.org/Keychain">keychain</a> to help manage my ssh-agent when I log in.</p>
<p>Now that the connection will come back, I need a way to re-attach to my screen session, or if there is not one, to start one for me. To do<br>
that, I have this is my .bashrc file:</p>
<pre><code>test -x $STY &amp;&amp; screen -xR
</code></pre>
<p>This will check to make sure that we are not already inside a screen session on the local host (<em>test -x $STY</em>), and if we are not, then either attach to an existing screen session or start a new one (<em>screen -xR</em>)</p>
<p>I have define this function in my .bashrc to spawn a new ssh connection in a separate screen window:</p>
<pre><code>function ss ()
{
screen -t $1 ssh $*
}
</code></pre>
<p>Easy stuff</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200905search-your-email.html" class="u-url">Search your email!</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200905search-your-email.html" rel="bookmark"><time class="published dt-published" datetime="2009-05-25T18:05:00-05:00" title="2009-05-25">2009-05-25</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>Search your email!</h1>
<p>One of the features that most of the pretty GUI mailers offer you is the ability to search your email. While this is not a feature I use regularly, it is one which when you need it, you really need it. I have used <a href="http://grepmail.sf.net">grepmail</a> in the past, but it slow for me (it scans the mail files every time) and the big thing for me is that is only supports <a href="http://en.wikipedia.org/wiki/Mbox">mbox</a> files, and I use <a href="http://en.wikipedia.org/wiki/Maildir">maildir</a> since I use <a href="http://software.complete.org/software/projects/show/offlineimap">offlineimap</a>.</p>
<p>I recently found <a href="http://www.rpcurnow.force9.co.uk/mairix/">mairix</a>. While I have not been using it long, so far I am very impressed with it. It uses an index to speed up the search process, and it smartly adds only new or changed files to the index. The first indexing run was only a few seconds on my archive of almost 15,000 mail messages. I have it scheduled to update the index every 15 minutes, and I never notice the load this will put on the system.</p>
<p>To integrated mairix with mutt, I wrote a quick little script to search from within (or without) mutt:</p>
<pre><code>#!/bin/bash
#===============================================================================
#
# FILE: mailsearch.sh
#
# USAGE: ./mailsearch.sh
#
# DESCRIPTION: search mail stuff
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Don Harper (), duck@duckland.org
# COMPANY: Don Harper
# VERSION: 1.0
# CREATED: 05/25/2009 07:03:30 PM CST
# REVISION: ---
#===============================================================================
rm -rf $HOME/Maildir/mfolder
echo " t::word
Match word in the To: header.
c::word
Match word in the Cc: header.
f::word
Match word in the From: header.
s::word
Match word in the Subject: header.
m::word
Match word in the Message-ID: header.
b::word
Match word in the message body.
d::[start-datespec]--[end-datespec]
Match messages with Date: headers lying in the specific range.
z::[low-size]--[high-size]
Match messages whose size lies in the specified range.
n::word
Match word occurring as the name of an attachment in the mes-
sage. Since attachment names are usually long, this option
F::flags
Match messages with particular flag settings.
s meaning seen,
r meaning replied
f meaning flags
prefixed by a - to negate its sense.
The a:: search pattern is an abbreviation for tcf:
Match words
The word argument to the search strings can take various forms.
~word
Match messages not containing the word.
word1,word2
This matches if both the words are matched in the specified message part.
word1/word2
This matches if either of the words are matched in the specified message part.
substring=
Match any word containing substring as a substring
substring=N
Match any word containing substring, allowing up to N errors in
the match. For example, if N is 1, a single error is allowed,
where an error can be
* a missing letter
* an extra letter
* a different letter.
^substring=
Match any word containing substring as a substring, with the
requirement that substring occurs at the beginning of the
matched word.
d::start-end
Specify both start and end explicitly
"
echo -n "Enter your search string: "
read string
mairix $string
mutt -f=mfolder
rm -rf $HOME/Maildir/mfolder
</code></pre>
<p>Then, I bound this to “S' from within mutt:</p>
<pre><code> macro index,pager S "!mailsearch\n"
</code></pre>
<p>This will give me a reminder of the search command, run the search, and then give me the search results in a new mutt session.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200904wifiroamd-intel-prowireless-3945abg-and-fedora.html" class="u-url">wifiroamd, Intel PRO/Wireless 3945ABG, and Fedora</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200904wifiroamd-intel-prowireless-3945abg-and-fedora.html" rel="bookmark"><time class="published dt-published" datetime="2009-04-17T18:04:00-05:00" title="2009-04-17">2009-04-17</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>wifiroamd, Intel PRO/Wireless 3945ABG, and Fedora</h1>
<p>One of the things that has annoyed me about Fedora has been the decision to switch over to using <a href="http://www.gnome.org/projects/NetworkManager/">NetworkManager</a> to manage all network connections.</p>
<p>Now, on the service this has a lot of advantages. A lot of work has gone into it, and it just works for a vast majority of the installations out there. They have made it so the move from wired to wireless and back can be done without the user doing anything. They have also seamlessly tied in Dial-Up Networking if you still need a modem or use a wireless modem. They even have two-click access to your VPN which is pretty cool.</p>
<p>All these are things which are very good for Linux users. The biggest drawback to all this? The need for a user-space program to manage the non-hardwired connections. Which means that in order to be able to have any network running besides the good old twisted-pair copper, you have to have a little applet running as you, and it has to have a systray somewhere to display. Which means you have to be a) logged into the system and b) you have to be running a window manager which supports having a system tray. Now, Fedora gives you lots of choices for the second part now days. You have <a href="http://www.gnome.org">Gnome</a>, <a href="http://www.kde.org">KDE</a>, <a href="http://www.xfce.org">XFCE</a>, and <a href="http://lxde.sf.net">LXDE</a>. All are perfectly usable window managers. But, they still require you to be logged in to X. And, <a href="http://www.duckland.org/archives/2006/07/31/window-managers/">I do not use any of them</a>.</p>
<p>So, what is a cli-loving Fedora user to do? Well, there is this great program called <a href="http://www.tummy.com/Community/software/wifiroamd/">wifiroamd</a>. It will handle the same basic tasks that NetworkManager handles. It will automatically configure your wifi interface and connect to the wifi networks or the locate hardwired NIC if it cannot. You can configure it to run scripts per connection, so for example, you can change your firewall rules for different networks (shields down at home or the office, but up full at the coffee house), or you could bring up your VPN connection when you start using a given wireless network.</p>
<p>One tip I picked up from the author was that if you have multiple APs in range, an you want to select once AP over the other, is under the <em>/etc/wifiroamd/connections</em> directory, simply link the AP info you do not want to the one you want:</p>
<pre><code>ln essid:my_home_ap essid:bad_ap
</code></pre>
<p>where <strong>essid:my_home_ap</strong> is your AP with the keys and other information you want, and <strong>essid:bad_ap</strong> is the one you do not want to connect to. My neighbors have some very powerful APs which have a habit of showing up high than mine, but I have no problem with them now.</p>
<p>I have been using this set up under Fedora since FC6 days, but when I upgraded to F10, this stopped working. wifiroamd would try to scan for an AP, and not find anything. The change, it turns out, is that when I switched from using the iw3945 driver to the native iwl3945, wifiroamd could no longer see the wireless NIC due to the wpa_supplicant process, but NetworkManager could. Simply stopping and disabling wp_supplicant and NetworkManager, and wifiroamd started working again! I am a happy camper again.</p>
</div>
</article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/200901cmus-a-music-manager-for-the-terminal.html" class="u-url">C*MUS - A music manager for the terminal</a></h1>
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">Don Harper</span></p>
<p class="dateline"><a href="posts/200901cmus-a-music-manager-for-the-terminal.html" rel="bookmark"><time class="published dt-published" datetime="2009-01-12T17:01:00-06:00" title="2009-01-12">2009-01-12</time></a></p>
</div>
</header><div class="e-content entry-content">
<h1>C*MUS - A music manager for the terminal</h1>
<p><a href="http://cmus.sf.net/">C*mus</a> is an advanced music juke-box for *inx and Window operating systems. It can handle the modern audio file formats: FLAC, Ogg/Vorbis, MP3 , Wav, AAC , MP4, .mod, .s3m, .mpc, mpp, .mp+, .wma, and .wv . It also can deal with many different types of audio output systems: ALSA, libao, ARTS, OSS, Sun, and WaveOut on Windows. The typical features of an electronic juke-box are supported like play lists and random/shuffle play, in addition to easily switching between playing from the library, an artist, or a single album with a simple keystroke.</p>
<p>C*Mus is pretty painless to install from source. The website lists the build dependencies with links. There is no RPM .SPEC file on the web site, but you can use this <a href="http://www.duckland.org/files/cmus.spec">one</a>.</p>
<h2>En-queuing</h2>
<p>One of the features I really enjoy and use is the en-queue function. I tend to use this two ways. The first is when I am listening to a song, and want to listen to similar songs, I go find them in my library, and I queue them up with a simple keystroke. A dynamic play-list, if you will. Then, I can simply create a more permanent playlist from this temporary list.</p>
<p>The second way is using the helper program cmus-remote to be able to queue up tracks from a different terminal, or from a script. My podcatcher program (bashpodder) will queue up the podcasts it just downloaded for me, so I can listen to them first thing in the morning.</p>
<h2>Keystroke and CLI</h2>
<p>C<em>Mus is developed to be driven via keystrokes. The default mapping is set up to be comfortable for those use are familiar with VI but, it is very easy to remap the keys to make it more comfortable. C</em>Mus will automatically save the current settings on a clean exit. The default mappings for selecting and updating views, moving through songs forward and backwards in small and large increments, adding to play list and queue lists.</p>
<h2>Filters</h2>
<p>One of the very powerful features is simple filters. You can set a filter for your 80s Metal Bands or your Classical music. Many of the common tags can be used for filter on. Things like filename, artist, album, title, genre, discnumber, tracknumber, date (year), duration (seconds), and tag.</p>
</div>
</article>
</div>
<nav class="postindexpager"><ul class="pager">
<li class="previous">
<a href="index-6.html" rel="prev">Newer posts</a>
</li>
<li class="next">
<a href="index-4.html" rel="next">Older posts</a>
</li>
</ul></nav>
</div>
<!--End of body content-->
<footer>
Contents © 2015 <a href="mailto:duck@duckland.org">Don Harper</a> - Powered by <a href="http://getnikola.com" rel="nofollow">Nikola</a>
</footer>
</div>
</div>
<script src="assets/js/all-nocdn.js"></script><script>jQuery("a.image-reference").colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
moment.locale("");
fancydates(1, "YYYY-MM-DD");
</script><!-- end fancy dates -->
</body>
</html>