<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>Nosbig.net</title>
	<atom:link href="http://www.nosbig.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nosbig.net</link>
	<description>Like my life, in a perpetual state of construction...</description>
	<lastBuildDate>Sat, 06 Aug 2011 07:38:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<!-- podcast_generator="Blubrry PowerPress/3.0.1" -->
	<itunes:summary>Like my life, in a perpetual state of construction...</itunes:summary>
	<itunes:author>Nosbig.net</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.nosbig.net/wp-content/plugins/powerpress/itunes_default.jpg" />
	<itunes:subtitle>Like my life, in a perpetual state of construction...</itunes:subtitle>
	<image>
		<title>Nosbig.net</title>
		<url>http://www.nosbig.net/wp-content/plugins/powerpress/rss_default.jpg</url>
		<link>http://www.nosbig.net</link>
	</image>
		<item>
		<title>Learning from Broken Equipment and Minor Mistakes</title>
		<link>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/</link>
		<comments>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 16:32:36 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=321</guid>
		<description><![CDATA[A few days ago, I noticed that websites were loading very slowly, particularly in the early stages.  It appeared as if there were problems with the DNS service being provided by my internal storage server.  I tried to SSH into &#8230; <a href="http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I noticed that websites were loading very slowly, particularly in the early stages.  It appeared as if there were problems with the DNS service being provided by my internal storage server.  I tried to SSH into the machine to do some investigation and access the Webmin web interface; neither option worked.  However, I was able to receive replys to pings sent to the server.  I knew something was up, but I would have to dig in to figure out exactly what.</p>
<p><span id="more-321"></span></p>
<p>After seeing these symptoms and a machine that is totally unresponsive, I chose to blindly reboot the machine, as I was running the server headless.  Not something I would <strong>ever</strong> do in a production environment, but it&#8217;s my home server.  After a reboot, the server wouldn&#8217;t even respond to ping requests, and I saw in my router that it had not registered its DHCP lease upon boot.  My obvious next step was to connect a monitor to this machine and actually see what was going on.  As I moved the machine around to plug in the monitor cable, I noticed that the steel case was warm (borderline hot, in fact) to the touch.  Once the monitor was connected, I immediately saw the root of the problem.  I was staring at a BIOS screen telling me the boot drive had failed.</p>
<p>Knowing what the problem was made for a clear path for recovering.  I located a replacement IDE hard drive and swapped it into the case and reloaded a stock installation of Debian 6, Squeeze.  Recreating the basic installation was no problem, and I added Webmin back onto the system.  Fortunately, I had no user data on the orignal hard drive, and I had kept the data volume in its own volume group, to avoid problems like this, should they ever come up.  The only parts of the configuration that were located on the original drive were mounting, NFS, Samba, and DNS configurations.  On the other hand, I had not gotten around to backing up that configuration to another machine to avoid such a problem.  ;-)</p>
<p>After getting a new boot drive with an OS on it, I moved to getting the data volume up and running.  Based upon <a title="A Weekend Project" href="http://www.nosbig.net/a-weekend-project/">my previous post</a>, the data lives inside of a LVM logical volume on top of a physical RAID1 array.  Since I was simply trying to locate and re-enable an existing array, I ran: &#8220;mdadm &#8211;assemble &#8211;scan&#8221; which found the two partitions in the RAID1 and activated them.  Since they had not been touched in quite some time, no resync was even necessary.</p>
<p>The next step was to locate and reactivate the logical volume so that I could actually mount and use the data stored on the volume.  I ran each of the LVM *scan commands, &#8220;vgscan&#8221;, &#8220;pvscan&#8221;, and &#8220;lvscan&#8221; to confirm the metadata had been preserved.  Everything looked good, so I just had to reactivate the volume with the &#8220;vgchange -y a&#8221; command, which tells LVM to activate all available volume groups and logical volumes.  I was finally able to mount the data drives and verify that all of the expected data was there.</p>
<p>Now that the data drives were healthy, I had to finish recreating the lost configurations.  I added a permanent entry in /etc/fstab to mount the volume at boot, along with my NFS exports.  Also, I added the local users to the system and gave Samba passwords.  My only time-consuming task was to re-enter the forward and reverse DNS entries for my internal machines and set the DNS forwarders.</p>
<p>Now that the configuration was back to where I wanted it, I took the extra step of using Webmin&#8217;s backup module to export all of the configuration information from the system to my laptop.</p>
<p>Once I really knew what was hapenning, the fix really didn&#8217;t take that long.  I spent about 4 hours between loading the OS, reactivating the data drives, and getting the local services set back up again.  With the added knowledge of RAID and LVM recovery in Linux, as well as configuration backups, it would probably only take about an hour; most of that time would be waiting on the OS to install to the drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/learning-from-broken-equipment-and-minor-mistakes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 5 Productivity Tools</title>
		<link>http://www.nosbig.net/top-5-productivity-tools/</link>
		<comments>http://www.nosbig.net/top-5-productivity-tools/#comments</comments>
		<pubDate>Tue, 17 May 2011 13:24:02 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=298</guid>
		<description><![CDATA[There are a ton of tools out in the Linux world which are able to simplify your life or add minutes or hours to your day by getting out of the way and letting you get to work or play. &#8230; <a href="http://www.nosbig.net/top-5-productivity-tools/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><!-- p, li { white-space: pre-wrap; } -->There are a ton of tools out in the Linux world which are able to simplify your life or add minutes or hours to your day by getting out of the way and letting you get to work or play. I thought I would share my favorite five productivity tools.</p>
<p><span id="more-298"></span></p>
<h2>OpenOffice &amp; LibreOffice</h2>
<p>Arguably one of the top open-source projects in history, particularly in terms of applications for regular users, <a title="OpenOffice" href="http://www.openoffice.org">OpenOffice</a> (and the more recently forked <a title="LibreOffice" href="http://www.libreoffice.org">LibreOffice</a>) has been well-regarded as a good replacement for Microsoft Office for most of those users. I would estimate that 85 to 90% of the features the majority of users take advantage of are available in an accessible and friendly format. The Writer, Calc, and Impress tools are comparable to Microsoft Office’s Word, Excel, and Powerpoint. Included is even a built-in PDF export tool, without the awkwardness for new computer users of a PDF printer.</p>
<h2>PyRoom</h2>
<p>For someone who has ADD, modern technology can be a very interesting experience, and one of distraction. Some programmers recognized this challenge and started writing tools which cut features to focus closely on the task of writing, whether it’s code or a doctoral dissertation. One of the first entries into this area is <a title="PyRoom" href="http://www.pyroom.org">PyRoom</a>. PyRoom starts as a full-screen program in black with a single box in the middle of the screen. This is the main interface for the program. Just below the box is a single line for information. To start, the status line offers the hint that you can use Control-H to pull up help. Other shortcuts are typically Control-[something]. There are no other distractions and no menu. This is the absolute essence of a minimalist text editor, and is available as a Debian package or a bundle of source code.</p>
<h2>FocusWriter</h2>
<p>After PyRoom was introduced, another group created <a title="FocusWriter" href="http://www.gottcode.org/focuswriter/">FocusWriter</a> on Windows. It was shortly ported to Linux and Mac, which means it could relatively easily be ported to any other operating systems. FocusWriter builds on the basic blank screen of PyRoom to add just enough features for me. It starts as a completely blank screen. If you hover over the top of the screen, the full graphical menu pulls down. At the bottom of the screen is a bad to allow you to switch between files, along with showing the word, character, and paragraph count. You can also theme the background with an image and colors, if you prefer to customize it.</p>
<p>FocusWriter, like I said, has just enough features for me, including:</p>
<ul>
<li>Cut/Copy/Paste</li>
<li>Spell Checking, including while you are typing with the classic red wavy underline</li>
<li>Basic find/replace functionality</li>
</ul>
<p>There are a few other features, including a quirky preference. For those folks who appreciate nostalgia, you can turn on typewriter sounds for each keystroke. Since I prefer the older, mechanical IBM keyboards with noisy switches, it is actually a helpful feature, motivating me to write and continue to attract focus to the program.</p>
<h2>Freemind</h2>
<p>The fourth tool on my list will help you organize your thoughts when brainstorming. <a title="Freemind" href="http://freemind.sf.net">Freemind</a> is classic mind-mapping software. Imagine back in primary school, having to write out mind maps on paper, with the bubbles connected by lines out from the middle. Freemind is a Java tool which does just that. You can use simple keystrokes, in addition to the mouse, to quickly add new nodes to the map. You can also drag and drop them around, along with expanding and collapsing any child bubbles.</p>
<p>Freemind is a dream when trying to organize your thoughts for any larger project or topic. As a student, I appreciate using it to plan out my papers for my English and business classes.</p>
<h2>mGSD/TiddlyWiki/GTD Applications</h2>
<p>My last tool is the most unusual. First, a little background:</p>
<ul>
<li>On the theme of focus and attention, David Allen’s “<a title="Getting Things Done" href="http://www.davidco.com">Getting Things Done</a>�? has gotten some exposure on helping by providing a system to organize the daily tasks of work, home, and more. The “Getting Things Done�? (GTD) philosophy is gaining traction in the technology world. I would highly encourage anyone who has trouble focusing or simply a lot on their plate to look to this book to help bring everything under control.</li>
<li>Some creative programmers took a wiki and made it work in a self-contained file, on your local hard drive. This tool, <a title="TiddlyWiki" href="http://www.tiddlywiki.com">TiddlyWiki</a>, uses mainly Javascript to create little miniature blocks of content that can link together, just like Wikipedia can do, but on a much smaller scale. It can easily be used as a free-form personal notebook.</li>
</ul>
<p><a title="mGSD" href="http://mgsd.tiddlyspot.com">mGSD</a> is a new tool that takes TiddlyWiki and expands that to completely embrace the GTD framework from the book. You can dynamically add tasks and projects, as well as organizing these into the various areas of responsibility and contexts where we might work. You simply visit the site and download a “blank�? file. Use the Open command in your browser (Firefox is <em><strong>highly</strong></em> recommended.) and get right to work. The options can be turned on to automatically save the main wiki file, along with making a backup of the older versions of the file.</p>
<p>The beautiful irony of this list is that all the tools (other than PyRoom) are available as <a title="portable apps" href="http://www.portableapps.org">portable apps</a> to take with you on your flash drive, if you are ever using another computer without your tools involved.&nbsp; And with such an embarrassment of riches, I thought I would share my favorite tools to keep myself on-task and avoid the far-too-frequent interruptions and distractions while I am trying to work.&nbsp; What are your favorite tools?&nbsp; What tools have you tried that you didn&#8217;t like?&nbsp; Please, leave a comment or send a message through the <a title="Contact" href="http://www.nosbig.net/contact/">contact form</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/top-5-productivity-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Weekend Project</title>
		<link>http://www.nosbig.net/a-weekend-project/</link>
		<comments>http://www.nosbig.net/a-weekend-project/#comments</comments>
		<pubDate>Fri, 13 May 2011 14:19:22 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=294</guid>
		<description><![CDATA[This weekend, I finished the bulk of the work of a long-standing project I had been pondering. I had all sorts of data lying around on my desktop machine that I didn’t want to lose. Photos, videos, school assignments, and &#8230; <a href="http://www.nosbig.net/a-weekend-project/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This weekend, I finished the bulk of the work of a long-standing project I had been pondering. I had all sorts of data lying around on my desktop machine that I didn’t want to lose. Photos, videos, school assignments, and the like. I wanted to be able to back up multiple machines and be able to synchronize my documents, especially while I was using my laptop. Knowing what I wanted to do, and being the IT control freak I am, I chose to build out a home storage appliance. I thought I would share my build process.</p>
<p><span id="more-294"></span></p>
<p>The hardware you can use for this project is fairly straightforward. I used a hodgepodge of parts I had laying around. I used:</p>
<ul>
<li>Case: older Antec case</li>
<li>Motherboard: Mini-ITX M10000N small form-factor motherboard, nearly everything integrated</li>
<li>System Hard Disk Drive: IDE drive I had lying around, 30 GB</li>
</ul>
<p>I had the bulk of what I needed for the project, but I still needed the drives and a way to attach them to the motherboard. I ordered:</p>
<ul>
<li>2 SATA hard drives, 1TB, from <a title="NewEgg" href="http://www.newegg.com">NewEgg</a></li>
<li>SATA Host-Bus Adapter to add SATA ports to the system from <a title="Deal Extreme" href="http://www.dealextreme.com/p/silicon-image-4-port-sata-pci-expansion-card-4660">Deal Extreme</a></li>
<li>Assorted SATA data and power cables from <a title="MonoPrice" href="http://www.monoprice.com">MonoPrice</a></li>
</ul>
<p>Once all the parts arrived, I started my build. For anyone who has built a computer or replaced parts knows how simple the build really is. The motherboard is mounted into the case, along with the drives. The SATA card is placed into this motherboard’s PCI slot, and the cabling is connected. About an hour later (I removed a VERY old motherboard from this case.), I had the system built and ready for the software for the project.</p>
<p>Several distributions of free software could manage both the storage array and the services designed to present the array to the rest of the network. I chose to use a stock installation of <a href="http://www.debian.org">Debian</a> 6.0 stable, with as few packages installed as possible, to keep the bloat down. Of the specific software that I made sure to have installed was the SSH server, NFS file sharing services, and Samba file sharing services. After I installed Debian, I manually installed&nbsp;<a href="http://www.webmin.com">WebMin</a> to provide a web interface for configuring everything.</p>
<p>First business is to create the array from the SATA disks. I used the cfdisk utility at the command-line to create a single partition over the entire drive, using a partition type of DA, which is listed as a Non-FS data partition. I then repeated the procedure for the second disk. Next, I used the webmin panel to create a RAID1 array (/dev/md0) with both of the disks. After I had the array, I created a new LVM volume group to contain the data array. Creating the volume group in Webmin requires a physical volume to be added to the newly created volume group; I chose the RAID array. Finally, I created an ext4 filesystem and waited for the disks in the array to sync. The synchronization process took roughly eight hours.</p>
<p>The next day, I used webmin to create some SMB shares and NFS filesystems. These will allow my Linux machines to use&nbsp;the data as if it were local and give access to the couple of Windows-centric devices available on my network.</p>
<p>With two fairly short days, and some waiting for disk synchronizing, my file storage device is complete. I am in the process of copying my data from my unreliable desktop to the device as we speak. Among my future improvements and enhancements to the configuration will be a tweaking the mounts and setting up a dedicated space for each user, instead of&nbsp;just a single wide-open storage space. &nbsp;From the hardware side, I eventually will upgrade to a hot-swap carriage from <a title="IcyDock" href="http://www.icydock.com/goods.php?id=128">IcyDock</a>. &nbsp;I can also add up to two more hard drives to the existing card. &nbsp;As long as the drives are at least 1TB, I can expand the existing RAID1 into a RAID5. &nbsp;If the drives are larger, I will create one partition as large as the partitions on the original drives. &nbsp;I can then create a new partition for the rest of the new drives and create a new array. &nbsp;This is, to the best of my knowledge, is the way the Drobo allows for expanding storage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/a-weekend-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>It&#8217;s a Small World After All&#8230;</title>
		<link>http://www.nosbig.net/its-a-small-world-after-all/</link>
		<comments>http://www.nosbig.net/its-a-small-world-after-all/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 03:22:11 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Disney]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=259</guid>
		<description><![CDATA[I spend a lot of time talking about technology on this blog, specifically the computerized variety. One of my other favorite interests is Disney. The parks, the man, the magic. While checking out the Disney Parks Blog and their year-in-review &#8230; <a href="http://www.nosbig.net/its-a-small-world-after-all/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I spend a lot of time talking about technology on this blog, specifically the computerized variety.  One of my other favorite interests is Disney.  The parks, the man, the magic.  While checking out the <a href="http://disneyparks.disney.go.com/blog/">Disney Parks Blog</a> and their year-in-review posts, I found this amazing video about a day in the life of the Magic Kingdom, as if recreating the day in miniature&#8230;</p>
<p style="text-align: center;"><object id="viddler" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="437" height="311" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="fake=1" /><param name="src" value="http://www.viddler.com/simple_on_site/5e85cf76" /><param name="name" value="viddler" /><param name="allowfullscreen" value="true" /><embed id="viddler" type="application/x-shockwave-flash" width="437" height="311" src="http://www.viddler.com/simple_on_site/5e85cf76" allowscriptaccess="always" allowfullscreen="true" flashvars="fake=1" name="viddler"></embed></object></p>
<p>Looking closely, you can see that the people in the video are not repeated or cloned&#8230; These were actual photos taken in time-lapse using a technique and lens called <a href="http://en.wikipedia.org/wiki/Tilt-shift_photography">tilt-shift photography</a> to create the effect of seeing the landscape as a miniature.</p>
<p>There are a couple of other videos like this on the same site, one detailing a visit to <a href="http://disneyparks.disney.go.com/blog/2009/12/a-model-day-at-epcot-exclusive-disney-parks-tilt-shift-video/">Epcot</a> and one featuring one of the <a href="http://disneyparks.disney.go.com/blog/2010/04/a-model-vacation-on-disney-cruise-line-exclusive-tilt-shift-video/">Disney Cruise Line ships</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/its-a-small-world-after-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Life with Asterisk &#8212; Part 4</title>
		<link>http://www.nosbig.net/my-life-with-asterisk-part-4/</link>
		<comments>http://www.nosbig.net/my-life-with-asterisk-part-4/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 19:07:16 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=251</guid>
		<description><![CDATA[With the challenges of Part 3 behind me, I was optimistic of the possibility of resolving the lingering issues with my phone system. One of the first pieces that I dabbled with was setting up paging and conference calls. When &#8230; <a href="http://www.nosbig.net/my-life-with-asterisk-part-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With the challenges of <a href="http://www.nosbig.net/my-life-with-asterisk-part-3">Part 3</a> behind me, I was optimistic of the possibility of resolving the lingering issues with my phone system.</p>
<p><span id="more-251"></span></p>
<p>One of the first pieces that I dabbled with was setting up paging and conference calls.  When I was testing conference calling, the conference would disconnect almost immediately.  From my past experience with Asterisk, I know that Asterisk needs a timinig source.  Most larger/enterprise PBX units would not have a trouble as they would be using an analog or digital interface card which provides the timing required.  In my case, I am working with nothing but VoIP, so I have no interface card to provide a timinig source.  In the past, a dummy driver is provided that can be loaded to allow Asterisk to interface with the Linux kernel&#8217;s timinig capabilities.</p>
<p>The only problem is that I can&#8217;t locate the module either in the directory where it should have been located or through an automated search of the filesystem.  I was truly stuck.  Of course, I turn to Google.  Surprisingly, Google turned up no answers to where this driver could be locataed without recompiling the drivers.  I am not normally hesitant to compile code, as the developers make this easy.  My instincts told me there had to be a provision for handling this problem with the distribution as-is.</p>
<p>Fortunately, I had one more source of answers that I had in my back pocket.  I fired up my IRC client and connected to the #asterisk chat room on the <a href="http://www.freenode.net">Freenode IRC network</a>.  The regulars there include folks who live and breath Asterisk every day, so I know the folks there have the answers I need.  Naturally, after I posed my question to the room, a quick answer was offered.  I needed to open /etc/dahdi/modules and comment out all references to hardware drivers, followed by a restart of the dahdi service.  When I restarted the dahdi service, it reported that dahdi_dummy was loaded.  Apparently, the dahdi driver assumes that if no other drivers are to load, then use the default driver to provide dahdi_dummy to allows conferences to work.</p>
<p>Second, I wanted to keep an eye on what calls I was making and receiving.  FreePBX includes the capability on a &#8220;Reports&#8221; tab on the interface.  I have also had previous experience fixing this issue.  While the tool works, no data is saved to the database to search.  For whatever reason, the asterisk16-addons-mysql package is not installed by default.  Installing the package and restarting Asterisk allows the reporting to work as expected.</p>
<p>Finally, an issue occured during the initial configuration of this Asterisk system which would have prevented the saving of a new configuration.  After making changes within the FreePBX interface, the administrator needs to apply the changes.  When I first attempted to apply the changes I made to the system, I received an error message regarding the &#8220;retrieve_conf&#8221; script not running.  Google was able to turn up the answer.  By default, both the iptables firewall and the SELinux addon are activated by default.  I used the built-in setup utility to turn off each of those services; the script worked immediately.</p>
<p>After a crazy two days of work, investigation, and both frustration and fun, my Asterisk phone system is finally where I want it.  I have inbound and outbound calling on two phone numbers on a single trunk and connected to two internal SIP devices.  CallerID is being sent for the correct number and I have a basic conference room setup.  There are lots of tweaks and additions that I would like to make, but I think I will leave that to another entry after I have made them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/my-life-with-asterisk-part-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Life with Asterisk &#8212; Part 3</title>
		<link>http://www.nosbig.net/my-life-with-asterisk-part-3/</link>
		<comments>http://www.nosbig.net/my-life-with-asterisk-part-3/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:03:09 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=248</guid>
		<description><![CDATA[At the end of Part 2, I finally have AsteriskNOW installed on my phone system hardware. Now, we have to get to the real work of configuring the system to actually do useful (and not so useful) work. My first &#8230; <a href="http://www.nosbig.net/my-life-with-asterisk-part-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At the end of <a href="http://www.nosbig.net/my-life-with-asterisk-part-2/">Part 2</a>, I finally have AsteriskNOW installed on my phone system hardware.  Now, we have to get to the real work of configuring the system to actually do useful (and not so useful) work.</p>
<p><span id="more-248"></span></p>
<p>My first task was to create internal extensions and configure the phones to use those extensions.  Very little trouble was had in getting my <a href="http://en.wikipedia.org/wiki/Linksys_PAP2">Linksys PAP2T-NA</a> analog phone adapter to function.  My <a href="http://conft.com/en/US/products/hw/phones/ps379/ps1854/index.html">Cisco 7940</a> is always a little trickier, just because of the provisioning capabilities.  I had to adjust the FreePBX configuration to turn off NAT for that device, as my 7940 always stays here in my network.  Otherwise, the configuration consisted of setting proxy information and matching secrets on the phones.</p>
<p>Next, I set about configuring outbound telephony service.  I prefer a provider who can give service via the IAX protocol, as it was created by the Asterisk developers to compensate for some of the drawbacks of the SIP protocol.  My provider, who I can&#8217;t recommend enough, is TelIAX.  I configured the trunk information and it registered and came up immediately.  With FreePBX, inbound and outbound routes are configured independently of trunk connectivity and each other.  I set up an inbound route for my primary phone number and an outbound 10-digit dialling route.</p>
<p>Each of my two phones were able to make and receive calls both internally and externally.  At this point, my phone system is considered usable.  Finally, I can relax and take some time to enjoy the fruits of my labor.  However, not everything is entirely up to my standards, a few loose ends need resolved.  Stay tuned for more&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/my-life-with-asterisk-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Life with Asterisk &#8212; Part 2</title>
		<link>http://www.nosbig.net/my-life-with-asterisk-part-2/</link>
		<comments>http://www.nosbig.net/my-life-with-asterisk-part-2/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 17:50:12 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=244</guid>
		<description><![CDATA[When we left off, I had finally decided to use AsteriskNOW and replace my hand-crafted dialplan with something more flexible and easier to modify. Before I could do anything else, I had to get the distribution installed. What follows was &#8230; <a href="http://www.nosbig.net/my-life-with-asterisk-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When we <a href="http://www.nosbig.net/my-life-with-asterisk-part-1/">left off</a>, I had finally decided to use AsteriskNOW and replace my hand-crafted dialplan with something more flexible and easier to modify.  Before I could do anything else, I had to get the distribution installed.  What follows was a late night of problem solving and fun&#8230;  <img src='http://www.nosbig.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><span id="more-244"></span></p>
<p>The most obvious route was to install the CD as-is.  Unfortunately, this machine has no optical drive attached, and I did not feel like opening the system and adjusting the cabling to support that.  I also don&#8217;t have a USB/IDE adapter.  So, I first thought to use Unetbootin to install from a USB flash drive.  After using Unetbootin to place the files on the flash drive, I attempted to boot to it.  The motherboard supports USB floppy drives and CD-ROM, but not flash drives.</p>
<p>My next trick was to attempt to boot the ISO over the network, which I have successfully done with <a href="http://www.pfsense.org">pfSense</a> and the Debian install CD.  A quick copy of the ISO into my TFTP boot directory and a modification to the PXE boot config were all that were necessary before rebooting my phone system.  The PXE boot system comes up, and I attempt to boot the ISO.  I was hopeful, but this worked like the rest of this install, an epic fail.  Looking at the logs, I discovered that the TFTP server can&#8217;t handle serving a 650MB ISO, while it has easily handled a 60 and a 130 MB one.  Another dead end, or is it?</p>
<p>I stepped back to think about the situation&#8230;  If I can&#8217;t boot the ISO, what can I do?  I remembered that when I copied the ISO to the TFTP root directory, I also copied the extracted files that Unetbootin has placed on the flash drive.  I knew that PXE and USB booting, as implemented on Linux, are very similar.  I configured the PXE environment to boot the extracted kernel.  I was delighted to see that the installer loaded at all, after everything that had not worked as expected so far.</p>
<p>Once the installer started, it could not find the packages to install and asked which method to use to locate the packages.  One of the HTTP.  I created a new symbolic link in Apache&#8217;s DocumentRoot pointing to the TFTP root directory, making it accessible via HTTP.  The installer immediately found the files and was able to install almost all of the packages.  One package couldn&#8217;t be found, due to Unetbootin truncating the name.  I renamed the file and clicked retry in the installer.  The installer finished successfully.  I rebooted and was able to log into the system.</p>
<p>After all of this craziness, I was ecstatic at being able to finally have a usable web interface on my phone system.  Now, it&#8217;s on to configuring the system&#8230;  Enjoy part 3&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/my-life-with-asterisk-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Life with Asterisk &#8212; Part 1</title>
		<link>http://www.nosbig.net/my-life-with-asterisk-part-1/</link>
		<comments>http://www.nosbig.net/my-life-with-asterisk-part-1/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:52:06 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=239</guid>
		<description><![CDATA[So, I started using Asterisk a few years ago. I started working for a small IT company; my prime focus was on developing a sellable SMB phone system product. Unfortunately, the firm folded just as we were ready to launch. &#8230; <a href="http://www.nosbig.net/my-life-with-asterisk-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, I started using <a href="http://www.asterisk.org">Asterisk</a> a few years ago.  I started working for a small IT company; my prime focus was on developing a sellable SMB phone system product.  Unfortunately, the firm folded just as we were ready to launch.</p>
<p><span id="more-239"></span></p>
<p>At the time, the dialplans and routing all needed to be crafted by hand, in the early 1.2 days.  A healthy portion of my time was involved in learning about extensions, contexts, and priorities.  As I looked forward to implementing Asterisk at home, I found a fun device called the Linksys <a href="http://en.wikipedia.org/wiki/NSLU2">NSLU2</a>, affectionately nicknamed the &#8220;Slug.&#8221;  After attaching a 4GB flash drive, I installed <a href="http://www.debian.org">Debian</a> and Asterisk, again with a handcrafted dialplan.  Fast forward another year, I had upgraded the hardware to a <a href="http://www.mini-itx.com">Mini-ITX</a> system with a hard drive and no CD drive. Through all this time, I was hand-crafting a dialplan.</p>
<p>While my knowledge of Asterisk dialplans grew, several web interfaces became usable.  I and some close friends tried to use the AsteriskGUI created by <a href="http://www.digium.com">Digium</a> from the original <a href="http://www.asterisknow.org">AsteriskNOW</a> distribution.  At the time, the AsteriskGUI was somewhat usable but had some significant bugs;  I continued to use Asterisk with a hand-written dialplan.  Since then, <a href="http://www.trixbox.org">Trixbox</a> was the biggest proponent of the <a href="http://www.freepbx.org">FreePBX</a>.  Once AsteriskNOW added FreePBX as an option, I figured it was worth a try.  After setting up a demo system and dabbling with it, I was pleased.  My only hestiation was that the base distribution was and is <a href="http://www.centos.org">CentOS</a>, which is a fine base, but I tend to prefer Debian-based distros&#8230;</p>
<p>With that in mind, I have tried at least 3 or 4 times over the last few years to install FreePBX on my existing Debian-based system with its custom dialplan.  Each time, I have fallen short of getting it setup.  Mostly, I just haven&#8217;t invested the time to really solving that problem.  In stead, I had the chance to spend the evening helping my buddy <a href="http://kniselyknows.blogspot.com/">Mike</a> learn all about Asterisk.  We spent the time with the newest 1.7 version of AsteriskNOW.  It was fairly clear, after some experimentation, that I needed to leverage this much more flexible tool to maintain my phone system.  I tried one final time to install FreePBX on my phone system, with the same results as before, incomplete with too many holes and issues for me to spend my time with.</p>
<p>That night, after Mike had gone, I resigned myself to replacing that Debian base with the CentOS base of the AsteriskNOW distribution, figuring this was easier.  Of course,  nothing about this install was easy.  I&#8217;ll share more in part 2&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/my-life-with-asterisk-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Smoothing Off Some Rough Edges</title>
		<link>http://www.nosbig.net/smoothing-off-some-rough-edges/</link>
		<comments>http://www.nosbig.net/smoothing-off-some-rough-edges/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 05:44:00 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=150</guid>
		<description><![CDATA[Lately, I have been spending some quality time again with my TC1000 from Compaq.  I purchased mine last year, along with two friends of mine.  We all have taken different approaches to making the tablets work well. I have been &#8230; <a href="http://www.nosbig.net/smoothing-off-some-rough-edges/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Lately, I have been spending some quality time again with my TC1000 from Compaq.  I purchased mine last year, along with two friends of mine.  We all have taken different approaches to making the tablets work well.</p>
<p><span id="more-150"></span></p>
<p>I have been using the tablet off and on since then, with most of the functionality available while logged in, but there have been a few rough edges.  With a tablet PC, how do I log into the tablet while it is undocked from the keyboard?  I have used a great on-screen keyboard/handwriting recognition tool called <a title="Cellwriter" href="http://risujin.org/cellwriter/">Cellwriter</a>.  It requires a little training, but the tool is very accurate after training.  There are two instances where a user needs to enter a password, when logging in and when unlocking the screensaver.</p>
<ul>
<li>Login: I use Gnome, so GDM is the login manager I prefer on this tablet.  Changing the configuration was fairly wasy.  The configuration file, in Debian, is /etc/gdm/Init/Default.  I found that a single line, added above the final &#8220;exit 0&#8243; line, was enough to add the keyboard: &#8220;cellwriter &#8211;keyboard-only &#8211;window-x 170 &#8211;window-y 568 &amp;&#8221; and restart X by logging out.</li>
</ul>
<ul>
<li>Screensaver: The screensaver was slightly more difficult, requiring two steps to configure within gconf-editor:</li>
</ul>
<blockquote>
<ol>
<li>Enable the embedded_keyboard_enabled key in /apps/gnome-screensaver.</li>
<li>Edit the embeddes_keyboard_command to include: /usr/bin/cellwriter &#8211;keyboard-only &#8211;xid</li>
</ol>
</blockquote>
<p>I could have chosen one of a number of alternative keyboards, but Cellwriter works so well and looks so clean compared to the other tools I had tried.  There are two issues that I have been dealing with with little success&#8230;</p>
<p>First, the &#8211;keyboard-only flag is in both locations to run the keyboard without regards to the written input.  I expected to need that during login, as GDM has idea who is logging on until after they have logged on and GDM is no longer needed.  However, I did try to use it normally with the screensaver login, and I could not get gnome-screensaver to accept my known-good password while using the handwriting portion of the application.  While I would like to be able to write my password, your entire password remains on the screen in the input box until you accept the input.  So, I will try to get at working sometime, but it probably better that i have to type my password, keeping it hidden from view.</p>
<p>Second, each of the applications would randomly spam one of the input buttons as I was typing on the screen.  This forces me to have to simply hit the enter key and start again.  At some point, I will have to try using the native fpit driver within Xorg.  I might already be, now that I have upgraded my system to the post-Lenny testing version of Debian (Squeeze).  I haven&#8217;t otherwise updated the system&#8217;s overall configuration in several months.</p>
<p>So, hopefully, I can start getting even more utility out of this again, without the encumberance of this keyboard.  As much as I would like to try one of the new netbooks, like the Acer Aspire Once or the HP Mini 1000, the lack of a touch screen makes those devices a less-attractive form-factor that this handy piece of gear.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/smoothing-off-some-rough-edges/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Tale of Two Services</title>
		<link>http://www.nosbig.net/a-tale-of-two-services/</link>
		<comments>http://www.nosbig.net/a-tale-of-two-services/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:40:23 +0000</pubDate>
		<dc:creator>Nosbig</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.nosbig.net/?p=146</guid>
		<description><![CDATA[Yesterday afternoon, my girlfriend discovered a particularly large volume of voicemails on her phone, after having cleaned out her mail box just 36 hours prior.  She listened to several blank voicemails, as well as one from someone who wanted us &#8230; <a href="http://www.nosbig.net/a-tale-of-two-services/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday afternoon, my girlfriend discovered a particularly large volume of voicemails on her phone, after having cleaned out her mail box just 36 hours prior.  She listened to several blank voicemails, as well as one from someone who wanted us to return their call&#8230;</p>
<p><span id="more-146"></span></p>
<p>I began investigating by looking into the metadata for the voicemails which were left; all were from unusual phone numbers outside of our area code.  My next trip was to the CDR records and my provider&#8217;s call history.  These sources showed that over 1000 phone calls were attempted to be connected through our phone system to various communities around the country.  Two patterns emerged while looking at the details of the calls:</p>
<ul>
<li>The calls were being generated in a non-sequential pattern; clearly an unscrupulous telemarketer was war-dialing to South Carolina, Michigan, and Virginia.</li>
<li>All of the outbound calls were originating with my girlfriend&#8217;s CallerID.</li>
</ul>
<p>So, I knew what was going on, but I had yet to determine to how this incident occured.  Further digging revealed that the Linksys ATA being used internally was lagging significantly and intermittently.  It was a moment of epiphany; I understood where the problem was, and I could take action to address it.</p>
<p>Several years ago, I installed an Asterisk server to provide home phone service with a company that provided an IAX trunk.  At the time, all we were using softphones to make and receive calls.  Over time, I upgraded to a Cisco 7940 for myself and an analog cordless phone on a Linksys ATA for my girlfriend.  At the time I installed the ATA, I had not used a significant amount of security of the SIP peer registration, as the network was firewalled from the Internet.</p>
<p>Fast forward to 5 months ago&#8230;  I obtained a business phone service through a major provider using SIP.  Due to their configuration, I was required to open the SIP and RTP ports to the general Internet and forward them to my Asterisk server.</p>
<p>Now, we return to the present time.  Several days ago, this telemarketer scanned my router, found open SIP ports, and began to issue a brute-force attack against my Asterisk server.  The telemarketer scanned every possible 3 and 4 digit peer name, was able to find the Linksys ATA&#8217;s peer name, and was quickly able to brute-force the password.  With this information, the telemarketer was able to register as that peer and make calls outbound, according to the dialplan configured for my girlfriend.  My Cisco&#8217;s peer was not impersonated, but it would not be likely to be responsible for outbound calling due to the unique dialplan I am using.</p>
<p>With the understandng of what has happened, I could work to correct and block the means by which this telemarketer was using my phone system and service:</p>
<ol>
<li>I unloaded chan_iax.so to remove the possibility of additional phone calls being made.</li>
<li>I then enabled a moderate amount of security, particularly a random password for each of my SIP devices.</li>
<li>Next, I modified my firewall configuration to drop all packets through my router which contained the IP address from which the attack came.</li>
<li>I then re-enabled the IAX phone service by reloading the chan_iax.so module.</li>
</ol>
<p>After the initial security containment, I turned my focus to handling the inbound phone calls being returned based upon the messages left with the various victims around the country.  I recorded an announcement indicating what had happened and that the compromise was taken care of.  Finally, I crafted the dialplan to play this announcement to every caller not from a local phone number.</p>
<p>Overall, this breach was not as extensive as it could have been, but it does illustrate that security must be vigilantly monitored and maintained.  My complacency in the security of my network ultimately led to this incident.  Fortunately, it does not seem to have led to any major financial loss to any party, including myself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nosbig.net/a-tale-of-two-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

