<?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>Tux Tweaks</title>
	<atom:link href="http://tuxtweaks.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://tuxtweaks.com</link>
	<description>Linux Tweaks, HowTo&#039;s and Reviews</description>
	<lastBuildDate>Sat, 07 Dec 2019 22:54:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>
	<item>
		<title>Linux Network Speed Test</title>
		<link>https://tuxtweaks.com/2014/11/linux-network-speed-test/</link>
					<comments>https://tuxtweaks.com/2014/11/linux-network-speed-test/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Wed, 05 Nov 2014 04:30:47 +0000</pubDate>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[netcat]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2946</guid>

					<description><![CDATA[I recently purchased a power line network adapter and wanted to see how it performed relative to the stated specs on the packaging. After playing around with wget and sftp to copy files from my desktop to my laptop I wondered if there was a better way to test network speed without involving the hard [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I recently purchased a power line network adapter and wanted to see how it performed relative to the stated specs on the packaging. After playing around with <strong>wget</strong> and <strong>sftp</strong> to copy files from my desktop to my laptop I wondered if there was a better way to test network speed without involving the hard drive of my server or my client machines. What I found was that it&#8217;s possible to use a few simple commands on the Linux command line to test local network speed without copying actual files.<span id="more-2946"></span></p>
<p>Since I&#8217;m using this to test the speed of my home network, I need two machines up and running Linux on my LAN. I&#8217;ll call the first machine <strong>Desktop</strong> and the second machine <strong>Laptop</strong>.</p>
<h2>Start Netcat to Listen</h2>
<p>I&#8217;m going to use a utility called <strong>netcat</strong>, or <strong>nc</strong> to listen on a particular network port on the <strong>Desktop</strong> machine. Enter the following command into a terminal on <strong>Desktop</strong>:</p>
<p>[term]nc -lk 2112 &gt;/dev/null[/term]</p>
<p>This tells the <strong>Desktop</strong> machine to listen for network traffic on port 2112 and to keep listening. Any output is sent to /dev/null.</p>
<h2>Linux network speed test: dd and netcat</h2>
<p>Now that the first machine, <strong>Desktop</strong>, is set up to listen, I&#8217;ll use the second machine, <strong>Laptop</strong>, to send and receive data to test the network. The command below assumes that the IP address for <strong>Desktop</strong> is <strong>192.168.2.2</strong>. Adjust the address accordingly for your network. From a terminal on <strong>Laptop</strong>, enter the following:</p>
<p>[term]dd if=/dev/zero bs=16000 count=625 | nc -v 192.168.2.2 2112[/term]</p>
<p>The first part of the command tells the machine to copy 10 megabytes of data from /dev/zero in 16 kilobyte blocks. The part after the pipe tells it to send that to the <strong>Desktop</strong> machine over port 2112.</p>
<p>You should see output similar to the screen shot below. In my case it showed that my wireless network is performing at 8.9 megabytes per second, or 71.2 megabits per second.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/11/linux_network_test.png"><img fetchpriority="high" decoding="async" class="aligncenter wp-image-2947 size-medium" src="https://tuxtweaks.com/wp-content/uploads/2014/11/linux_network_test-300x207.png" alt="Linux Network Speed Test" width="300" height="207" srcset="https://tuxtweaks.com/wp-content/uploads/2014/11/linux_network_test-300x207.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/11/linux_network_test-150x103.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/11/linux_network_test.png 662w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>Once you&#8217;re done testing, go to the terminal on Desktop and use <strong>[Ctrl]+C</strong> to stop <strong>netcat</strong>.</p>
<p>So there you have it. A simple way to perform a Linux network speed test from the command line. You can adjust the count parameter to send smaller or larger amounts of data if you like.</p>
<p>Look for my review of the TRENDnet TPL-406E power line adapter in a future post.</p>
<p>This content originally appeared on <a title="Linux Tweaks, HowTo's and Reviews" href="https://tuxtweaks.com/">Tux Tweaks</a> at <a title="Linux Network Speed Test" href="https://tuxtweaks.com/2014/11/linux-network-speed-test/"><span id="sample-permalink" tabindex="-1">https://tuxtweaks.com/2014/11/<span id="editable-post-name" title="Temporary permalink. Click to edit this part.">linux-network-speed-test</span>/</span></a>. Copyright 2014</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/11/linux-network-speed-test/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2946</post-id>	</item>
		<item>
		<title>Netflix on Linux &#8211; Now Works With Chrome Browser</title>
		<link>https://tuxtweaks.com/2014/10/netflix-on-linux-chrome/</link>
					<comments>https://tuxtweaks.com/2014/10/netflix-on-linux-chrome/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Fri, 10 Oct 2014 23:05:02 +0000</pubDate>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[Netflix]]></category>
		<category><![CDATA[news]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2930</guid>

					<description><![CDATA[I recently wrote a post showing how to get Netfix working on Ubuntu and its derivatives. That process originally involved installing the beta version of the Chrome browser and manually updating some libraries on your system. Further, you had to use the Useragent Switcher extension in Chrome to trick Netflix into thinking you were a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I recently wrote a post showing <a title="Netflix on Linux Mint 17 and Ubuntu 14.04" href="https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/" target="_blank">how to get Netfix working on Ubuntu</a> and its derivatives. That process originally involved installing the beta version of the <strong>Chrome</strong> browser and manually updating some libraries on your system. Further, you had to use the Useragent Switcher extension in Chrome to trick <strong>Netflix</strong> into thinking you were a Windows user.<br />
<span id="more-2930"></span></p>
<h2>Netflix on Linux</h2>
<p>Well, thankfully those steps are no longer required. The required version of Chrome has made it to the stable channel. Ubuntu has updated the <strong>nss</strong> libraries on currently supported versions. And finally, <strong>Netflix</strong> has updated their user agent filter to allow Linux users with the correct version of Chrome to use their instant streaming.</p>
<p>I&#8217;ve verified this to work on updated systems with Ubuntu 12.04, Ubuntu 14.04, and Linux Mint 17. I&#8217;ve also read that it is working on updated versions of Fedora and Arch Linux.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm.png"><img decoding="async" class="aligncenter size-medium wp-image-2934" src="https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm-300x243.png" alt="Netflix on Linux" width="300" height="243" srcset="https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm-300x243.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm-150x121.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm-1024x831.png 1024w, https://tuxtweaks.com/wp-content/uploads/2014/10/Netflix_Linux_wm.png 1264w" sizes="(max-width: 300px) 100vw, 300px" /></a>If you know of any other versions or distros that work, please leave a comment.</p>
<p>If you want to know your current user-agent string, click the button below to return the user-agent header sent by the browser to the server.</p>
<p><button onclick="myFunction()">View User-Agent</button></p>
<div onload="myFunction()"></div>
<p id="demo">
<p><script>
function myFunction() {
    var x = "<strong>User-agent:</strong> " + navigator.userAgent;
    document.getElementById("demo").innerHTML = x;
}
</script></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/10/netflix-on-linux-chrome/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2930</post-id>	</item>
		<item>
		<title>Mark All Upgrades in Synaptic on Linux Mint 17</title>
		<link>https://tuxtweaks.com/2014/09/restore-mark-all-upgrades-in-synaptic-linux-mint-17/</link>
					<comments>https://tuxtweaks.com/2014/09/restore-mark-all-upgrades-in-synaptic-linux-mint-17/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Mon, 15 Sep 2014 08:12:38 +0000</pubDate>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Synaptic]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2886</guid>

					<description><![CDATA[I&#8217;ve written before how to restore the Mark All Upgrades button to Synaptic in Linux Mint. Things have changed in the latest version: Linux Mint 17 Qiana. The previous technique no longer works because the Mint team is providing their own version of Synaptic rather than using the package from the Ubuntu repositories. The following [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve written before how to <a title="Linux Mint - Restore Mark All Upgrades in Synaptic" href="https://tuxtweaks.com/2013/07/restore-synaptic-mark-all-upgrades-linux-mint/" target="_blank">restore the Mark All Upgrades button to Synaptic in Linux Mint</a>. Things have changed in the latest version: Linux Mint 17 Qiana. The previous technique no longer works because the Mint team is providing their own version of Synaptic rather than using the package from the Ubuntu repositories. The following will show how to <strong>restore the Mark All Upgrades button to Synaptic in Linux Mint 17</strong>. <span id="more-2886"></span></p>
<h3><strong>Edit: 16-Sep-2014</strong></h3>
<p>It turns out that the <strong>Mark All Upgrades</strong> button was disappearing from the toolbar after a reboot, even though it remained on the <strong>Edit</strong> menu. We&#8217;ll have to use a portion of the old tutorial to prevent that.</p>
<p>Open a terminal window and enter the following:</p>
<p>[term]echo /usr/share/synaptic/gtkbuilder/window_main.ui | sudo tee -a /etc/linuxmint/adjustments/05-synaptic.preserve[/term]</p>
<p>This will create a file that prevents Linux Mint from over-writing the Synaptic menu.</p>
<h3>End Edit</h3>
<h2>Downgrade Synaptic</h2>
<p>Open the Synaptic Package Manager and search by name to find the <strong>synaptic</strong> package. At the time of this writing, it&#8217;s currently at version <strong>0.81.2-4</strong>. Highlight synaptic and go to the menu to select <strong>Package -&gt; Force Version&#8230;</strong> In the dialog pop-up, select the version from <strong>trusty-updates</strong> and then click <strong>Force Version</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Force_Version_wm.png"><img decoding="async" class="aligncenter size-medium wp-image-2889" src="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Force_Version_wm-300x96.png" alt="Synaptic Force Version" width="300" height="96" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Force_Version_wm-300x96.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Force_Version_wm-150x48.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Force_Version_wm.png 642w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>This will tell <strong>Synaptic</strong> to downgrade the package. Click the <strong>Apply</strong> button to downgrade <strong>Synaptic</strong>. Immediately after applying the downgrade you may notice that the <strong>synaptic</strong> package is showing that there is an available upgrade. You don&#8217;t want this upgrade to happen, so make sure the synaptic package is highlighted, then go to the menu and click <strong>Package -&gt; Lock Version</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Lock_Version_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2890" src="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Lock_Version_wm-300x190.png" alt="Synaptic Lock Version" width="300" height="190" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Lock_Version_wm-300x190.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Lock_Version_wm-150x95.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Lock_Version_wm.png 877w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Close the <strong>Synaptic Package Manager</strong> now and reopen it. You should now see that the <strong>Mark All Upgrades</strong> button has been restored.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Mark_All_Upgrades_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2891" src="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Mark_All_Upgrades_wm-300x190.png" alt="Synaptic Mark All Upgrades" width="300" height="190" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Mark_All_Upgrades_wm-300x190.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Mark_All_Upgrades_wm-150x95.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/Synaptic_Mark_All_Upgrades_wm.png 877w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<h2>Fixing apt-get and mintUpdate</h2>
<p>If you only update your system using Synaptic, the instructions above will have you covered. But if you happen to use  apt-get, then it will override the settings in <strong>Synaptic</strong> and update the <strong>synaptic</strong> package to the one from the Mint repository as you can see in the following screen shots.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2892" src="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_wm-300x198.png" alt="apt-get upgrade" width="300" height="198" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_wm-300x198.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_wm-150x99.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_wm.png 658w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p><strong>mintUpdate</strong> will also show the package, but it won&#8217;t actually upgrade it. It will be annoying though because the update indicator in the system tray will always show updates available.<br />
<a href="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_1_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2893" src="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_1_wm-300x214.png" alt="mintUpdate 1" width="300" height="214" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_1_wm-300x214.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_1_wm-150x107.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_1_wm.png 792w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>You can fix this by setting a hold on the package with <strong>apt</strong>. Open a terminal window and enter the following command:</p>
<p>[term]sudo apt-mark hold synaptic[/term]</p>
<p>You can use any of the following 3 commands to verify the hold status.</p>
<p>[term]sudo apt-mark showhold</p>
<p>dpkg &#8211;get-selections synaptic</p>
<p>dpkg -l synaptic[/term]</p>
<p>Now you can upgrade with <strong>apt-get</strong> or <strong>mintUpdate</strong> without upgrading <strong>Synaptic</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_2_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2894" src="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_2_wm-300x198.png" alt="apt-get upgrade 2" width="300" height="198" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_2_wm-300x198.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_2_wm-150x99.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/apt-get_upgrade_2_wm.png 658w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_2_wm.png"><img loading="lazy" decoding="async" class="aligncenter wp-image-2895 size-medium" src="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_2_wm-300x214.png" alt="mintUpdate 2" width="300" height="214" srcset="https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_2_wm-300x214.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_2_wm-150x107.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/09/mintUpdate_2_wm.png 792w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>So there you have it. You now have <strong>Mark All Upgrades in Synaptic</strong> and can now do full system updates of Linux Mint 17 Qiana using the <strong>Synaptic Package Manager</strong>.</p>
<p>Copyright 2014, <a title="Linux Tweaks, Howto's and Reviews" href="https://tuxtweaks.com/">TuxTweaks.com</a>. Content originally appeared at <a title="Mark All Upgrades in Synaptic on Linux Mint" href="https://tuxtweaks.com/2014/09/restore-mark-all-upgrades-in-synaptic-linux-mint-17/"><span id="sample-permalink" tabindex="-1">https://tuxtweaks.com/2014/09/restore-mark-all-upgrades-in-synaptic-linux-mint-17</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/09/restore-mark-all-upgrades-in-synaptic-linux-mint-17/feed/</wfw:commentRss>
			<slash:comments>17</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2886</post-id>	</item>
		<item>
		<title>Netflix on Linux Mint 17 and Ubuntu 14.04</title>
		<link>https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/</link>
					<comments>https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Mon, 25 Aug 2014 02:57:06 +0000</pubDate>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Netflix]]></category>
		<category><![CDATA[Streaming]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2863</guid>

					<description><![CDATA[Update: 10 October, 2014 &#8211; Netflix now works on Linux without any special hacks using the Chrome browser. There have been many tutorials posted on how to get Netflix working on Linux. Personally I&#8217;ve had limited success using the Pipelight plugins. There&#8217;s good news for Linux users though. Recent development versions of the Chrome browser [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Update</strong>: 10 October, 2014 &#8211; <a title="Netflix on Linux – Now Works With Chrome Browser" href="https://tuxtweaks.com/2014/10/netflix-on-linux-chrome/">Netflix now works on Linux</a> without any special hacks using the Chrome browser.</p>
<p>There have been many tutorials posted on how to get Netflix working on Linux. Personally I&#8217;ve had limited success using the Pipelight plugins. There&#8217;s good news for Linux users though. Recent development versions of the Chrome browser from Google include the required DRM code to allow HTML5 video streaming from Netflix. The goal of this tutorial is to provide easy instructions to get <strong>Netflix</strong> streaming working on <strong>Linux Mint 17,</strong> <strong>Ubuntu 14.04, </strong>and<strong> Ubuntu 12.04</strong>.<span id="more-2863"></span></p>
<h2>Install Chrome Beta</h2>
<h5><strong>Update</strong>: The stable version of Chrome will now work for <a title="Netflix" href="http://netflix.com" target="_blank">Netflix</a>. You can download the install file from from <a title="Chrome Linux" href="https://www.google.com/chrome/browser/?platform=linux" target="_blank">here</a>. You can then continue below with the User Agent String.</h5>
<hr />
<p>&nbsp;</p>
<p>The first step of this process is to install either the beta version or the development version of Google Chrome. In my case, I&#8217;m using the beta version. Go to the <a title="Chrome Beta Linux" href="https://www.google.com/chrome/browser/beta.html?platform=linux" target="_blank">Chrome Beta download page</a> and click <strong>Download Chrome Beta</strong>. Select the correct package for  your architecture (32 bit or 64 bit). Click <strong>Accept and Install</strong> to accept the license agreement and download the installation file.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/00_Chrome_Download_Install_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2870" src="https://tuxtweaks.com/wp-content/uploads/2014/08/00_Chrome_Download_Install_wm-300x193.png" alt="Download Chrome Beta Linux" width="300" height="193" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/00_Chrome_Download_Install_wm-300x193.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/08/00_Chrome_Download_Install_wm-150x96.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/08/00_Chrome_Download_Install_wm.png 736w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Click <strong>OK</strong> to open the file with GDebi.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/01_Chrome_Beta_Download_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2871" src="https://tuxtweaks.com/wp-content/uploads/2014/08/01_Chrome_Beta_Download_wm-300x225.png" alt="Download Install Chrome Beta Linux" width="300" height="225" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/01_Chrome_Beta_Download_wm-300x225.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/08/01_Chrome_Beta_Download_wm-150x112.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/08/01_Chrome_Beta_Download_wm.png 414w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Click <strong>Install Package</strong> and enter your password if prompted. After a few moments, the package will be installed.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/02_Chrome_Beta_GDebi_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2872" src="https://tuxtweaks.com/wp-content/uploads/2014/08/02_Chrome_Beta_GDebi_wm-300x230.png" alt="Install Chrome Beta Linux" width="300" height="230" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/02_Chrome_Beta_GDebi_wm-300x230.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/08/02_Chrome_Beta_GDebi_wm-150x115.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/08/02_Chrome_Beta_GDebi_wm.png 556w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Close the package installer. You should now be able to find a listing for <strong>Google Chrome (beta)</strong> on your menu.</p>
<h2>Add the User Agent Switcher</h2>
<p>Launch Chrome Beta, go to the web store and <a title="Chrome User Agent Switcher" href="https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg?utm_campaign=en&amp;utm_source=en-et-na-us-oc-webstrhm&amp;utm_medium=et" target="_blank">install the User-Agent Switcher extension</a>. Click the <strong>+Free</strong> button to install the extension to Chrome.</p>
<p>You now need to set a custom user agent string for accessing Netflix. Right click the User-Agent Switcher icon in Chrome and select <strong>Options</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/03_Chrome_UA-Switcher_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-2873" src="https://tuxtweaks.com/wp-content/uploads/2014/08/03_Chrome_UA-Switcher_wm.png" alt="Chrome User-Agent Switcher" width="251" height="255" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/03_Chrome_UA-Switcher_wm.png 251w, https://tuxtweaks.com/wp-content/uploads/2014/08/03_Chrome_UA-Switcher_wm-147x150.png 147w" sizes="auto, (max-width: 251px) 100vw, 251px" /></a>You&#8217;re going to create a new user agent string.</p>
<p>New User-agent name: <strong>Netflix</strong><br />
New User-Agent String: <strong>Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2114.2 Safari/537.36</strong><br />
Group: <strong>Chrome</strong><br />
Append?: <strong>Replace</strong><br />
Indicator flag: <strong>NFX</strong></p>
<h2>Install Required Packages</h2>
<h5>Update: The required packages have <a title="Updated NSS packages" href="http://www.phoronix.com/scan.php?page=news_item&amp;px=MTc5MzU" target="_blank">made it into the repositories</a> for Ubuntu 12.04 and 14.04. There is no need to add the PPA show below. If you&#8217;ve already added the below PPA, you can remove it with:</h5>
<p>[term]sudo add-apt-repository -r ppa:leonbo/nss<br />
sudo apt-get update[/term]</p>
<p>Simply update your system packages and you should get the package updates you need.</p>
<hr />
<p>&nbsp;</p>
<p>You also need some upgraded packages from Ubuntu 14.10 in order to play protected content. The easiest way to install these is to add a PPA to your sources. Open a terminal and enter the following:</p>
<p>[term]sudo add-apt-repository ppa:leonbo/nss<br />
sudo apt-get update<br />
sudo apt-get install libnss3 libnss3-1d libnss3-nssdb[/term]</p>
<p>This should upgrade 3 packages: libnss3, libnss3-1d, and libnss3-nssdb.</p>
<p>You now have everything you should need to stream Netflix on Linux Mint 17, Ubuntu 14.04, or Ubuntu 12.04.</p>
<h2>Streaming Netflix</h2>
<p>If you haven&#8217;t already, shut down Chrome Beta and re-open it. Click the User-Agent Switcher icon and select <strong>Chrome -&gt; Netflix</strong> as your user agent. Now go to <a title="Netflix" href="http://www.netflix.com" target="_blank">Netflix</a> and log in to your account. If everything went right, you can now use the instant streaming on Netflix. You may need to restart your system in order to get smooth streaming.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/04_Streaming_Netflix_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2877" src="https://tuxtweaks.com/wp-content/uploads/2014/08/04_Streaming_Netflix_wm-300x175.png" alt="Streaming Netflix on Linux" width="300" height="175" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/04_Streaming_Netflix_wm-300x175.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/08/04_Streaming_Netflix_wm-150x87.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/08/04_Streaming_Netflix_wm.png 1024w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<h2>Setting the Default User Agent for Netflix</h2>
<p>You may also want to add a setting in User-Agent Switcher so that your custom user agent is always used when you go to Netflix. Right click on the User-Agent Switcher icon and select <strong>Options</strong>. On the left side of the screen, select <strong>Permanent Spoof list</strong>. Under Domain enter <strong>netflix.com</strong> and select <strong>Netflix</strong> under User-Agent String, then click on <strong>Add</strong>. Your custom user agent will now be used any time you go to Netflix.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/08/05_Permanent_Spoof_List_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2878" src="https://tuxtweaks.com/wp-content/uploads/2014/08/05_Permanent_Spoof_List_wm-300x144.png" alt="Permanent Spoof List" width="300" height="144" srcset="https://tuxtweaks.com/wp-content/uploads/2014/08/05_Permanent_Spoof_List_wm-300x144.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/08/05_Permanent_Spoof_List_wm-150x72.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/08/05_Permanent_Spoof_List_wm.png 859w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Your success with streaming may vary based on the power of your computer, the speed of your Internet connection, and your chosen quality settings for your Netflix account. I have nice, smooth streaming on my desktop computer with an Intel Core i5 processor. Streaming is a little more sketchy on my netbook with an Intel Atom processor. Streaming definitely works better using the lowest quality setting from Netflix, but obviously the picture isn&#8217;t the greatest. It&#8217;s still not up to par with streaming on Windows using Microsoft&#8217;s Silverlight, but it&#8217;s a major step in the right direction for streaming on Linux.</p>
<p>How does this technique work for you? Let me know in the comments.</p>
<p>This tutorial originally appeared on <a title="Linux Tweaks, HowTo's and Reviews" href="https://tuxtweaks.com/">Tux Tweaks</a> at <span id="sample-permalink" tabindex="-1"><a title="Streaming Netflix on Linux Mint and Ubuntu" href="https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/">https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/</a>. Copyright 2014.<span id="editable-post-name" title="Temporary permalink. Click to edit this part."></span></span></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/08/netflix-linux-mint-17-ubuntu-14-04/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2863</post-id>	</item>
		<item>
		<title>Bash Getopts &#8211; Scripts with Command Line Options</title>
		<link>https://tuxtweaks.com/2014/05/bash-getopts/</link>
					<comments>https://tuxtweaks.com/2014/05/bash-getopts/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Wed, 21 May 2014 14:32:26 +0000</pubDate>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[getopts]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2813</guid>

					<description><![CDATA[I&#8217;ve always wanted to know how to create command line options for my Bash scripts. After some research I found there are two functions available to handle this; getopt and getopts. I&#8217;m not going to get into the debate about which one is better. getopts is a shell builtin and seems a little easier to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve always wanted to know how to create command line options for my Bash scripts. After some research I found there are two functions available to handle this; <strong>getopt</strong> and <strong>getopts</strong>. I&#8217;m not going to get into the debate about which one is better. <strong>getopts</strong> is a shell builtin and seems a little easier to implement than <strong>getopt</strong>, so I&#8217;ll go with that for now.</p>
<p><span id="more-2813"></span></p>
<h2>bash <strong>getopts</strong></h2>
<p>I started out just trying to figure out how to process command line switches in my scripts. Eventually, I added some other useful functionality that makes this a good starting template for any interactive script. I&#8217;ve also included a help function with text formatting to make it a little easier to read.</p>
<p>Rather than go into a lengthy explanation of how <strong>getopts</strong> works in <strong>bash</strong>, I think it&#8217;s simpler to just show some working code in a script.</p>
<p>[term]</p>
<pre>#!/bin/bash

######################################################################
#This is an example of using getopts in Bash. It also contains some
#other bits of code I find useful.
#Author: Linerd
#Website: https://tuxtweaks.com/
#Copyright 2014
#License: Creative Commons Attribution-ShareAlike 4.0
#http://creativecommons.org/licenses/by-sa/4.0/legalcode
######################################################################

#Set Script Name variable
SCRIPT=`basename ${BASH_SOURCE[0]}`

#Initialize variables to default values.
OPT_A=A
OPT_B=B
OPT_C=C
OPT_D=D

#Set fonts for Help.
NORM=`tput sgr0`
BOLD=`tput bold`
REV=`tput smso`

#Help function
function HELP {
  echo -e \\n"Help documentation for ${BOLD}${SCRIPT}.${NORM}"\\n
  echo -e "${REV}Basic usage:${NORM} ${BOLD}$SCRIPT file.ext${NORM}"\\n
  echo "Command line switches are optional. The following switches are recognized."
  echo "${REV}-a${NORM}  --Sets the value for option ${BOLD}a${NORM}. Default is ${BOLD}A${NORM}."
  echo "${REV}-b${NORM}  --Sets the value for option ${BOLD}b${NORM}. Default is ${BOLD}B${NORM}."
  echo "${REV}-c${NORM}  --Sets the value for option ${BOLD}c${NORM}. Default is ${BOLD}C${NORM}."
  echo "${REV}-d${NORM}  --Sets the value for option ${BOLD}d${NORM}. Default is ${BOLD}D${NORM}."
  echo -e "${REV}-h${NORM}  --Displays this help message. No further functions are performed."\\n
  echo -e "Example: ${BOLD}$SCRIPT -a foo -b man -c chu -d bar file.ext${NORM}"\\n
  exit 1
}

#Check the number of arguments. If none are passed, print help and exit.
NUMARGS=$#
echo -e \\n"Number of arguments: $NUMARGS"
if [ $NUMARGS -eq 0 ]; then
  HELP
fi

### Start getopts code ###

#Parse command line flags
#If an option should be followed by an argument, it should be followed by a ":".
#Notice there is no ":" after "h". The leading ":" suppresses error messages from
#getopts. This is required to get my unrecognized option code to work.

while getopts :a:b:c:d:h FLAG; do
  case $FLAG in
    a)  #set option "a"
      OPT_A=$OPTARG
      echo "-a used: $OPTARG"
      echo "OPT_A = $OPT_A"
      ;;
    b)  #set option "b"
      OPT_B=$OPTARG
      echo "-b used: $OPTARG"
      echo "OPT_B = $OPT_B"
      ;;
    c)  #set option "c"
      OPT_C=$OPTARG
      echo "-c used: $OPTARG"
      echo "OPT_C = $OPT_C"
      ;;
    d)  #set option "d"
      OPT_D=$OPTARG
      echo "-d used: $OPTARG"
      echo "OPT_D = $OPT_D"
      ;;
    h)  #show help
      HELP
      ;;
    \?) #unrecognized option - show help
      echo -e \\n"Option -${BOLD}$OPTARG${NORM} not allowed."
      HELP
      #If you just want to display a simple error message instead of the full
      #help, remove the 2 lines above and uncomment the 2 lines below.
      #echo -e "Use ${BOLD}$SCRIPT -h${NORM} to see the help documentation."\\n
      #exit 2
      ;;
  esac
done

shift $((OPTIND-1))  #This tells getopts to move on to the next argument.

### End getopts code ###


### Main loop to process files ###

#This is where your main file processing will take place. This example is just
#printing the files and extensions to the terminal. You should place any other
#file processing tasks within the while-do loop.

while [ $# -ne 0 ]; do
  FILE=$1
  TEMPFILE=`basename $FILE`
  #TEMPFILE="${FILE##*/}"  #This is another way to get the base file name.
  FILE_BASE=`echo "${TEMPFILE%.*}"`  #file without extension
  FILE_EXT="${TEMPFILE##*.}"  #file extension


  echo -e \\n"Input file is: $FILE"
  echo "File withouth extension is: $FILE_BASE"
  echo -e "File extension is: $FILE_EXT"\\n
  shift  #Move on to next input file.
done

### End main loop ###

exit 0
</pre>
<p>[/term]</p>
<p>Paste the above text into a text editor and then save it somewhere in your executable path. I chose to call the script <em><strong>options</strong></em> and I saved it under <strong><em>/home/linerd/bin</em></strong>. Once you save it, make sure to make it executable.</p>
<p>[term]chmod +x ~/bin/options[/term]</p>
<p>Now you can run the script. Try running it with the <strong>-h</strong> switch to show the help information.</p>
<p>[term]options -h[/term]</p>
<p>Now try running it with an unsupported option.</p>
<p>[term]options -z[/term]</p>
<p>Finally, getopts can handle your command line options in any order. The only rule is that the file or files you are processing have to come after all of the option switches.</p>
<p>[term]options -d bar -c chu -b man -a foo example1.txt example2.txt[/term]</p>
<p>So you can see from these examples how you can set variables in your scripts with command line options. There&#8217;s more  going on than just getopts in this script, but I think these are valuable additions that make this a good starting template for new scripts. If you&#8217;d like to learn more about bash getopts, you can find the documentation buried deep within the bash man page in the &#8220;Builtins&#8221; section. You can also find info in the <a title="Getopts - Bash Reference Manual" href="http://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html" target="_blank">Bash Reference Manual</a>.</p>
<h2>What Next?</h2>
<p>So what will you use <strong>getopts</strong> for? Let me know in the comments.</p>
<p>&nbsp;</p>
<p>Copyright TuxTweaks.com. This content originally appeared at <a title="bash getopts" href="https://tuxtweaks.com/2014/05/bash-getopts/"><span id="sample-permalink" tabindex="-1">https://tuxtweaks.com/2014/05/<span id="editable-post-name" title="Temporary permalink. Click to edit this part.">bash-getopts</span>/</span></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/05/bash-getopts/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2813</post-id>	</item>
		<item>
		<title>How To Create a Linux Mint Persistent Live USB</title>
		<link>https://tuxtweaks.com/2014/03/create-linux-mint-persistent-live-usb/</link>
					<comments>https://tuxtweaks.com/2014/03/create-linux-mint-persistent-live-usb/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Thu, 27 Mar 2014 04:05:55 +0000</pubDate>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[liveUSB]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2771</guid>

					<description><![CDATA[Linux Mint is the most popular Ubuntu based Linux distribution. Some would argue that it&#8217;s even more popular than Ubuntu itself. Because of its Ubuntu base, Linux Mint shares a lot of the same great features with its parent distribution while offering a more traditional desktop design. One big feature that Linux Mint is missing [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Linux Mint is the most popular Ubuntu based Linux distribution. Some would argue that it&#8217;s even more popular than Ubuntu itself. Because of its Ubuntu base, Linux Mint shares a lot of the same great features with its parent distribution while offering a more traditional desktop design. One big feature that Linux Mint is missing though is the ability to create a Live USB stick with persistent storage. In this tutorial I&#8217;ll show how to create a <strong>Linux Mint Persistent Live USB</strong> drive using UNetbootin and GParted.<br />
<span id="more-2771"></span></p>
<h2>What you&#8217;ll need</h2>
<p>You&#8217;ll need a few things before you get started. I&#8217;ll be using an installation of Linux Mint 13 to create the Live USB in this tutorial, so it will be easiest to follow along if you&#8217;re running Linux Mint, Ubuntu, or something similar. While it should be possible to do this from Windows since both UNetbootin and GParted have Windows versions available, I&#8217;ll only be covering how to do this from Linux. You could use a standard Linux Mint Live CD or USB as your build system if you want.</p>
<p>Second, you&#8217;ll need the ISO image of Linux Mint. UNetbootin should be able to download it for you, but I prefer to just download it separately ahead of time. I&#8217;ll be using the 32 bit version of Linux Mint 16, MATE Edition for mine, but other versions should work just as well.</p>
<p>Download Linux Mint 16 ISO &#8211; torrent links:</p>
<ul>
<li><a title="Linux Mint 16 Cinnamon 32 bit torrent" href="http://torrents.linuxmint.com/torrents/linuxmint-16-cinnamon-dvd-32bit.iso.torrent">Linux Mint 16 Cinnamon 32 Bit</a></li>
<li><a title="Linux Mint 16 Cinnamon 64 bit torrent" href="http://torrents.linuxmint.com/torrents/linuxmint-16-cinnamon-dvd-64bit.iso.torrent">Linux Mint 16 Cinnamon 64 Bit</a></li>
<li><a title="Linux Mint 16 MATE 32 bit torrent" href="http://torrents.linuxmint.com/torrents/linuxmint-16-mate-dvd-32bit.iso.torrent">Linux Mint 16 MATE 32 Bit</a></li>
<li><a title="Linux Mint 16 MATE 64 bit torrent" href="http://torrents.linuxmint.com/torrents/linuxmint-16-mate-dvd-64bit.iso.torrent">Linux Mint 16 MATE 64 Bit</a></li>
<li><a title="Linux Mint 16 KDE 32 Bit" href="http://torrents.linuxmint.com/torrents/linuxmint-16-kde-dvd-32bit.iso.torrent">Linux Mint 16 KDE 32 Bit</a></li>
<li><a title="Linux Mint 16 KDE 64 Bit" href="http://torrents.linuxmint.com/torrents/linuxmint-16-kde-dvd-64bit.iso.torrent">Linux Mint 16 KDE 64 Bit</a></li>
<li><a title="Linux Mint 16 Xfce 32 Bit" href="http://torrents.linuxmint.com/torrents/linuxmint-16-xfce-dvd-32bit.iso.torrent">Linux Mint 16 Xfce 32 Bit</a></li>
<li><a title="Linux Mint 16 Xfce 64 Bit" href="http://torrents.linuxmint.com/torrents/linuxmint-16-xfce-dvd-64bit.iso.torrent">Linux Mint 16 Xfce 64 Bit</a></li>
</ul>
<p>Third, you&#8217;ll need to have UNetbootin installed on your Linux system. You should be able to find it in your distro&#8217;s repositories. If you&#8217;re running Linux Mint or Ubuntu, you should be able to install it with:</p>
<p>[term]sudo apt-get install unetbootin[/term]</p>
<p>Or, just click: <a title="Install Unetbootin" href="apt:unetbootin">install UNetbootin</a></p>
<p>And finally, you&#8217;ll need a USB flash drive or SD card that&#8217;s at least 2 GB in size. The larger your USB stick is, the more room you&#8217;ll have for persistent storage.</p>
<h2>Preparing the flash drive</h2>
<p>Now that we have everything we need, it&#8217;s time to get started.</p>
<p>The first task is to create a couple of partitions on the flash drive.</p>
<p><strong>WARNING</strong>: This process will erase all the data on your flash drive. Make sure any files you need are backed up.</p>
<p>To avoid confusion, you may want to unplug any other USB drives from your system. Now plug in the flash drive you want to use for your persistent USB stick and open up GParted. If GParted is not already installed on your system, open up a terminal window and install it with:<br />
[term]sudo apt-get install gparted[/term]</p>
<p>Select your USB drive from the device drop-down in the upper right corner.</p>
<p style="text-align: center;"><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/01_MintUSB_GParted_wm.png"><img loading="lazy" decoding="async" class="size-medium wp-image-2779 aligncenter" title="GParted" src="https://tuxtweaks.com/wp-content/uploads/2014/03/01_MintUSB_GParted_wm-300x202.png" alt="GParted" width="300" height="202" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/01_MintUSB_GParted_wm-300x202.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/01_MintUSB_GParted_wm-150x101.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/01_MintUSB_GParted_wm.png 781w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>If there are any existing partitions on your drive, right click on them and select <strong>Unmount</strong>, then right click again and select <strong>Delete Partition</strong>. Your drive should now be shown with only unallocated space.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/02_Gparted_unallocated_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2780" src="https://tuxtweaks.com/wp-content/uploads/2014/03/02_Gparted_unallocated_wm-300x202.png" alt="GParted unallocated" width="300" height="202" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/02_Gparted_unallocated_wm-300x202.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/02_Gparted_unallocated_wm-150x101.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/02_Gparted_unallocated_wm.png 781w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Next, right click on the unpartitioned space and select <strong>New</strong>. Set the size of the new partition to 1500 MiB, set the File system to <strong>fat32</strong> and click <strong>Add</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/03_GParted_Live_Partition_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2781" src="https://tuxtweaks.com/wp-content/uploads/2014/03/03_GParted_Live_Partition_wm-300x145.png" alt="GParted Live Partition" width="300" height="145" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/03_GParted_Live_Partition_wm-300x145.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/03_GParted_Live_Partition_wm-150x72.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/03_GParted_Live_Partition_wm.png 591w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>The next step is to create the persistent partition. Right click on the remaining unallocated space and select <strong>New</strong>. This time choose <strong>ext2</strong> as the file system type and set the Label to <strong>casper-rw</strong>, then click <strong>Add</strong><strong>.</strong></p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/04_Gparted_Persistent_Partition_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2783" src="https://tuxtweaks.com/wp-content/uploads/2014/03/04_Gparted_Persistent_Partition_wm-300x145.png" alt="GParted Persistent Partition" width="300" height="145" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/04_Gparted_Persistent_Partition_wm-300x145.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/04_Gparted_Persistent_Partition_wm-150x72.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/04_Gparted_Persistent_Partition_wm.png 591w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Now you need to apply the changes to the flash drive. Go to <strong>Edit-&gt;Apply All Operations</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/05_GParted_Apply_All_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2784" src="https://tuxtweaks.com/wp-content/uploads/2014/03/05_GParted_Apply_All_wm-300x202.png" alt="GParted Apply All Partitions" width="300" height="202" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/05_GParted_Apply_All_wm-300x202.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/05_GParted_Apply_All_wm-150x101.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/05_GParted_Apply_All_wm.png 781w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>As long as you&#8217;re sure you picked the correct drive, click <strong>Apply</strong> at the warning pop-up.</p>
<p>The final task in GParted is to set the boot flag on your boot partition. Right click on the first partition and select <strong>Manage Flags</strong>. Mark the box next to <strong>boot</strong> and then click <strong>Close</strong>.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/06_GParted_Set_Boot_Flag_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2787" src="https://tuxtweaks.com/wp-content/uploads/2014/03/06_GParted_Set_Boot_Flag_wm-300x276.png" alt="GParted Set Boot Flag" width="300" height="276" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/06_GParted_Set_Boot_Flag_wm-300x276.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/06_GParted_Set_Boot_Flag_wm-150x138.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/06_GParted_Set_Boot_Flag_wm.png 310w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<div id="attachment_2788" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/07_GParted_Complete_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2788" class="size-medium wp-image-2788" src="https://tuxtweaks.com/wp-content/uploads/2014/03/07_GParted_Complete_wm-300x202.png" alt="GParted Complete" width="300" height="202" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/07_GParted_Complete_wm-300x202.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/07_GParted_Complete_wm-150x101.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/07_GParted_Complete_wm.png 781w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2788" class="wp-caption-text">GParted Complete</p></div>
<h2>Write the ISO with UNetbootin</h2>
<p>Open UNetbootin and select the radio button for <strong>Diskimage</strong>. Click the <strong>&#8220;&#8230;&#8221;</strong> button and navigate to Linux Mint ISO that you downloaded previously. Make sure that USB Drive is selected and that first partition of your USB drive is listed as the drive. If you&#8217;re unsure of your drive letter assignments, use the lsblk command in a terminal to check them.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/08_lsblk_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2791" src="https://tuxtweaks.com/wp-content/uploads/2014/03/08_lsblk_wm-300x207.png" alt="lsblk output" width="300" height="207" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/08_lsblk_wm-300x207.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/08_lsblk_wm-150x103.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/08_lsblk_wm.png 664w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Next, enter <strong>100</strong> in the field labelled &#8220;<strong>Space used to preserve files across reboots (Ubuntu only):</strong>&#8220;.</p>
<p>When you have the UNetbootin window looking like the image below, click OK to start writing the image to your USB drive.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/09_UNetbootin_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2792" src="https://tuxtweaks.com/wp-content/uploads/2014/03/09_UNetbootin_wm-300x219.png" alt="UNetbootin" width="300" height="219" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/09_UNetbootin_wm-300x219.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/09_UNetbootin_wm-150x109.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/09_UNetbootin_wm.png 530w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>When UNetbootin is done writing the image, <em><strong>DO NOT</strong></em> click the <strong>Reboot Now</strong> button. Hit <strong>Exit</strong> instead because we have one more change to make to the USB drive.</p>
<p>Open the boot partition of your Linux Mint Persistent Live USB drive in your file manager. Select the <strong>casper-rw</strong> file and delete it.</p>
<div id="attachment_2795" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/10_Boot_Partition_Mounted_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2795" class="size-medium wp-image-2795" src="https://tuxtweaks.com/wp-content/uploads/2014/03/10_Boot_Partition_Mounted_wm-300x228.png" alt="Linux Mint Live USB" width="300" height="228" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/10_Boot_Partition_Mounted_wm-300x228.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/10_Boot_Partition_Mounted_wm-150x114.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/10_Boot_Partition_Mounted_wm.png 658w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2795" class="wp-caption-text">Delete casper-rw</p></div>
<p>Congratulations! You now have a <strong>Linux Mint Persistent Live USB</strong> drive. You can now reboot your computer to boot into your USB drive and give it a try.</p>
<p>Here&#8217;s a picture of my Linux Mint Persistent Live USB running on my netbook.</p>
<div id="attachment_2797" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2014/03/11_Mint16_Screenshot_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2797" class="size-medium wp-image-2797" src="https://tuxtweaks.com/wp-content/uploads/2014/03/11_Mint16_Screenshot_wm-300x175.png" alt="Linux Mint Persistent Live USB" width="300" height="175" srcset="https://tuxtweaks.com/wp-content/uploads/2014/03/11_Mint16_Screenshot_wm-300x175.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/03/11_Mint16_Screenshot_wm-150x87.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/03/11_Mint16_Screenshot_wm.png 768w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2797" class="wp-caption-text">Linux Mint Persistent Live USB</p></div>
<p>You can now use your bootable USB to install Linux Mint on another system, edit documents, browse the internet, or whatever you want.</p>
<p><strong>Credit:</strong> <a title="Linux Mint 14 Live USB" href="http://forums.linuxmint.com/viewtopic.php?f=46&amp;t=123345#p676474" target="_blank" rel="noopener">This post</a> by usbtux on the Linux Mint forums provided the basics of this tutorial.</p>
<p>This content was authored by <a title="Linerd on Tux Tweaks" href="https://tuxtweaks.com/author/Linerd/">Linerd</a> and originally appeared on <a title="Linux Tweaks, HowTo's and Reviews" href="https://tuxtweaks.com/">Tux Tweaks</a> at <a title="Linux Mint Persistent Live USB" href="https://tuxtweaks.com/2014/03/create-linux-mint-persistent-live-usb/">https://tuxtweaks.com/2014/03/create-linux-mint-persistent-live-usb/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/03/create-linux-mint-persistent-live-usb/feed/</wfw:commentRss>
			<slash:comments>115</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2771</post-id>	</item>
		<item>
		<title>How To Rip a DVD with Mplayer</title>
		<link>https://tuxtweaks.com/2014/02/rip-dvd-mplayer/</link>
					<comments>https://tuxtweaks.com/2014/02/rip-dvd-mplayer/#respond</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Thu, 06 Feb 2014 15:30:00 +0000</pubDate>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[HandBrake]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Mplayer]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xine]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2717</guid>

					<description><![CDATA[I run a media server at home to feed music and movies to my LG smart TV (affiliate link). Ripping the family&#8217;s DVD collection is one of my tasks as the resident computer geek. Normally, Handbrake is my go-to tool for this type of thing, but in this case it was unable to detect the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I run a media server at home to feed music and movies to my <a title="LG Smart TV - Affiliate Link" href="http://www.amazon.com/s/?_encoding=UTF8&amp;camp=1789&amp;creative=390957&amp;field-keywords=lg%20smart%20tv&amp;linkCode=ur2&amp;sprefix=lg%20sma%2Caps%2C156&amp;tag=tuxtwe-20&amp;url=search-alias%3Delectronics" target="_blank">LG smart TV</a> (affiliate link). Ripping the family&#8217;s DVD collection is one of my tasks as the resident computer geek. Normally, <a title="Handbrake" href="https://tuxtweaks.com/tag/handbrake/" target="_blank">Handbrake</a> is my go-to tool for this type of thing, but in this case it was unable to detect the correct title from the DVD structure. In this tutorial I&#8217;ll show how to rip a DVD on Linux with Mplayer.<br />
<span id="more-2717"></span></p>
<h2>When Handbrake Doesn&#8217;t Work</h2>
<p>Not only did Handbrake have trouble, but DragonPlayer couldn&#8217;t play the DVD and VLC crashed every time I tried to use it. I finally had my first glimmer of success with the <a title="Xine Media Player" href="http://www.xine-project.org/home" target="_blank">Xine media player</a>. With Xine I was able to open the DVD menu and launch the main feature. Using the navigation controls I clicked on the angle button and Xine momentarily showed the title number on the status line. In this case it showed that the main title was number 31 on the DVD.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/01/01_Xine_DVD_Title_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2721" alt="Xine Showing DVD Title Number" src="https://tuxtweaks.com/wp-content/uploads/2014/01/01_Xine_DVD_Title_wm-300x87.png" width="300" height="87" srcset="https://tuxtweaks.com/wp-content/uploads/2014/01/01_Xine_DVD_Title_wm-300x87.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/01/01_Xine_DVD_Title_wm-150x43.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/01/01_Xine_DVD_Title_wm.png 767w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>Checking the DVD in Handbrake again showed that title 31 was not among the available selections. So at this point I needed a way to first rip the desired title from the disk.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/01/02_Handbrake_Doesnt_Work_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2728" alt="When Handbrake Doesn't Work" src="https://tuxtweaks.com/wp-content/uploads/2014/01/02_Handbrake_Doesnt_Work_wm-300x230.png" width="300" height="230" srcset="https://tuxtweaks.com/wp-content/uploads/2014/01/02_Handbrake_Doesnt_Work_wm-300x230.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/01/02_Handbrake_Doesnt_Work_wm-150x115.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/01/02_Handbrake_Doesnt_Work_wm.png 911w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<h2>Mplayer to the rescue</h2>
<p>Once I knew that title 31 was the main movie on the DVD, I was able to play it in Mplayer with:<br />
[term]mplayer dvd://31[/term]</p>
<h2>Rip the DVD With Mplayer</h2>
<p>Now to rip the DVD. Mplayer is able to do this task for you if it can play the DVD. The following command will rip title 31 to an uncompressed MPEG file.<br />
[term]mplayer -dumpstream dvd://31 -nocache -noidx -dumpfile Movie.mpg[/term]</p>
<p>In this case I used the -noidx switch because I got a broken index on my MPEG rip without it. This completely removes the index from the file. Handbrake won&#8217;t know how much time is left in the encoding process, but it will create a good MP4 when it&#8217;s all said and done. You may not need this switch in your case.</p>
<h2> Re-encode with Handbrake</h2>
<p>Now that you have an MPEG rip of the movie, you can re-encode it to a nice MP4 file with Handbrake.</p>
<p><a href="https://tuxtweaks.com/wp-content/uploads/2014/01/03_Handbrake_Re-encode_wm.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2730" alt="Re-encoding the file with Handbrake" src="https://tuxtweaks.com/wp-content/uploads/2014/01/03_Handbrake_Re-encode_wm-300x230.png" width="300" height="230" srcset="https://tuxtweaks.com/wp-content/uploads/2014/01/03_Handbrake_Re-encode_wm-300x230.png 300w, https://tuxtweaks.com/wp-content/uploads/2014/01/03_Handbrake_Re-encode_wm-150x115.png 150w, https://tuxtweaks.com/wp-content/uploads/2014/01/03_Handbrake_Re-encode_wm.png 911w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>In this particular case, the uncompressed MPEG was 5.9 GB in size. After re-encoding with Handbrake it was 1.3 GB.</p>
<p>So there you have it. When Handbrake doesn&#8217;t work on its own you can use Mplayer to rip the video first and then re-encode that file to MP4 with Handbrake or the tool of your preference.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2014/02/rip-dvd-mplayer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2717</post-id>	</item>
		<item>
		<title>How To Install screenFetch in Linux</title>
		<link>https://tuxtweaks.com/2013/12/install-screenfetch-linux/</link>
					<comments>https://tuxtweaks.com/2013/12/install-screenfetch-linux/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Wed, 01 Jan 2014 02:23:29 +0000</pubDate>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[screenFetch]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2691</guid>

					<description><![CDATA[If you&#8217;ve browsed Linux groups on social media, you&#8217;ve probably seen a lot of screenshots that include a terminal window displaying the distribution logo as ASCII art along with some general system information. One program that does this is called Archey. Another is called screenFetch, and that&#8217;s what I&#8217;m going to show you how to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you&#8217;ve browsed Linux groups on social media, you&#8217;ve probably seen a lot of screenshots that include a terminal window displaying the distribution logo as ASCII art along with some general system information. One program that does this is called <em><strong>Archey</strong></em>. Another is called <em><strong>screenFetch</strong></em>, and that&#8217;s what I&#8217;m going to show you how to install in this post.<span id="more-2691"></span></p>
<p><a title="screenFetch GIT" href="http://git.silverirc.com/cgit.cgi/screenfetch.git/about/" target="_blank">screenFetch</a> is a bash script. It will automatically detect your Linux distribution and will display the logo as ASCII art in a terminal window. Optionally, it can also take a screenshot of your Linux desktop with the aforementioned terminal window displayed.</p>
<div id="attachment_2692" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2013/12/01_screenFetch_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2692" class="size-medium wp-image-2692 " title="screenFetch on Ubuntu Linux" src="https://tuxtweaks.com/wp-content/uploads/2013/12/01_screenFetch_wm-300x186.png" alt="Install screenFetch in Linux" width="300" height="186" srcset="https://tuxtweaks.com/wp-content/uploads/2013/12/01_screenFetch_wm-300x186.png 300w, https://tuxtweaks.com/wp-content/uploads/2013/12/01_screenFetch_wm-150x93.png 150w, https://tuxtweaks.com/wp-content/uploads/2013/12/01_screenFetch_wm.png 868w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2692" class="wp-caption-text">screeenFetch on Ubuntu</p></div>
<h2>Install screenFetch Dependencies</h2>
<p>In order to detect your Linux Distribution and some of your other system information, the <em><strong>lsb-release</strong></em> package needs to be installed on your system. Most likely, you already have this installed, but it doesn&#8217;t hurt to request the install again. You also need a program called <a title="scrot homepage" href="http://freecode.com/projects/scrot" target="_blank"><em><strong>scrot</strong></em></a> installed to support the screenshot function. You should be able to find these packages in you distribution&#8217;s repositories. On Ubuntu, Linux Mint, and other Debian/Ubuntu based distros, you can install them with the following command.</p>
<p>[term]sudo apt-get install lsb-release scrot[/term]</p>
<h2>Install screenFetch in Linux</h2>
<p>Now that we have the dependencies installed, we can install <em><strong>screenFetch</strong></em>. Unfortunately, it&#8217;s not in the distro repositories for Ubuntu, Mint, or Debian, so we&#8217;ll have to download it from the <a title="screenFetch GIT" href="http://git.silverirc.com/cgit.cgi/screenfetch.git/" target="_blank">project&#8217;s Git repository</a>. First I&#8217;ll create a temporary directory for the download.</p>
<p>[term]mkdir ~/screenfetch<br />
cd ~/screenfetch[/term]</p>
<p>Now we can download the latest package. As of this writing, the latest version is v3.2.2.</p>
<p>[term]wget -O screenfetch &#8216;https://raw.github.com/KittyKatt/screenFetch/master/screenfetch-dev'[/term]</p>
<p>Now, make the file executable with:</p>
<p>[term]chmod +x screenfetch[/term]</p>
<p>You can execute it from here if you want with:</p>
<p>[term]./screenfetch[/term]</p>
<p>However, I think it&#8217;s better to have it installed somewhere where it will be available system wide. I think <em><strong>/usr/local/bin</strong></em> is a good location. So let&#8217;s copy it over to there.</p>
<p>[term]sudo cp screenfetch /usr/local/bin[/term]</p>
<p>Now, assuming <strong>/usr/local/bin</strong> is in your $PATH, you should be able to run <em><strong>screenfetch</strong></em> from anywhere.</p>
<h2>Taking a Screenshot with screenFetch</h2>
<p>It wouldn&#8217;t make any sense to call the program screenFetch if you couldn&#8217;t use it to take a screenshot of your system. You can call the program with the -s switch to do just that.</p>
<p>[term]screenfetch -s[/term]</p>
<p>Here&#8217;s a screenshot I made on my netbook with Linux Mint 13.</p>
<div id="attachment_2700" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2013/12/02_screenFetch_Mint13.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2700" class="size-medium wp-image-2700" src="https://tuxtweaks.com/wp-content/uploads/2013/12/02_screenFetch_Mint13-300x175.png" alt="install screenFetch on Linux Mint 13" width="300" height="175" srcset="https://tuxtweaks.com/wp-content/uploads/2013/12/02_screenFetch_Mint13-300x175.png 300w, https://tuxtweaks.com/wp-content/uploads/2013/12/02_screenFetch_Mint13-150x87.png 150w, https://tuxtweaks.com/wp-content/uploads/2013/12/02_screenFetch_Mint13.png 1024w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2700" class="wp-caption-text">screenFetch on Linux Mint 13</p></div>
<h2>screenFetch Options</h2>
<p>So there you have it. You now know how to install <em><strong>screenFetch</strong></em> and use it on Linux. If you want to see the other options, run <em><strong>screenFetch</strong></em> with the <strong>-h</strong> switch.</p>
<p>[term]screenfetch -h[/term]</p>
<p>Here&#8217;s the output on my system.<br />
[term]</p>
<pre>Usage:
  screenFetch [OPTIONAL FLAGS]

screenFetch - a CLI Bash script to show system/theme info in screenshots.

Supported Distributions:      Arch Linux (Old and Current Logos), Linux Mint,
                  LMDE, Ubuntu, Crunchbang, Debian, Raspian, Gentoo, Fedora, SolusOS,
                  Mandrake/Mandriva, Slackware, Frugalware, openSUSE, Mageia,
                  Peppermint, ParabolaGNU, Viperr, LinuxDeepin, Chakra, and FreeBSD, OpenBSD
Supported Desktop Managers:   KDE, GNOME, XFCE, and LXDE, and Not Present
Supported Window Managers:    PekWM, OpenBox, FluxBox, BlackBox, Xfwm4,
                  Metacity, StumpWM, KWin, IceWM, FVWM,
                  DWM, Awesome, XMonad, Musca, i3, WindowMaker,
                  Ratpoison, wmii, WMFS, ScrotWM, SpectrWM,
                  subtle, Emerald, E17 and Beryl.

Options:
   -v                 Verbose output.
   -o 'OPTIONS'       Allows for setting script variables on the
              command line. Must be in the following format...
              'OPTION1="OPTIONARG1";OPTION2="OPTIONARG2"'
   -n                 Do not display ASCII distribution logo.
   -N                 Strip all color from output.
   -t                 Truncate output based on terminal width (Experimental!).
   -s(m)              Using this flag tells the script that you want it
              to take a screenshot. Use the -m flag if you would like
              to move it to a new location afterwards.
   -c string          You may change the outputted colors with -c. The format is
                      as follows: [0-9][0-9],[0-9][0-9]. The first argument controls the
                      ASCII logo colors and the label colors. The second argument
                      controls the colors of the information found. One argument may be
                      used without the other.
   -S 'COMMAND'       Here you can specify a custom screenshot command for
              the script to execute. Surrounding quotes are required.
   -D 'DISTRO'        Here you can specify your distribution for the script
              to use. Surrounding quotes are required.
   -A 'DISTRO'        Here you can specify the distribution art that you want
              displayed. This is for when you want your distro
                      detected but want to display a different logo.
   -E                 Suppress output of errors.
   -V                 Display current script version.
   -h                 Display this help.</pre>
<p>[/term]</p>
<p>So there you have it. Go ahead and upload your screenshot to a file or photo sharing site and post a link to it in the comments.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2013/12/install-screenfetch-linux/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2691</post-id>	</item>
		<item>
		<title>Command Line Basics &#8211; watch</title>
		<link>https://tuxtweaks.com/2013/12/linux-watch-command/</link>
					<comments>https://tuxtweaks.com/2013/12/linux-watch-command/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Mon, 09 Dec 2013 21:04:09 +0000</pubDate>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pipe]]></category>
		<category><![CDATA[watch]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2654</guid>

					<description><![CDATA[There are several log files in a Linux system. Keeping an eye on these log files can be one of the important tasks of a Linux System administrator. You can easily view the end of a log file using the tail command. But if you want to monitor that file all day long it&#8217;s pretty [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>There are several log files in a Linux system. Keeping an eye on these log files can be one of the important tasks of a Linux System administrator. You can easily view the end of a log file <a title="How to use the head and tail commands in Linux." href="https://tuxtweaks.com/2011/02/command-line-basics-head-and-tail/" target="_blank" rel="noopener">using the <strong>tail</strong> command</a>. But if you want to monitor that file all day long it&#8217;s pretty tedious to enter the <strong>tail</strong> command every few minutes to check on that log file. You could write a short <a title="Bash infinite loop" href="https://tuxtweaks.com/2012/01/creating-a-terminal-window-clock/" target="_blank" rel="noopener">script  with an infinite loop</a> to check the file periodically, but it turns out that there is already a program to handle repetitive tasks for you.<span id="more-2654"></span></p>
<h2>The Linux watch Command</h2>
<p>The <em><strong>watch</strong></em> command in Linux provides a way to handle repetitive tasks. By default <em><strong>watch</strong></em> will repeat the command that follows it every two seconds. As you can imagine, watch is a great tool to keep an eye on log files. Here&#8217;s an example.</p>
<p>[term]watch tail /var/log/syslog[/term]</p>
<p>In order to stop the command execution, just use the standard kill sequence, <strong>[Ctrl]+C</strong>.</p>
<div id="attachment_2665" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_01_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2665" class="size-medium wp-image-2665 " title="Linux watch command" src="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_01_wm-300x161.png" alt="watch syslog" width="300" height="161" srcset="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_01_wm-300x161.png 300w, https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_01_wm-150x80.png 150w, https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_01_wm.png 696w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2665" class="wp-caption-text">Using the Linux watch command to monitor the syslog</p></div>
<p>You can change the time interval by issuing the <strong><em>-n</em></strong> switch and specifying the interval in seconds. To check the log file every 10 seconds, try this.</p>
<p>[term]watch -n 10 tail /var/log/syslog[/term]</p>
<h2>The Linux watch Command with a Pipe</h2>
<p>The <strong><em>watch</em></strong> command isn&#8217;t limited to viewing log files. It can be used to repeat any command you give it. If you have your system <a title="Monitor CPU Temperature on Linux" href="https://tuxtweaks.com/2008/08/how-to-control-fan-speeds-in-ubuntu/" target="_blank" rel="noopener">set up to monitor the CPU temperature</a>, you can use <em><strong>watch</strong></em> to view that with the <em><strong>sensors</strong></em> command.</p>
<p>[term]watch -n 1 sensors[/term]</p>
<p>The output on my netbook looks like this:</p>
<p>[term]</p>
<pre>acpitz-virtual-0
Adapter: Virtual device
temp1:        +45.0°C  (crit = +100.0°C)</pre>
<p>[/term]</p>
<p>I&#8217;d like to filter this output to only show the temperature output without all of the rest.</p>
<p>I can use this command to view it one time.</p>
<p>[term]sensors | grep temp | awk &#8216;{ print $2 }'[/term]</p>
<p>Keep in mind that the <strong><em>watch</em></strong> command will repeat the first command that is sees. Care must be taken when pipelining one command to the next. This can be managed by placing your command pipeline inside quotes.</p>
<p>[term]watch -n1 &#8220;sensors | grep temp | awk &#8216;{ print /$2 }'&#8221;[/term]</p>
<div id="attachment_2666" style="width: 310px" class="wp-caption aligncenter"><a href="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_02_wm.png"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-2666" class="size-medium wp-image-2666 " title="Linux watch with pipe" src="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_02_wm-300x161.png" alt="Linux watch with pipe" width="300" height="161" srcset="https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_02_wm-300x161.png 300w, https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_02_wm-150x80.png 150w, https://tuxtweaks.com/wp-content/uploads/2013/12/Watch_02_wm.png 696w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-2666" class="wp-caption-text">Using the Linux watch command with a pipe</p></div>
<h2>Use <em>watch</em> as a clock</h2>
<p>As you&#8217;ve probably noticed by now, the <em><strong>watch</strong></em> command shows the time that the command was executed in the upper right corner of the terminal window. We can use <strong><em>watch</em></strong> as a simple clock by passing an empty command line argument. We can just enclose a space in quotes to act as the empty command.</p>
<p>[term]watch -n 1 &#8221; &#8220;[/term]</p>
<p>So you can see, this gives another meaning for the command name, <em><strong>watch</strong></em>. You can use it just like your wrist watch.</p>
<p>So now you know how to use the Linux watch command. What repetitive tasks will you use it to handle?</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2013/12/linux-watch-command/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2654</post-id>	</item>
		<item>
		<title>Create And Manage Encrypted Folders in Linux With encfs</title>
		<link>https://tuxtweaks.com/2013/10/encrypted-folders-linux-encfs/</link>
					<comments>https://tuxtweaks.com/2013/10/encrypted-folders-linux-encfs/#comments</comments>
		
		<dc:creator><![CDATA[Linerd]]></dc:creator>
		<pubDate>Sun, 20 Oct 2013 17:10:51 +0000</pubDate>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[encfs]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[security]]></category>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=2629</guid>

					<description><![CDATA[There are times when you want certain information on your computer protected from prying eyes. One way to protect your information is to encrypt your home directory. However, that does not protect your information when you are logged on to your computer. I&#8217;ve shown in the past how you can use Cryptkeeper to create an [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>There are times when you want certain information on your computer protected from prying eyes. One way to protect your information is to encrypt your home directory. However, that does not protect your information when you are logged on to your computer. I&#8217;ve shown in the past how you can <a title="Create an Encrypted Folder in Ubuntu with Cryptkeeper" href="https://tuxtweaks.com/2009/03/create-an-encrypted-folder-in-ubuntu-with-cryptkeeper/" target="_blank">use Cryptkeeper to create an encrypted folder on your system</a>. Cryptkeeper is a graphical front end to <strong><em>encfs</em></strong>. <strong>encfs</strong> allows you to create an encrypted folder and then mount it as a user filesystem using <a title="FUSE: Filesystem in userspace" href="http://fuse.sourceforge.net/" target="_blank">FUSE</a>. In this tutorial I&#8217;ll show how to use <strong>encfs</strong> from the command line to create and manage an encrypted folder on Linux.<br />
<span id="more-2629"></span></p>
<p style="text-align: center; margin-top: 40px;"><a href="https://tuxtweaks.com/wp-content/uploads/2013/10/encfs.png"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-2633" alt="encrypted folder" src="https://tuxtweaks.com/wp-content/uploads/2013/10/encfs-300x300.png" width="300" height="300" srcset="https://tuxtweaks.com/wp-content/uploads/2013/10/encfs-300x300.png 300w, https://tuxtweaks.com/wp-content/uploads/2013/10/encfs-150x150.png 150w, https://tuxtweaks.com/wp-content/uploads/2013/10/encfs.png 512w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<h2>Install encfs</h2>
<p>If you are using Ubuntu or one of its derivatives like Linux Mint, you should be able to find <strong>encfs</strong> in your software repositories. In this case you can install it with</p>
<p>[term]sudo apt-get install encfs[/term]</p>
<h2>Create an Encrypted Folder with encfs</h2>
<p>Once <strong>encfs</strong> is installed on your system, you can create an encrypted folder in your home directory. In this example, I&#8217;m going to create an encrypted folder called <em>tuxtweaks</em>. This will be done from a terminal window. You will need to provide full path names when creating a new folder. You can use standard shortcuts though, as I will show.</p>
<p>[term]encfs ~/.tuxtweaks ~/tuxtweaks[/term]</p>
<p>This will create two folders. The first one, .<em><strong>tuxtweaks</strong></em>, will contain the encrypted information. The second one, <em><strong>tuxtweaks</strong></em>, is where the decrypted version will be mounted when you want to access your information. If neither of these folders exist already, you will be prompted asking if you want to create them. Enter &#8216;<strong>y</strong>&#8216; at the prompts to allow the folders to be created. You should then see something like the following:</p>
<p>[term]</p>
<pre>Creating new encrypted volume.
Please choose from one of the following options:
 enter "x" for expert configuration mode,
 enter "p" for pre-configured paranoia mode,
 anything else, or an empty line will select standard mode.</pre>
<p>[/term]</p>
<p>If you want the strongest encryption, enter &#8216;<strong>p</strong>&#8216; at the prompt. Otherwise, just hit <strong>[Enter]</strong> and your new encrypted folder will be created with the standard options.</p>
<p>After that you&#8217;ll see several messages listing the parameters of your new encrypted volume along with some warnings, and then a prompt to create a password for encryption. Make sure to use a password you will remember because there is no password recovery mechanism. After entering and verifying your password, the new folder will be created and mounted, ready to use.</p>
<h2>Using Your Encrypted Folder</h2>
<p>With your new encrypted folder mounted, you can use it just like any other folder on your system with the exception that hard links will not work if you set it up in paranoia mode. I expect this won&#8217;t be an issue for most users. Let&#8217;s go ahead and create a simple text file in the new folder to test it out.</p>
<p>[term]echo &#8220;GNU/Linux is my favorite computer operating system.&#8221; &gt;~/tuxtweaks/test.txt[/term]</p>
<p>Using the terminal or the file manager, you can see that you now have a new file called <em><strong>test.txt</strong></em> in the <em><strong>tuxtweaks</strong></em> folder. Upon opening this file you can see that it is a perfectly readable text file. Now navigate to your <strong><em>~/.tuxtweaks</em></strong> folder. This is the encrypted version of your folder. You can see that the file names don&#8217;t match and if you try to view the contents of the files you&#8217;ll find that they are scrambled.</p>
<h2>Unmounting an encfs Encrypted Folder</h2>
<p>Once you are done accessing or creating data in your encrypted folder, it&#8217;s best to unmount it so that your information is safely hidden away. <strong>encfs</strong> doesn&#8217;t have its own command to do this. Since it created a user file system it takes advantage of the FUSE packages to handle unmounting. We&#8217;ll use the <strong>fusermount</strong> command to unmount our encrypted folder.</p>
<p>[term]fusermount -u ~/tuxtweaks[/term]</p>
<p>Navigating your home directory you can see that the tuxtweaks directory is still there. If you enter that folder though you&#8217;ll find that it is empty.</p>
<h2>Mount an Encrypted Folder with encfs</h2>
<p>The next time you want to access your encrypted data, you&#8217;ll need to mount it again to decrypt it. You can just use the same command you used to create the folder in the first place.</p>
<p>[term]encfs ~/.tuxtweaks ~/tuxtweaks[/term]</p>
<h2>Uses</h2>
<p>I find that using <strong>encfs</strong> encrypted folders is a handy way to securely store financial information such as tax returns as well as for storing lists of log-in credentials. This way I only need to remember the password for my encrypted folder, then I can access my list of other log-in ID&#8217;s and passwords.</p>
<p>What will you use <strong>encfs</strong> for? Let me know in the comments.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tuxtweaks.com/2013/10/encrypted-folders-linux-encfs/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2629</post-id>	</item>
	</channel>
</rss>
