Ask Klaus!
Ask Klaus!
Klaus Knopper is the creator of Knoppix and co-founder of the LinuxTag expo. He currently works as a teacher, programmer, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com
Password Type
Question:
I have had my IBM ThinkPad R50e for about three years, and I have been running Ubuntu Linux on it reasonably satisfactorily. Originally, I used Ubuntu 6.06 LTS and could only get the wireless networking to work in open mode.
I now have Ubuntu 8.04 LTS installed and can use WPA2 with the password setting that my router requires. However, I have to set the network password type and password each time I switch the laptop back on. The password type has changed from WPA2 to WPA and the number of password blobs has increased from the correct 12 to more than will fit in the text box.
I attach the lspci details. The networking worked immediately, except for the annoyance of having to re-enter the password and type each session. Can you suggest anything I might do to make things better?
Answer:
Please check that the password is correctly saved in /etc/wpa_supplicant/wpa_supplicant.conf, and ensure that wpa_supplicant has been automatically started once your computer boots.
The entry in wpa_supplicant.conf should be similar to Listing 1.
Listing 1
/etc/wpa_supplicant.conf
Some distributions set up wpa_supplicant via wpa_cli and entries in /etc/network/interfaces instead, but the basic configuration idea is the same. wpa_supplicant needs a while to authenticate, so maybe in your setup, the DHCP request just comes a little too early.
To check on the WPA status, enter the following:
$ sudo wpa_cli status
which should give an output like the following when WPA is operational and an IP address has been obtained:
Selected interface 'eth1' bssid=00:01:02:03:1b:89 ssid=my_network id=0 pairwise_cipher=CCMP group_cipher=TKIP key_mgmt=WPA2-PSK wpa_state=COMPLETED ip_address=10.0.0.100
Why Windows?
Question:
In the September 2008 issue, page 56, Klaus rhetorically asks why anyone would need Windows. I work for a company that uses VPN security to allow us to log in from home. This security package only runs on Windows XP (not earlier or later versions) and is called SC_XP_2k_ngxR60_hfa1.exe. Of course, this works in a virtual WinXP window, but this critical application must have Windows.
For those of us who cannot select the software packages that big organizations use, we are stuck with their choices. These choices almost always mandate Windows. In my case, it must be WinXP.
Answer:
My rhetorical answer would be: "Why choose a proprietary VPN with an uncertain security level and uncertain future maintenance costs over a standardized, open source solution like OpenVPN or SSH?"
I'm not attempting to discuss whether or not SC_XP_2k_ngxR60_hfa1.exe would run under Wine, because in my opinion, it does not offer much advantage using an open source operating system just as a loader for a proprietary software base.
Of course, you are right: Often the users are simply not allowed to make a choice on their own, which is a problem that, sadly, has no technical solution.
USB Modem
Question:
I am currently running Debian 4.0 "Etch" on a home-built PC (AMD Athlon, 1GB DDR RAM). I'm trying to connect to the Internet using a USB modem (Huawei E160G) in the UK. I have managed to load the drivers for the modem using dmsg and lsusb, in conjunction with modprobe alterations. However, when it comes to configuring the modem using kppp, I need to provide usernames and passwords, which my ISP tends not to supply, therefore making it impossible to connect.
I decided to install Debian 5.0 "Lenny," which I found to be a lot better when it comes to hardware detection. Lenny sees my modem as a GSM modem, without me making any alterations. However, when I try to connect, I am faced with similar unfriendliness regarding kppp.
I know that "Lenny" sees my modem but cannot get past this problem of configuring it so that it actually works. I have followed numerous online tutorials, only to be let down. Wvdial and Gnome PPP are equally unfriendly. My whole problem is probably between the chair and keyboard.
Also, will future Knoppix distros provide support for USB modems?
Answer:
Debian/Knoppix, as well as all recent GNU/Linux distributions, support USB modems. A USB serial module called USBSerial works with many devices that identify themselves as serial modems. Check with lsmod | grep usbserial for the presence of this module once the modem has been plugged in, and check dmesg | grep ttyUSB. If it doesn't appear, try modprobe usbserial as root. For your modem, the serial line autodetection seems to work, so /dev/ttyUSB0 is operational.
The E160G is an UMTS modem, which means that the connection procedure is similar to dialing a provider's number via phone line, except that some parts have to be changed in the standard setting of your modem program.
I'm describing two alternative configurations here: One is via kppp, the graphical modem tool in KDE, and the second one is a plaintext configuration of wvdial.
Don't worry about the unknown login/password for authentication. Actually, you don't need them because your modem identifies you using the SIM card number, so your Internet connection gets charged to your phone bill. But because kppp demands a login and password, you can literally give both of them as three.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.
-
DebConf24 to be Held in South Korea
Busan will be the location of the latest DebConf running July 28 through August 4