Slackware : Setting up a home network 25 January 2004 at 00:00
This example applies to a Win XP machine with a USB ADSL modem connected directly to the internet, connected via Ethernet to a laptop running Slackware 9.0.

Setting up Windows

Right-click "My Computer" and go to the Computer Name tab. You will need to enter a name for your computer (e.g. MYPC) and a workgroup (e.g. MYWORKGROUP).

Go to Network Connections and right click on your LAN connection, selecting properties. Select the Internet Protocol item (this will need to be installed if it is not already), and click properties. Set up the options as follows:

  • IP Address -
  • Subnet mask -
  • Default gateway:

Setting up Linux

From a shell, you will need to run "netconfig" and enter the settings to match those entered above. In this example, you would enter the following:

  • hostname - linuxpc
  • domain name - MYWORKGROUP (must match your XP machine's workgroup)
  • choose a Static IP and enter
  • subnet mask -
  • gateway address -
  • nameserver -

You will need to ensure that your firewall allows all access on your ethernet card, after this both machines should be able to ping each other on the above ip addresses.


Assuming you have samba installed, you will need to set it up (I use webmin to do this) with the following options:

  • Windows uses encrypted passwords so enable this
  • Set the workgroup to the same as above (MYWORKGROUP in this example)
  • Set the server description and name
  • Set security to user level
  • Make sure TCP_NODELAY is on
  • Allow guest access - set the guest account to "nobody"
  • Set "hosts to allow" to (in this example) "192.168.1. 127."
  • Create your samba users (if you have trouble with Webmin create the samba account using "smbpasswd -a user", then go into Webmin and edit the user account.
Now, when you log in from windows, you can use the above user to the log in.