LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2004, 09:03 AM   #1
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
Browsing the LAN?


OK, my Linux box now works almost perfectky and I need just few more things to be really happy with it. One of them is to browse the local network and to view and use the shared files and directories. So how can I do it from KDE? In Konqueror when I try to browse the LAN it says the protocol lan is not supported. What do I need in order this to work?
As you can guess the most of the guys in the local network are using WIndowsXP so how can I see them ? Thanks.
 
Old 06-05-2004, 11:10 AM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
iZvi

You need Samba

Slackware may well already have it installed

Pete
 
Old 06-06-2004, 03:11 AM   #3
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
I've heared about Samba but I'm really not sure how to use it. It sounds complicated. I'll install it and probably ask some questions about how to configure it.
 
Old 06-06-2004, 05:43 AM   #4
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 32
Try LinNeighborhood.
 
Old 06-06-2004, 08:02 AM   #5
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
Thanks, ivanatora I'll search for this. Btw I think I've seen your name somewhere in other Linux forums but don't remember where exactly...
 
Old 06-06-2004, 08:11 AM   #6
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
In konqueror's location field type smb:/ Can't remember, but I think it works without samba.
 
Old 06-22-2004, 05:55 AM   #7
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
It doesn't work even with samba. The only utility that works is smbtree but I want something with GUI for this. How can I use the samba features from KDE?
 
Old 06-22-2004, 09:58 AM   #8
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
I would advise reading the man page for smb.conf, and the howto Samba
Try www.tldp.org.
Then set it up by hand. The wizards ain't got enough magic yet! (Or: Wait til Harry Potter grows up)
Peter
 
Old 06-22-2004, 10:38 AM   #9
samuel_burg
LQ Newbie
 
Registered: Jun 2004
Location: France
Distribution: RedHat 7.3 & 9 & Fedora
Posts: 10

Rep: Reputation: 0
test samba first

And what about testing your recent instaled samba client ?
Try this :

1) don't use Windows XP "simple file sharing" it's shiti.
so UNchecked : Explorer->Tools->Folder Options...->View->[]Use simple file sharing (recommended)
and set a shared for one of your windows directory with
(right click)Sharing and Security...->Sharing->Share this folder and set the requested fields
for security purpose it's obviously better to rescrict read/write permition for selected user

2) open a console windows in your Linux box and try something like this :
(with your server IP, username and password !)
those line are a dump from my console under Linux RedHat 7.3 connecting to a W2K Server.
Sorry I don't have time to do the same dump for a WXP Pro, looks similar.
Hum, don't do this as root like me !

[root@Main-Frame root]# smbclient //192.168.0.22/Mirroring_80Go -U user
added interface ip=192.168.0.51 bcast=192.168.0.255 nmask=255.255.255.0
session request to 192.168.0.22 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> ls
A Trier D 0 Mon May 24 20:22:37 2004
A Trier DICOM D 0 Mon May 31 23:06:47 2004
A Trier Images DA 0 Thu Apr 15 21:29:10 2004
A Trier PIN HOLE D 0 Fri May 14 21:13:13 2004
A Trier Textes - Tableaux DA 0 Sat Oct 11 12:50:46 2003
Archives DICOM & PINHOLE D 0 Tue Apr 13 11:27:14 2004
Games D 0 Mon May 24 20:23:56 2004
Linux DA 0 Fri Jun 18 20:28:33 2004
Médecine Nucléaire D 0 Fri Jun 18 21:29:44 2004
Outlook DA 0 Sun Oct 5 01:46:41 2003
Pages Web DA 0 Mon Dec 22 01:52:53 2003
Photographies DA 0 Sat Oct 11 12:48:52 2003
Re-Install_W2K_NT4 D 0 Sun Apr 25 15:53:12 2004
RECYCLER DHS 0 Thu Jun 3 00:08:53 2004
System Volume Information DHS 0 Fri Apr 16 18:16:29 2004

38040 blocks of size 2097152. 4722 blocks available
smb: \> cd Outlook
smb: \Outlook\> ls
. DA 0 Sun Oct 5 01:46:41 2003
.. DA 0 Sun Oct 5 01:46:41 2003
address book DA 0 Thu Mar 20 20:40:12 2003
E-mail - 01-02-03 DA 0 Thu Mar 20 20:31:16 2003

38040 blocks of size 2097152. 4722 blocks available
smb: \Outlook\> q
[root@Main-Frame root]#
 
Old 06-22-2004, 11:28 AM   #10
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
In Konqueror smb:/. works fine. The workgroups are all displayed and the shared files also. But I think it displays info slow somethimes. When i open machine I wait somethimes half a minute which I thinks is slow.
And is there some way to configure a timeout because some of the machines aren't responding (running nasty firewalls not alowing connections from the LAN) and I have to wait a lot just to see the message "connection refused."
 
Old 06-23-2004, 03:50 AM   #11
samuel_burg
LQ Newbie
 
Registered: Jun 2004
Location: France
Distribution: RedHat 7.3 & 9 & Fedora
Posts: 10

Rep: Reputation: 0
socket optimisation

1)
Does the value :

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

answer your question ?

2)
Why did you ask about speed with a Microsoft OS in your Network ?
 
Old 06-23-2004, 04:35 AM   #12
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
I'll have to try this to see if it helps. And most of the PCs are running Windows XP and even from Windows it is slow to open a workgroup PC. But when you're copying files it is really fast. Strange.
 
Old 06-23-2004, 07:02 AM   #13
Mr T Donegal
Member
 
Registered: Feb 2004
Location: Netherlands
Distribution: Suse 9.3
Posts: 31

Rep: Reputation: 15
One way of browsing shares within Konqueror is to first mount the shares using the program LinNeighbourhood - you can set this up to automatically mount a resource when the program is started. The filesystem can be mounted at a particular mountpoint which might be a dedicated folder within your Home directory. Then when you open konqueror, the remote filesystem should be browseable within this folder. You can also have LinNeighbourhood remember the mounted resource so you only have to open the program for a minute or so and then close it again each time you want it to connect.
 
Old 06-23-2004, 08:23 AM   #14
samuel_burg
LQ Newbie
 
Registered: Jun 2004
Location: France
Distribution: RedHat 7.3 & 9 & Fedora
Posts: 10

Rep: Reputation: 0
not so diffucult

hi,

I don't think that samba is so difficul as you say.
... only if you want to use it as an end-user ...
... and if you only want to connet FROM Linux TO Windows ...
In the other way it's ... hum ... rather complicated !

I will sugest to try this :

1) check your LAN :

from Linux : ping computer_name_blablablaWindows
from Windows : ping computer_name_blablablaLinux

if success, go to next step

if failed :
from Linux : ping 192.168.0.1 (with windows box IP adress !!!)
from windows : ping 192.168.0.2 (with linux box IP adress !!!)

if success, go to next step

if failed check your hardware, driver, IPconfiguration, mask ... not the question here.

2) check your samba instalation :

from a command line windows :

prompt> smbclient

must display your IP adress, usage, samba version and optional switch to use with smbclient.

prompt> smbmount

must display usage, samba version and optional switch to use

3)

prompt> mkdir /mnt/smb

create a target where to mount you samba share

4)

prompt> smbclient -L //192.168.0.1 -N

must display the list (-L) of the samba share on your server (//192.168.0.1) with an anonymous login (-N)
if your server don't allow access to his shared for anonymous login you will get :
...
... Anonymous login successful ...
...
... ERRnoaccess (Access denied.) ...
...

prompt> smbclient -L //192.168.0.1 -U username%password

does same as last line, but with a specific login/password (-U username%password).

prompt> smbclient //192.168.0.1/shared_name -U username%password

connect to samba server in the specific shared folder (/shared_name) that you copy from the last list of answer with -L option.

now you can browse this samba shared like in a bash command line.
... cd ... ls ... and help ;-)

when you want to come back to promt use 'q' to quit smbclient and also disconnect from server.

5) use smbmount tu get all this stuff in your explorer (Nautilus, Konqueror ...)

syntaxt :

prompt> smbmount Share-UNC mount-point -o options

simple example for what we have done before :

prompt> smbmount //192.168.0.1/shared-name /mnt/smb -o "username=your-user-name%your-pass-word"

6) open your explorer in /mnt/smb ... it's done !

helpfull page :

http://samba.org/samba/docs/using_samba/ch05.html
 
Old 06-23-2004, 12:10 PM   #15
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Original Poster
Rep: Reputation: 35
Thank you all! Everything worked and you're right it isn't so difficult but the first time it's somethimes confusing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN browsing, how? dink27 Linux - Networking 1 06-26-2005 03:51 PM
Browsing and LAN Pedroski Linux - Networking 1 05-12-2004 09:36 AM
Lan Browsing zmaint Linux - Newbie 5 09-19-2003 10:37 PM
Lan browsing Lorden Mandriva 4 08-29-2003 01:03 PM
browsing the LAN Robert0380 Linux - Networking 8 05-20-2003 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration