OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: Chero 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 ??
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
(also compiled gsambad but it has too many options I don't understand, time to catch up with some reading I guess)
Chero.
-
Could you post an ipk? That sounds like a nice program to have.
Thanks.
-
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.
-
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.
-
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.
-
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....
-
I use this kinda command line:
mkdir /mnt/smbfs
smbmount //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
-
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:
[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.
-
The official Samba howto (http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/) 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.
-
Hi,
Thanks for the explanations and the links,
I really have to catch up with some reading.
mkdir /mnt/smbfs
smbmount //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
I use :
mount -t smbfs //192.168.1.188/shareddirectory /mnt/smbfs -o username=myusername
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.
... to take a look at /etc/samba/smb.conf
Gonna start over there...
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.
[ You are not allowed to view attachments ]
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.
-
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.
-
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!
-
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.
-
Ok,
pyNeighborhood does work !
I just needed a full python install, then it was "./configure, make, make install"
[ You are not allowed to view attachments ]
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.
-
I found what I was looking for :
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
The pictures show it all, don't they ?
Chero.
-
I am reading The official Samba howto, and testing my configuration, but neither one of my Z's have "testparm"
command not found
Where can I find this tool, I couldn't find it in any feeds.
I have installed:
samba-client_2.2.9_armv5tel.ipk
samba-common_2.2.9_armv5tel.ipk
samba-mount_2.2.9_armv5tel.ipk
readline_4.3_armv5tel.ipk
-
I am reading The official Samba howto, and testing my configuration, but neither one of my Z's have "testparm"
command not found
Where can I find this tool, I couldn't find it in any feeds.
I have installed:
samba-client_2.2.9_armv5tel.ipk
samba-common_2.2.9_armv5tel.ipk
samba-mount_2.2.9_armv5tel.ipk
readline_4.3_armv5tel.ipk
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154026\"][{POST_SNAPBACK}][/a][/div]
I compiled samba 3.0.24 and have testparm in it.
Don't know if you need it to run pyNeighborhood, but I'll pack and upload it this evening.
Chero.
-
Sorry for replying to my own post, but I had to show it :
[ You are not allowed to view attachments ]
The Zaurus on my win2k.
Samba 3.0.24 is attached, but it's huge (and stripped)
Having fun,
Chero.
-
Thanks, I'll figure something else out to get samba working, that file is too big.
I had samba working on my Cacko Zaurus a couple times, but that was a while ago.
-
Thanks, I'll figure something else out to get samba working, that file is too big.
I had samba working on my Cacko Zaurus a couple times, but that was a while ago.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154074\"][{POST_SNAPBACK}][/a][/div]
Just install the 2.2.9 packages from the feeds, change smb.conf as described earlier in this thread.
When you have changed the file, run
(disconnect from your lan)
/etc/rc.d/init.d/samba stop
/etc/rc.d/init.d/samba start
I don't think it has a restart option.
(reconnect to your lan)
command line worked for me using the standard packages.
Have fun,
Chero.
-
I packed pyNeighborhood :
I added the samba ipks to the dependencies (common, client, server, mount) as well as pygtk and python-shell. I added python-shell cause the app needs "fnmatch" and I read in the forums it should be in python-shell. I have the full python(6Mb ipk) installed but I don't think you really need it all and thus don't want to add this to the dependencies.
Could somebody please test and report ?
Is there a launcher created in the "internet" section ?
Chero.
-
Tried pyNeighborhood and cannot get any results from a scan. Running beta 3 with full python and your 10mb samba ipk.
When using LinNeighborhood I can scan and browse all my hosts but when mounting I get the following error in the log window:
smbmount //NAUSICAA/gez /home/gez/mnt/NAUSICAA/gez/ -o username=gez%********,fmask=644,dmask=755,uid=500,gid=100,ip=,debug=0,workgroup=MIYAZAKI
Can't resolve address
It seems the "ip=" part is making the command fail, as this command works fine from the terminal when I remove ip=
any ideas?
thanks for the ipks btw
-
Tried pyNeighborhood and cannot get any results from a scan. Running beta 3 with full python and your 10mb samba ipk.
When using LinNeighborhood I can scan and browse all my hosts but when mounting I get the following error in the log window:
smbmount //NAUSICAA/gez /home/gez/mnt/NAUSICAA/gez/ -o username=gez%********,fmask=644,dmask=755,uid=500,gid=100,ip=,debug=0,workgroup=MIYAZAKI
Can't resolve address
It seems the "ip=" part is making the command fail, as this command works fine from the terminal when I remove ip=
any ideas?
thanks for the ipks btw
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154281\"][{POST_SNAPBACK}][/a][/div]
try to copy your smb.conf file in "/usr/lib" and try pyNeighborhood again. I had the same error on LinNeighborhood. PyNeighborhood works for me.
Going to bed now,
More answers will be for tomorrow.
Chero.
-
I have symlinked my smb.conf to this location already.
Dicovered this faq link here: http://www.bnro.de/~schmidjo/faq/index.html#faq17 (http://www.bnro.de/~schmidjo/faq/index.html#faq17)
seems that the ip= bug is well known with this version of samba, I'm surprised noone else has this prob.
Is there any chance LinNeighborhood can be recompiled with the patch from that link? Something is broken on my system that is preventing me doing it myself.
-
I have symlinked my smb.conf to this location already.
Dicovered this faq link here: http://www.bnro.de/~schmidjo/faq/index.html#faq17 (http://www.bnro.de/~schmidjo/faq/index.html#faq17)
seems that the ip= bug is well known with this version of samba, I'm surprised noone else has this prob.
Is there any chance LinNeighborhood can be recompiled with the patch from that link? Something is broken on my system that is preventing me doing it myself.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154289\"][{POST_SNAPBACK}][/a][/div]
my ipk of LinNeighborhood already has this patch applied. together with the samba packages from the beta1 feed, I can successfully connect to my windows shares...
-
I've installed the 4 samba ipks from the beta1 feed :
samba-common
samba-client
samba-server
samba-mount
but none have the file nmblookup that linneighborhood needs to scan the network. This is the reason why I installed Cheros superhuge samba before. Meanie, where did you get this file from?
-
ok I reinstalled the bigfat samba ipk and now LinNeighborhood is working great. Still no joy with pyNeighborhood but now I'm happy - thanks for the help
Chero- if you want me to try anything in pyneighborhood just let me know
-
I've installed the 4 samba ipks from the beta1 feed :
samba-common
samba-client
samba-server
samba-mount
but none have the file nmblookup that linneighborhood needs to scan the network. This is the reason why I installed Cheros superhuge samba before. Meanie, where did you get this file from?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154296\"][{POST_SNAPBACK}][/a][/div]
samba-utils
i will upload it to my feed....
-
Thanks, I'll figure something else out to get samba working, that file is too big.
I had samba working on my Cacko Zaurus a couple times, but that was a while ago.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154074\"][{POST_SNAPBACK}][/a][/div]
Just install the 2.2.9 packages from the feeds, change smb.conf as described earlier in this thread.
When you have changed the file, run
(disconnect from your lan)
/etc/rc.d/init.d/samba stop
/etc/rc.d/init.d/samba start
I don't think it has a restart option.
(reconnect to your lan)
command line worked for me using the standard packages.
Have fun,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154093\"][{POST_SNAPBACK}][/a][/div]
there is a restart option if you have pdaXii13, but regular pdaXrom beta1/beta3 only have start/stop option
-
ok I reinstalled the bigfat samba ipk and now LinNeighborhood is working great. Still no joy with pyNeighborhood but now I'm happy - thanks for the help
Chero- if you want me to try anything in pyneighborhood just let me know
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154298\"][{POST_SNAPBACK}][/a][/div]
It's working great for me,
Could you try running it from command line and see what it says.
There should also be a log file in your home dir (in ~/.pyneighborhood) : what's in there ?
Chero.
-
there is a restart option if you have pdaXii13, but regular pdaXrom beta1/beta3 only have start/stop option
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154300\"][{POST_SNAPBACK}][/a][/div]
r121 users also have to stop/start.
-
my ipk of LinNeighborhood already has this patch applied...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154292\"][{POST_SNAPBACK}][/a][/div]
Aha, that's why I had no joy !
Thanks for patching and recompiling. I should have googled first.
I always wondered why we didn't have a samba-gui?! People do want to connect to windows-networks and command-line is fine but a gui makes it a lot easier.
I've been looking at gnome-system-tools for a while, but it has loads of dependencies (including nautilus)... . I'm glad google pointed me to LinNeighborhood. (yes, I have googled but with the wrong question).
Have fun,
Chero.
-
ok I reinstalled the bigfat samba ipk and now LinNeighborhood is working great. Still no joy with pyNeighborhood but now I'm happy - thanks for the help
Chero- if you want me to try anything in pyneighborhood just let me know
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154298\"][{POST_SNAPBACK}][/a][/div]
It's working great for me,
Could you try running it from command line and see what it says.
There should also be a log file in your home dir (in ~/.pyneighborhood) : what's in there ?
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154315\"][{POST_SNAPBACK}][/a][/div]
I have been running from the terminal but no messages are output, also there are only a couple of gtk warnings in the log file. does scan work for you?
-
my ipk of LinNeighborhood already has this patch applied...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154292\"][{POST_SNAPBACK}][/a][/div]
Aha, that's why I had no joy !
Thanks for patching and recompiling. I should have googled first.
I always wondered why we didn't have a samba-gui?! People do want to connect to windows-networks and command-line is fine but a gui makes it a lot easier.
I've been looking at gnome-system-tools for a while, but it has loads of dependencies (including nautilus)... . I'm glad google pointed me to LinNeighborhood. (yes, I have googled but with the wrong question).
Have fun,
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154318\"][{POST_SNAPBACK}][/a][/div]
I didn't even know LinNeighborhood even existed but as soon as I saw it, I knew it was something essential I had to get working...
-
Ok a few pointers for anyone else trying to use LinNeighborhood-
the samba ipks in the beta1 feed work, but you must install samba-server to your root / filesystem or link them after the install- you will get errors during installation otherwise.
meanies samba-utils has the same problem if not installed to the root filesystem. But you can just run
ipkg-link add samba-utils
smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed: 1
finally- LinNeighborhood muct be run as a root user or you will get the following errors:
-
I have been running from the terminal but no messages are output, also there are only a couple of gtk warnings in the log file. does scan work for you?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154322\"][{POST_SNAPBACK}][/a][/div]
Yes, it works the same on my Z as on my Xubuntu-box.
Everything just worked out of the box.
Chero.
-
This is another nice thingy :
Set up your samba config using a gui :
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
Chero.
-
This is another nice thingy :
Set up your samba config using a gui :
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155416\"][{POST_SNAPBACK}][/a][/div]
which app is this? It looks nice and clean, but I guess I just need one GUI tool for mounting samba shares ...
-
This is another nice thingy :
Set up your samba config using a gui :
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
Chero.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=155416\")
which app is this? It looks nice and clean, but I guess I just need one GUI tool for mounting samba shares ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155491\"][{POST_SNAPBACK}][/a][/div]
It's not for mounting them, it's for creating them on the Z or for setting access properties etc. so you can easily access them on a windows-box.
You can find more info on "Samba Server Configuration" [a href=\"http://socg2006.googlepages.com/ubuntu-config-samba]over here.[/url]
Chero.
-
This is another nice thingy :
Set up your samba config using a gui :
[ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
Chero.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=155416\")
which app is this? It looks nice and clean, but I guess I just need one GUI tool for mounting samba shares ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155491\"][{POST_SNAPBACK}][/a][/div]
It's not for mounting them, it's for creating them on the Z or for setting access properties etc. so you can easily access them on a windows-box.
You can find more info on "Samba Server Configuration" [a href=\"http://socg2006.googlepages.com/ubuntu-config-samba]over here.[/url]
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155511\"][{POST_SNAPBACK}][/a][/div]
ohhh, interesting...