Smb Client HowTo


From Knoppix Documentation Wiki
Revision as of 12:44, 16 October 2008 by Clinton (Talk | contribs)

Jump to: navigation, search

Windows Networking (Client End)

From Computer First Aid Using Knoppix by Cedric Shock and Susan Sullivan, used with permission.

To rescue use SMB (Windows Networking), you need a connection to a local area network, and another computer running on the network, with a shared folder you can access. If your local area network that was not automatically configured properly, see Local Area Networks.

Before you begin, you will need to know the following information about the other computer:
Workgroup:
Username:
Password:
Computer Name:
Shared Folder:

If the computer is running windows 95, 98, or ME and does not require a password for the shared folder, the username is "guest" and the password is blank.

At this point there are two options for connecting to the computer. The first option is slightly easier, but doesn't always work; try it first. The second option is a little harder, but is rock solid.

Option 1: Lin Neighborhood

Click on the http://www.shockfamily.net/cedric/knoppix/kde.png in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "Internet" submenu and select "Lin Neighborhood". (As of at least Knoppix 3.4, Lin Neighborhood may appear under "more programs" at end of list.)

In Lin Neighborhood find the "Options" menu and select "Browse entire network..."

Entire Network Browse If your network requires authentication just to see the list of shared folders, select "Browse as user" and enter your network username and password. Click "Ok".

Lin Neighborhood should now show a list of workgroups and the computers in them like this:
http://www.shockfamily.net/cedric/knoppix/linn.jpg
Find the computer you want to access and double click on it. The list should now show the shared folders on that computer. Select the desired shared folder. Click on the "Mount" button in the upper left corner of the window.

Mount Dialog You will be presented with a window that looks like this:
http://www.shockfamily.net/cedric/knoppix/linnmount.jpg
Enter your username in the box labeled "SMB User:" and your password in the box labeled "SMB Password:". Click "Mount".

Now we need to open the directory that represents the shared folder on the other computer. Click on the [1] at the bottom of the screen. This will open a file manager type window. There should be a folder called "mnt" in the icon view on the right; open it. In this folder, there should be one folder with the name of the computer you connected to; open it. In this folder, there should be one folder with the name of the shared folder you connected to; open it. This directory now represents the shared folder on the other computer.


Option 2: The Command Line

Click on the http://www.shockfamily.net/cedric/knoppix/kde.png in the lower left hand corner of the screen. This will bring up a menu like the Windows Start Menu. Enter the "KNOPPIX" submenu and select "Root Shell". This will open a window with a light blue prompt that reads something like

root@ttyp0 / #
  • Type cd /mnt and press enter. The prompt should now read
root@ttyp0 mnt #
  • Type mkdir /mnt/shared and press enter. This makes a directory (folder) on this computer that will represent the shared folder on the other computer.
  • Type, substituting the information garnered above for the parts in bold:
    • mount -t smbfs -o uid=knoppix,workgroup=Workgroup,username=Username,password=Password //Computer Name/Shared Folder /mnt/shared

and press enter. This attaches, or "mounts", the other computer's shared folder to the folder we created.
Close this window.

N.B. if the username, password or UNC (Universal Naming Convention) path to the shared folder on the remote machine contains spaces you can enclose/delimit them with single quotes e.g.
username='My Username Has Spaces'
password='My Password Has Spaces'
'//192.16.1.1/My Shared Folder'

Open a new Konqueror window by clicking on the http://www.shockfamily.net/cedric/knoppix/home.png at the bottom of the screen (it is the 4th from the left). In the address bar, after where it reads X> Location: type "file:/mnt/shared/" and press enter. This window is now displaying the shared directory on the other computer.

Option 3: LISa and Konqueror

From this thread by mkklavs:

Either:

  • A Run this command at a non-root console :
    • wget && chmod +x lissetup.sh && sudo ./lissetup.sh

Or...

  • B
  1. Go to lissetup.sh, click Edit at the bottom, and copy the script out of the textarea box.
  2. Save it as lissetup.sh wherever you want.
  3. Run chmod +x lisstup.sh from a console in the directory where you saved the file.
  4. Run sudo ./lissetup.sh from the same directory.

Either way, you assume the risk of running this script; you take full responsibility. It's not likely it will be a problem, but posting on a Wiki or linking to an external site does not provide security against modifications. It's possible for the script to be altered, so you should examine it yourself before running it.

After doing that, open Konqueror, click the Services icon on the left side of the folder tree (the one on the bottom, use tooltips to help), and click LAN Browser. You should be able to browse Windows/SMB shares on your LAN.