Showing posts with label wireless. Show all posts
Showing posts with label wireless. Show all posts

Sunday, January 22, 2012

Connecting to wireless AP with WPA/2 security using wpa_supplicant

Recently, my cooker updated perl packages and it broke all of drak* family especially drakconf and net_applet. net_applet is the network manager for Mandriva in applet form. I can also use draknetcenter. Now the problem is I cant open net_applet and knetcenter due to this error:
/usr/bin/perl: symbol lookup error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr
So how do I connect to wireless AP? I dont know how to use iwconfig to connect to such AP or can I? After googling, I found a solution: wpa_supplicant. In Mandriva, I just have to run this command (as root):
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf &
If you have setup the connection before with draknetcenter, you dont have to edit the file wpa_supplicant.conf. If not, you have to manually edit the file to suit your environment. it is heavily documented. 

Then you have to run dhclient to get IP address from the AP or other dhcp server:
 dhclient wlan0

wlan0 is my wireless interface. Please change it according to your environment. I bet the broken packages will be updated sooner so that I can use net_applet again.

Have fun!

Friday, April 6, 2007

Setting up wireless with Mandriva 2007

I rarely install Linux on laptop. It was great to have one and saw how Linux distros progressed in this area. Since last week, I have been a responsible person for one of my office's laptop. I tried installing Fedora Core 6 on it. It was no good. After a couple of minutes, it started to become slower like something was going on in the background. It was so annoying. I tried upgrading the kernel and all the latest updates using yum but to no avail. Of course your mileage may vary.

Mandriva 2007
With Mandriva 2007, I was in luck. I got the DVD from LinuxForYou magazine. I am no stranger with Mandriva. I have been using it for 5 years and one of servers I managed using it. As any desktop-oriented distros, Mandriva is one of the user-friendliest distros out there. It is good and will be better in the future.

Wireless
My laptop is Intel-based. What i mean here is the wireless, CPU and VGA chipsets are from Intel. My wireless is ipw3945. No driver for this chipset I could found in the DVD. After googling, the driver is here. This is the kernel module (driver) for the wireless chipset. Hence, I activated it with modprobe : modprobe ipw3945. It created a device called eth1 (eth0 was reserved for wired connection).

Connecting to AP
Open Mandriva Control Center and go to Network And Internet:
Click on the Wireless connection.


As you see in the diagram below, the AP signal was detected and shown. The button Disconnect should be Connect before you connect your laptop to the AP.


If the connection is successful, then you can connect to your network and internet. Contact your network administrator if you have problem. Good luck.

Thursday, December 1, 2005

WiMax - The next generation of wireless technology

Wireless techology has become common these days. In Malaysia, ISPs has been introducing this technlogy for many years now. TMNet's HotSpot, JARING's wireless broadband and TIME's webbit and TIMEZONE. I've never bother about this technology since I don't have the equipment and i don't involve in setting up one. But when my company decided to buy ISDN line (one year ago before changing back to TMNet's Streamyx), the vendor gave us a free wireless access point (AP). Then, my involvement in setting up and learning this technology began. The most important point for me was "to get the idea how it works, know the system and how to implement it" . Then I realized many things and threw lots of "000000 I see" words. :)

Recently I've read about WiFi technology and its history. Many people think that wireless is WiFi. This is not true. There are many types of wireless network connection. Commonly used are :
  1. 802.11a (speed - 54 Mbps, FQ band - 5 GHz)
  2. 802.11b (speed - 11 Mbps, FQ band - 2.4 GHz) -- known as WiFi
  3. 802.11g (speed - 54 Mbps, FQ band - 2.4 Ghz)
As you can see above, the 802.11b type wireless network connection is the one known as WiFi. We usually use certain words loosely. For many of us, 802.11 is WiFi. :) Ok. Let's take a look at the next generation of wireless connection.

One of the most talked about developments for next generation wireless broadband deployment is a technology commonly referred to as WiMAX. A recent report issued to Congress by the Federal Communications Commission concluded that WiMAX “has the potential to alter and further accelerate the evolution of broadband services.”

As the next evolutionary step of its WiFi predecessor, WiMAX is being touted as an easily deployable “third pipe” that will deliver both flexible and affordable last-mile broadband access to millions. Many believe that WiMAX will do for broadband access what cellular phones did for telephones: connect users directly to the Internet from anywhere within a major metropolitan area.

What is WiMAX anyway?

WiMAX, short for Worldwide Interoperability for Microwave Access, is a wireless standard developed by a working group of the Institute of Electrical and Electronics Engineers (IEEE). The standards developed by the IEEE form the foundation for nearly all data communication systems and apply to coaxial, copper and fiber optic cables.


The IEEE sought to establish a more robust broadband wireless access (BWA) technology through its 802.16/WiMAX standard. It released its first 802.16 standard in December 2001 which addressed systems operating between 10 GHz and 66 GHz.

IEEE 802.16 addresses the "first-mile/last-mile" connection in wireless metropolitan area networks. It focuses on the efficient use of bandwidth between 10 and 66 GHz (the 2 to 11 GHz region with PMP and optional Mesh topologies by the end of 2002) and defines a medium access control (MAC) layer that supports multiple physical layer specifications customized for the frequency band of use.

WiMAX is a wireless metropolitan area network (MAN) technology that can connect IEEE 802.11 (Wi-Fi) hotspots with each other and to other parts of the Internet and provide a wireless alternative to cable and DSL for last mile (last km) broadband access. IEEE 802.16 provides up to 50 km (31 miles) of linear service area range and allows connectivity between users without a direct line of sight. Note that this should not be taken to mean that users 50 km (31 miles) away without line of sight will have connectivity. Practical limits from real world tests seem to be around "3 to 5 miles" (5 to 8 kilometers). The technology has been claimed to provide shared data rates up to 70 Mbit/s, which, according to WiMAX proponents, is enough bandwidth to simultaneously support more than 60 businesses with T1-type connectivity and well over a thousand homes at 1Mbit/s DSL-level connectivity. Real world tests, however, show practical maximum data rates between 500kbit/s and 2 Mbit/s, depending on conditions at a given site.


WiMAX in Malaysia

In my country, a company named AirZed is the pioneer in this new territory. According to Paul Tan, as of June 2005, AirZed’s WiMAX service covers Mid Valley, Damansara, Petaling Jaya and Shah Alam. I don't know which area they have covered lately but for people in Kuala Lumpur and nearby, they don't have to worry because "all the latest and greatest technology will reach you sooner before others" :P. Prices start at RM188 a month for the Home package which offers 1Mbps download and 128kbps upload with a dynamic IP. The SOHO package is RM288 a month and it offers 1Mbps download and 384kbps upload, but with dynamic IP as well. The Business package is RM468 a month offering 1Mbps download and 512kbps upload. It also comes with a fixed IP and 6 free Airzed Wi-fi Hotspot accounts. As usual, once pioneer has started, others will follow sooner or later. Other companies especially big ISPs are eyeing this new technology.





Nvidia new hotplug feature on Linux

 If you use nvidia driver for your GPU, you probably wonder why in some config, you can't hotplug your second monitor. You need to reboo...