<?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>Uncertain Binary Thoughts &#187; Linux</title>
	<atom:link href="http://ankurs.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://ankurs.com</link>
	<description>01110100110101010101011101100010</description>
	<lastBuildDate>Sun, 01 Jan 2012 18:20:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>multiple mouse / keyboard in linux</title>
		<link>http://ankurs.com/2010/10/multiple-mouse-keyboard-in-linux/</link>
		<comments>http://ankurs.com/2010/10/multiple-mouse-keyboard-in-linux/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 20:33:26 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[mpx]]></category>
		<category><![CDATA[multiple]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=709</guid>
		<description><![CDATA[few days ago i came upon an article about human computer interactions which mentioned different ways we interact with computes and how we will interact with computers in future, the article instantly reminded me of MPX, now i dont know how many of you remember MPX which enabled interaction of multiple mouse/keyboards in linux. Xserver&#8230;]]></description>
			<content:encoded><![CDATA[<div id="attachment_740" class="wp-caption aligncenter" style="width: 310px"><a href="http://ankurs.com/wp-content/uploads/2010/10/mpx.jpg"><img src="http://ankurs.com/wp-content/uploads/2010/10/mpx-300x225.jpg" alt="4 mouse cursors on a single screen" title="4 mouse cursors on a single screen" width="300" height="225" class="size-medium wp-image-740" /></a><p class="wp-caption-text">4 mouse cursors on a single screen</p></div>
<p>few days ago i came upon an article about human computer interactions which mentioned different ways we interact with computes and how we will interact with computers in future, the article instantly reminded me of <a href="http://en.wikipedia.org/wiki/Multi-Pointer_X">MPX</a>, now i dont know how many of you remember <a href="http://en.wikipedia.org/wiki/Multi-Pointer_X">MPX</a> which enabled interaction of multiple mouse/keyboards in linux. <a href="http://en.wikipedia.org/wiki/X_Window_System">Xserver</a> 1.7 which is used in most of the disto&#8217;s was released with MPX, so i decided to find out how to make it work on my existing Fedora 13 box, and using it is pretty simple you just need to use xinput and configure X for multiple input, for that you first need to install xinput, on fedora it is provided by the package &#8220;xorg-x11-apps&#8221; just do a
<pre>[ankur@x144 ankur]# yum install xorg-x11-apps -y</pre>
<p> and you are done, for other distro&#8217;s i guess there sould be a similar package, after the install we need to find what all is plugged in to the computer, for that we do &#8220;xinput list&#8221;</p>
<pre>[ankur@x144 ankur]# xinput list
⎡ Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
⎜   ↳ PS/2 Mouse                                  id=14    [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS GlidePoint                    id=15    [slave  pointer  (2)]
⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
↳ Video Bus                                   id=6    [slave  keyboard (3)]
↳ Power Button                                id=7    [slave  keyboard (3)]
↳ Sleep Button                                id=8    [slave  keyboard (3)]
↳ Laptop Integrated Webcam                    id=9    [slave  keyboard (3)]
↳ AT Translated Set 2 keyboard                id=13    [slave  keyboard (3)]
↳ Dell WMI hotkeys                            id=16    [slave  keyboard (3)]</pre>
<p>this returns a list of all the input devices, i am running this on my laptop so you can see &#8220;AlpsPS/2 ALPS GlidePoint&#8221; and &#8220;AT Translated Set 2 keyboard&#8221; which are my laptop&#8217;s mouse and keyboard, to enable multiple keyboard/mouse i will create a group and move my laptops mouse and keyboard to the group, </p>
<pre>[ankur@x144 ankur]# xinput create-master main
[ankur@x144 ankur]# xinput list
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ PS/2 Mouse                              	id=14	[slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS GlidePoint                	id=15	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Video Bus                               	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=8	[slave  keyboard (3)]
    ↳ Laptop Integrated Webcam                	id=9	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=13	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        	id=16	[slave  keyboard (3)]
⎡ main pointer                          	id=10	[master pointer  (11)]
⎜   ↳ laptop XTEST pointer                    	id=12	[slave  pointer  (10)]
⎣ main keyboard                         	id=11	[master keyboard (10)]
    ↳ laptop XTEST keyboard                   	id=17	[slave  keyboard (11)]
</pre>
<p>above i created a group by the name &#8220;main&#8221;, you can see a second mouse cursor on screen as soon as you do this, to make both these mouse/keyboard active i will move my laptop&#8217;s mouse (id-> 15) and keyboard (id-> 13) to this newly created group</p>
<pre>[ankur@x144 ankur]# xinput reattach 15 10
[ankur@x144 ankur]# xinput reattach 13 11</pre>
<p>now if i connect an external mouse and keyboard to my laptop i can see both working simultaneously, if you want multiple (more then 2) mouse and keyboards to work, you can create a separate group for them and move them to that group in a similar manner.<br />
after doing this I was not able to find any benefit of using multiple mouse/keyboard on a laptop but it will make sense when you have multi monitor setup and multiple users trying to use the same machine simultaneously.</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2010/10/multiple-mouse-keyboard-in-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How Manipal got its first Linux (fedora) server</title>
		<link>http://ankurs.com/2009/06/how-manipal-got-its-first-linux-fedora-server/</link>
		<comments>http://ankurs.com/2009/06/how-manipal-got-its-first-linux-fedora-server/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 17:38:16 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[college]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[manipal]]></category>
		<category><![CDATA[mit]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=542</guid>
		<description><![CDATA[It all started with a failing Student&#8217;s Teacher Feedback System, designed by few fourth year students of my college, in oct-nov 2008 the system was not able to scale and everything was reverted back to paper, it was then when i was contacted by a teacher from my Department ( Information and Communication Technology ),&#8230;]]></description>
			<content:encoded><![CDATA[<p>It all started with a failing Student&#8217;s Teacher Feedback System, designed by few fourth year students of my college, in oct-nov 2008 the system was not able to scale and everything was reverted back to paper, it was then when i was contacted by a teacher from my Department ( Information and Communication Technology ), regarding if i can improve it.</p>
<p>i asked <a href="http://djsh.net">DJ</a> if he wants to join me and after few weeks of coding there it was Manipal university&#8217;s  first (working) Feedback System, when the point of hosting it came, i was surprised to find Manipal University has no Linux servers, i mean come on no Linux what are you people click sys admins, then we decided to setup our own server in the department, thus giving Manipal university its first Linux ( fedora 10 ) server.</p>
<p>currently it just hosts the Feedback System, but we are planning to use it as local ( internal ) fedora repository mirror, we need permission from the WiFi provider ION because almost all the students use only WiFi and not LAN, last time we tried we were denied by saying &#8221; You are  a threat to our network &#8220;, lets see how it goes this time. we will also require people to manage it but i think this can be handled very well by <a href="http://lugmanipal.org">LUG Manipal</a>, some pics<br />
<div id="attachment_543" class="wp-caption aligncenter" style="width: 310px"><a href="http://ankurs.com/wp-content/uploads/2009/06/09032009001.jpg"><img src="http://ankurs.com/wp-content/uploads/2009/06/09032009001-300x225.jpg" alt="Fedora 10 server in Manipal" title="Fedora 10 server in Manipal" width="300" height="225" class="size-medium wp-image-543" /></a><p class="wp-caption-text">Fedora 10 server in Manipal</p></div><br />
<div id="attachment_544" class="wp-caption aligncenter" style="width: 310px"><a href="http://ankurs.com/wp-content/uploads/2009/06/09032009002.jpg"><img src="http://ankurs.com/wp-content/uploads/2009/06/09032009002-300x225.jpg" alt="Fedora 10 server in Manipal" title="Fedora 10 server in Manipal" width="300" height="225" class="size-medium wp-image-544" /></a><p class="wp-caption-text">Fedora 10 server in Manipal</p></div></p>
<p>PS &#8211; i am looking for a way to convince them that setting up a mirror will be helpful for them as well as students can anyone suggest me how to go about it??</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2009/06/how-manipal-got-its-first-linux-fedora-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using Apple Keyboard in Linux (Fedora)</title>
		<link>http://ankurs.com/2009/02/using-apple-keyboard-in-linux-fedora/</link>
		<comments>http://ankurs.com/2009/02/using-apple-keyboard-in-linux-fedora/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 19:23:30 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[F key]]></category>
		<category><![CDATA[Fn]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=467</guid>
		<description><![CDATA[Few Days Ago i received my Apple Keyboard and i am enjoying typing on it, but having to hold down the Fn key then tap one of the F-keys to get F-keys working was irritating. a simple solution to get it working just add this to your /etc/rc.local file echo 2 > /sys/module/hid_apple/parameters/fnmode and F-keys&#8230;]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_470" class="wp-caption aligncenter" style="width: 310px"><a href="http://ankurs.com/wp-content/uploads/2009/02/190220091.jpg"><img src="http://ankurs.com/wp-content/uploads/2009/02/190220091-300x225.jpg" alt="My Apple Keyboard" title="My Apple Keyboard" width="300" height="225" class="size-medium wp-image-470" /></a><p class="wp-caption-text">My Apple Keyboard</p></div><br />
Few Days Ago i received my <a href="http://www.apple.co.in/store/miscAccessories/apple_keyboard.html#overview">Apple Keyboard</a> and i am enjoying typing on it, but having to hold down the Fn key then tap one of the F-keys to get F-keys working was irritating.<br />
a simple solution to get it working just add this to your /etc/rc.local file<code><br />
echo 2 > /sys/module/hid_apple/parameters/fnmode</code><br />
and F-keys will start to work properly, enjoy</p>
<p>Update :- update for recent kernels,</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2009/02/using-apple-keyboard-in-linux-fedora/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>ION proxy login problem</title>
		<link>http://ankurs.com/2009/02/ion-proxy-login-problem/</link>
		<comments>http://ankurs.com/2009/02/ion-proxy-login-problem/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 19:59:10 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[college]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Special]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ION]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[manipal]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=457</guid>
		<description><![CDATA[a few days ago ION (WiFi provider in Manipal University) started an ISA based proxy using NTLM authentication, which according to them was a client install!!! some people were facing problem with it, like their browsers were asking for authentication (login) again and again, and repositories were not working on Linux. So here is a&#8230;]]></description>
			<content:encoded><![CDATA[<p>a few days ago ION (WiFi provider in Manipal University) started an ISA based proxy using <a href="http://en.wikipedia.org/wiki/NTLM">NTLM</a> authentication, which according to them was a client install!!! some people were facing problem with it, like their browsers were asking for authentication (login) again and again, and repositories were not working on Linux.<br />
So here is a simple screencast with solution for this problem it works great in Linux (esp. Fedora) i have also included configuring yum here, if someone wants to use apt-get (debian/ubuntu) they can do</p>
<p><code> export http_proxy=http://127.0.0.1:5865 </code></p>
<p>Ok coming to the main point, go and download <a href="http://sourceforge.net/projects/ntlmaps/">http://sourceforge.net/projects/ntlmaps/</a> and then watch the video <a href="http://ankurs.com/wp-content/uploads/2009/02/mov1.ogv">here</a><br />
People on windows can install python from <a href="http://python.org/ftp/python/2.6.1/python-2.6.1.msi">here</a> and then follow the steps<br />
<a href="http://ankurs.com/wp-content/uploads/2009/02/mov1.ogv">ION proxy problem solved</a><br />
Note:- If You face any problem please post back here&#8230;.<br />
PS:- every thing in Text form coming soon&#8230; (i am lazy)</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2009/02/ion-proxy-login-problem/feed/</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Ejecting non responding drives in Linux</title>
		<link>http://ankurs.com/2008/12/ejecting-non-responding-drives-in-linux/</link>
		<comments>http://ankurs.com/2008/12/ejecting-non-responding-drives-in-linux/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 18:41:13 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[drives]]></category>
		<category><![CDATA[ejecting]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[non]]></category>
		<category><![CDATA[responding]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=428</guid>
		<description><![CDATA[One of the biggest (not necessarily) problems that most (new) Linux users face is the problems of non responsive drives, espically when u insert a curropt CD / DVD which refuse to come out because something is trying to access it&#8230; or the extremely slow flash drives there are some software for it in windows&#8230;]]></description>
			<content:encoded><![CDATA[<p>One of the biggest (not necessarily) problems that most (new) Linux users face is the problems of non responsive drives, espically when u insert a curropt CD / DVD which refuse to come out because something is trying to access it&#8230; or the extremely slow flash drives there are some software for it in windows like Unlocker ( dont remmember the correct name scine i dont use it ) but here we dont need any specific software we have had that feature from a long time and well its as simple as 2-3 lines on terminal and its name is &#8221; <strong>fuser</strong> &#8221; which is basicly used to displays the PIDs of processes using the specified files or file systems. and we can easily use it for our perpose, lets take an example suppose we need to remove the non responsing CD, for that you need to be root, do<br />
<code> su -</code><br />
or<br />
<code>sudo -i<code><br />
then type<br />
<code> fuser -k /dev/sr0 </code><br />
or<br />
<code> fuser -k /dev/cdrom0 </code><br />
which will kill all the process accessing that particular device, now you can easily eject the by doing<br />
<code> eject /dev/sr0</code><br />
or<br />
<code> eject /dev/cdrom0 </code></p>
<p>and you are done.</p>
<p>PS - " fuser " is useful in many more ways then just ejecting drives see " man fuser " for more info</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2008/12/ejecting-non-responding-drives-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Changing your mac address on Linux</title>
		<link>http://ankurs.com/2008/08/changing-your-mac-address-on-linux/</link>
		<comments>http://ankurs.com/2008/08/changing-your-mac-address-on-linux/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 18:31:16 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[change. mac address]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ankurs.com/?p=392</guid>
		<description><![CDATA[I have seen a lot of people saying that &#8220;you can never change your mac its in the hardware, you dont have access to it&#8221;, but well you can easily change you mac on Linux with a simple command Ifconfig. Which is mainly used to configure the kernel-resident network interfaces and it can help you&#8230;]]></description>
			<content:encoded><![CDATA[<p>I have seen a lot of people saying that &#8220;you can never change your mac its in the hardware, you dont have access to it&#8221;, but well you can easily change you mac on Linux with a simple command <strong>Ifconfig</strong>. Which is mainly used to configure  the kernel-resident network interfaces and it can help you change your mac first see your current mac type as root<br />
<code>ifconfig</code><br />
here see your mac address in the following out put<br />
<code>wlan0     Link encap:Ethernet  HWaddr 00:2B:B5:43:A5:12<br />
          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br />
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br />
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br />
          collisions:0 txqueuelen:1000<br />
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)</code><br />
where wlan0 is the network interface and &#8221; 00:2B:B5:43:A5:12 &#8221; is your mac address, next you need to bring the network interface down by typing<br />
<code>ifconfig wlan0 down</code><br />
here replace wlan0 with the network interface you are using, normally it is wlan0 for WiFi and eth0 for Ethernet, now its time to change your mac address, simply type<br />
<code>ifconfig wlan0 hw ether 00:2B:B5:43:A5:3D</code><br />
here replace 00:2B:B5:43:A5:3D with the mac ID you want to use and then bring the network interface up<br />
<code>ifconfig wlan0 up</code><br />
now again see the output of &#8221; ifconfig &#8221; to check that now you HWaddr has changed from 00:2B:B5:43:A5:12 to 00:2B:B5:43:A5:3D<br />
enjoy!!!!<br />
PS &#8211; MAC = Media Access Control</p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2008/08/changing-your-mac-address-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twit from command line (Linux)</title>
		<link>http://ankurs.com/2007/12/twit-from-command-line-linux/</link>
		<comments>http://ankurs.com/2007/12/twit-from-command-line-linux/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 07:45:28 +0000</pubDate>
		<dc:creator>Ankur Shrivastava</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Special]]></category>
		<category><![CDATA[ankur]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://warofwords.wordpress.com/2007/12/04/twit-from-command-line-linux/</guid>
		<description><![CDATA[Here is a thing that i found during searching for a completely different things, you can update your Twitter status simply by using curl which is most of the time installed by default so here is the command /usr/bin/curl -u username:password -d status="your tweet" http://twitter.com/statuses/update.xml it simply updates your twitter status, this is extremely simple&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here is a thing that i found during searching for a completely different things, you can update your Twitter status simply by using curl which is most of the time installed by default so here is the command<br />
<code>/usr/bin/curl -u username:password -d status="your tweet" http://twitter.com/statuses/update.xml</code><br />
it simply updates your twitter status, this is extremely simple and could easily be used to update status, but the problem is that it contains your password   and you dont want to display your password so you can make a simple script for it which asks you for the tweet and displays if successful or not<br />
<code>#!/bin/sh<br />
echo Post your tweet.......<br />
read tweet<br />
/usr/bin/curl -u &lt;username&gt;:&lt;password&gt; -d status="$tweet" http://twitter.com/statuses/update.xml<br />
if [[ "$?" == 0 ]];<br />
then<br />
echo Updated successfuly!!!!<br />
exit 0<br />
else<br />
echo Something went wrong try again!!!!<br />
exit 1<br />
fi</code><br />
to make it just login as root by &#8216;sudo -i&#8217; or &#8216;su&#8217; and type <code>gedit /usr/local/bin/twit</code> now paste the script and replace &lt;username&gt; and &lt;password&gt; with username and password of your twitter account and save the file, we will change the permissions for the file and make it  executable by typing <code>chmod +x /usr/local/bin/twit</code> <code></code> all done now when you want to twit just type twit on command line and let the world know what you are doing.<br />
PS:- if you are on twitter feel free to add me <a href="http://twitter.com/ankur">http://twitter.com/ankur</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ankurs.com/2007/12/twit-from-command-line-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

