linuxtechie
Level D
For long I have been using dockstar on eth0 and considering the wiring mess, I had been longing to go for wireless dockstar.
Now, I clearly steered away from other chipset (ralink) cause of know issues about having a master mode. Got this one TL-WN722N for INR 700 about $12.
So here is how got it working:
apt-get update
apt-get upgrade
apt-get install wpasupplicant iw wireless-tools
apt-get install hwinfo usbutils
apt-get install linux-headers-2.6.32-5-kirkwood
cd /lib/firmware/
wget http://wireless.kernel.org/download/htc_fw/1.3/htc_9271.fw
cd ~
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-05-10.tar.bz2
tar jxvf compat-wireless-2012-05-10.tar.bz2
cd compat-wireless-2012-05-10
./scripts/driver-select ath9k_htc
make
make install
reboot
root@dockstar:/# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan1
iface wlan1 inet dhcp
wpa-ssid "router.pun.linuxtechie.com"
wpa-psk "***********"
iface eth0 inet dhcp
hwaddress ether ***********************
## address 192.168.178.1
## gateway 192.168.178.1
## netmask 255.255.255.0
## network 192.168.178.0
## broadcast 192.168.178.255
root@dockstar:/#
root@dockstar:/# cat /etc/default/ifplugd
# This file may be changed either manually or by running dpkg-reconfigure.
#
# N.B.: dpkg-reconfigure deletes everything from this file except for
# the assignments to variables INTERFACES, HOTPLUG_INTERFACES, ARGS and
# SUSPEND_ACTION. When run it uses the current values of those variables
# as their default values, thus preserving the administrator's changes.
#
# This file is sourced by both the init script /etc/init.d/ifplugd and
# the udev script /lib/udev/ifplugd.agent to give default values.
# The init script starts ifplugd for all interfaces listed in
# INTERFACES, and the udev script starts ifplugd for all interfaces
# listed in HOTPLUG_INTERFACES. The special value all starts one
# ifplugd for all interfaces being present.
INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
root@dockstar:/#
Still I had issue wherein I couldn't access through WIFI if eth0 is not connected. With trial and error figured out that OPENVPN was playing the culprit. I had set it to auto start via /etc/init.d. I made it start up via if-up.d and its all working now.
Now, I clearly steered away from other chipset (ralink) cause of know issues about having a master mode. Got this one TL-WN722N for INR 700 about $12.
So here is how got it working:
apt-get update
apt-get upgrade
apt-get install wpasupplicant iw wireless-tools
apt-get install hwinfo usbutils
apt-get install linux-headers-2.6.32-5-kirkwood
cd /lib/firmware/
wget http://wireless.kernel.org/download/htc_fw/1.3/htc_9271.fw
cd ~
wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2012-05-10.tar.bz2
tar jxvf compat-wireless-2012-05-10.tar.bz2
cd compat-wireless-2012-05-10
./scripts/driver-select ath9k_htc
make
make install
reboot
root@dockstar:/# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan1
iface wlan1 inet dhcp
wpa-ssid "router.pun.linuxtechie.com"
wpa-psk "***********"
iface eth0 inet dhcp
hwaddress ether ***********************
## address 192.168.178.1
## gateway 192.168.178.1
## netmask 255.255.255.0
## network 192.168.178.0
## broadcast 192.168.178.255
root@dockstar:/#
root@dockstar:/# cat /etc/default/ifplugd
# This file may be changed either manually or by running dpkg-reconfigure.
#
# N.B.: dpkg-reconfigure deletes everything from this file except for
# the assignments to variables INTERFACES, HOTPLUG_INTERFACES, ARGS and
# SUSPEND_ACTION. When run it uses the current values of those variables
# as their default values, thus preserving the administrator's changes.
#
# This file is sourced by both the init script /etc/init.d/ifplugd and
# the udev script /lib/udev/ifplugd.agent to give default values.
# The init script starts ifplugd for all interfaces listed in
# INTERFACES, and the udev script starts ifplugd for all interfaces
# listed in HOTPLUG_INTERFACES. The special value all starts one
# ifplugd for all interfaces being present.
INTERFACES="eth0"
HOTPLUG_INTERFACES=""
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
root@dockstar:/#
Still I had issue wherein I couldn't access through WIFI if eth0 is not connected. With trial and error figured out that OPENVPN was playing the culprit. I had set it to auto start via /etc/init.d. I made it start up via if-up.d and its all working now.