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.
Tuesday, September 27, 2011
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).

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.
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.
Friday, August 20, 2010
IPHONE OpenSSH - ssh_exchange_identification: Connection closed by remote host

This is a bit out of topic...
When you are not be able to ssh to your iphone... as the error message as below:
ssh_exchange_identification: Connection closed by remote host
it's very high possibility that you have inflected by the ikey virus.
you can do as below:
1. reinstall openssh; then do /usr/bin/ssh root@your_iphone_ip "rm /bin/poc-bbot /bin/sshpass /var/log/youcanbeclosertogod.jpg /var/mobile/LockBackground.jpg /System/Library/LaunchDaemons/com.ikey.bbot.plist /var/lock/bbot.lock /usr/libexec/cydia/startup /usr/libexec/cydia/startup.so /usr/libexec/cydia/startup-helper /System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist"
or
reinstall openssh; then use your ssh client login and cut and paste "rm /bin/poc-bbot /bin/sshpass /var/log/youcanbeclosertogod.jpg /var/mobile/LockBackground.jpg /System/Library/LaunchDaemons/com.ikey.bbot.plist /var/lock/bbot.lock /usr/libexec/cydia/startup /usr/libexec/cydia/startup.so /usr/libexec/cydia/startup-helper /System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist" (need to do it quick before the server's off; redo step 1 if you missed it.)
2. reinstall the openssh again; then change your openssh password.
if the above steps don't work.
reinstall cydia and then openssh; then change your openssh password.
See? the point is 'change your openssh password'!!!
Sources: found in the internet.
Sunday, May 30, 2010
Chinese Input Support
Sunday, April 25, 2010
Slackware 13.x : DiGi Turbo3G/Edge/GPRS HuaWei USB modem configuration with KPPP
Plug in the USB Modem, check if the driver's loaded correctly by execute 'dmesg' command... look for GSM Modem as below:

Once comfirm, run KPPP and go to the configuration :

Create a new account as below:


Under the Modems tab, create a new modem as below:

Test by querying the Modem as below:

Connect to the network by pressing the connect:


Do post your error message here if you're facing problem...

Once comfirm, run KPPP and go to the configuration :

Create a new account as below:


Under the Modems tab, create a new modem as below:

Test by querying the Modem as below:

Connect to the network by pressing the connect:


Do post your error message here if you're facing problem...
Tuesday, March 23, 2010
Slackware Linux and Joikuspot for mobile devices
Have successfully setup the joikuspot from my nokia E90 with my slackware linux.
Please find the simple settings as below:
Slackware workstation:
Assume that : wlan0 is the interface
Start-up script (manually)
=======
ifconfig wlan0 down; (off the interface too, not sure why my system required this)
iwconfig wlan0 mode ad-hoc;
iwconfig wlan0 essid islackware.blogspot.com;
iwconfig wlan0 channel 11;
iwconfig wlan0 key s:0123456789123;
dhcpcd wlan0;
=======
As for the mobile settings, pls refer to the attached.
After all this, ping 192.168.188.1 to see if there's any reply.
If you have any problem connecting it, feel free to leave comments..
Wednesday, March 17, 2010
SSH Without Password for Mobile Putty Client
Setting up a SSH login without Password for Mobile Putty Client.


Step 3: Login to the ssh server using your login
(If the .ssh directory is not exists, create one)

Step 4: Create the authorized_key

Step 5: Copy the Public Key into the authorized_key and save it

Step 6: Change the authorized_key file permission to 640

Step 7: Transfer the Saved Private key to the mobile.

For those who're not using windows system : do as shown as below.

From Mobile:
Step 1: Start the putty client from your mobile.
Edit the profile-> SSH Protocol->private key and locate the saved private key.

Step 2: go to General and setup the detail

Step 3: Test the login


Step 3: Login to the ssh server using your login
(If the .ssh directory is not exists, create one)

Step 4: Create the authorized_key

Step 5: Copy the Public Key into the authorized_key and save it

Step 6: Change the authorized_key file permission to 640

Step 7: Transfer the Saved Private key to the mobile.

For those who're not using windows system : do as shown as below.

From Mobile:
Step 1: Start the putty client from your mobile.
Edit the profile-> SSH Protocol->private key and locate the saved private key.

Step 2: go to General and setup the detail

Step 3: Test the login
Subscribe to:
Posts (Atom)
About
(1)
ath9k_htc
(1)
Chinese Input
(1)
Compaq nc6230
(1)
dhcpd
(1)
DiGi
(1)
Firefox
(2)
flashplayer
(1)
GPRS Modem
(1)
hostapd
(1)
Huawei
(1)
ipad2
(1)
iphone
(1)
iphone4
(1)
iptables
(1)
joikuspot
(1)
KPPP
(1)
Linux
(11)
linux-3.0.0-rc7
(1)
mobile device
(4)
Nokia E90
(2)
openssh
(1)
Photography
(4)
ppstream
(1)
pptv
(1)
putty
(2)
putty for mobile
(1)
Slackware
(12)
slackware 13
(2)
ssh without password
(1)
TL-WN722N
(1)
Turbo3G
(1)
USB Modem
(1)





