SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-07-26 08:45:01

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Samba and network browsing

# Start Networking and mount it in ~/network
sleep 5s && smbnetfs ~/network 

Offline

Help fund CrunchBang, donate to the project!

#2 2009-07-26 14:31:36

gwmiller
New Member
Registered: 2009-07-23
Posts: 4

Re: Samba and network browsing

I just installed Smb4k, and that's handled all my Windows/Samba connections without difficulty.

Jerry

Offline

#3 2009-07-26 14:48:43

DJiNN
#! Member
From: UK
Registered: 2009-04-23
Posts: 70

Re: Samba and network browsing

Last edited by DJiNN (2009-07-26 15:35:07)

Offline

#4 2009-07-26 15:21:13

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Samba and network browsing

The only way for me to get smb running under Ubuntu derivates at the moment, is fusesmb. There are several bugs (listed) around that issue.


I'm so meta, even this acronym

Offline

#5 2009-07-27 07:39:26

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Ok, I've downloaded fusesmb, still didn't work however, I still can't see any files. Any ideas? A OS without filesharing isn't very useful too me sad This computer holds all my media, and am really keen to keep crunchbang on it!

Offline

#6 2009-07-27 08:22:51

Awebb
The Singularity
Registered: 2009-07-23
Posts: 2,812

Re: Samba and network browsing

Two simple scripts to be placed in your ~/bin/

# !/bin/bash
# sambaon
# samba-stuff in ~/network
mkdir ~/network
fusesmb ~/network/
# !/bin/bash
# sambaoff
# kill samba-stuff in ~/network
fusermount -u ~/network/
rm -rf ~/network

Don't forget to make them executable!

Now create yourself a hotkey/obmenu entry for both and enjoy.

EDIT: Are you sure it's the Ubuntu device causing the problem? Did you setup everything correctly in Win7? Firewall? Can you ping it?

Last edited by Awebb (2009-07-27 08:25:38)


I'm so meta, even this acronym

Offline

#7 2009-07-27 11:14:22

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

This place has 6 computers, I own 4 of them they are all sitting on this desk, I have direct access to all their settings. All are communicating within one another perfectly except CrunchBang, so I'm pretty sure it's it.

Ok I have the executables, haven't bothered mapping keys or placing a menu item as I still can't browse my ubuntu/vista/7 machines. Yes they're executable, I can see rm command at work when I exec sambaoff. I can also see my computers in the ~/network/WORKGROUP folder when i exec sambaon, but all shared folders contain no files...

Can I set samba up like I have it in my ubuntu/gnome/nautilus install? ie, using smb:/// for the network mount? I'm sort used to that, however right now I'll be content with just having a functional samba setup.

BTW, thanks for all you help Awebb, I appreciate this smile

Offline

#8 2009-07-27 12:23:25

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Samba and network browsing


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#9 2009-07-28 01:35:46

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Hi there, thanks for that, but I'd like to keep using pcmanfm - But then again, I'd also like a working samba setup. Can anyone help further?

Offline

#10 2009-07-28 01:42:59

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Oh - I guess I should probably mention that none of my computers can see my CrunchBang computer either. Like browsing the network that is.

EDIT: Progress! Ok, I installed samba 2:3.3.1, the same version as my Ubuntu install. And it worked. To an extent... I can now share files and folders and others can browse them, copy, use everything. However I STILL can't go the other way i.e browse other computers. Any ideas? I think it's because 2:3.3.1 is sharing, but I'm still trying to use fuse to see them - I'm unsure how to use 2:3.3.1 for browsing my network - can someone help? Short of suggesting that I use nautilus. I want to setup a sync between my desktop and laptop - but I need sharing to go both ways for this to be possible.

Thanks again to everyone who's helping smile

Last edited by aim (2009-07-28 04:11:48)

Offline

#11 2009-07-28 04:32:02

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

*bump* updated last post.

Offline

#12 2009-07-28 08:46:36

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Ok, further progress has been made. Sorry about all these posts. But I keep making them in the hopes that someone realises what's wrong and can help me.

I have managed to copy something from my remote laptop. This proves that Samba is working but somehow is not mounted correctly or just displaying properly through PCmanfm, I think it is my mounting procedure or PCmanfm's setup that is somehow wrong. I still can't browse with PCmanfm. This is my only road block. Why can I not browse?

hamish@hamish-desktop:~$ smbclient //hamish-laptop/music -U hamish
Enter hamish's password: 
Domain=[HAMISH-LAPTOP] OS=[Unix] Server=[Samba 3.3.2]
smb: \> get "The Roots - The Seed 2.0.mp3"
getting file \The Roots - The Seed 2.0.mp3 of size 6307782 as The Roots - The Seed 2.0.mp3 (614.8 kb/s) (average 614.8 kb/s)
smb: \> 

However I am pleased to know I can communicate with other computers, there is hope!

Offline

#13 2009-07-28 11:28:14

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

More progress!

I'm close. I've managed to mount one folder.

hamish@hamish-desktop:~$ sudo mount -t cifs //192.168.1.8/music ~/hamish-laptop -o username=hamish,password=******

However, I can't browse shared folders still. How can I use cifs not to mount just individual shared folders, but a computer?

Offline

#14 2009-07-29 10:18:25

3s
New Member
Registered: 2009-07-29
Posts: 1

Re: Samba and network browsing

You could also install gnome-commander!

Offline

#15 2009-07-29 11:03:35

lillis
Member
From: Stockholm, Sweden
Registered: 2009-07-22
Posts: 37
Website

Re: Samba and network browsing

If I recall correctly, samba can only mount the actual shared folders, and not sub-folders of those. You should be able to reach them, but you cant mount them to a directory on your #! computer. But maybe I'm not understanding your problem correctly? If you just want to share your entire computer, why not share the C: disk instead of different folders?

Offline

#16 2009-07-29 23:47:36

shan2on
New Member
Registered: 2009-07-29
Posts: 3

Re: Samba and network browsing

similar problems here.

first off, this is my first post and hopefully not my last. I've used many distros starting from slackware 7.1 all the way to gentoo 2001.0 and even ubuntu 9.04 and now #!.

This is by far the most easiest and intuitive <u>minimalistic</u> approach to a user-friendly distro i've ever used, including netbsd.

Quick network overview:
machine 1> debian lenny amd64 kernel - used for web development and small sql interactions.  Samba is used here mainly for sharing ~/www, a symbolic link to /var/www.
machine 2> Windows 7, workgroup member with D drive shared, mainly used for gaming and file repos
machine 3> crunch 9.04, laptop used as a client and local development, my main machine really.

Problem:  Samba and overall network filesharing with crunchbang.

As said above, i'm a frequent linux user, in fact of all 6 machines in my house, only 1 is windows, and its a 7 box.  My other 2 ubuntu and debian machines are not a factor, as they are not as dependant on the LAN as much as i need.

now, regardless of filemanager, i cannot get my shares to stick.  And i think this lies with crunchbang solely.  With a ubuntu machine running nautilus as the default fm, i can browse subdirectories with ease, even if i fail to share the wrong "root" folder when applying the share on the client machine.

however with crunchbang, I can only view and share files on my crunchbox locally, and am not able to mount anything remotely (windows7 machine), using both

1> the mount command

sudo mount -t cifs //192.168.0.102/d /home/shan2on/nfs -o username=shan2on,password=******

2>gigolo, ran as standard user ... I can mount my locally samba shared folders, but not able to access anything else.  My D drive shows up, but i cannot browse its' subfolders.

3> running gksudo pyNeighborhood, just keeps scanning for shares. however, before with my laptop, i was able to access both C and D drives on my machine, after mounting them as root, then playing whichever episode of television i want via my samba share and wireless adapter i was able to stream via mplayer with ease.  However after a reboot of my windows machine, i am reluctant to share anything, but why can i view the root share and not it's subfolders ?


all of the recommended methods on this site and ubuntus' forums, i have followed and customized to my own, and in no way am i blaming the software, clearly this is a configuration error on  my part.

Could it be a dhcp inflicted error ?'

What about a keyring conflict ? Does the keyring save ip addresses and names  ?

or an amd64 kernel issue with network browsing  (or so i've read) ?


If i'm missing anything please let me know... do you need an smb.conf ? cause it is the default with home directories enabled.  And this is more of an smbclient problem, even though i cannot view my samba shares on my windows 7 machine either.

nevertheless :   /etc/samba/smb.conf


[global]
   workgroup = WERKGREWP
   server string = %h server (Samba, Ubuntu)
;   wins server = w.x.y.z
   dns proxy = no


#======================= Share Definitions =======================
[homes]
   comment = Home Directories
   browseable = yes
;   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

any help is greatly appreciated

Offline

#17 2009-07-30 00:52:04

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Offline

#18 2009-07-30 01:40:57

shan2on
New Member
Registered: 2009-07-29
Posts: 3

Re: Samba and network browsing

Offline

#19 2009-07-30 02:53:51

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Have you tried installing nautilus shan2on?

EDIT: and use it with samba 2:3.3.2, its in the repos.

Last edited by aim (2009-07-30 02:54:25)

Offline

#20 2009-07-30 05:40:38

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Samba and network browsing


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#21 2009-07-31 04:02:00

aim
#! CrunchBanger
From: Christchurch, New Zealand
Registered: 2009-07-26
Posts: 227

Re: Samba and network browsing

Thanks iggykoopa. But I've managed to get it to work under nautilus. Flakey, but working.

Offline

#22 2009-07-31 17:56:32

shan2on
New Member
Registered: 2009-07-29
Posts: 3

Re: Samba and network browsing

Offline

#23 2009-07-31 18:32:00

iggykoopa
Script Master
Registered: 2008-12-13
Posts: 1,486

Re: Samba and network browsing

nfs is a good solution too, it actually seems a little more reliable than sshfs. It seems for me like the connection drops sometimes with sshfs, but it's just so easy to mount whatever directory you want...doesn't need to be configured beforehand or anything.


I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Offline

#24 2009-09-29 02:06:27

tinee
New Member
Registered: 2009-02-12
Posts: 6

Re: Samba and network browsing

Last edited by tinee (2009-09-29 03:22:30)

Offline

Be excellent to each other!

#25 2009-11-13 20:17:06

li72
New Member
Registered: 2009-05-26
Posts: 8

Re: Samba and network browsing

Hi

I just did the above (install smbfs etc) and when I run the mount command after being prompted for the smb password I get:

mount error (5): Input/output error
refer to the mount.cifs(8) manual page


Which I did but it didn't mention error 5 anywhere

Any suggestions?

Last edited by li72 (2009-11-13 20:18:23)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo