OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: HackerJL on January 23, 2005, 01:37:29 am

Title: Samba Version That Works
Post by: HackerJL on January 23, 2005, 01:37:29 am
I used to use samba client on the SL-5500, and the 5600, but the package doesnt work in the SL3000.  Anyone have the version number that they use that works on their SL3000?  Link to it?
Title: Samba Version That Works
Post by: darkloran on January 27, 2005, 07:34:40 am
Quote
I used to use samba client on the SL-5500, and the 5600, but the package doesnt work in the SL3000.  Anyone have the version number that they use that works on their SL3000?  Link to it?
why do you say that it does not work in C3k ?

i have the version that came with it, which is Version 2.0.7-ja-2.2 and it works fine. well i'm using smbclient to connect to - i'm not mounting it yet - and it's fine.

shared directories are by default //192.168.129.201/home (as user zaurus) and //192.168.129.201/system (as user root which binds to / on Z)

it's defined in /usr/lib/samba/smb.conf

be careful that in the config files, the interfaces on which samba is active are limitated to usbd0 (which is usb). For example i had to add "eth0" to use it with my LAN CF card.

loran

EDIT: sorry i believe i made a mistake. You were talking about "smbclient" on the Z uh ?
Title: Samba Version That Works
Post by: Jonathan on January 28, 2005, 12:31:06 am
HackerJL,

Ahh, the Japanese to the rescue again... assuming you just want to do smbmount to mount a windows share on the C3000:

Info about smbmount on C3000 (http://www.areanine.gr.jp/~nyano/download.html)

and here's the direct link to the ipkg itself:

smbmount for C3000 (http://www.areanine.gr.jp/~nyano/archives/slzaurus/smbmount_2.2.8a-ja-1.1lz1_arm.ipk)

and now a helpful translation courtesy of worldlingo.com - YOU SHOULD READ THIS!

Quote
SMB mount command smbmount
It is the command line tool in order to mount the Windows joint
ownership folder from リナザウ.
At the Japanese samba user meeting from the source of the samba
Japanese edition which is open self compile it does with SL-C700,
extracting the file group which is necessary for operation, it is
something which it packages.
* Before Ver. the importanceWhen the smbumount command which is included in the package is
operated with SL-C3000, destroying the system was ascertained. Because
of that, the same command the re-packaging in the form which is not
included was done. Not to be smbumount command in unmount of the joint
ownership folder, please use the umount command of system standard.
Furthermore, this problem occurs with only SL-C3000. SL-A300, SL-B500, SL-C700, With SL-C760 problem not occurring it is the verification being
completed.
Smbmount from 2.2.8a-ja-1.1lz1 (ipk type package file)
Original source

I like the bit about "destroying the system"!  

So there is no smbumount included in this package because it trashes your (windows?) system.

Anyway, I installed it and it works for me as expected. I just use the commands smbmount and umount as required.  Mind you, I'm only mounting read-only at the moment.

Having said that, because of the apparent danger of using smbumount and different versions with the C3000 you will understand it if I say "use at your own risk!"  Backup first.

Don't worry that it's a Japanese version, because when I use it everything is in English.

Jonathan
Title: Samba Version That Works
Post by: HackerJL on January 29, 2005, 12:51:28 pm
Thanks...I think lol.  I love that part about destroying your system as well.  Thats good, thanks for the info...I will see if its that important ....
Title: Samba Version That Works
Post by: benito on January 31, 2005, 07:27:35 pm
Installing smbclient on my SL-C3000 was one of the first things I did and it wrecked it alright. It worked fine until I rebooted and then it wouldn't come up anymore. I had to restore to original (Japanese) state.

I use smbd instead and mount from my linux desktop which works fine.

Cheers,
Ben
Title: Samba Version That Works
Post by: HackerJL on February 01, 2005, 02:41:05 am
Quote
Installing smbclient on my SL-C3000 was one of the first things I did and it wrecked it alright. It worked fine until I rebooted and then it wouldn't come up anymore. I had to restore to original (Japanese) state.

I use smbd instead and mount from my linux desktop which works fine.

Cheers,
Ben
[div align=\"right\"][a href=\"index.php?act=findpost&pid=64774\"][{POST_SNAPBACK}][/a][/div]

Do you have a link to the IPK or the source or whatever we need to get this in the device?

many thanks for contributing to the cause
Title: Samba Version That Works
Post by: benito on February 05, 2005, 10:23:55 am
If you want to connect to your windows shares from the Z, you need the client. I don't need to this - I just want a way of moving files easily so I just use the samba server (smbd) on the Z and connect to it from linux or windows (running in vmware of course  ).

All you need to do is adapt the config file (on my Zaurus it's /hdd2/usr/lib/samba/smb.conf). There's loads of info on the web to show how to do this. Once you bring it up, you should be able to use smbmount from your linux desktop to mount the share(s) on the Z.
Title: Samba Version That Works
Post by: HackerJL on February 06, 2005, 01:04:41 am
Quote
If you want to connect to your windows shares from the Z, you need the client. I don't need to this - I just want a way of moving files easily so I just use the samba server (smbd) on the Z and connect to it from linux or windows (running in vmware of course  ).

All you need to do is adapt the config file (on my Zaurus it's /hdd2/usr/lib/samba/smb.conf). There's loads of info on the web to show how to do this. Once you bring it up, you should be able to use smbmount from your linux desktop to mount the share(s) on the Z.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=65697\"][{POST_SNAPBACK}][/a][/div]


From my linux machine, if I connect the USB cable, I can issue the following command in the network bar of konquerer:

smb://192.168.129.201

And I see everything, but now i want to mount that into a folder...so in terminal, under su I issue:

mount //192.168.129.201/home/ /media/zaurus/ <I have the /media/zaurus/ folder made>

and I get this:

Password: <I press enter>
Anonymous login successful
27021: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)

When I looked at the smb.conf, IMHO i dont think anything needs to be changed....i can see it through konquerer so i should take a mount command just the same...no?

Any thoughts appreciated.
Title: Samba Version That Works
Post by: dwagelaar on February 08, 2005, 06:53:39 am
Quote
I used to use samba client on the SL-5500, and the 5600, but the package doesnt work in the SL3000.  Anyone have the version number that they use that works on their SL3000?  Link to it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63626\"][{POST_SNAPBACK}][/a][/div]
Which smbclient package did you use (version, URL...)? It might be good to know which version you've tried.
Title: Samba Version That Works
Post by: benito on February 13, 2005, 06:18:33 pm
I've seen that error before. I think it went away when I started using passwords. Here's my config:

/usr/lib/samba/smb.conf:

#################################################################
#======================= Global Settings =====================================
[global]
 
# workgroup = NT-Domain-Name or Workgroup-Name
        workgroup = <Your Workgroup>
        security = user
 
# server string is the equivalent of the NT Description field
        server string = Zaurus Samba
 
        hosts allow = <Your network> (for example: 192.168.0. 192.168.1. 127.)
 
        log file = /dev/null
 
        socket options = TCP_NODELAY
 
        password server = None
        dns proxy = no
 
#============================ Share Definitions ==============================
 
[zaurus]
        comment = homedir
        path = /home/zaurus
        valid users = zaurus
        writeable = yes
#################################################################


Mount from linux with:


mount //<Zaurus IP or hostname>/zaurus  <mountpoint>  -o username=zaurus,password=<zaurus pw>

Hope this works for you as well... (don't forget to kill and restart smbd)

Cheers,
Ben
Title: Samba Version That Works
Post by: HackerJL on February 15, 2005, 07:16:54 pm
Ya..the key was using the username=zaurus, cause that is who owns the files....it all works great now.