Networking with DSL & Linksys NP100

This post will briefly detail my experience setting up the Linksys NP100 PCMCIA 10/100 Ethernet adapter in DSL. It is currently fully functional, and getting networking (even ethernet) on this old beast was a real benefit.

First, I was saved from the trouble I had with TinyCore by the fact that DSL run cardmgr, a utility for interfacing with PCMCIA cards. I plugged in the card and it recognized it at boot immediately- dmesg showed

eth0: Asix AX88190: io 0x300, irq 3, hw_addr 00:04:5A:A5:66:08

This card uses the AX88190 chip, which means that although normally it tries to use the pcnet_cs driver, you must manually bind it to axnet_cs.
Open /etc/pcmcia/config with a text editor, and search for the paragraph on the Linksys NP-100. Change the line that says

bind "pcnet_cs"


bind "axnet_cs"

Next open /etc/pcmcia/config.opts, and add this to the end of the file:

card "Fast Ethernet 10/100 PC Card"
  version "Network Everywhere", "Fast Ethernet 10/100 PC Card", "3.0", "AX88190"
  manfid 0x0149, 0xc1ab
  bind "axnet_cs"

After this you should blacklist the pcnet_cs driver by opening /etc/modprobe.d/blacklist, and adding the line

blacklist pcnet_cs

Save and exit.
Now because DSL doesn’t autoconfigure the network (no dhcpcd or dhclient) at startup you need to set it up manually, with a static IP address:

sudo ifconfig eth0 desired_ip netmask

Changing desired_ip to your desired static IP.
This got the card functioning for me. If anyone else has any different experience or corrections to make, please leave a comment or send me an email at


How to set up Xchat with Tor + SASL


Many who use IRC use the client Xchat, myself included. For some mobile tethering is their only means of internet; others may be facing problems with firewalls and ISP blocking. Setting your Xchat client to use the Tor network can help you around this.

In this post I will detail how to set up Xchat with Tor on Debian or Debian based OS. Part of this involves using SASL, an authentication protocol, since unauthenticated Tor connections are automatically blocked by most IRC servers (FreeNode in particular).


I’ll assume you already have Xchat installed. In that case, the first step is to install Tor.

sudo apt-get install tor

Tor is a small package and should not take long to download. It will automatically daemonize and begin running.
Next you need to edit /etc/tor/torrc:

gksu your_favorite_editor /etc/tor/torrc

at the end of that file, append

# For FreeNode IRC
mapaddress p4fsi4ockecnea7l.onion

Save the file and close.

Now you need to download and save a SASL plugin script to ~/.xchat2. You can download this file here:
This file is available a few other places on the web as well.

With that completed, open up Xchat. Press the “Add” button to add a new network. Give the new network the name “free” (although any name will work). Next press “Edit”. In the top text box, replace “newserver/6667” with

Check “Connect to Selected Server Only” and “Use SSL for all the servers on this network” and close. Click the “Connect” button.

While Xchat futilely attempts to connect, type


You should be rewarded with this output:

 SASL [action] [action paramters]
     load        reload SASL information from disk
     save        save the current SASL information to disk
     set         set the SASL information for a particular network
         set <net> <user> <passord or keyfile> <mechanism>
     delete      delete the SASL information for a particular network
         delete <net>

     show        display which networks have SASL information set
     mechanisms  display supported mechanisms

     help        show help message

If so, next type

/sasl set free your_nick your_password PLAIN

So if my username was (surprise) cortman, and my password was (it’s not) “squid”, I would write

/sasl set free cortman squid PLAIN

Press enter, and you should get this:

SASL: added free: [PLAIN] your_nick *

Almost there. Next go to the Settings tab and select Preferences. Go to the “Network Setup” tab. Here you will set the proxy server settings.
In the “Hostname” text box, type (not localhost)

Set the port to 9050.
Set the type to Socks5.
And finally, set “Use proxy for:” to “IRC Server Only”.

Click ok and restart Xchat and connect to your “free” network. You should be connected!

Final Notes

While I have found tor to be the only way to use IRC in some cases (such as the ones outlined at the beginning), it often isn’t very reliable. Don’t be surprised if you cannot connect occasionally. Keep reconnecting, and the odds are you will eventually get through.


Quickly connect to open wireless CLI

First run

rfkill list all

to make sure the wireless isn’t soft blocked. If it returns a yes, you either have a physical switch turned to off or a hotkey combination. If the wireless is softblocked, you can turn of softblocks with

sudo rfkill unblock all

Next run

sudo ip link set wlan0 up


sudo iwconfig wlan0 essid "network_name"

You should be connected! Run


just to confirm. If you’re connected, you should get messages showing “pinging with x bytes of data…”. Hit ctrl+c to end the command.

Finding and killing processes using ports

First, run

sudo netstat -lpn | grep port_number

This will return a process name and id, such as

unix  2      [ ACC ]     STREAM     LISTENING     121704   5006/gnome-session  /

Kill the process per the PID, in this case 5006.

sudo kill -9 5006