Tuesday, September 27, 2011

Adhoc wireless AP for idevice under slackware /Linux

During my recent business trip i encountered a problem connecting the internet with my idevice in hotel room. As in the hotel room they only provide wired Internet connection. The wireless hotspot is only available in the hotel lobby.

Of course, a wired Internet for idevice? It is impossible for now as the idevice has no network port.

It was too bad that I didn't bring along my TPLink USB adaptor. So how to go along with it?

...Via adhoc network... of course!

The idevice's apps work as there are connected to a wireless LAN. viber, skype, ppstv, whatsapp etc. FaceTime not quite working here- bad quality.

Please find the simple workaround to achieve this for slackware/linux as below:

====
# connect to the wired network
dhcpcd -R eth0
# setting up the wireless adaptor
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 192.168.1.1 netmask 255.255.255.0
iwconfig wlan0 channel auto
iwconfig wlan0 essid urssid

# turn on ip forwarding and masquerading.
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
====
You can setup a dhcp server if you want to.

If you don't just setup an IP for your idevice. I.E 192.168.1.2 etc.















Saturday, September 17, 2011

PPStream on Slackware : firefox and Flash player

The picture below shows that The PPStream for Linux especially Slackware will not work if you have the flashplayer plugin in your firefox profile directory.



All you can do is just rename the plugins directory or remove the flashplayer plugin. This means your firefox will still be able to run as usual(without flash plugins).


Saturday, July 23, 2011

Compaq nc6230+Slackware+Hostapd+TL-WN722N+Ath9k_htc+iptables+dhcpd : How to put them together

After few weeks of searching thru the internet; testing and retest and... etc.

Finally, have found the way to put them together.

The below combination is do-able:
Laptop Compaq nc6230
Slackware version = slackware 13.1
Kernel = linux-3.0.0-rc7
hostapd = hostapd-0.7.3
TL-WN722N = using ath9k_htc (direct from the kernel)
iptables = original from slackware 13.1
dhcpd = from slackware 13.1

Connecting with iPhone4 and iPad2 IOS 4.3.3 have no problem...

The configuration files will be provided upon request.

Could Not Find What You Want Here? Search Here!