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. |
|
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.
|
Try LinNeighborhood.
|
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...
|
In konqueror's location field type smb:/ Can't remember, but I think it works without samba.
|
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?
|
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 |
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]# |
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." |
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 ? ;) |
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.
|
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.
|
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 |
Thank you all! Everything worked and you're right it isn't so difficult but the first time it's somethimes confusing :)
|
All times are GMT -5. The time now is 06:11 AM. |