<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>xpressrazor</title>
	<atom:link href="https://xpressrazor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://xpressrazor.wordpress.com</link>
	<description>Xpressrazor&#039;s site</description>
	<lastBuildDate>Tue, 18 Jun 2013 00:42:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xpressrazor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s2.wp.com/i/buttonw-com.png</url>
		<title>xpressrazor</title>
		<link>https://xpressrazor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://xpressrazor.wordpress.com/osd.xml" title="xpressrazor" />
	<atom:link rel='hub' href='https://xpressrazor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Securely share files between your computer and phone using samba</title>
		<link>https://xpressrazor.wordpress.com/2013/06/16/securely-share-files-between-your-computer-and-phone-using-samba/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/16/securely-share-files-between-your-computer-and-phone-using-samba/#comments</comments>
		<pubDate>Sun, 16 Jun 2013 08:25:47 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[gufw]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ufw]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=331</guid>
		<description><![CDATA[Introduction In this tutorial, I am going to talk about samba and ufw services. If you limit your file share within a dedicated range of ip addresses in your local network, your files are generally secure (from outside access), and &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/16/securely-share-files-between-your-computer-and-phone-using-samba/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=331&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Introduction</h3>
<p>In this tutorial, I am going to talk about samba and ufw services. If you limit your file share within a dedicated range of ip addresses in your local network, your files are generally secure (from outside access), and still able to share files.</p>
<p><span id="more-331"></span></p>
<h3>Installation</h3>
<pre>sudo apt-get install samba smbclient nautilus-share gufw</pre>
<p>Add password for samba share</p>
<pre>sudo smbpasswd -a yourusername</pre>
<p><span style="color:#3366ff;">Note: </span>Replace yourusername with your actual username</p>
<h3>Rules</h3>
<p>Add rules for samba in your firewall rules list. For this tutorial, I assume your computer&#8217;s ip starts with <strong>192.168.0</strong>. E.g <strong>192.168.0.100</strong>. Type following commands in a terminal.</p>
<pre>sudo ufw allow from 192.168.0.0/24 to any app Samba</pre>
<p>Sometimes, you might also want to execute some commands on your computer, using ssh. If you want to add ssh as well, execute following commands. For this you have to install ssh package first.</p>
<pre>sudo apt-get install ssh
sudo ufw allow proto tcp from 192.168.0.0/24 to any port 22
rm -rf .ssh # Only, if there is a problem with your previous key</pre>
<p>Enable and start ufw</p>
<pre>sudo ufw enable
sudo service ufw start</pre>
<h3>Transmission</h3>
<p>If you want to control Transmission via a web interface, you have to enable <strong>Transmission -&gt; Edit -&gt; Preferences -&gt; Web -&gt; Enable web client</strong>. Next, setup the authentication and add the respective port to ufw list, just as second rule (ssh) above.</p>
<pre>sudo ufw allow proto tcp from 192.168.0.0/24 to any port 9091</pre>
<p>You can also limit the ip addresses using <strong>Only allow these IP addresses to connect</strong> checkbox and adding respective ip addresses.</p>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/06/screenshot-from-2013-06-16-142600.png"><img class="alignnone size-medium wp-image-337" alt="Screenshot from 2013-06-16 14:26:00" src="http://xpressrazor.files.wordpress.com/2013/06/screenshot-from-2013-06-16-142600.png?w=300&#038;h=78" width="300" height="78" /></a></h3>
<h3>Conclusion</h3>
<p>In this tutorial, we saw how we can add firewall and setup samba to share files. You can use some software like <strong>ES File Explorer</strong> in <strong>Android</strong> and copy files to or from your computer to your device. One thing you should note is, if you cannot access some services in your computer, first thing to do is disable ufw, access the service from external device and start exploring the rules needed to access that service through firewall. You can also use gufw to add or remove rules graphically.</p>
<p>Hope, this tutorial introduced you to file sharing on Linux via samba.</p>
<p>Cheers!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/331/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=331&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/16/securely-share-files-between-your-computer-and-phone-using-samba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/06/screenshot-from-2013-06-16-142600.png?w=300" medium="image">
			<media:title type="html">Screenshot from 2013-06-16 14:26:00</media:title>
		</media:content>
	</item>
		<item>
		<title>Search your torrent directory using find command</title>
		<link>https://xpressrazor.wordpress.com/2013/06/15/search-your-torrent-directory-using-find-command/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/15/search-your-torrent-directory-using-find-command/#comments</comments>
		<pubDate>Sat, 15 Jun 2013 03:30:23 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=317</guid>
		<description><![CDATA[Introduction Often, when you browse a torrent site for your favorite Linux distribution, you might ask the question, have I already downloaded this torrent or not? One way to find out is to actually go into your torrent directory and &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/15/search-your-torrent-directory-using-find-command/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=317&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Often, when you browse a torrent site for your favorite <strong>Linux distribution</strong>, you might ask the question, have I already downloaded this torrent or not? One way to find out is to actually go into your torrent directory and search (by the way, new nautilus is pretty good at searching), but it is always good to have a script (that uses <strong>find</strong> command) to do that.</p>
<h3><span id="more-317"></span></h3>
<h3>Script</h3>
<p>Create a file inside <strong>bin</strong> directory in your home folder (lets say <strong>torrent.sh</strong>) with following texts.</p>
<pre>#!/bin/bash
# Example ./torrent.sh Ubuntu Linux Or put it in PATH and type torrent.sh
STR="("
for i in "$@"; # for loop of all command line parameters
 do 
 STR+="$i|" # add pipe character for egrep 
done
STR="${STR%?})" # remove last pipe character
find ~/Torrent/ | egrep -i "$STR" # search (file1|file2|file3)</pre>
<p>This script is nothing special, other than it searches file names with spaces, lower or upper case etc. If <strong>Torrent</strong> directory is not in your home folder you can use following command to link it there</p>
<pre>ln -s /path/to/torrent ~/Torrent</pre>
<p>or you could simply change <strong>~/Torrent</strong> in above script to where ever you save your torrent files.</p>
<h3>Setup</h3>
<p>First make this file executable with following command</p>
<pre>chmod +x ~/bin/torrent.sh</pre>
<p>and if you have not done already, add <strong>~/bin</strong> to <strong>PATH</strong> environment variable in <strong>.bashrc</strong> file.</p>
<pre>export PATH=$PATH:~/bin</pre>
<h3>Search</h3>
<p>You can search files in your torrent directory using texts like following</p>
<pre>torrent.sh ubuntu
torrent.sh ubuntu linux</pre>
<h3>Conclusion</h3>
<p><span style="font-size:14px;font-weight:normal;line-height:1.7;">You can modify above script to search other directories and files too. I hope this script was useful to you.</span></p>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/317/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/317/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=317&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/15/search-your-torrent-directory-using-find-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>
	</item>
		<item>
		<title>Open all your reddit subscriptions using a single command (alias)</title>
		<link>https://xpressrazor.wordpress.com/2013/06/14/open-all-your-sub-reddit-subscriptions-using-a-single-command-alias/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/14/open-all-your-sub-reddit-subscriptions-using-a-single-command-alias/#comments</comments>
		<pubDate>Fri, 14 Jun 2013 01:17:22 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=306</guid>
		<description><![CDATA[Introduction The alias command is considered both good and bad. It can sometimes simplify long and complex commands, but on the other hand it can also be misused to hide commands everyone could learn otherwise. Long time Linux users have been using alias &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/14/open-all-your-sub-reddit-subscriptions-using-a-single-command-alias/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=306&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>The <strong>alias </strong>command is considered both good and bad. It can sometimes simplify long and complex commands, but on the other hand it can also be misused to hide commands everyone could learn otherwise.</p>
<p>Long time Linux users have been using <strong>alias</strong> for many commands and scripts. Even the operating system itself uses <strong>alias</strong> for certain commands e.g <strong>ll</strong> for <strong>ls -alF</strong>, <strong>la</strong> for <strong>ls -A</strong> and so on. However, this tutorial is not going to be about simplifying existing commands, rather it is going to be about <strong>alias</strong>ing your reddit subscriptions.</p>
<h3><span id="more-306"></span></h3>
<h3>1. Link in .bashrc</h3>
<p>Go to <strong>.bashrc</strong> (hidden file) in your home directory and add following line</p>
<pre>source ~/.alias</pre>
<p>We do this, because it does not clutter <strong>.bashrc</strong> file.</p>
<h3>2. Create the script</h3>
<p>Create a file called .<strong>alias</strong> in your home directory with following texts (add or delete links, change names based on your own reddit subscription list)</p>
<pre># reddit
alias rlin='chromium-browser http://www.reddit.com/r/linux &amp;'
alias rlinn='chromium-browser http://www.reddit.com/r/linux/new &amp;'
alias rgaming='chromium-browser http://www.reddit.com/r/linux_gaming &amp;'
alias rgentoo='chromium-browser http://www.reddit.com/r/gentoo &amp;'
alias rubuntu='chromium-browser http://www.reddit.com/r/ubuntu &amp;'
alias rlinq='chromium-browser http://www.reddit.com/r/linuxquestions &amp;'
alias rlinqn='chromium-browser http://www.reddit.com/r/linuxquestions/new &amp;'
alias rlashow='chromium-browser http://www.reddit.com/r/LinuxActionShow &amp;'
alias reddit='rlin rlinn rgaming rgentoo rubuntu rlinq rlinqn rlashow'</pre>
<p>As you can see, we have given separate names for different reddit links and finally consolidated under a single name (<strong>reddit</strong>).</p>
<p>All you have to do now is open up a new terminal (so that the <strong>.bashrc</strong> file gets refreshed) and type <strong>reddit</strong>. This command should open all your links on <strong>chromium-browser</strong> (change it to whatever you prefer, or make a variable instead, so that you can change browsers easily).</p>
<h3>Conclusion</h3>
<p>As we saw, how easy it is to create aliases for links. You can also create aliases for youtube searches, gmail, and pretty much whatever you want to be executed with few and easy commands. I hope this tutorial has given you a starting point to create aliases for different links.</p>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/306/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/306/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=306&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/14/open-all-your-sub-reddit-subscriptions-using-a-single-command-alias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>
	</item>
		<item>
		<title>Setup Ubuntu 12.04</title>
		<link>https://xpressrazor.wordpress.com/2013/06/12/setup-ubuntu-12-04/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/12/setup-ubuntu-12-04/#comments</comments>
		<pubDate>Wed, 12 Jun 2013 17:25:39 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=290</guid>
		<description><![CDATA[Introduction In this tutorial, I will try to list things you can do during Ubuntu LTS installation to make the experience little better. This tutorial will have specific settings for dell laptop, however I will mention when it comes in &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/12/setup-ubuntu-12-04/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=290&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Introduction</h3>
<p>In this tutorial, I will try to list things you can do during Ubuntu LTS installation to make the experience little better. This tutorial will have specific settings for dell laptop, however I will mention when it comes in this tutorial, so that you can differentiate your setup. If you want to play with more cutting edge distro try my <a href="http://xpressrazor.wordpress.com/2013/06/06/install-arch-linux/">Arch Linux Tutorial</a>.</p>
<h3><span id="more-290"></span></h3>
<h3>1. Partition</h3>
<p>If you have used Linux for quite some time now, it is time to experience with keeping a separate <strong>/home</strong> partition.</p>
<p>During installation, at disk management screen, go to advanced partition window and create separate<strong> / (root)</strong> and <strong>/home</strong> partitions. It is also a good idea to create a swap partition as big as the RAM size (if it is greater than 2GB).</p>
<p><a href="http://xpressrazor.files.wordpress.com/2013/06/advanced_partition.png"><img class="alignnone size-medium wp-image-294" alt="advanced_partition" src="http://xpressrazor.files.wordpress.com/2013/06/advanced_partition.png?w=300&#038;h=201" width="300" height="201" /></a></p>
<p>If you re-install or upgrade Ubuntu, go to the same window, select your<strong> /home</strong> partition, and press <strong>Change</strong>, select partition type as it is (e.g <strong>ext4</strong>) and mount it under <strong>/home</strong>. Don&#8217;t tick the Format option.</p>
<p>You can use same method to mount other drives as well e.g ntfs partitions (under /media e.g. /media/C, /media/D etc).</p>
<p><span style="color:#ff0000;">Warning: Don&#8217;t tick the Format option for anything other than the root (/).</span></p>
<p>During each subsequent installations, edit <strong>swap</strong> space too, because sometimes it does not get picked up the operating system automatically.</p>
<h3>2. Username</h3>
<p><span style="line-height:1.7;">If this is your first Ubuntu installation (I mean before separate <strong>/home</strong> partiton), use whatever username you prefer. From second installation </span>onward,<span style="line-height:1.7;"> use the same username as you used in your previous installations. This will help you restore all your files as it was in your last installation.</span></p>
<p>If for some reasons you want to get a fresh look, you can remove some of the files using following command.</p>
<pre>cd ~/.config
rm -rf compiz-1 dconf evolution gnome-session gtk-3.0 ibus libaccounts-glib nautilus Trolltech.conf ubuntuone update-notifier user-dirs.dirs user-dirs.locale</pre>
<h3>3. Locked Settings</h3>
<p>If you find that you can&#8217;t change the wallpaper or wallpaper gets reset if you logout and log back in, you have to reassign all hidden files to your new username and usergroup.</p>
<pre>sudo chown username:usergroup -R .*</pre>
<p>Note: Here username is your own login username, and often usergroup is same as your username.</p>
<p>If you use <strong>groups</strong> and <strong>whoami</strong> commands, you will know your group and username.</p>
<h3>4. Enable canonical partners</h3>
<p>Go to <strong>Ubuntu Software Center -&gt; Edit -&gt; Software Sources -&gt; Other Software</strong> and enable <strong>Canonical Partners (both)</strong>. This will enable third party software like skype.</p>
<h3>5. Additional packages</h3>
<p>In <strong>Software Sources -&gt; Other Software</strong> tab (from step 4) add following ppas.</p>
<p>a. For dell laptop add <strong>ppa:canonical-hwe-team/sputnik-kernel</strong> in the <strong>APT line</strong> textbox.</p>
<p>b. For Android MTP add <strong>ppa:langdalepl/gvfs-mtp</strong> ppa.</p>
<p>c. For Sandy bridge and newer architecture add <strong>ppa:glasen/intel-driver</strong>.</p>
<p>d. For newer graphics drivers add <strong>ppa:ubuntu-x-swat/x-updates</strong></p>
<h3>6. Update</h3>
<p>Run following command to update the meta-data of software sources</p>
<pre>sudo apt-get update</pre>
<p>Next, install synaptic</p>
<pre>sudo apt-get install synaptic</pre>
<p>Note: If you don&#8217;t want to be bothered all the time for update (update is good thing) you can set <strong>Automatically check for updates</strong> to <strong>Never</strong> in software sources.</p>
<h3>7. Sputnik for dell (optional)</h3>
<p>To install sputnik kernel, go to synaptic and press Origin button located on bottom left. Go to <strong>LP-PPA-canonical-hwe-team-sputnik-kernel/precise</strong> link and install latest versions of following packages.</p>
<pre>linux-headers-version-no
linux-headers-version-no-generic
linux-image-version-no-generic</pre>
<p>E.g At the time of this writing, those packages were</p>
<pre> linux-headers-3.2.0-48
 linux-headers-3.2.0-48-generic
 linux-image-3.2.0-48-generic</pre>
<h3>8. Updating Ubuntu</h3>
<p>Run following command to update packages to its latest versions</p>
<pre>sudo apt-get dist-upgrade</pre>
<p>Note: This command will upgrade <strong>gvfs</strong> packages too, that we added previously.</p>
<h3>9. Install some software</h3>
<pre>sudo apt-get install ubuntu-restricted-extras ia32-libs-multiarch:i386 vlc artha chromium-browser vim audacity chmsee clementine youtube-dl cryptkeeper dosbox smplayer feh xchat compizconfig-settings-manager bum easytag gimp meld openshot ghex pavucontrol mupen64plus soundconverter ffmpeg aria2 uget laptop-mode-tools samba smbclient nautilus-share fbreader skype gufw keepass2 nautilus-open-terminal</pre>
<p>Note: Remove the ones you won&#8217;t use from above line.</p>
<h3>10. Brightness and Battery</h3>
<p>Change <strong>GRUB_CMDLINE_LINUX</strong> in <strong>/etc/default/grub</strong> to look this following</p>
<pre>GRUB_CMDLINE_LINUX="acpi_backlight=vendor dell_laptop.backlight=0"</pre>
<p>And run following command to add it to boot options.</p>
<pre>sudo update-grub</pre>
<p>This should set the brightness level to an acceptable level, but if you want to play more with the brightness, try changing values inside sub-folders of /sys/class/backlight like</p>
<pre>echo 2294 &gt; /sys/class/backlight/intel_backlight/brightness</pre>
<p>You can add this text inside <strong>/etc/rc.local</strong> or edit<strong> /etc/laptop-mode/conf.d/lcd-brightness.conf</strong>, if that works better.</p>
<p>If you want to increase battery life of your laptop, you can change <strong>GRUB_CMDLINE_LINUX</strong> to following setting as well (If your laptop hangs too much, change rc6 value to 1).</p>
<pre>GRUB_CMDLINE_LINUX="acpi_osi=Linux drm.vblankoffdelay=1 i915.i915_enable_rc6=7 i915.lvds_downclock=1 i915.i915_enable_fbc=1 acpi_backlight=vendor dell_laptop.backlight=0"</pre>
<h3>11. Bluetooth vs wireless problem (optional)</h3>
<p>If your wireless turns off while you disable bluetooth add following line at the end of <strong>/etc/modprobe.d/blacklist.conf</strong>.</p>
<pre>blacklist dell-laptop</pre>
<h3>12. Hide mounted drives</h3>
<p>For some people, having the mounted drives in the launcher is a good thing, but not for all. In some cases you can remove those icons just by choosing &#8220;Unlock from Launcher&#8221;, but it might not work in all cases. If you remember, we have installed a software called<strong> compizconfig-settings-manager</strong> above.</p>
<p>Open that software and go to<strong> Ubuntu Unity Plugin -&gt; Experimental</strong> and Change <strong>Show Devices</strong> to &#8220;<strong>Never</strong>&#8220;.</p>
<h3>13. Enable SNA</h3>
<p>We have already installed the sna packages (sandy bridge and newer processor), when we did the upgrade (Section 8, above). Now, all you have to do is add some text to <strong>/etc/X11/xorg.conf</strong></p>
<pre>$ sudo gedit /etc/X11/xorg.conf
 Section "Device"
  Identifier "intel"
  Driver "intel"
  Option "AccelMethod" "sna"
 EndSection</pre>
<p>After reboot, run following command to find out, if sna is enabled.</p>
<pre>$ cat /var/log/Xorg.0.log | grep -i sna
SNA initialized with Sandybridge backend</pre>
<h3>14. Tips</h3>
<p>For a stable experience, make note of following tips.</p>
<ul>
<li>Depending upon your target audience, you can remove synaptic and compizconfig-settings-manager, so that they don&#8217;t accidentally break the system. Use following command to remove these packages</li>
</ul>
<pre>    sudo apt-get remove synaptic compizconfig-settings-manager</pre>
<ul>
<li>Use <strong>Ubuntu Software Center</strong> to install and remove applications, so that you won&#8217;t break packages.</li>
</ul>
<ul>
<li>Don&#8217;t play with ppas.</li>
</ul>
<h3>Conclusion</h3>
<p>This was like a note to me, while installing different packages in Ubuntu. I hope it helps you too.</p>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/290/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=290&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/12/setup-ubuntu-12-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/06/advanced_partition.png?w=300" medium="image">
			<media:title type="html">advanced_partition</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Arch Linux</title>
		<link>https://xpressrazor.wordpress.com/2013/06/06/install-arch-linux/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/06/install-arch-linux/#comments</comments>
		<pubDate>Thu, 06 Jun 2013 12:47:58 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=269</guid>
		<description><![CDATA[Important things first. Before you start, make sure you have created a partition, formatted it and ready to install Arch. In this tutorial, I will use internet via wireless. Make sure you have downloaded the latest version of Arch, because &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/06/install-arch-linux/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=269&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Important things first.</h3>
<ol>
<li>Before you start, make sure you have created a partition, formatted it and ready to install Arch.</li>
<li>In this tutorial, I will use internet via wireless. Make sure you have downloaded the latest version of Arch, because I had terrible luck previously.</li>
<li>Use <b>root</b> as username in multiple terminals</li>
<li>Copy text from blocks from this tutorial (depending upon context) and use <strong>sudo</strong> whenever you run commands as normal user. You can use <strong>sudo su</strong> to switch to root user.</li>
<li>If you have dual graphics cards (e.g Intel and AMD) and your laptop&#8217;s dicrete graphics card is awake and burning the laptop like fire (in this case AMD with radeon drivers) shut the discrete card.</li>
</ol>
<p><span id="more-269"></span></p>
<pre>echo OFF &gt; /sys/kernel/debug/vgaswitcheroo/switch</pre>
<h3>1. Mount media</h3>
<p>If you have downloaded text from this tutorial or others from <a href="https://wiki.archlinux.org/" rel="nofollow">https://wiki.archlinux.org/</a> and kept it in a separate partiton (e.g a ntfs partiton, which we will call D drive in this tutorial), you can mount it using following command.</p>
<pre>mkdir -p /media/D
mount /dev/sda3 /media/D</pre>
<p>Here /dev/sda3 is my NTFS partition.</p>
<h3>2. Create and enable swap.</h3>
<p>/dev/sda7 is my existing swap partition from another distribution.</p>
<pre>mkswap /dev/sda7
swapon /dev/sda7</pre>
<h3>3. Mount installation drive</h3>
<pre>mount /dev/sda1 /mnt</pre>
<p>If you have separate partition for /home, this is the time to mount it too (unmount it later when unmounting /dev/sda1)</p>
<p>E.g</p>
<pre>mkdir /mnt/home
mount /dev/sda2 /mnt/home</pre>
<h3>4. Wireless</h3>
<p><b>a. Find</b></p>
<pre>iw dev

Interface wlp2s0</pre>
<p>You might get another name for the wireless interface, replace that name in all the places where we use <b>wlp2s0</b> below. If nothing shows up, you are in a little bit of trouble. Use &#8220;<strong>lspci</strong>&#8221; command or &#8220;<strong>dmesg | grep -i wireless</strong>&#8221; and determine your wireless drive, reboot and search how people have solved this problem while installing Arch. This is such a broad topic, I could not do it justice discussing here. Most of the things are discussed in <a href="https://wiki.archlinux.org/index.php/Wireless_Setup" rel="nofollow">https://wiki.archlinux.org/index.php/Wireless_Setup</a>. Start from there. If your driver is not loaded, you might have to download and setup before following the tutorial.</p>
<p><b>b. Bring it up</b></p>
<pre>ip link set wlp2s0 up</pre>
<p><b>c. Search wireless SSID</b></p>
<pre>iw dev wlp2s0 scan | grep SSID

SSID: MyRoutersSSID</pre>
<p><b>d. Edit /etc/wpa_supplicant/wpa_supplicant.conf</b></p>
<pre>network={
ssid="MyRoutersSSID"
proto=WPA RSN
key_mgmt=WPA-PSK WPA-EAP
pairwise=CCMP
group=CCMP
psk="mywirelesspassword"
}</pre>
<p>You will have to again create this file later in chrooted environment too (before we restart, I will mention later)</p>
<p><b>e. Enable dhcp</b></p>
<pre>dhcpd wlp2s0</pre>
<p>Simultaneously (above will break, if you take much longer time)</p>
<p><b>f. Connect</b></p>
<pre>wpa_supplicant -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf</pre>
<h3>5. Install base system</h3>
<p><b>a. Pacstrap</b></p>
<pre>pacstrap  -i /mnt base-devel</pre>
<p>Select <strong>all</strong> and press Enter</p>
<p><b>b. Generate Fstab</b></p>
<pre>genfstab -U -p /mnt &gt;&gt; /mnt/etc/fstab</pre>
<p><b>c. Chroot</b></p>
<pre>arch-chroot /mnt</pre>
<p><b>d. Set up the local language</b></p>
<pre>nano /etc/locale.gen</pre>
<p>Uncomment</p>
<pre>en_US.UTF-8 UTF-8</pre>
<p>Run following commands to set this</p>
<pre>locale-gen
echo LANG=en_US.UTF-8 &gt; /etc/locale.conf
export LANG=en_US.UTF-8</pre>
<p><b>e. Replace zone and clock</b></p>
<pre>ln -s /usr/share/zoneinfo/Country/Location /etc/localtime
hwclock --systohc --utc</pre>
<p>Note: Here <b>Country</b> is your country, and <b>Location</b> is your timezone location. E.g /usr/share/zoneinfo/Africa/Abidjan</p>
<p><b>f. Multilib for 64-bit users</b></p>
<pre>nano /etc/pacman.conf</pre>
<p><i>Uncomment following lines</i></p>
<pre>[multilib]
Include=/etc/pacman.d/mirrorlist</pre>
<p><b>g. Update Software Repository</b></p>
<pre>pacman -Sy</pre>
<h3>6. Setup</h3>
<p><b>a. Root password</b></p>
<pre>passwd</pre>
<p><b>b. Add user</b></p>
<pre>useradd -m -g users -G wheel,storage,power -s /bin/bash yourusername
passwd yourusername</pre>
<p><b>c. Add sudo</b></p>
<pre>pacman -S sudo</pre>
<p><b>d. Add user to sudo</b></p>
<pre>EDITOR=nano visudo</pre>
<p>Scroll and find &#8220;%wheel ALL=(ALL) ALL&#8221; and uncomment it</p>
<p><b>e. Install bash-completion</b></p>
<pre>pacman -S bash-completion</pre>
<p><b>f. Hostname</b></p>
<pre>echo yourusername-comp &gt; /etc/hostname</pre>
<p><b>g. Setup grub</b></p>
<pre>pacman -S grub-bios
grub-install --target=i386-pc --recheck /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo</pre>
<p>If second command does not execute due to missing file, don&#8217;t worry.</p>
<p><b>h. Grub dual boot (os-prober)</b></p>
<pre>pacman -S os-prober
grub-mkconfig -o /boot/grub/grub.cfg</pre>
<p><b>j. Install wpa_supplicant, iw and configure wpa_supplicant.conf as above (i.e configuration file)</b></p>
<pre>pacman -S wpa_supplicant iw</pre>
<p><b>i. Exit</b></p>
<pre>exit
umount /mnt
reboot</pre>
<h3>7. Post Install Setup</h3>
<p><b>a. Network</b></p>
<p>You could follow following steps without rebooting, but this is the good time to reboot and see if things works as we planned. After reboot configure and connect to internet using wpa_supplicant as we did during initial section above.</p>
<p><b>b. Install X11 packages and video drivers</b></p>
<pre>pacman -S xorg-server xorg-xinit xorg-server-utils
pacman -S mesa
pacman -S xf86-video-intel</pre>
<p><b>c. Input devices</b></p>
<pre>pacman -S xf86-input-synaptics</pre>
<p><b>d. Desktop Environments</b></p>
<p><i>Gnome</i></p>
<pre>pacman -S gnome

systemctl enable gdm.service
systemctl start gdm.service</pre>
<p>or</p>
<p><i>KDE</i></p>
<pre>pacman -S kde

systemctl enable kdm.service
systemctl start kdm.service</pre>
<p>In this tutorial I went gnome route.</p>
<p><b>e. Mount ntfs</b></p>
<pre>pacman -S ntfs-3g
blkid</pre>
<p>Add to /etc/fstab</p>
<pre>UUID=18BDC844149627BC          /media/D        ntfs-3g  uid=yourusername,gid=users,umask=0022</pre>
<p><b>f. Install some apps</b></p>
<pre>pacman -S gedit skype lib32-libpulse firefox vlc pavucontrol smplayer transmission-gtk
pacman -S file-roller p7zip unrar zip arj unace nautilus-open-terminal nautilus-actions
pacman -S uget aria2
pacman -S flashplugin</pre>
<p><b>g. Media plugins</b></p>
<pre>pacman -S gstreamer0.10-plugins a52dec faac faad2 flac jasper lame libdca libdv libmad libmpeg2 libtheora libvorbis libxv opus wavpack x264 xvidcore ffmpeg totem-plugin gst-libav</pre>
<p><b>h. Fix font</b></p>
<pre>pacman -S gnome-tweak-tool</pre>
<p>Go to gnome-tweak-tool <strong>Fonts -&gt; Antialiasing</strong> and set it to <strong>Rgba</strong></p>
<p>If you still did not like these fonts, look at <a href="https://wiki.archlinux.org/index.php/Font_Configuration" rel="nofollow">https://wiki.archlinux.org/index.php/Font_Configuration</a>. I found <b>Infinality</b> quite good. See <b>Infinality: the easy way</b> section. If the installer asks about conflicting <b>lib32-freetype2</b> and similar packages you can choose to replace them in the interactive installer.</p>
<p><b>i. Install vgaswitcheroo using aur</b></p>
<p>Download aur archive (e.g systemd-vgaswitcheroo-units.tar.gz, search for vgaswitcheroo aur)</p>
<pre>makepkg
pacman -U systemd-vgaswitcheroo-units-1.2-2-any.pkg.tar.xz</pre>
<p>Enable vgaswitcheroo</p>
<pre>echo radeon &gt; /etc/modules-load.d/radeon.conf
systemctl enable vgaswitcheroo.service</pre>
<p><b>j. Enable NetworkManager at startup</b></p>
<pre>systemctl enable NetworkManager
systemctl start NetworkManager</pre>
<p><b>k. 32-bit libraries for some games</b></p>
<pre>pacman -S lib32-sdl lib32-openal lib32-alsa-lib lib32-libstdc++5 lib32-intel-dri lib32-libgl</pre>
<p><b>l. PowerSaving</b><br />
Download and install tlp and tlp-rdw aur</p>
<pre>pacman -S git # (Dependency for aur)
pacman -S hdparm wireless_tools rfkill ethtool</pre>
<p>While installing aur first try to install dependencies using pacman, if those files are not found there, find them in another aur file and try to install them first.</p>
<pre>systemctl start tlp
systemctl enable tlp</pre>
<p>To run TLP on suspend/hibernate</p>
<p># Copy following text into /etc/systemd/system/tlp_start.service</p>
<pre>[Unit]
Description=Start the TLP power management script after suspend/hibernation
After=basic.target
After=suspend.target
After=hibernate.target
StopWhenUnneeded=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/sbin/tlp start

[Install]
WantedBy=basic.target
WantedBy=suspend.target
WantedBy=hibernate.target</pre>
<p><strong>m. Disable auto suspend (optional)</strong></p>
<p>Add following line to /etc/systemd/logind.conf</p>
<pre>HandleLidSwitch=ignore</pre>
<p><b>n. Other package management</b></p>
<p><i>Remove</i></p>
<pre>pacman -R package_nameg packages  # Single package
pacman -Rs package_name # Dependencies, not required by others
pacman -Rsc package_name # All dependencies (Be careful)</pre>
<p><i>Upgrade</i></p>
<pre>pacman -Syu</pre>
<p><i>Search</i></p>
<pre>pacman -Ss package1 package2
pacman -Qs package1 package2 # Already installed</pre>
<p><i>Info</i></p>
<pre>pacman -Si package_name
pacman -Qi package_name # Locally installed</pre>
<p><i>Aur</i></p>
<pre>pacman -U package.tar.xz
pacman -U http://www.example.com/repo/example.pkg.tar.xz # Remote</pre>
<p><b>o. Install cinnamon</b><br />
If you found gnome 3 tiresome and uncomfortable to configure, you can install cinnamon</p>
<pre>pacman -S cinnamon cinnamon-control-center cinnamon-screensaver muffin nemo</pre>
<p>Reset your Desktop and reboot before login to cinnamon</p>
<pre>cd ~/.config
rm -rf compiz-1 dconf evolution gnome-session gtk-3.0 ibus libaccounts-glib nautilus Trolltech.conf update-notifier user-dirs.dirs  user-dirs.locale
reboot</pre>
<p>I hope, you found this tutorial useful.</p>
<p>Cheers!!</p>
<h3>References</h3>
<ul>
<li><a href="http://news.softpedia.com/news/A-Beginners-Guide-to-Installing-Arch-Linux-352365.shtml" rel="nofollow">http://news.softpedia.com/news/A-Beginners-Guide-to-Installing-Arch-Linux-352365.shtml</a></li>
<li><a href="https://wiki.archlinux.org/index.php/Pacman" rel="nofollow">https://wiki.archlinux.org/index.php/Pacman</a></li>
<li><a href="https://wiki.archlinux.org/index.php/Wireless_Setup" rel="nofollow">https://wiki.archlinux.org/index.php/Wireless_Setup</a></li>
<li><a href="https://wiki.archlinux.org/index.php/Font_Configuration" rel="nofollow">https://wiki.archlinux.org/index.php/Font_Configuration</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/269/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/269/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=269&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/06/install-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>
	</item>
		<item>
		<title>Install java (jdk) on Linux</title>
		<link>https://xpressrazor.wordpress.com/2013/06/02/install-java-jdk-on-linux/</link>
		<comments>https://xpressrazor.wordpress.com/2013/06/02/install-java-jdk-on-linux/#comments</comments>
		<pubDate>Sun, 02 Jun 2013 14:31:18 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=261</guid>
		<description><![CDATA[Introduction If you have downloaded java development kit (JDK) Linux binary tar.gz file from oracle.com (e.g jdk-7u21-linux-x64.tar.gz), you might probably be thinking how do I install it. On most Linux distributions, you might be able to install java or jdk using official &#8230; <a href="https://xpressrazor.wordpress.com/2013/06/02/install-java-jdk-on-linux/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=261&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Introduction</h3>
<p>If you have downloaded java development kit (JDK) Linux binary tar.gz file from <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">oracle.com</a> (e.g jdk-7u21-linux-x64.tar.gz), you might probably be thinking how do I install it. On most Linux distributions, you might be able to install java or jdk using official or third party repository, but some people prefer doing it offline. In this tutorial, I will try to explain that.</p>
<h3><span id="more-261"></span></h3>
<h3>Installation</h3>
<p>Unzip the downloaded tar.gz binary file to some location in your computer. It would be wise to use a partition that you don&#8217;t delete during Linux upgrades. For this tutorial, I assume you have downloaded and unzipped the file in your home directory (/home/username). Lets say the unzipped directory is /home/username/jdk1.7.0. To install javac (compiler), java, and jar files run following commands</p>
<pre>sudo update-alternatives --install /usr/bin/java java /home/username/jdk1.7.0/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /home/username/jdk1.7.0/bin/javac 1
sudo update-alternatives --install /usr/bin/jar jar /home/username/jdk1.7.0/bin/jar 1</pre>
<p>Note: Change username to your own login username.</p>
<p>To know, if proper version of java is installed type <strong>java -version</strong> in a terminal.</p>
<h3>Two instances</h3>
<p><span style="line-height:1.7;">Suppose you had already installed openjdk before installing oracle jdk. If you want to choose one as default, use following command.</span></p>
<pre>sudo update-alternatives --config java</pre>
<h3>Environment Variables (Optional)</h3>
<p>Unless some program require, you don&#8217;t have to do this.  However, if some applications shows a message indicating a need for environment variables like <strong>JAVA_HOME</strong> or <strong>JDK_HOME</strong> you can add it to .bashrc (hidden) file in your home directory as following.</p>
<pre>JAVA_HOME=/home/username/jdk1.7.0</pre>
<p>Cheers !!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/261/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=261&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/06/02/install-java-jdk-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix catalyst driver in Ubuntu 13.04</title>
		<link>https://xpressrazor.wordpress.com/2013/05/31/fix-catalyst-driver-in-ubuntu-13-04/</link>
		<comments>https://xpressrazor.wordpress.com/2013/05/31/fix-catalyst-driver-in-ubuntu-13-04/#comments</comments>
		<pubDate>Fri, 31 May 2013 18:12:57 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[13.04]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[catalyst]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=246</guid>
		<description><![CDATA[1. Introduction I found lots of people struggling to get catalyst driver work in Ubuntu 13.04. This issue has been persistent for some laptops, ever since Ubuntu 13.04 came out, specially for Intel, AMD dual graphics setup. For people, who &#8230; <a href="https://xpressrazor.wordpress.com/2013/05/31/fix-catalyst-driver-in-ubuntu-13-04/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=246&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>1. Introduction</h3>
<p>I found lots of people struggling to get catalyst driver work in Ubuntu 13.04. This issue has been persistent for some laptops, ever since Ubuntu 13.04 came out, specially for Intel, AMD dual graphics setup. For people, who have been looking at catalyst drivers ever since <a href="http://ubuntuforums.org/showthread.php?t=1930450">http://ubuntuforums.org/showthread.php?t=1930450</a> post was published, should not be that hard to find the solution, but for those who are new to Linux, or don&#8217;t have time for these kinds of issues, this issue might be a show stopper bug. In this post I will try to reiterate the solution discussed at <a href="http://askubuntu.com/questions/205112/how-do-i-get-amd-intel-hybrid-graphics-drivers-to-work">askubuntu.com</a>.</p>
<p><span id="more-246"></span></p>
<h3>2. Installation</h3>
<p>a. Install the packages you need to compile the driver</p>
<pre>sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6
sudo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliases
sudo apt-get install linux-headers-generic xserver-xorg-core libgcc1</pre>
<p>b. Fix the 64-bit issue</p>
<pre>sudo apt-get install ia32-libs lib32gcc1 libc6-i386
cd /usr ; sudo ln -svT lib /usr/lib64</pre>
<p>c. Download two files needed to fix this issue</p>
<ul>
<li><a href="http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu//pool/main/u/udev/libudev0_175-0ubuntu13_amd64.deb" rel="nofollow">http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu//pool/main/u/udev/libudev0_175-0ubuntu13_amd64.deb</a></li>
<li><a href="https://docs.google.com/file/d/0B0tTaH4qTIIXdDF3NThFWUtrYlU/edit?usp=sharing" rel="nofollow">https://docs.google.com/file/d/0B0tTaH4qTIIXdDF3NThFWUtrYlU/edit?usp=sharing</a></li>
</ul>
<p><span style="color:#ff0000;">Warning:</span> <span style="color:#ff0000;">Install second file at your own risk. File with same name from ubuntu repository did not work.</span></p>
<p>d. Remove old fglrx driver ( if installed already), and reboot</p>
<pre>sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo rm /etc/X11/xorg.conf
sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-glx:i386 libgl1-mesa-dri:i386
sudo dpkg-reconfigure xserver-xorg
sudo reboot</pre>
<p>e. Build and install the drivers downloaded from <a href="http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx">http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx</a></p>
<pre>sudo sh ./amd-catalyst-XX.X-linux-x86.x86_64.run --buildpkg Ubuntu/raring
sudo dpkg -i fglrx*.deb
sudo reboot</pre>
<p>f. After reboot, go to a virtual terminal (Ctrl + Alt + F1), before login, and initialize the driver (in other words, create xorg.conf file).</p>
<pre>sudo aticonfig --initial -f</pre>
<p>g. Install two files we downloaded above (<strong>libudev0</strong> and <strong>xserver-xorg-video-intel</strong>)</p>
<pre>sudo dpkg -i *.deb
sudo reboot</pre>
<p>h. Install synaptic and lock these two files (<strong>libudev0</strong> and <strong>xserver-xorg-video-intel</strong>) from updating.</p>
<h3>3. Other Errors</h3>
<h5>a. Fix low-graphics mode error</h5>
<p>If you encounter following error, before loging, you either have not installed the drivers properly, or you have let <strong>libudev0</strong> and <strong>xserver-xorg-video-intel</strong> update (even <strong>catalyst 13.6</strong> <strong>beta</strong> drivers did not fix this) . To fix this issue, go to the directories, where you had downloaded these two files earlier, and reinstall them again using dpkg as above (<strong>2.g</strong>).</p>
<p><a href="http://xpressrazor.files.wordpress.com/2013/05/graphics_error.jpg"><img class="alignnone size-medium wp-image-247" alt="graphics_error" src="http://xpressrazor.files.wordpress.com/2013/05/graphics_error.jpg?w=300&#038;h=60" width="300" height="60" /></a></p>
<h5>b. Fix unity, if it broke during installation (this will reset your Desktop)</h5>
<pre>cd ~/.config
rm -rf compiz-1 dconf gnome-session</pre>
<h5>c. TF2 steam GL error</h5>
<p>If you are using catalyst 13.6 beta, as of 15 June 2013, there is still no fix for this issue, as noted in <a href="http://support.amd.com/us/kbarticles/Pages/AMDCatalyst13-6LINBetaDriver.aspx">AMD Catalyst 13.6 Linux Beta Driver</a>. For everything else, it seems to work.</p>
<p>If you run steam using<strong> LIBGL_DEBUG=verbose steam</strong>, in some cases you may even encounter architecture incompatibility error. If the application loads, there is nothing to worry about, because the application searches the library on multiple locations, and finds the correct one ultimately. I hope these issues (steam, 64-bit vs 32-bit library) get fixed, when the final version is released.</p>
<h3>4. Test</h3>
<p><strong>a.</strong> Run fgl_glxgears and see if it runs, and check the speed</p>
<pre>$ fgl_glxgears
<a href="http://xpressrazor.files.wordpress.com/2013/05/fgl_glxgears.png"><img alt="fgl_glxgears" src="http://xpressrazor.files.wordpress.com/2013/05/fgl_glxgears.png?w=300&#038;h=175" width="300" height="175" /></a></pre>
<p><strong>b.</strong> If you have dual graphics cards (Intel and AMD), switch between both and see if they work</p>
<pre>sudo aticonfig --px-igpu # for integrated intel card
sudo aticonfig --px-dgpu # for discrete amd card
aticonfig --pxl  # list currently active card</pre>
<h3>5. Reset Everything</h3>
<p>If this fix did not work for you, it is time to reset everything and go back to where you were before the installation.</p>
<p>Before doing any of these, first go to synaptic and remove lock from those two files ( <strong>libudev0</strong> and <strong>xserver-xorg-video-intel</strong>) we locked previously.</p>
<p>You don&#8217;t have to do anything other than repeat commands at <strong>2.d</strong> above. I will list them once again anyway.</p>
<pre>sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo rm /etc/X11/xorg.conf
sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dri libgl1-mesa-glx:i386 libgl1-mesa-dri:i386
sudo dpkg-reconfigure xserver-xorg
sudo reboot</pre>
<p>Hope it helps. Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/246/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=246&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/05/31/fix-catalyst-driver-in-ubuntu-13-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/graphics_error.jpg?w=300" medium="image">
			<media:title type="html">graphics_error</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/fgl_glxgears.png?w=300" medium="image">
			<media:title type="html">fgl_glxgears</media:title>
		</media:content>
	</item>
		<item>
		<title>Rename large list of files by removing just one character</title>
		<link>https://xpressrazor.wordpress.com/2013/05/31/rename-large-list-of-files-by-removing-just-one-character/</link>
		<comments>https://xpressrazor.wordpress.com/2013/05/31/rename-large-list-of-files-by-removing-just-one-character/#comments</comments>
		<pubDate>Fri, 31 May 2013 16:33:10 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rename]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=235</guid>
		<description><![CDATA[Sometimes, we have a large collection of files e.g mp3 files that plays fine in a computer, but fails to copy to an external devices like a mobile phone, because of weird file naming. One of such cases happened to me, where &#8230; <a href="https://xpressrazor.wordpress.com/2013/05/31/rename-large-list-of-files-by-removing-just-one-character/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=235&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Sometimes, we have a large collection of files e.g mp3 files that plays fine in a computer, but fails to copy to an external devices like a mobile phone, because of weird file naming. One of such cases happened to me, where all the files in a directory had pipe character (<strong>|</strong>) on them.</p>
<p>Those files would play fine on a computer, but failed to copy to a phone. Therefor,e I had to create following script to rename all those files, just by removing the pipe character(|). Here is the script (<strong>rename.sh</strong>).</p>
<pre>for file in *.mp3
do
 rename 's/\|//' "$file"
done</pre>
<p>I hope it helps someone.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/235/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=235&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/05/31/rename-large-list-of-files-by-removing-just-one-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>
	</item>
		<item>
		<title>Create your second QML app for Ubuntu touch</title>
		<link>https://xpressrazor.wordpress.com/2013/05/30/create-your-second-qml-app-for-ubuntu-touch/</link>
		<comments>https://xpressrazor.wordpress.com/2013/05/30/create-your-second-qml-app-for-ubuntu-touch/#comments</comments>
		<pubDate>Thu, 30 May 2013 15:01:30 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[touch]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=201</guid>
		<description><![CDATA[Why second ? I expect you have already completed the first one at http://developer.ubuntu.com/get-started/. I hope you are also familiar with little javascript as well. 1. Introduction In this post, I will try to provide enough resources for you to get &#8230; <a href="https://xpressrazor.wordpress.com/2013/05/30/create-your-second-qml-app-for-ubuntu-touch/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=201&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Why second ?</strong></p>
<p>I expect you have already completed the first one at <a href="http://developer.ubuntu.com/get-started/">http://developer.ubuntu.com/get-started/</a>. I hope you are also familiar with little javascript as well.</p>
<h3>1. Introduction</h3>
<p>In this post, I will try to provide enough resources for you to get started on mobile application development using QT Meta Language (QML). Although QML is not Ubuntu specific package, there will be some libraries and convention used in this tutorial that is specific for Ubuntu. However, you could easily use resources mentioned in this post to port your application to the platform of your choice.</p>
<h3><span id="more-201"></span></h3>
<h3>2. Resources</h3>
<p>Install two packages namely <b>ubuntu-ui-toolkit-doc</b> and <b>qt4-doc-html </b> and bookmark following files using a browser.</p>
<ul>
<li> <strong>file:///usr/share/ubuntu-ui-toolkit/doc/html/overview-ubuntu-sdk.html</strong>.</li>
<li><strong>file:///usr/share/qt4/doc/html/qdeclarativeelements.html</strong>.</li>
</ul>
<p><span style="line-height:1.7;">These are links to API documentation for Ubuntu touch and QML respectively, which you might need while writing the actual code.</span></p>
<p>However you might ask, how about actually learning from something like a book. Well, the resources at <a href="http://qt-project.org/wiki/Developer-Guides">http://qt-project.org/wiki/Developer-Guides</a> does exactly the same. Some of the files I found there useful for writing QML applications are as follows.</p>
<ul>
<li>Introduction to Application Development with Qt Quick <a href="http://releases.qt-project.org/learning/developerguides/qtquickappdevintro/QtQuickAppDevIntro.epub">ePub</a> <a href="http://releases.qt-project.org/learning/developerguides/qtquickappdevintro/QtQuickAppDevIntro.pdf">PDF</a></li>
<li>Particles and Graphics Effects in Qt Quick 2 <a href="http://releases.qt-project.org/learning/developerguides/qteffects/ParticlesTutorial.epub">ePub</a> <a href="http://releases.qt-project.org/learning/developerguides/qteffects/ParticlesTutorial.pdf">PDF</a></li>
<li>Developing an arcade game with Qt3D <a href="http://releases.qt-project.org/learning/developerguides/gamedevelopmentqt3d/GameDevelopmentQt3D.epub">ePub</a> <a href="http://releases.qt-project.org/learning/developerguides/gamedevelopmentqt3d/GameDevelopmentQt3D.pdf">PDF</a></li>
<li>Qt OpenGL Tutorial <a href="http://releases.qt-project.org/learning/developerguides/qtopengltutorial/OpenGLTutorial.epub">ePub</a> <a href="http://releases.qt-project.org/learning/developerguides/qtopengltutorial/OpenGLTutorial.pdf">PDF</a></li>
</ul>
<p>To get started, <b>Introduction to Application Development with Qt Quick</b> should be sufficient.</p>
<h3>3. Design</h3>
<p>For mobile, design is the key to make your application appeal to more people. Browse <a href="http://design.ubuntu.com/apps">http://design.ubuntu.com/apps</a> to learn more about how you should design for Ubuntu.</p>
<p>Ubuntu uses a concept called grid unit (GU). Value of 1 GU might depend upon the resolution of the particular device, in which the application runs. This solves scaling problem to some extent. However, you should still be careful about things like orientation and how each component fits on the screen. Speaking of components, I suggest you install a software called <a href="http://pencil.evolus.vn/">Pencil</a> and prototype your application using <b>Mobile &#8211; Android ICS </b>as the template, before you even start to write anything. It solves lots of problems you might have later on.</p>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/05/pencilprototype.png"><img alt="pencilprototype" src="http://xpressrazor.files.wordpress.com/2013/05/pencilprototype.png?w=300&#038;h=205" width="300" height="205" /></a></h3>
<p><strong></strong><span style="color:#ff0000;">Note</span>: Use 40GU for width and 75GU for height as the minimum size.</p>
<h3>4. Development</h3>
<p>As you learn, you will know QML apps are basically stacks of rectangles over one another. A simple QML application (e.g <strong>helloworld.qml</strong>) might look like this.</p>
<pre>import QtQuick 2.0

Rectangle {
 width: 200
 height: 400
}</pre>
<p>To run this file, you can use following command.</p>
<pre>$ qmlscene helloworld.qml</pre>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/05/basicrectqml.png"><img alt="basicrectqml" src="http://xpressrazor.files.wordpress.com/2013/05/basicrectqml.png?w=69&#038;h=150" width="69" height="150" /></a></h3>
<p>If you stack rectangles over rectangles you might soon end up trying to figure out, which one is the culprit to break the application layout, rather than trying to progress in  your development. Therefore, I suggest you create a global variable like the following and use it while setting color properties for your components.</p>
<pre>// Set it to true and debug
var showDebugginColor = false</pre>
<p>Inside the component set color as</p>
<pre>color: showDebugginColor? "red" : yourcolor1  // component 1
color: showDebugginColor? "blue" : yourcolor2 // component 2</pre>
<p>This sets different colors for each element, while debugging.</p>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/05/debuggingcolors.png"><img alt="debuggingcolors" src="http://xpressrazor.files.wordpress.com/2013/05/debuggingcolors.png?w=150&#038;h=142" width="150" height="142" /></a></h3>
<p>After you are done, set <b>showDebuggingColor</b> back to false.<strong><br />
</strong></p>
<h3>5. Ubuntu feel</h3>
<p>There are certain components (checkbox, button, textbox etc) that is specific to Ubuntu touch (in terms of design). Install  a package called <b>ubuntu-ui-toolkit-examples</b> and go to <b>/usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery</b> directory and run the script <strong>gallery </strong>( type ./gallery in a terminal). Browse the components and choose that fits your application (copy the source code from qml files in same directory where the <strong>gallery</strong> script resides).</p>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/05/gallery.png"><img alt="gallery" src="http://xpressrazor.files.wordpress.com/2013/05/gallery.png?w=300&#038;h=196" width="300" height="196" /></a></h3>
<h3>6. Deployment</h3>
<p>It looks like Ubuntu is going to have its own self-contained package installer, but for the time being, we have to rely on traditional method of packaging. Good news is, <strong>Qt Creator</strong> does most of the work for us. It even creates templates for debian packaging.</p>
<p>Once you have Ubuntu touch image  installed on your phone, go to <a href="https://wiki.ubuntu.com/Touch/ReleaseNotes">https://wiki.ubuntu.com/Touch/ReleaseNotes</a> and setup ssh server on your device. Once you get ssh running, setup your device on <strong>Qt Creator</strong> (Devices tab) and deploy your application using <b>Build -&gt; Ubuntu Touch -&gt; Run Application on Device</b> or other options in that menu.</p>
<h3><a href="http://xpressrazor.files.wordpress.com/2013/05/qtcreatordeploy.png"><img alt="qtcreatordeploy" src="http://xpressrazor.files.wordpress.com/2013/05/qtcreatordeploy.png?w=300&#038;h=170" width="300" height="170" /></a></h3>
<h3>7. Conclusion</h3>
<p>I hope this tutorial has given enough information for you to start writing QML or Ubuntu touch applications, if you choose to do so. Once you become familiar with basic QML development, you are ready to explore other documents like <b>Qt OpenGL</b> and <b>Developing an arcade game with Qt3D</b> from the list I mentioned above.</p>
<p>Apart from Ubuntu, QML is currently supported in Blackberry and Jolla. Qt 5 is also expected to be released for Android and IOS as well.</p>
<p>Cheers!!</p>
<h3>8. References</h3>
<ul>
<li><a href="http://developer.ubuntu.com/get-started/" rel="nofollow">http://developer.ubuntu.com/get-started/</a></li>
<li><a href="http://qt-project.org/wiki/Developer-Guides" rel="nofollow">http://qt-project.org/wiki/Developer-Guides</a></li>
<li><a href="http://design.ubuntu.com/apps">http://design.ubuntu.com/apps</a></li>
<li><a href="http://pencil.evolus.vn/" rel="nofollow">http://pencil.evolus.vn/</a></li>
<li><a href="https://wiki.ubuntu.com/Touch/ReleaseNotes" rel="nofollow">https://wiki.ubuntu.com/Touch/ReleaseNotes</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/201/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/201/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=201&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/05/30/create-your-second-qml-app-for-ubuntu-touch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/pencilprototype.png?w=300" medium="image">
			<media:title type="html">pencilprototype</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/basicrectqml.png?w=139" medium="image">
			<media:title type="html">basicrectqml</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/debuggingcolors.png?w=300" medium="image">
			<media:title type="html">debuggingcolors</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/gallery.png?w=300" medium="image">
			<media:title type="html">gallery</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/qtcreatordeploy.png?w=300" medium="image">
			<media:title type="html">qtcreatordeploy</media:title>
		</media:content>
	</item>
		<item>
		<title>Record desktop in Linux using ffmpeg</title>
		<link>https://xpressrazor.wordpress.com/2013/05/26/record-desktop-in-linux-using-ffmpeg/</link>
		<comments>https://xpressrazor.wordpress.com/2013/05/26/record-desktop-in-linux-using-ffmpeg/#comments</comments>
		<pubDate>Sun, 26 May 2013 04:08:53 +0000</pubDate>
		<dc:creator>xpressrazor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://xpressrazor.wordpress.com/?p=179</guid>
		<description><![CDATA[Step 1: Install PulseAudio Volume Control and ffmpeg Search your distribution&#8217;s software repository to install them. On a typical Ubuntu like OS the terminal command would be $ sudo apt-get install pavucontrol ffmpeg Step 2: Record Use following command to &#8230; <a href="https://xpressrazor.wordpress.com/2013/05/26/record-desktop-in-linux-using-ffmpeg/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=179&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h3>Step 1: Install PulseAudio Volume Control and ffmpeg</h3>
<p>Search your distribution&#8217;s software repository to install them. On a typical Ubuntu like OS the terminal command would be</p>
<pre>$ sudo apt-get install pavucontrol ffmpeg</pre>
<h3>Step 2: Record</h3>
<p>Use following command to record your desktop.</p>
<pre>ffmpeg -f alsa -i default -f x11grab -s 1366x768 -r 30 -i :0.0 -sameq filename.avi</pre>
<p><span id="more-179"></span></p>
<h4>Parameters</h4>
<p><b>x11grab</b>: Record the desktop<br />
<b>s</b>: Size of the recording area (For true HD it would be <strong>1920×1080</strong> i.e <strong>1080p</strong>). However, it depends upon your monitor resolution. Anything greater will fail, Use <b>Displays</b> to find the resolution.<br />
<b>r</b>: Frame rate. If you intend to record game play videos, adjust the frame rate until you don&#8217;t get choppy output.<br />
<b>-f and -i</b>: These two variable are for audio. If default does not work, use &#8220;<strong>pulse</strong>&#8221; instead.</p>
<h3>Step 3: Switching between internal audio and microphone</h3>
<p>While recording, open <strong>PulseAudio Volume Control</strong> (<strong>pavucontrol</strong>) and in the Recording section, switch between microphone and Internal audio (see figure below). Use &#8220;<strong>Built-in Audio Analog Stereo</strong>&#8221; for recording from <strong>microphone</strong> and &#8220;<strong>Monitor of Built-in Audio Analog Stereo</strong>&#8221; to record sound playing in your <strong>computer</strong>. Make sure you are actually recording the desktop to change these options, ffmpeg option does not show up in pavucontrol until you start the recording.</p>
<p><a href="http://xpressrazor.files.wordpress.com/2013/05/workspace-1_006.png"><img class="size-full wp-image" id="i-181" alt="Image" src="http://xpressrazor.files.wordpress.com/2013/05/workspace-1_006.png?w=650" /></a></p>
<h3>Step 4: Create a script</h3>
<p>Create a script, say <b>recorddesktop.sh</b>, so that you don&#8217;t have to remember it all the time. Create the bash file in a directory you use to add scripts e.g <b>~/bin</b> (/home/username/bin) and add it to <b>PATH</b> variable in <b>.bashrc</b> as (<b>export PATH=$PATH:~/bin</b>). Content of that file would be something like this (Adjust resolution and other parameters as you prefer).</p>
<pre>#!/bin/bash
# Example recorddesktop.sh output.avi

STR="@"
FILENAME="out.avi"

if [ $STR ]; then
FILENAME="$@"
else
echo "No file name specified, using out.avi"
FILENAME="out.avi"
fi

#FILENAME="$(echo $FILENAME | sed 's/\ /\\ /g')";

echo "Recording into $FILENAME ...";

ffmpeg -f alsa -i default -f x11grab -s 1366x768 -r 30 -i :0.0 -sameq "$FILENAME"</pre>
<p>Cheers !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xpressrazor.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xpressrazor.wordpress.com/179/" /></a> <img alt="" border="0" src="https://stats.wordpress.com/b.gif?host=xpressrazor.wordpress.com&#038;blog=45284804&#038;post=179&#038;subd=xpressrazor&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://xpressrazor.wordpress.com/2013/05/26/record-desktop-in-linux-using-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="https://0.gravatar.com/avatar/6d71a5ea01dcb5f8aa459636c9cb2e88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">xpressrazor</media:title>
		</media:content>

		<media:content url="http://xpressrazor.files.wordpress.com/2013/05/workspace-1_006.png?w=650" medium="image">
			<media:title type="html">Image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
