<?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>Linhost.info</title>
	<atom:link href="https://linhost.info/feed/" rel="self" type="application/rss+xml" />
	<link>https://linhost.info</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 26 Nov 2017 02:31:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.2.1</generator>
	<item>
		<title></title>
		<link>https://linhost.info/2017/11/16799/</link>
				<pubDate>Sun, 26 Nov 2017 02:31:00 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linhost.info/?p=16799</guid>
				<description><![CDATA[Excuse the occasional hiccup I&#8217;m currently rebuilding the site.]]></description>
								<content:encoded><![CDATA[<p>Excuse the occasional hiccup I&#8217;m currently rebuilding the site. </p>
]]></content:encoded>
										</item>
		<item>
		<title>Tar and compress a directory in Linux</title>
		<link>https://linhost.info/2017/03/tar-and-compress-a-directory-in-linux/</link>
				<pubDate>Wed, 01 Mar 2017 00:47:43 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linhost.info/?p=16786</guid>
				<description><![CDATA[The following will tar and compress the contents of a directory tar czf file.tar.gz input_directory The same can be extracted with tar but indicating<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>The following will tar and compress the contents of a directory </p>
<pre>tar czf file.tar.gz input_directory</pre>
<p>The same can be extracted with tar but indicating compression . </p>
<pre>tar xzvf file.tar.gz output_directory</pre>
]]></content:encoded>
										</item>
		<item>
		<title>Server Migration Bear With Me</title>
		<link>https://linhost.info/2017/02/server-migration-bear-with-me/</link>
				<pubDate>Tue, 21 Feb 2017 01:35:49 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://linhost.info/?p=16783</guid>
				<description><![CDATA[I&#8217;m in the process of migrating servers please bear with me incase somethings do not work as they should.]]></description>
								<content:encoded><![CDATA[<p>I&#8217;m in the process of migrating servers please bear with me incase somethings do not work as they should.</p>
]]></content:encoded>
										</item>
		<item>
		<title>Mount a USB Drive in Raspberry Pi With Read/Write Access- Linux</title>
		<link>https://linhost.info/2017/01/mount-a-usb-drive-in-raspberry-pi-with-readwrite-access-linux/</link>
				<pubDate>Tue, 24 Jan 2017 01:03:44 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16776</guid>
				<description><![CDATA[Because I tend to forget this is a simple way of mount a USB drive in Raspbian. Remember we are working with FAT/FAT32 formatted<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>Because I tend to forget this is a simple way of mount a USB drive in Raspbian. Remember we are working with FAT/FAT32 formatted drive and permissions are handled differently in the case of a FAT drive permissions are not supported .</p>
<p>First we need to find out how the system views our drive and partitions .</p>
<pre>
pi@raspberrypi:/mnt/usb $ ls /dev/sd*
/dev/sda  /dev/sda1
</pre>
<p>Create a mount point for the drive .</p>
<pre>$ sudo mkdir /mnt/usb</pre>
<p>Now that we know our drive is /dev/sda and the partition is /dev/sda1 we can proceed to mount . By making use of umask=000 we allow read, write and execute for all .</p>
<pre>$ sudo mount /dev/sda1 /mnt/usb -o umask=000</pre>
<p>Once mounted you can view the newly mounted drive and start writing to it .</p>
<pre>
pi@raspberrypi:/mnt/usb $ df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G   11G  3.7G  75% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M  4.0K  463M   1% /dev/shm
tmpfs           463M  7.1M  456M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p1   63M   21M   43M  34% /boot
/dev/sda1        30G   16K   30G   1% /mnt/usb
</pre>
]]></content:encoded>
										</item>
		<item>
		<title>Linux &#8211; Zero Out All Available Free Space</title>
		<link>https://linhost.info/2017/01/linux-zero-out-all-available-free-space/</link>
				<pubDate>Tue, 24 Jan 2017 00:47:40 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16781</guid>
				<description><![CDATA[Because I tend to forget. This is a simple way to zero out all free space on a drive all that is needed is<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>Because I tend to forget. This is a simple way to zero out all free space on a drive all that is needed is PV and administrative privileges .</p>
<p>If PV is not installed on the system you can install it via your package manager .</p>
<pre>$ sudo apt-get install pv</pre>
<p>We will be directing all /dev/zero output to a file in the target drive we wish to zero-out .  Once all free space is occupied in the target drive the operation will stop by itself .</p>
<pre>$ sudo pv /dev/zero > /mnt/usb/delete.me</pre>
<p>Sample output .</p>
<pre>
pi@raspberrypi:~ $ sudo pv /dev/zero > /mnt/usb/delete.me
 202MiB 0:00:06 [6.56MiB/s] [      <=>
</pre>
<p>Remove the resulting file .</p>
<pre>$ rm delete.me</pre>
]]></content:encoded>
										</item>
		<item>
		<title>Join multiple MP3s into a single file with Mp3Wrap</title>
		<link>https://linhost.info/2016/12/join-multiple-mp3s-into-a-single-file-with-mp3wrap/</link>
				<pubDate>Thu, 29 Dec 2016 21:45:55 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16747</guid>
				<description><![CDATA[Mp3Wrap is a simple tool all we need to do is indicate a filename for the resulting file followed by all the MP3 files<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>Mp3Wrap is a simple tool all we need to do is indicate a filename for the resulting file followed by all the MP3 files to be joined by Mp3Wrap. Mp3Wrap can be easily installed from the Ubuntu repository using apt-get.</p>
<pre>$ sudo apt-get install mp3wrap</pre>
<p>Explanation of command to be executed:</p>
<ul>
<li><strong>output.mp3</strong> &#8211; this is the name of the resulting file create by Mp3Wrap</li>
<li><strong>1.mp3, 2.mp3</strong> &#8211; and so on&#8230; this is where you would list all files to be joined by Mp3Wrap</li>
</ul>
<p>The resulting file will end with <strong>*_MP3WRAP.mp3</strong>.</p>
<pre> $ mp3wrap output.mp3 1.mp3 2.mp3</pre>
<pre>
Mp3Wrap Version 0.5 (2003/Jan/16). See README and COPYING for more!
Written and copyrights by Matteo Trotta - <matteo.trotta@lib.unimib.it>
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

  50 %	--> Wrapping 1.mp3 ... OK
  100 %	--> Wrapping 2.mp3 ... OK

  Calculating CRC, please wait... OK

output_MP3WRAP.mp3 has been created successfully!
Use mp3splt to dewrap file; download at http://mp3splt.sourceforge.net!
</pre>
]]></content:encoded>
										</item>
		<item>
		<title>Dump1090-mutability enabling &#8220;Distance from Site&#8221;</title>
		<link>https://linhost.info/2016/12/dump1090-mutability-enabling-distance-from-site/</link>
				<pubDate>Thu, 29 Dec 2016 19:48:50 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16722</guid>
				<description><![CDATA[By default Dump1090 interface will not display the distance between an aircraft and the site this can be easily corrected by editing a single<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p class="img-cr"><img src="http://cdn.linhost.info/static/12-29-16-lat-on-na.png" width="2782" height="1192" class="alignnone size-full" /></p>
<p>By default Dump1090 interface will not display the distance between an aircraft and the site this can be easily corrected by editing a single file and providing the latitude and longitude where the receiver(yours) is located. The file in question can be located for Dump1090-mutability at </p>
<pre>/etc/default/dump1090-mutability</pre>
<p>Before we can start editing the configuration file first we need to obtain the latitude and longitude of the site as I assume you don&#8217;t know this information I suggest using Google Maps to obtain it.</p>
<p>Visit <a href="http://google.com/maps">google.com/maps</a> search for the address where the receiver is located. Once you find the site(address) <strong>right click</strong> on the location to display the menu and select <strong>What&#8217;s here?</strong></p>
<p class="img-cr"><img src="http://cdn.linhost.info/static/12-29-16-site-address.png" alt="" /></p>
<p>Near the bottom of the window you should see the latitude and longitude of the site displayed. Copy this information exactly the way it appears.</p>
<p class="img-cr"><img src="http://cdn.linhost.info/static/12-29-16-site-lat-on.png" alt="" /></p>
<p>My installation runs on a Raspberry Pi 2, log in to the system where Dump1090 runs and with enough permission look for and edit the following parameters <strong>LAT= latitude, LON=longitude</strong> this are the parameters well be adding the latitude and longitude information to.</p>
<pre>sudo nano /etc/default/dump1090-mutability</pre>
<pre>
# If set, supplies a reference location for local position decoding.
LAT="35.084005"
LON="-106.643967"
</pre>
<p>We are almost done now just reboot dump1090.</p>
<pre>sudo service dump1090-mutability restart</pre>
<p>Dump1090-mutability should start reporting the distance.</p>
<p class="img-cr"><img src="http://cdn.linhost.info/static/12-29-16-lat-on.png" alt="" /></p>
]]></content:encoded>
										</item>
		<item>
		<title>Mikrotik RouterOS &#8211; Change SSH Default Port Number</title>
		<link>https://linhost.info/2016/04/mikrotik-routeros-change-ssh-default-port-number/</link>
				<pubDate>Sun, 24 Apr 2016 14:01:07 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16684</guid>
				<description><![CDATA[From the RouterOS command line move to /ip service and issue the print command this will display port numbers for various services and which<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>From the RouterOS command line move to <strong>/ip service</strong> and issue the <strong>print</strong> command this will display port numbers for various services and which of those services are currently enabled. I will also cover how to disable the services if you wish, the output below is from a recent RouterOS install.</p>
<pre>
[admin@MikroTik] /ip service> print
</pre>
<pre>
Flags: X - disabled, I - invalid
 #   NAME                                PORT ADDRESS                                                                  CERTIFICATE
 0   telnet                                23
 1   ftp                                   21
 2   www                                   80
 3   ssh                                 22
 4 XI www-ssl                              443                                                                          none
 5   api                                 8728
 6   winbox                              8291
 7   api-ssl                             8729
</pre>
<p>From <strong>/ip service</strong> set the new SSH port number. Pick a number you like or you can use the following list <a href="https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers">https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers</a>.</p>
<pre>
[admin@MikroTik] /ip service> set ssh port=2987
</pre>
<p>The change takes effectively immediately.</p>
<h3>Disable a Service</h3>
<p>Disabling a service is equally easy just type <strong>disable</strong> followed by the service name. It&#8217;s always a good idea to disable unused services. Below I&#8217;ve disable three different services.</p>
<pre>
[admin@MikroTik] /ip service> disable telnet

[admin@MikroTik] /ip service> disable ftp

[admin@MikroTik] /ip service> disable winbox
</pre>
<p>Issue the print command to verify the port change, note that certain services have a <strong>X</strong> in front of them indicating the service has been disabled.</p>
<pre>
[admin@MikroTik] /ip service> print
</pre>
<pre>
Flags: X - disabled, I - invalid
 #   NAME                  PORT ADDRESS                                                     CERTIFICATE
 0 XI telnet                  23
 1 XI ftp                     21
 2   www                     80
 3   ssh                   2484
 4 XI www-ssl                443                                                             none
 5   api                   8728
 6 XI winbox                8291
 7   api-ssl               8729                                                             none
</pre>
]]></content:encoded>
										</item>
		<item>
		<title>Raspberry Pi &#8211; Dump1090-Mutability and PiAware</title>
		<link>https://linhost.info/2016/04/raspberry-pi-dump1090-mutability-and-piaware/</link>
				<pubDate>Mon, 11 Apr 2016 02:31:14 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16623</guid>
				<description><![CDATA[I&#8217;ve been running a PiAware installation for the last couple of months but after a reinstall I notice some problems specifically with dump1090 provided<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>I&#8217;ve been running a <a href="http://flightaware.com/adsb/piaware/install">PiAware</a> installation for the last couple of months but after a reinstall I notice some problems specifically with dump1090 provided by the <a href="http://flightaware.com/adsb/piaware/install">PiAware installation instructions</a>. After searching on various forums I decided to give <a href="https://github.com/mutability/dump1090">dump1090-mutability</a> a fork of dump1090 a try and can report great success which is why I decided to list the steps needed to configure dump1090-mutability in a Raspbian install.</p>
<p><strong>Current set-up:</strong> Raspbian Jessie Lite on a Raspberry Pi 2 + RTL2832U.</p>
<h3>
Prepare Raspbian<br />
</h3>
<pre>
sudo apt-get update
</pre>
<pre>
sudo apt-get upgrade
</pre>
<h3>
Dump1090 Mutability Install<br />
</h3>
<p>Download the necessary .deb from GitHub.</p>
<pre>
wget https://github.com/mutability/mutability-repo/releases/download/v0.1.0/mutability-repo_0.1.0_armhf.deb
</pre>
<p>Install the downloaded .deb. Notice the version number.</p>
<pre>
sudo dpkg -i mutability-repo_0.1.0_armhf.deb
</pre>
<p>Once again update the installation.</p>
<pre>
sudo apt-get update
</pre>
<p>The GPG key provided with mutability-repo_0.1.0_armhf.deb expired which will result in an error every time you run apt-get we can fix the source for the error.</p>
<pre>
W: GPG error: http://repo.mutability.co.uk wheezy InRelease: The following signatures were invalid: KEYEXPIRED 1451307476 KEYEXPIRED 1451307476 KEYEXPIRED 1451307476
</pre>
<p>Now re-install <strong>mutability-repo</strong> this will pull the latest version with a valid signature.</p>
<pre>
sudo apt-get install mutability-repo
</pre>
<p>Install <strong>dump1090-mutability</strong> the version from the repository at the time of this writing was <strong>dump1090-mutability v1.14</strong>.</p>
<pre>
sudo apt-get install dump1090-mutability
</pre>
<p>Install the web server.</p>
<pre>
sudo apt-get install lighttpd
</pre>
<p>Enable module.</p>
<pre>
sudo lighty-enable-mod dump1090
</pre>
<p>Reload web server for changes to take effect.</p>
<pre>
sudo service lighttpd force-reload
</pre>
<p>Or you can reboot the entire installation which is why I recommend.</p>
<pre>
sudo reboot
</pre>
<p>On a web browser and enter the IP address for your Raspberry Pi followed by <strong>/dump1090</strong>.</p>
<pre>
http://your_ip_address/dump1090/
</pre>
<p class="img-cr"><a href="https://linhost.info/wp-content/uploads/2016/04/dump1090.jpg" rel="attachment wp-att-16629"><img src="https://linhost.info/wp-content/uploads/2016/04/dump1090.jpg" alt="dump1090" width="1440" height="900" class="alignnone size-full wp-image-16629" /></a></p>
<h3>
PiAware Install<br />
</h3>
<p>For the latest version of PiAware check the <a href="http://flightaware.com/adsb/piaware/install">FlightAware page</a>. At the time of this writing the current version was <strong>piaware_2.1-5</strong>.</p>
<pre>
wget http://flightaware.com/adsb/piaware/files/piaware_2.1-5_armhf.deb
</pre>
<p>Install the downloaded package.</p>
<pre>
sudo dpkg -i piaware_2.1-5_armhf.deb
</pre>
<p>You will receive multiple errors regarding missing dependencies let apt-get install the missing dependencies.</p>
<pre>
sudo apt-get install -fy
</pre>
<p>Auto-update the PiAware Software.</p>
<pre>
sudo piaware-config -autoUpdate 1 -manualUpdate 1
</pre>
<h3>
Connect To FlightAware<br />
</h3>
<p>Connect the PiAware install to flightAware by providing user credentials.</p>
<pre>
sudo piaware-config -user your_username -password
</pre>
<p>Restart PiAware.</p>
<pre>
sudo /etc/init.d/piaware restart
</pre>
<p>View the status of the install.</p>
<pre>
lventura@raspberrypi:~ $ sudo piaware-status
</pre>
<pre>
dump1090 is not running.
faup1090 is running.
piaware is running.
dump1090-mutabi is listening for connections on port 30005.
faup1090 is connected to port 30005.
piaware is connected to FlightAware.
dump1090-mutabi is producing data on port 30005.
</pre>
<p>The new install should start feeding data back to FlightAware.</p>
]]></content:encoded>
										</item>
		<item>
		<title>Raspbian &#8211; Dump1090 Not Running</title>
		<link>https://linhost.info/2016/04/raspbian-dump1090-not-running/</link>
				<pubDate>Mon, 04 Apr 2016 03:39:33 +0000</pubDate>
		<dc:creator><![CDATA[lventura]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://linhost.info/?p=16559</guid>
				<description><![CDATA[I came across a problem that only seems happen on PiAwawre self installs where Dump1090 will not run. pi@raspberrypi:~ $ sudo piaware-status dump1090 is<span class="ellipsis">..</span>]]></description>
								<content:encoded><![CDATA[<p>I came across a problem that only seems happen on PiAwawre self installs where Dump1090 will not run.</p>
<pre>
pi@raspberrypi:~ $ sudo piaware-status
</pre>
<pre>
dump1090 is not running.
faup1090 is not running.
piaware is running.
no program appears to be listening for connections on port 30005.
faup1090 is NOT connected to port 30005.
piaware is connected to FlightAware.
got 'couldn't open socket: connection refused'
maybe dump1090 is NOT producing data on port 30005.
</pre>
<p>Troubleshooting steps included the following:</p>
<p>I tried adding the password again maybe I made a mistake but it didn&#8217;t fix the problem.</p>
<pre>
sudo piaware-config -user username -password
</pre>
<p>I know the my RTL is recognized by Raspbian.</p>
<pre>
lsusb
</pre>
<pre>
Bus 001 Device 011: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 001 Device 010: ID 0bda:2832 Realtek Semiconductor Corp. RTL2832U DVB-T
Bus 001 Device 009: ID 05dc:a762 Lexar Media, Inc.
Bus 001 Device 013: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
</pre>
<p>Tried to Restart PiAware.</p>
<pre>
sudo /etc/init.d/piaware restart
</pre>
<p>And looked for any helpful output.</p>
<pre>
cat /tmp/piaware.out
</pre>
<p>On a forum there was a suggestion about blacklisting a module.</p>
<pre>
sudo nano /etc/modprobe.d/rtlsdr.conf
</pre>
<p>Add the line below to <strong>.conf</strong>.</p>
<pre>
blacklist dvb_usb_rtl28xxu
</pre>
<p>After making the changes reboot abd run the <strong>piaware-status</strong> command hopefully your output will change.</p>
<pre>
pi@raspberrypi:~ $ sudo piaware-status
</pre>
<pre>
dump1090 is running.
faup1090 is running.
piaware is running.
dump1090 is listening for connections on port 30005.
faup1090 is connected to port 30005.
piaware is connected to FlightAware.
dump1090 is producing data on port 30005.
</pre>
<h3>
Links<br />
</h3>
<p><a href="https://opendesignengine.net/news/53">https://opendesignengine.net/news/53</a><br />
<a href="http://discussions.flightaware.com/ads-b-flight-tracking-f21/help-no-ads-b-data-program-is-serving-port-30005-t35812.html">http://discussions.flightaware.com/ads-b-flight-tracking-f21/help-no-ads-b-data-program-is-serving-port-30005-t35812.html</a></p>
]]></content:encoded>
										</item>
	</channel>
</rss>
