<?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>TangoRangers.com&#039;s Blog &#187; slackware</title>
	<atom:link href="http://blog.tangorangers.com/tag/slackware/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tangorangers.com</link>
	<description>Misc crap and such</description>
	<lastBuildDate>Wed, 18 Jan 2012 02:26:16 +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>Wireless Tethering Android with Slackware</title>
		<link>http://blog.tangorangers.com/2011/01/wireless-tethering-android-with-slackware/</link>
		<comments>http://blog.tangorangers.com/2011/01/wireless-tethering-android-with-slackware/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 18:36:15 +0000</pubDate>
		<dc:creator>DaijoubuKun</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[tether]]></category>

		<guid isPermaLink="false">http://blog.tangorangers.com/?p=295</guid>
		<description><![CDATA[Almost two years ago I wrote a how to on tethering with my G1 and Slackware, located here. This was back before I rooted my phone to breathe more life back into it. I still have the phone and plan on having it for a long time. Sure it is as slow as can be, [...]]]></description>
			<content:encoded><![CDATA[<p>Almost two years ago I wrote a how to on tethering with my G1 and Slackware, <a href="http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/">located here.</a> This was back before I rooted my phone to breathe more life back into it. I still have the phone and plan on having it for a long time. Sure it is as slow as can be, but I still love the full qwerty keyboard&#8230; oops, sorry, I&#8217;m not here to talk about that. Anyways, like I was saying. I rooted my phone and I&#8217;m currently running <a href="http://www.cyanogenmod.com/" target="_blank">CyanogenMod 6.0</a> on my G1.</p>
<p>Wireless Tethering allows you to connect your computer through the phone and use the 3G (or 4G, EDGE, etc) as your internet connection. Some new phones can do wireless tether without rooting, but often times you must pay extra for the service. If you rooted your phone there are two ways of doing wireless tether. First check and see if you have wireless tethering built into your MOD. Go to Settings &#8211;> Wireless &#038; networks &#8211;> Tethering. If you only see USB tethering then there are extra steps you must take to enable wireless tethering. See the 3 images below. Note that my phone only lists USB Tethering. If your phone is the same, then continue.<br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings--.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings--wireless--.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings--wireless--tethering.png" alt="img" /></p>
<p>Some people I know are also running CyanogenMod and they have wireless tether built in. Why is that? For starters, since the phone is newer than my G1, they have a more up to date wireless card. These cards can be put into AP mode. This is the same style mode that your wireless router at home uses. Some phones that have wireless tether can also put the card into Ad-Hoc mode. This mode is also known as Computer to Computer without an Access Point. However, it seems that you still need the extra software to do wireless tethering. It is kind of hard for me to explain as I don&#8217;t have access to many phone to see how they work. Let alone ones that are rooted. With my G1, I can say that the wireless card was not even designed to operate in Ad-Hoc mode. Thanks to the software I&#8217;m running I can force the card into Ad-Hoc mode and connect to it with my laptop.</p>
<p>Keep in mind that wireless tethering will kill your battery quickly. Be sure to have a USB charging cable with you as your battery will not last long. Also note that many service providers do not want you to tether without paying extra. Be sure to read the terms of service of your provider before continuing.</p>
<p>If you made it this far you are going to need extra software. Once again, if your phone is not rooted this will NOT work! Head on over to <a href="https://code.google.com/p/android-wifi-tether/downloads/list" target="_blank">Google Code</a> to download. At the time of this writing I am running version 2.0.2. A later version has been released, but I have not tested it as mine works very nicely. Download the software to your phone and install. If you don&#8217;t know how, I can&#8217;t help you.</p>
<p>After installing there are several features to the software. I highly recommend encryption and if you want, Access Control. By default the software uses wpa_supplicant to set the WEP key. This is done via a passphrase. If you like the shell (like I do) you will need to use iwconfig to set the key. Below are some pictures of the settings menu in Wireless Tether.<br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings1.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_encryption_setup_method.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_wifi_key.png" alt="img" /><br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_edit_essid.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_channel.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_enable_access_control.png" alt="img" /></p>
<p>If you use Access Control, before a newly connected device can access the net you will have to allow it. I don&#8217;t have pictures, but if I remember it will be in the notification bar. Just drag it down, select the computer/device and hit allow. Later you can look in the Access Control Panel by hitting Menu then Access Control. Here is what mine looks like (and no, the computer is not actually connected. I just have it set to always allow the machines based on it&#8217;s MAC address.<br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/settings_example_access_control.png" alt="img" /></p>
<p>My laptop has a Broadcom wireless card. I&#8217;m using the b43 drivers <a href="http://wireless.kernel.org/en/users/Drivers/b43" target="_blank">found here.</a> As it turns out there are several problems found with my current kernel version (2.6.28) and the rc.wireless script that Slackware uses. There are two fixes. One is to remove the b43 module and reload it (this is so we can put the card in Ad-Hoc mode) and I have had problems setting the WEP key via iwconfig. With iwconfig you can set the key (default for this software being &#8216;abcdefghijklm&#8217;) by typing:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">iwconfig &lt;card-id&gt; key s:&lt;passphrase&gt;</pre></div></div>

<p>I always got an error. I solved the problem by using another computer to set the key then you can type iwconfig again and see the key. In this case, the key is 6162636465666768696A6B6C6D. If needs be, write down this key so you can use iwconfig to set it again.</p>
<p>Ok. I hope by now you have the wireless software installed on your Android phone and it is running. Note: I have found that sometimes even when encryption is set it doesn&#8217;t turn on. Be sure to scan for wireless networks to see your phone and if encryption is turned on or not. Also note that the software has created an Ad-Hoc style connection. If everything seems to be working here is what you do. In the next steps I will have some bash commands, then a note on what each command does. You may need a make changes to it to suit your needs. I turned it into a script I can run on my laptop so I don&#8217;t have to type every line in every time I tether.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">rmmod b43   -unloads the b43 module
modprobe b43   -reloads the b43 module
ifconfig wlan0 down   -take the card offline
iwconfig wlan0 mode ad-hoc   -set to Ad-Hoc mode
iwconfig wlan0 essid android   -set the essid (be sure to check your configs)
iwconfig wlan0 key 6162636465666768696A6B6C6D   -set the WEP key (may differ!)
ifconfig wlan0 up   -bring the card online
dhclient wlan0   -get an IP address to your phone</pre></div></div>

<p>Now type ifconfig and make sure you have an IP. If so, try surfing! If you are a hardcore Slackware user you may note that I use dhclient instead of dhcpcd. For some reason dhcpcd never gets me an IP. If this doesn&#8217;t work try it again. Sometimes I have to run the script twice, but I always get it working eventually.</p>
<p>I don&#8217;t have a problem with Windows 7 on the same machine. Windows will allow you to type in the paraphrase and it works great. If you&#8217;re running Linux and using the b43 module there are several things you can try to fix any problems. I hear the 2.6.33 and newer kernel have these problems fixed. Also if you don&#8217;t run a wireless script on boot, that may help. Most newer Linux distributions have GUI programs to help you connect to networks. I&#8217;m still running an older version of Slackware, and at the time, it didn&#8217;t come with those programs.</p>
<p>Now for some more pictures I took of the program. No reason. I just thought I would share.<br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/main_screen.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/menu_options.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/starting.png" alt="img" /><br />
<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/tethering_complete.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/stopping.png" alt="img" />&nbsp;<img src="http://www.tangorangers.com/files_blog/Wireless_Tether/about.png" alt="img" /></p>
<p>I hope this all makes sense. If not you can always ask, if I know the answer I will reply. I would also recommend asking on a help forum or asking Google. Good luck and Happy Hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tangorangers.com/2011/01/wireless-tethering-android-with-slackware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tetherbot, Android, and Slackware How to</title>
		<link>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/</link>
		<comments>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 03:50:30 +0000</pubDate>
		<dc:creator>DaijoubuKun</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[tetherbot]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://blog.tangorangers.com/?p=61</guid>
		<description><![CDATA[After trying to get my Android (aka, T-Mobile&#8217;s G1) working on my Slackware laptop and having many problems I looked for help at androidcommuinity.com. Even tho they didn&#8217;t technically help me solve the problem they were still a great help, and there quick replies kept me thinking of what the problem could be, and I [...]]]></description>
			<content:encoded><![CDATA[<p>After trying to get my Android (aka, T-Mobile&#8217;s G1) working on my Slackware laptop and having many problems I looked for help at <a href="http://androidcommunity.com/forums">androidcommuinity.com</a>.  Even tho they didn&#8217;t technically help me solve the problem they were still a great help, and there quick replies kept me thinking of what the problem could be, and I thank them for that.  In the end it was my own fault.  Here&#8217;s the story.</p>
<p>My laptop runs Slackware 12.0 with a new custom 2.6.28 kernel and there was were the problem was.  As it turns out I failed to turn on and modularize certain USB functions, now I&#8217;m unsure of what I enabled that made it work.  </p>
<p>First, if you think it&#8217;s a problem with your kernel check your USB device settings.  I use the <em>make menuconfig</em> when I build kernels, if you use xconfig it may appear slightly differently.</p>
<p>Check under Device Drivers &#8211;> USB Support.  I turned on just about everything and modularized just about every USB device, don&#8217;t forget to turn on <em>USB Gadget Support</em> I turned on the top 3 options, they are for debugging and also Serial Gadget was modularized.  Click <a href='http://www.tangorangers.com/files_blog/DaijoubuKun.Android.config'>Here</a> to download my .config file.  This file is in the root of where you extracted your kernel (usually <em>/usr/src/linux-2.6.28/</em>).  Be sure to rename the file from <em>DaijoubuKun.Android.config</em> to <em>.config</em> otherwise you will need to tell your kernel to use that file.  Quick note:  I know I have a lot here that does not need to be turned on, I like large kernels with lots of modules.</p>
<p>UPDATE!<br />
Put your 50-android.rules file in /etc/udev/rules/ and chmod it to 755!<br />
Also in your kernel build make sure you turn on USB debugging mode!!!</p>
<p>If you think your kernel is OK check out <a href='http://graha.ms/androidproxy/'>graha.ms.</a>  There is a lot of the stuff your going to need to know there.</p>
<p>Now, at this point I&#8217;m assuming you visited the link above but your Tetherbot still isn&#8217;t working.  This may be because the commands google gives may not work in Slackware.  I wrote 4 lines more designed in Slackware&#8217;s udev style.  Below are 8 lines.  I&#8217;m sure you only need one, but it didn&#8217;t hurt me none to use all 8, the bottom 4 are mine.  Here is my 50-android.rules</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;660&quot;
SUBSYSTEM==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;660&quot;
SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, ENV{DEVTYPE}==&quot;usb&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;
SUBSYSTEM==&quot;usb_device&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, SYSFS{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;</pre></div></div>

<p>I know it&#8217;s got to be overkill to have 8 lines in there, so if you figure out which is the one that works post it in a comment and I will edit this to show that line with credit to you.</p>
<p>NOTE:  When you plug in your phone you will be asked if you want to mount the sdcard to your computer.  SELECT NO! According to rynosaur of androidcommunity.com.</p>
<p>Note, to make things easier copy the files is your tools/ directory (from the android sdk) to <em>/bin</em>.  This way you do not need to go to the download directory to run the adb program.  You can also copy the libs to <em>/bin/lib</em></p>
<p>Now run <em>adb devices</em>.  You should get some out put like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">List of devices attached
HTxxxGZxxxxx    device</pre></div></div>

<p>If you do then we are ready to go!<br />
If not did you remember to run on USB debugging?<br />
Start the Tetherbot program and hit <em>Start Socks</em><br />
Now type &#8216;<em>adb forward tcp:1080 tcp:1080</em>&#8216;.  This will forward and thing you send to &#8216;localhost:1080&#8242; to the phone.</p>
<p>Using nmap I found that Tetherbot uses socks 5 with no authentication.  This makes things a bit easier.  Once you have gotten this far you are ready to setup your web browser to use the socks proxy.  I have done this in SeaMonkey and Firefox (haven&#8217;t tried anything else yet) so here are the instructions for FireFox 3.0.x (should stay about the same for future versions).</p>
<p>Go to Edit &#8211;> Preferences &#8211;> Advanced (top tab) &#8211;> Network (lower tab) &#8211;> Connection Settings (button).<br />
Select &#8216;<em>Manual Proxy configuration</em>&#8216; and put <em>localhost</em> in <em>SOCKS Host</em> and port <em>1080</em> in <em>port</em>.  ONLY put that information in the SOCKS Host! Do NOT put it in HTTP Proxy!  Be sure to select <em>Socks v5</em> and (this may not be necessary) remove anything in the field <em>No Proxy for:</em><br />
Here is a picture:<br />
<img src="http://www.tangorangers.com/files_blog/proxy_settings.jpg" alt="proxy settings" /><br />
Once you do that everything will go through your phone.  I did read that there is a 1GB per month limit on the phone.  I do not know if this is true or not.  I&#8217;m only going to use Tetherbot when I&#8217;m doing a service call, I need a file and there is no other way to get online.</p>
<p>Lastly, just as quick bit of info.  I live in an area where T-Mobile doesn&#8217;t have 3G!  It sucks, but I&#8217;m told it&#8217;s coming later this year.  It damn well better with how much I pay every month for this thing.  I ran a bandwidth test through the EDGE network (it&#8217;s like 2.5G) and below is my speed.<br />
<img src="http://www.tangorangers.com/files_blog/bandwidth_test.jpg" alt="bandwidth test" /><br />
Granted, I only ran the test once, and early in the morning. Plus I don&#8217;t think the phone was designed to have these sort of things run through it, but it will have to do for now. P.S. Thanks for the awesome speed test program <a href="http://www.speakeasy.net/speedtest">Speakeasy.</a></p>
<p>Special note:  I could be wrong, but it seems that after you put the required information into 50-android.rules you may need to either restart or run <em>/etc/rc.d/rc.udev restart</em> to restart the udev service.  You may also need to replug in your phone, make sure you don&#8217;t mount your sd card as it may cause tetherbot to not function properly.</p>
<p>If this helped you in anyway please let me know.  If it didn&#8217;t help post your problem and I will try to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tangorangers.com/2009/02/tetherbot_android_and_slackware_how_to/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

