Author Topic: Samba And Friends  (Read 5523 times)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« on: February 12, 2007, 12:07:56 pm »
Hi,

Anyone know a decent but short howto configure samba properly ?
I don't want all the details, just a step by step how-to.

I compiled LinNeighborhood and can see all computers (Win and Linux) in the network and see their shares, but it doesn't want to mount them.

Where do I go wrong ??

[ Invalid Attachment ]

(also compiled gsambad but it has too many options I don't understand, time to catch up with some reading I guess)

Chero.
« Last Edit: February 12, 2007, 12:08:30 pm by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Samba And Friends
« Reply #1 on: February 12, 2007, 02:37:46 pm »
Could you post an ipk? That sounds like a nice program to have.

Thanks.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Samba And Friends
« Reply #2 on: February 12, 2007, 04:10:09 pm »
Samba doesn't normally require much configuration unless you're setting up a server. If you can browse the shares then you should be able to mount them with the exact same configuration. If you can only see them and not browse, it could be password problem - make sure you set not only a user and password, but also a workgroup when trying to mount.
SL6000-L, RC12

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Samba And Friends
« Reply #3 on: February 12, 2007, 04:32:12 pm »
Quote
Hi,

Anyone know a decent but short howto configure samba properly ?
I don't want all the details, just a step by step how-to.

I compiled LinNeighborhood and can see all computers (Win and Linux) in the network and see their shares, but it doesn't want to mount them.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153893\"][{POST_SNAPBACK}][/a][/div]
First, are you sure it's a samba configuration issue?  Are the "shared drives" accessible from other machines?  And have you tried mounting the filesystems via the command line?  

I don't know how much LinNeighborhood automates this, what kind of authentication prompts it provides, or what kind feedback (e.g. error messages) it provides.  The problem could be on the remote machine, in samba, or in the LinNeighborhood utility.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #4 on: February 12, 2007, 05:04:40 pm »
Thanks for the answers so far,

Yes, I'll provide an ipk, will do so tomorrow.

Yes, the shares are accessible from other machines - it's a network that is being used.
Don't know about command prompt, I could mount them using the stock-samba, but I upgraded samba in order to compile gsambad and I haven't tried since.
Will do tomorrow.
Yes, I'll pack gsambad as well, seems nice to have for the hardcore samba users.

Yes, I do want to create a share on my Z. Since usb-storage-device-function doesn't work that well on r121 it seemed like a nice alternative to me.
Anyone can explain how to do this in two words ?

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Samba And Friends
« Reply #5 on: February 12, 2007, 05:13:37 pm »
Quote
Thanks for the answers so far,

Yes, I'll provide an ipk, will do so tomorrow.

Yes, the shares are accessible from other machines - it's a network that is being used.
Don't know about command prompt, I could mount them using the stock-samba, but I upgraded samba in order to compile gsambad and I haven't tried since.
Will do tomorrow.
Yes, I'll pack gsambad as well, seems nice to have for the hardcore samba users.

Yes, I do want to create a share on my Z. Since usb-storage-device-function doesn't work that well on r121 it seemed like a nice alternative to me.
Anyone can explain how to do this in two words ?

Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153925\"][{POST_SNAPBACK}][/a][/div]

are you logging in with the correct username/password? user root or zaurus with no password is not a valid windows user....
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Samba And Friends
« Reply #6 on: February 12, 2007, 05:24:51 pm »
I use this kinda command line:
Code: [Select]
mkdir /mnt/smbfs
smbmount //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Samba And Friends
« Reply #7 on: February 12, 2007, 10:22:42 pm »
Quote
Yes, I do want to create a share on my Z. Since usb-storage-device-function doesn't work that well on r121 it seemed like a nice alternative to me.
Anyone can explain how to do this in two words ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153925\"][{POST_SNAPBACK}][/a][/div]
First, you'll want to take a look at /etc/samba/smb.conf.  This file defines what is shared on your Zaurus.  This is a copy of a very stripped down smb.conf file that should get you going:
Code: [Select]
[global]    
# workgroup is either a domain name or a workgroup name
    workgroup = MYGROUP
#
# encrypt passwords is required for Win98, NT and Windows 2000
#
    encrypt passwords = yes
[all]
    comment = read/write access to /
    path = /
    read only = no
    guest ok = no
[home]
    comment = read/write access to /home
    path = /home
    read only = no
    guest ok = no

- Change 'MYGROUP' to the correct workgroup name.
- The [name] at the head of each share section is the name that samba will use
- The path = xxx in each section is the directory that will be shared
- read only & guest ok should be fairly obvious

If you are not allowing "guests" then you will have to add each authorized user.  Use the smbpasswd -a <username> command to do this.  It will prompt you for a password.

After making changes, issue the command samba restart (or samba stop followed by samba start) for the changes to take effect.  I think Meanie may have created a gui for doing this, depending on which packages you're using.

Antikx's command line should work for mounting another system's share.  If it mounts via command line but not with your utility, then samba isn't the problem.  One note (which I always seem to forget): If you plan to use additional options, I believe that the options list that follows -o is comma-separated and contains no spaces.  Check the man pages to confirm.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Samba And Friends
« Reply #8 on: February 13, 2007, 12:36:40 am »
The official Samba howto is a little more than two words, but it is pretty good. Try the "Fast Start: Cure for impatience" section or whichever suits what you are trying to achieve, you don't have to read much to get some useful info.
SL6000-L, RC12

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #9 on: February 13, 2007, 02:11:53 am »
Hi,

Thanks for the explanations and the links,
I really have to catch up with some reading.

Quote
mkdir /mnt/smbfs
smbmount //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
I use :
Code: [Select]
mount -t smbfs //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
Quote
are you logging in with the correct username/password? user root or zaurus with no password is not a valid windows user....
There is a tab to provide a username to the app "(Preferences-Miscellaneous)" but it doesn't seem to use it, maybe someone else might have more luck (or knows what to do).
BTW : one of the desktops in this network has "root" and "zaurus" as valid usernames.    

Quote
... to take a look at /etc/samba/smb.conf
Gonna start over there...

Quote
The official Samba howto is a little more than two words, but it is
... and finish over here.

The attached ipk doesn't have deps listed, so I won't put it in the announcement thread yet. It obviously depends on "samba-***" and gtk (which is probably on every Z running pdaX). I'll first have to uninstall my new samba to check which ones I need from the feed.



BTW : the attached image and ipk were copied to a mounted samba share on my Z and then attached here using a win-pc. But the share was mounted using command-line ....

No launchers yet, start "LinNeighborhood" from command line ...

Have fun,
Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #10 on: February 13, 2007, 06:07:58 am »
Newsflash :

The message I get now is : "can't resolve address". When mounting through command line everything is fine.
When changing the version of samba in the "prefs", I get other messages. So maybe it just doesn't work on a samba version 3.0.x.
Anyone else ?

There is also a pyLinNeighborhood which is more recent then LinNeighborhood, but it doesn't want to compile on my (not very standard - too much messed up - ready to reinstall - nice to play with - ...) setup of r121.
It needs pygtk.

Chero.
« Last Edit: February 13, 2007, 07:39:29 am by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Samba And Friends
« Reply #11 on: February 13, 2007, 11:56:32 am »
I tried your ipk this morning but couldn't get it to display any hosts at all. I know samba works as I mount shares on the command line (similar to the aforementioned command).

Maybe it's just broke!

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #12 on: February 13, 2007, 12:12:56 pm »
Quote
I tried your ipk this morning but couldn't get it to display any hosts at all. I know samba works as I mount shares on the command line (similar to the aforementioned command).

Maybe it's just broke!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=153973\"][{POST_SNAPBACK}][/a][/div]

Did you try "options -> browse entire network". I had to do it the first time to see computers and their shares.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #13 on: February 13, 2007, 03:24:43 pm »
Ok,

pyNeighborhood does work !
I just needed a full python install, then it was "./configure, make, make install"

 [ Invalid Attachment ]

I'll try to connect at the office tomorrow to give a nicer screenshot - this one was a quick setup of a network at home.

If you want to try this, change the unmount command to "umount" instead of the default "smbumount".

Chero.
« Last Edit: February 13, 2007, 03:33:24 pm by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Samba And Friends
« Reply #14 on: February 14, 2007, 02:08:51 am »
I found what I was looking for :

[ Invalid Attachment ]

The pictures show it all, don't they ?

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.