<?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>Xster.net &#187; linux</title>
	<atom:link href="http://tech.xster.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.xster.net</link>
	<description>Never relearn twice</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ctrl-Alt Hotkey Conflict with Virtual Machines</title>
		<link>http://tech.xster.net/tips/ctrl-alt-hotkey-conflict-with-virtual-machines/</link>
		<comments>http://tech.xster.net/tips/ctrl-alt-hotkey-conflict-with-virtual-machines/#comments</comments>
		<pubDate>Fri, 17 Dec 2010 17:54:38 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[hotkey]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[tty]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=304</guid>
		<description><![CDATA[On most virtualisation software like VMWare&#8217;s etc, the guest machine&#8217;s hotkeys which requires ctrl-alt (such as ctrl-alt-f1 etc for tty change in Linux) can be blocked because ctrl-alt is used to release mouse/keyboard with the VM software. If you use it only occasionally, you can first temporarily disable the release hotkey by pressing ctrl-alt-space then [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>On most virtualisation software like VMWare&#8217;s etc, the guest machine&#8217;s hotkeys which requires ctrl-alt (such as ctrl-alt-f1 etc for tty change in Linux) can be blocked because ctrl-alt is used to release mouse/keyboard with the VM software. If you use it only occasionally, you can first temporarily disable the release hotkey by pressing ctrl-alt-space then your intended hotkey such as ctrl-alt-f1</p>
<p><a href="http://www.easyvmx.com/cgi-bin/ikonboard/ikonboard.cgi?act=ST;f=3;t=4;&amp;#top">Source</a></p>
<div class="shr-publisher-304"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fctrl-alt-hotkey-conflict-with-virtual-machines%2F' data-shr_title='Ctrl-Alt+Hotkey+Conflict+with+Virtual+Machines'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fctrl-alt-hotkey-conflict-with-virtual-machines%2F' data-shr_title='Ctrl-Alt+Hotkey+Conflict+with+Virtual+Machines'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/ctrl-alt-hotkey-conflict-with-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare Tools vmware-open-vm-tools-kmod Install Issue</title>
		<link>http://tech.xster.net/tips/vmware-tools-vmware-open-vm-tools-kmod-install-issue/</link>
		<comments>http://tech.xster.net/tips/vmware-tools-vmware-open-vm-tools-kmod-install-issue/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 20:40:41 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=302</guid>
		<description><![CDATA[Trying to install VMWare tools from packages.vmware.com/tools repository in Ubuntu but getting a error while installing packages? There seems to be package dependency going back to open-vm-tools-kmod-generic but it doesn&#8217;t exist. When you try to install the next level of package, it would say &#8220;PreDepends: vmware-open-vm-tools-kmod-&#8230; but it is not installable&#8221; Unfortunately the VMWare Installation Guide [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Trying to install VMWare tools from <a href="http://packages.vmware.com/tools ">packages.vmware.com/tools</a> repository in Ubuntu but getting a error while installing packages? There seems to be package dependency going back to open-vm-tools-kmod-generic but it doesn&#8217;t exist. When you try to install the next level of package, it would say</p>
<p>&#8220;PreDepends: vmware-open-vm-tools-kmod-&#8230; but it is not installable&#8221;</p>
<p>Unfortunately the VMWare <a href="http://www.vmware.com/pdf/osp_install_guide.pdf">Installation Guide</a> isn&#8217;t clear on this matter whereas the Ubuntu <a href="https://help.ubuntu.com/community/VMware/Tools">documentation</a> is much better. It shows that you can either use the open source version directly available via apt-get or you can build the kmod (kernel mods) from source using the source files in the VMWare repository.</p>
<div class="shr-publisher-302"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fvmware-tools-vmware-open-vm-tools-kmod-install-issue%2F' data-shr_title='VMWare+Tools+vmware-open-vm-tools-kmod+Install+Issue'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Fvmware-tools-vmware-open-vm-tools-kmod-install-issue%2F' data-shr_title='VMWare+Tools+vmware-open-vm-tools-kmod+Install+Issue'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/vmware-tools-vmware-open-vm-tools-kmod-install-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free OBD2 Software for Mac</title>
		<link>http://tech.xster.net/tips/free-obd2-software-for-mac/</link>
		<comments>http://tech.xster.net/tips/free-obd2-software-for-mac/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:23:16 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[embedded]]></category>
		<category><![CDATA[engine]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[mechanic]]></category>
		<category><![CDATA[OBD]]></category>
		<category><![CDATA[pyOBD]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[UART]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[wxPython]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=255</guid>
		<description><![CDATA[If you just picked up a generic OBD-II &#8211; USB interface on eBay and have a Mac, it is true that it is generally more convenient to access these hardware on Windows. Even embedded device developers tend to use Windows to develop against these generic FT232R chip based USB-UART devices simply because of more available [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you just picked up a generic OBD-II &#8211; USB interface on eBay and have a Mac, it is true that it is generally more convenient to access these hardware on Windows. Even embedded device developers tend to use Windows to develop against these generic FT232R chip based USB-UART devices simply because of more available supports. But worry not, it can be done on Mac (really on Linux with a more open-platform framework than Windows), it&#8217;s just a bit more complicated since it tends to come in be open-source source code rather than prepackaged self-sufficient binaries.<span id="more-255"></span></p>
<p>But in this case, it&#8217;s not too bad. You can use <a href="http://www.obdtester.com/pyobd">pyOBD</a>, an Python open-source project. You just need some packages from MacPorts</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> py26-serial
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> py26-wxpython</pre></div></div>

<p>Download and unpack the source code. And run directly with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pythonw pyobd</pre></div></div>

<p>p.s. you need X11</p>
<div class="shr-publisher-255"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Ffree-obd2-software-for-mac%2F' data-shr_title='Free+OBD2+Software+for+Mac'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Ffree-obd2-software-for-mac%2F' data-shr_title='Free+OBD2+Software+for+Mac'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/free-obd2-software-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arpspoof, Tcpkill, Tcpnice Tutorial</title>
		<link>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/</link>
		<comments>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 04:56:29 +0000</pubDate>
		<dc:creator>xiao</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[arpspoof]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[spoofing]]></category>
		<category><![CDATA[tcpkill]]></category>
		<category><![CDATA[tcpnice]]></category>

		<guid isPermaLink="false">http://tech.xster.net/?p=175</guid>
		<description><![CDATA[Notes to self because I never remember To arpspoof, turn on IP forwarding: echo 1 &#62; /proc/sys/net/ipv4/ip_forward with Linux (might need su) or more permanently, net.ipv4.ip_forward = 1 in /etc/sysctl.conf In BSD/Mac OS X, sysctl -w net.inet.ip.forwarding=1 or net.inet.ip.forwarding = 1 in /etc/sysctl.conf Alternatively, you can also use fragrouter to forward packets with fragrouter -B1 [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Notes to self because I never remember</p>
<p>To arpspoof, turn on IP forwarding:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward</pre></div></div>

<p>with Linux (might need su) or more permanently,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net.ipv4.ip_forward = <span style="color: #000000;">1</span></pre></div></div>

<p>in /etc/sysctl.conf<br />
<span id="more-175"></span><br />
In BSD/Mac OS X,</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sysctl <span style="color: #660033;">-w</span> net.inet.ip.forwarding=<span style="color: #000000;">1</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">net.inet.ip.forwarding = <span style="color: #000000;">1</span></pre></div></div>

<p>in /etc/sysctl.conf</p>
<p>Alternatively, you can also use fragrouter to forward packets with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">fragrouter <span style="color: #660033;">-B1</span></pre></div></div>

<p>Then to arpspoof</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">arpspoof <span style="color: #660033;">-t</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>victim ip<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>gateway ip<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">arpspoof <span style="color: #660033;">-t</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>gateway ip<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>victim ip<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Optionally, add</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

<p>to get rid of output. Trust me, there&#8217;s nothing interesting.</p>
<p>To block sites/ports:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tcpkill <span style="color: #660033;">-9</span> host www.facebook.com or port <span style="color: #000000;">5432</span></pre></div></div>

<p>To slow down traffic:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tcpnice net 10.0.0.2 or port <span style="color: #000000;">5432</span></pre></div></div>

<p>Filter expressions are <a href="http://linux.die.net/man/8/tcpdump">here</a></p>
<p>The easiest way to detect this spoofing is to ping something outside your gateway and look for redirects</p>
<div class="shr-publisher-175"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Farpspoof-tcpkill-tcpnice-tutorial%2F' data-shr_title='Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial'></a><a class='shareaholic-tweetbutton' data-shr_count='none' data-shr_href='http%3A%2F%2Ftech.xster.net%2Ftips%2Farpspoof-tcpkill-tcpnice-tutorial%2F' data-shr_title='Arpspoof%2C+Tcpkill%2C+Tcpnice+Tutorial'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://tech.xster.net/tips/arpspoof-tcpkill-tcpnice-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

