pavva94 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 1 forks source link

Samba unicode support for filenames #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We are unable to browse through samba existing files with national characters 
other than the classic latin characters. If someone tries to rename a latin 
charactered filename to a national charactered gets the message 'permission 
denied'.
Seems that it has to do with the samba version that snake is compiled which 
is not fully unicode.
It would be very usefull to have the freedom of full unicode support in 
filenames.

Original issue reported on code.google.com by nikos....@gmail.com on 22 Apr 2010 at 11:04

GoogleCodeExporter commented 9 years ago
I also faced with this problem. Hungarian letters in the directory names, and 
file name 
shown in ext3 filesystem, but not even shown via smb.
It seems high priority for me.
What do you think Douglas?
Regards,
Robert

Original comment by robert1...@gmail.com on 12 May 2010 at 9:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
sorry,I also faced with this problem. Transmission Down Load chinese 
traditional 
directory names,but not shown via samba.
SnakeOS V1.1.0+Transmission 1.92
Best regards,

Original comment by jackiehu...@gmail.com on 14 May 2010 at 8:50

GoogleCodeExporter commented 9 years ago
I'm having similar problems but at the ext3 level.  Non-Latin characters in the
filename are unable to be seen (in ls) or deleted (via rm).  I haven't checked
through samba.

Original comment by mplaw...@gmail.com on 19 May 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Same here - seems high priority. The original software v2.5 was at least able 
to show 
folders with Polish characters on NTFS partition via SMB after selecting 
Central 
European encoding. These characters were not shown properly, but at least I was 
able to 
access the contents of any file. SnakeOS does not allow even for this. I would 
appreciate full unicode support on SMB.

Original comment by agsa...@gmail.com on 4 Jun 2010 at 7:00

GoogleCodeExporter commented 9 years ago
the same bug with cyrilic characters in filenames.I think it's high priority 
problem too.

Original comment by lanth...@narod.ru on 9 Jun 2010 at 1:59

GoogleCodeExporter commented 9 years ago
i'd love to save my wife's japanese file

Original comment by rcc...@gmail.com on 13 Aug 2010 at 2:06

GoogleCodeExporter commented 9 years ago
The solution to this issue is easy - we will need to update the samba version 
currently used in SNAKE OS (currently: 2.0.10-security-rollup). Unfortunately, 
I was not able so far to compile my own SNAKE OS and unfortunately cannot help 
to improve the source code at the moment to use a newer version of samba that 
speaks unicode/UTF8 over the wire.

I use the following bad workaround - you will not be able to manage your samba 
via the web interface:

I have used "Debian_Chroot" - the following things need to be done:

1. Follow the instructions in the FAQ section to get the Debian environment 
running and SSH into your server (ensure that you mounted your external hard 
drive as well so it is accessible from Debian (last optional step of FAQ))

2. Edit /etc/resolv.conf and change the nameserver entry to your DNS server 
(you can find that under SNAKE Web interface -> Device -> Lan Settings)
3. Run: apt-get update (I installed and used aptitude, apt-get should work fine 
though)
4. Run: apt-get install util-linux
5. Run: apt-get install samba
6. Save you Debian smb.conf (mv /etc/samba/smb.conf /etc/samba/smb.conf.old  
#or somewhere else if you are not a messy person)
6. Log into SNAKE OS web interface and disable Services -> Samba (STOP)
7. Get out of Debian by CTRL+D or 'exit'
8. Copy your SNAKE OS /etc/smb.conf to /usb/sda1/debian/etc/samba/ (cp 
/etc/smb.conf /usb/sda1/debian/etc/samba/ )
9. Edit smb.conf (vi /usb/sda1/debian/etc/samba/smb.conf)
 - Remove entries (to ensure that everything defaults back to UTF8 - unicode)
character set = SOMETHING
client code page = SOMETHING

  - Exchange all path from /usb/ to /mnt/ (as your external hard disk is mounted to a different location in the chroot environment). I'll let you work out the vi command yourself

You might also have to change you samba password file (smb passwd file)

Original comment by meinsel...@googlemail.com on 18 Aug 2010 at 5:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I found out an easier way to get it right, similar to that of meinselbst. But 
not as complicated, plus some extra tip on the codes to get it right, I tried 
this for 2 whole days and finally got it correct, there are very little correct 
info online regarding this issue, i guess most users of linux are latino 
language native speakers. Here is how:
since the storage in the Nas machine didn't have much space, so the porgrammer 
had 100% used on the root folder, so you CANNOT delete anything nor replace 
anything at all, the only way you can do it is by mount and binding a different 
directory to deceive the machine such that it think the directory in your usb 
is the codepage directory that is actually in the machine (use putty):
mount -o bind /usb/sda1/codepages /bin/codepages
here, the /usb/sda1/codepages is the directory where you put your codepages 
file, eg. codepage.950 and unicode_map.950 in. They can be downloaded through 
google with a rpm package, just extract these files from the packages and u 
only need the files of your language, so if you want traditional chinese like 
me, the codepages are 950, and the default was 850 (western language)...etc. 
email me if you want these files.
After that is to edit the smb.conf file in /etc/smb.conf:

#======================= Global Settings =====================================
[global]
server string = nas
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
coding system = UTF8 <<ADD this line, very very important!!!
character set = 950 <<replace with your filename
client code page = 950 <<replace here too
#============================ Share Definitions ==============================

[main]
    comment = main
    path = /usb/sda1
    writeable = yes
The last thing you only need to do is to restart the samba server, to do this, 
you need to use putty or admin management web page. DONT REBOOT YOUR MACHINE, 
or the things you have just done will be erased. And one thing I have to warn 
you too, these configuration only stays as long as the machine is on, when you 
reboot it, you have to repeat the process again. (Hope someone finds the way to 
actually edit the codepage dir in the root directory).
Ted

Original comment by ted.cho...@gmail.com on 25 Aug 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Тhere is a method to save changes in configuration files which are described 
in the previous comment.
It is based on that, configuration files and files of scripts are saved in a 
fixed memory of the device after command performance in the Web the interface 
of device System->Config->Save Config.

To save a command "mount -o bind/usb/sda1/codepages /bin/codepages"
It is necessary to write down it in one of scripts.
I used a script /etc/init.d/samba

start () {
        mount-o bind/usb/sda1/codepages/bin/codepages <<<paste command here
        if [$SAMBA_ENABLE-eq 1]; then
            KIND = "SMB"
                echo "Starting $KIND services..."
                smbd-D
                RETVAL = $?
            KIND = "NMB"
                echo "Starting $KIND services..."
                nmbd-D
                RETVAL2 = $?
                return $RETVAL
        fi
}
After depositing of all changes it is possible to reboot the device.

However under this recipe I didn't manage to achieve the correct display of 
cyrillic.
If I wrote in smb.conf

coding system = UTF8 
character set = 866
client code page = 866

Names of files were correctly displayed in Windows, but spoiled in Ubuntu

If I wrote only:

character set = 866
client code page = 866

Names of files were correctly shown in Ubuntu but have been spoiled in Windows

Original comment by enigman...@gmail.com on 24 Nov 2010 at 8:40

GoogleCodeExporter commented 9 years ago
@enigman.ru that probably gives a clue about differences between windows and 
linux, how they recognize charsets. Since the charsets are read from the 
smb.conf file onstart, so editing the file later wont make a different until 
the next reboot is done, i guess you can only choose to restart smb server when 
u switch from windows mode to linux mode.
(I was thinking of hiding the line from linux system like:
//*windows only//coding system = UTF8
character set = 866
client code page = 866
but this idea doesnt work by the reasoning above, the best thing for u is 
digging into smb v.3, let me know how it goes if tat goes succesfully.
Ted

Original comment by ted.cho...@gmail.com on 28 Nov 2010 at 11:21

GoogleCodeExporter commented 9 years ago
Hy, does anyone have codepage 1250? I cant see half of my files and I would be 
gratefull if someone can put it on line. Thanks!

Original comment by nbor...@gmail.com on 17 Dec 2010 at 11:04

GoogleCodeExporter commented 9 years ago
I have no way to make samba2 work for Chinese simplified characters. So I 
follow meinselbst’s method to install Debian in sda1, then I change 
/etc/init.d/samba to

#!/bin/sh
#

RETVAL=0
TZGEO=$(grep "tzgeo=" /etc/default/config | cut -d '=' -f 2)
export TZ=${TZGEO}

SAMBA_ENABLE=`grep "^samba_enable=" /etc/default/config | cut -d = -f 2`

mount_bind_disks() {
         mount -o bind /proc /usb/sda1/debian/proc
         mount -o bind /dev /usb/sda1/debian/dev
         mount -o bind /etc /usb/sda1/debian/mnt/etc
         mount -o bind /usb/sda1 /usb/sda1/debian/mnt/sda1
         mount -o bind /usb/sdb1 /usb/sda1/debian/mnt/sdb1
}

umount_bind_disks() {
         mount | grep /usb/sda1/debian/proc
         [ $? -eq 0 ] && umount -f /usb/sda1/debian/proc
         mount | grep /usb/sda1/debian/dev
         [ $? -eq 0 ] && umount -f /usb/sda1/debian/dev
         mount | grep /usb/sda1/debian/mnt/etc
         [ $? -eq 0 ] && umount -f /usb/sda1/debian/mnt/etc
         mount | grep /usb/sda1/debian/mnt/sda1
         [ $? -eq 0 ] && umount -f /usb/sda1/debian/mnt/sda1
         mount | grep /usb/sda1/debian/mnt/sdb1
         [ $? -eq 0 ] && umount /usb/sda1/debian/mnt/sdb1
}

start() {
        if [ $SAMBA_ENABLE -eq 1 ] ; then
            umount_bind_disks
            mount_bind_disks
            chroot /usb/sda1/debian/ /etc/init.d/samba start
            RETVAL=$?
            return $RETVAL
        fi
}

webstatus(){
        PID=$(pidof smbd)
        if [ ${PID:-empty} = "empty" ] ; then
                echo -n "Samba is not running"
        else
                echo -n "Samba is running"
        fi
}

stop() {
        chroot /usb/sda1/debian/ /etc/init.d/samba stop
        RETVAL=$?
        umount_bind_disks
        return $RETVAL
}

restart() {
        stop
        sleep 1
        start
}

reload() {
        if [ $SAMBA_ENABLE -eq 1 ] ; then
                chroot /usb/sda1/debian/ /etc/init.d/samba reload
                RETVAL=$?
                return $RETVAL
        fi
}

case "$1" in
  start)
        stop
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload)
        reload
        ;;
  webstatus)
        webstatus
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload}"
        exit 1
esac

I also change /etc/smb.conf to

#======================= Global Settings =====================================
[global]
server string = snake-nas
smb passwd file = /etc/samba/smbpasswd
security = USER
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
#============================ Share Definitions ==============================

Then,

mount -o bind /etc /usb/sda1/debian/mnt/etc
chroot /usb/sda1/debian/
ln –s /mnt/etc/smb.conf /etc/samba/smb.conf

Now you can use snake-os web interface to control start/stop of samba3 and 
configure the folders to be shared, the only issue is that samba password is 
not compatible between samba2 and samba3, so you can not use snake os interface 
to change the password. Anyway, you do not change password often, right?

As last step, use web interface “System->Config->Save Config” to save the 
changes. 

Original comment by rzhon...@gmail.com on 8 Jan 2011 at 1:10

GoogleCodeExporter commented 9 years ago
I think samba3 and unicode is the way to go - code pages are not flexible 
enough.

I had used the available sdk to create my own "snake os" with samba 3.

As samba 3 is too large to fit inside the device, I copied it to a ext3 
formatted usb stick and linked to it from /bin.
It did not work very well and I stopped using the device in favour of an old 
notebook that allows me to do much more. But I still want to share what I did 
(as far as I can remember).

I created symlinks from
/bin/nmbd to ../usb/sda1/nmbd
and
/bin/smbd to ../usb/sda1/smbd

(if you use the SDK you will find the root file system under 
./rootfs/target/bin)
I also attached a shell script based on the SDK that will only create the image 
you can upload to your snake device - this way you can change the root file 
system and configuration before the image is created.

But as per rzhong99, you can simply edit your /etc/init.d/samba file - save 
your configuration via the web interface and it will be there forever.

As I symlinked my nmbd and smbd file, my /etc/init.d/samba is not very useful. 
I will try to edit it, so it will work even without touching the 
rootfs/symlinking. ***I DID NOT TEST THIS ***

I leave it up to you to enhance the script that it will also check /usb/sdb1 in 
case the usb stick gets mounted later.

****************/etc/init.d/samba ****************
#!/bin/sh
#

RETVAL=0
TZGEO=$(grep "tzgeo=" /etc/default/config | cut -d '=' -f 2)
export TZ=${TZGEO}

SAMBA_ENABLE=`grep "^samba_enable=" /etc/default/config | cut -d = -f 2`

start() {
    if [ $SAMBA_ENABLE -eq 1 ] ; then
        KIND="SMB"
            if [ -e /usb/sda1/smbd ]
            then
            echo "Starting $KIND services..."
            /usb/sda1/smbd -D
            RETVAL=$?
        else
            echo "Waiting for USB Disk to be mounted... sleep 20s"
            sleep 20
            echo "Starting $KIND services..."
            /usb/sda1/smbd -D
            RETVAL=$?
        fi
        KIND="NMB"
            if [ -e /usb/sda1/nmbd ]
            then
            echo "Starting $KIND services..."
            /usb/sda1/nmbd -D
            RETVAL2=$?
            return $RETVAL
        else
            echo "Waiting for USB Disk to be mounted... sleep 20s"
            sleep 20
            echo "Starting $KIND services..."
            /usb/sda1/nmbd -D
            RETVAL2=$?
            return $RETVAL
        fi
    fi
}

webstatus(){
    PID=$(pidof smbd)
    if [ ${PID:-empty} = "empty" ] ; then
        echo -n "Samba is not running"
    else
        echo -n "Samba is running"
    fi          
}   

stop() {
    KIND="SMB"
    echo "Shutting down $KIND services..."
    killall -9 smbd
    RETVAL=$?
    KIND="NMB"
    echo "Shutting down $KIND services..."
    killall -9 nmbd
    return $RETVAL
}   

restart() {
    stop
    sleep 1
    start
}   

reload() {
    if [ $SAMBA_ENABLE -eq 1 ] ; then
        echo "Reloading smb.conf file..."
        killall -HUP smbd
        killall -9 nmbd
        sleep 1
        nmbd -D
        RETVAL=$?
        return $RETVAL
    fi
}   

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    restart
    ;;
  reload)
    reload
    ;;
  webstatus)
    webstatus
    ;;
  *)
    echo "Usage: $0 {start|stop|restart|reload}"
    exit 1
esac

**************** FINISHED ****************

Here are the options I used for compiling samba (I tried to copy the SDK's 
options and do not know if they are sane):
       cd samba/source ; \
        ac_cv_sizeof_int=4 ac_cv_sizeof_long=4 ac_cv_sizeof_short=2 \
        samba_cv_CC_NEGATIVE_ENUM_VALUES=no \
        samba_cv_FTRUNCATE_NEEDS_ROOT=no samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no \
        samba_cv_HAVE_BROKEN_GETGROUPS=no samba_cv_HAVE_BROKEN_READDIR=no \
        samba_cv_HAVE_FCNTL_LOCK=yes samba_cv_HAVE_FNMATCH=yes \
        samba_cv_HAVE_FTRUNCATE_EXTEND=no samba_cv_HAVE_IFACE_AIX=no \
        samba_cv_HAVE_IFACE_IFCONF=yes samba_cv_HAVE_IFACE_IFREQ=yes \
        samba_cv_HAVE_INO64_T=yes samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no \
        samba_cv_HAVE_OFF64_T=yes samba_cv_HAVE_ROOT=yes \
        samba_cv_HAVE_SECURE_MKSTEMP=yes samba_cv_HAVE_SHARED_MMAP=yes \
        samba_cv_HAVE_STRUCT_FLOCK64=yes samba_cv_HAVE_SYSV_IPC=no \
        samba_cv_HAVE_TRUNCATED_SALT=no samba_cv_HAVE_UNION_SEMUN=no \
        samba_cv_HAVE_UNSIGNED_CHAR=yes samba_cv_NEED_SGI_SEMUN_HACK=no \
        samba_cv_REPLACE_INET_NTOA=no samba_cv_SIZEOF_INO_T=4 \
        samba_cv_SIZEOF_OFF_T=4 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes \
        samba_cv_USE_SETRESUID=no samba_cv_USE_SETREUID=yes \
        samba_cv_USE_SETEUID=yes samba_cv_USE_SETUIDX=no \
        samba_cv_have_longlong=yes samba_cv_have_setresgid=no \
        samba_cv_have_setresuid=no samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \
        CPPFLAGS="-D_GNU_SOURCE -DNDEBUG -DUSE_MMAP -DSHMEM_SIZE=524288 -Dfcntl=fcntl64" CFLAGS=" -pipe -Os -march=armv4t " \
        CC=arm-linux-gcc LD=arm-linux-ld AR=arm-linux-ar RANLIB=arm-linux-ranlib ./configure --host=arm-linux \
        --prefix=/bin --bindir=/bin --sbindir=/bin --sharedstatedir=/var --localstatedir=/var --sysconfdir=/etc --with-privatedir=/etc \
        --with-lockdir=/var --with-piddir=/var --libexecdir=/bin --with-logfilebase=/var --libdir=/etc --with-configdir=/etc \
        --without-syslog --disable-cups --with-sendfile-support --without-winbind --without-cifsmount \
        --disable-cups --disable-static --enable-shared --disable-pie --disable-relro --disable-fam \
        --enable-shared-libs --disable-dnssd --without-cifsmount --without-cifsumount --without-cifsupcall \
        --disable-swat --disable-merged-build --without-ldap --without-ads --without-pam --without-pam_smbpass \
        --without-sys-quotas --without-utmp --disable-avahi --disable-iprint --disable-gnutls --disable-netapi

        make -C samba/source3

Original comment by meinsel...@googlemail.com on 9 Jan 2011 at 4:09

Attachments:

GoogleCodeExporter commented 9 years ago
And these are the Global Settings that I used (/etc/smb.conf) - as you can see, 
I did not use passwords and never realised that one could not use the same 
smbpasswd file.

Happy tweaking.

#======================= Global Settings =====================================
[global]
server string = snake-os
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
interfaces = eth0 lo

Original comment by meinsel...@googlemail.com on 9 Jan 2011 at 4:12

GoogleCodeExporter commented 9 years ago
Sorry for spamming this - where is the edit button for comments?

I used have Samba 3.5.6 - October 8, 2010 to create the binaries that you will 
find two posts above. There you will also find the configuration I used for 
compiling. If you find any specific reason that you definitely need a binary 
with different settings or from a different version, simply reply to this bug 
report. I will probably be able to compile another binary. I won't promise 
anything, though.

Original comment by meinsel...@googlemail.com on 9 Jan 2011 at 4:21

GoogleCodeExporter commented 9 years ago
@ meinsel Hi, can you put up the exacts codes to be done for system links? I am 
interested to test it, but keep getting file exists errors. Can you guide me 
with the coding.
Thanks,
Ted

Original comment by ted.cho...@gmail.com on 28 Jan 2011 at 8:53

GoogleCodeExporter commented 9 years ago
"As samba 3 is too large to fit inside the device,..."
So, is there any possibility to fit it anyway by refusing anything else? BT, 
FTP,...

Original comment by sova...@gmail.com on 9 Apr 2011 at 6:22

GoogleCodeExporter commented 9 years ago
I configured the Snake OS to work correctly with windows clients. Linux clients 
I mount to the NAS by FTP using FTP-FS (http://ftpfs.sourceforge.net/)

Original comment by enigman...@gmail.com on 9 Apr 2011 at 6:59

GoogleCodeExporter commented 9 years ago
I also have the same problem, I tried do edit via ssh /etc/smb.conf changing 
"unix charset =" to ISO8859-15 and UTF8. Before this changes I saw strange 
symbols, then I´ll see squares :P It Didnt solve my problem and, if I reboot 
my SNAKE or I unpluged it from power supply It removes this configuration. 
Solution? Maybe update Samba version, but I dont know how to do this. Instead 
of sync my files throught Samba I do it with FTP. It is faster, but I cant see 
previews of my photos or other files, It is not very useful with my Xbmc media 
center because some films has very very strange names :P

Original comment by mellamo...@gmail.com on 8 Jun 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Compiled a newer version of samba - samba-3.5.12
Same instructions as before

Original comment by meinsel...@googlemail.com on 14 Nov 2011 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago
Compiled a newer version of samba 3.6 - samba-3.6.1
See samba website for changelog

Same instructions as before

Original comment by meinsel...@googlemail.com on 14 Nov 2011 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
This would be great as an opkg.

Original comment by dwmcqu...@gmail.com on 30 Nov 2011 at 3:14

GoogleCodeExporter commented 9 years ago
Anybody working on the opkg? If not, I suppose I'll wait for new version of the 
firmware.

Original comment by matti.il...@gmail.com on 12 Jan 2012 at 12:36

GoogleCodeExporter commented 9 years ago
Ok.. let's see if this works. My first attempt to package up samba 3 is here:

http://code.google.com/p/snake-os/downloads/detail?name=samba3-3.6.1-1.opk

I've tried to to make it use the existing configuration as much as possible, so 
the "Shares" and "Users" pages still work as before. Use the 
"Services"->"samba3" entry instead of "Samba" for basic configuration.

Known issues:
The builtin samba must be disabled before the the new one can be used
Samba3 must be restarted for any changes in "Shares" or "Users" to take effect
Samba3 may also have to be restarted if the network configuration change
The binaries are probably a bit larger than they need to be

meinselbst: did you also have to change the configure options for 3.6? It took 
me a lot screwing around to get something that would build and run.

Original comment by stefansc...@googlemail.com on 23 Jan 2012 at 12:26

GoogleCodeExporter commented 9 years ago
New package up:

http://code.google.com/p/snake-os/downloads/detail?name=samba3-3.6.3-1.opk

I've turned on sendfile support in this one. With that download speed went from 
4.5-5 to 6.5-7 KB/s. I hope that doesn't break anything.

Original comment by stefansc...@googlemail.com on 26 Feb 2012 at 6:57

GoogleCodeExporter commented 9 years ago
Oups.. I meant MB/s

Original comment by stefansc...@googlemail.com on 26 Feb 2012 at 7:00

GoogleCodeExporter commented 9 years ago
Stefan: I used the settings posted in Comment 15 to build 3.6. It compiled 
without any problems, but ted reported: "but the 3.6 seems not able to read 
tradition chinese directories again. "

Since I stopped using the device long ago, I cannot even test my builds.

I would also have to read up on opk's ;)

Original comment by meinsel...@googlemail.com on 28 Feb 2012 at 12:22

GoogleCodeExporter commented 9 years ago
Ok, I had to add a few more variables/options to make it through configure and 
get usable binaries. 

I need to see if I can reproduce those issues with chinese filenames. Unicode 
filenames seem to work ok for me.. atleast when browsing with samba.

The opk build is more or less automated. Just checkout 
http://snake-os.googlecode.com/svn/packages and run make samba3.

Original comment by stefansc...@googlemail.com on 28 Feb 2012 at 2:18

GoogleCodeExporter commented 9 years ago
If somebody could point me to a file that isn't showing up properly that could 
probably help.

Original comment by stefansc...@googlemail.com on 3 Mar 2012 at 4:15

GoogleCodeExporter commented 9 years ago
I’ve been experiencing this very annoying problem ever since I started using 
the samba3 package: sometimes windows can’t seem to find the samba share, to 
fix this I have to restart the service multiple times till it finally sees it. 
Sometimes rebooting the unit by unplugging it fixes it, but sometimes it does 
not.
This issue started when I began using the package, but even if I disable the 
package and start the original samba service, it still doesn’t show up. The 
most annoying part is that frequently it happens when I’m transferring big 
files, so I have to start all over again.
Any idea what could be causing this?
I’m using windows 7, if that’s important.

Original comment by hgm...@gmail.com on 4 Mar 2012 at 10:48

GoogleCodeExporter commented 9 years ago
I don't have windows 7. So I can't even try to reproduce this.

Can you still connect to the share via ip address? By entering \\<ip of 
nas>\<name of share> into the address bar?

Google brings up something about a master browser setting in samba.

Original comment by stefansc...@googlemail.com on 6 Mar 2012 at 6:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
> Can you still connect to the share via ip address? By entering \\<ip of 
nas>\<name of share> into the address bar?

Actually yes, that did work; I can copy from and to the share without problem. 
I didn’t know i could do that, thanks.  
However, the device and shares still refuse to appear in the network.

Original comment by hgm...@gmail.com on 7 Mar 2012 at 1:35

GoogleCodeExporter commented 9 years ago
Ok, so it's a network browsing issue. At least samba isn't crapping out or 
getting stuck.

Maybe it really has to do with that master browser setting. Although it's odd 
that it doesn't affect the old samba then. Do you have any other samba devices 
on the network (other than the win7 machine)?

I can try to add an option to force samba into a specific role. 

In the mean time if you want to try it manually, log into the device with putty 
and open /etc/smb.conf. To force it into master browser role add this to the 
global section:
preferred master = yes
os level = 65

or this to never let it become master:
local master = no

This is from reading the samba docs and some googling. So I'm not sure if it 
will actually help.

Original comment by stefansc...@googlemail.com on 8 Mar 2012 at 7:46

GoogleCodeExporter commented 9 years ago
>Comment 27
>New package up:
>
>http://code.google.com/p/snake-os/downloads/detail?name=samba3-3.6.3-1.opk
>
>I've turned on sendfile support in this one. With that download speed went 
from 4.5-5 >to 6.5-7 KB/s. I hope that doesn't break anything.

I know this error is not related with the post's error, but the samba3 package 
it's linked to this one. 

I've installed the new package and I've improvements in data transfer rates, 
almost 1,5Mb better than the builtin samba, but suddently the file copying 
proccess gets stuck. This is not happening with the builtin samba, wich works 
fine but at slower data transfers. 

I've read that disabling the NTP service could be the solution, but it isn't. 
Also, I've noted that the samba3 service keeps on running after this error.

Any suggestion?

Regards,
Matias

Original comment by maticomba on 27 Mar 2012 at 1:18

GoogleCodeExporter commented 9 years ago
Sounds like what I'm getting on one computer. It works fine with another one 
over the same connection, both running XP.

I have no idea what's causing this. Maybe the nic driver is just beeing dumb.. 
again.

Do you have the same issue with samba3-3.6.1-1.opk?

Original comment by stefansc...@googlemail.com on 27 Mar 2012 at 6:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
With the standard version sometimes (in two hours or more) I lost samba 
connection, it was very frustrating because I used it to reproduce films from 
my old black Xbox (with xbmc), and suddenly the film was stopped.

I´ve installed samba 3.6.3-1 and it is very fast but... a lot of films stops 
at 5sec, other at 15sec, but I cant reproduce anything. Of course, this version 
solved my problem with unicode format (I made the comment #21), but It is very 
unstable.

I have checked my cable, and I have installed a ferrite on it (attenuating high 
frequency EMI/RFI electronic noise), and I disabled NTP, but nothing relevant 
happened.

I am very very gratefull with the work that stefansc do, but nowadays this 
version of samba seems to be unusable. Maybe in future versions... I am going 
to try using previous versions, maybe something work better.

I only want to remember... I think that all of us are looking for:
1-unicode
2-stable connection (and not necessary fast)

Regards!

Original comment by mellamo...@gmail.com on 8 Apr 2012 at 3:12

GoogleCodeExporter commented 9 years ago
I am testing now samba 3.6.1-1 and It didnt stop the film at 10sec (an specific 
film that version 3.6.3-1 always sttoped in the same point) So, there are some 
considerable difference between two versions. I am praising god now :)

Original comment by mellamo...@gmail.com on 8 Apr 2012 at 3:25

GoogleCodeExporter commented 9 years ago
mellano, with smb3 I was experiencing the same issue as you mentioned (FIY: 
movie streamings stopping randomly). I'm trying the Snake built-in samba and so 
far it's much more stable (10+ 30 min movies so far and no freezes yet).

The only downside is the screwed characters that smb2 does not recognize, but 
at least I can watch my movies.

Original comment by arionkra...@gmail.com on 27 May 2012 at 3:10

GoogleCodeExporter commented 9 years ago
I managed to make smb2 (the one shipped with Snake-os) list accented 
characters. I followed comment #10 tutorial 
(http://code.google.com/p/snake-os/issues/detail?id=19#c10) and made it 
permanent following comment #11 instructions.

PS: You can download the codepage files in the downloads section (direct page: 
http://code.google.com/p/snake-os/downloads/detail?name=codepages.tgz&can=2&q=)

Original comment by arionkra...@gmail.com on 27 May 2012 at 3:58

GoogleCodeExporter commented 9 years ago
Friends, Good Day!

I performed the download and installation package "samba3-3.6.3-1.opk" on my 
NAS NS-K330. As required package, I disabled the Samba native Snake OS and 
configured the Samba3 on "Services". Unfortunately it is not started. Even if I 
apply the settings and pressing the "start" button, the service does not start 
Samba3.

Here's my setup NAS NS-K330:

Kernel version: 2.6.16-gazineu
NAS version: SNAKE OS V1.3.2 (20111019)
Storage Name: snake
LAN IP Address: ***. ***. ***. *** (Secret)
LAN MAC Address: **: **: **: **: **: **: ** (Secret)
Physical RAM: Total: 30444KB - Free: 1072KB - Buffers: 164KB - Cached: 22876KB
Swapfile: Total: 262136KB - Free: 257900KB
Uptime: 12:05

I ask for everyone's help and soumuito grateful now.

Greetings from Brazil \ o /

Original comment by chls...@gmail.com on 13 Sep 2012 at 3:07

GoogleCodeExporter commented 9 years ago
Hey Chls..Gmail.com,
I Have Exactly What You Have, And For me Works Like A Charm. I had no problem 
to start, but I havê some problems with accents, and no one (samba2 or samba3) 
works perfect.
So I still working with Samba native.

Original comment by betoz...@gmail.com on 31 Oct 2012 at 7:57

GoogleCodeExporter commented 9 years ago
New version of the samba3 package up.
http://code.google.com/p/snake-os/downloads/detail?name=samba3-3.6.9-2.opk

changes:
Sendfile support is disabled by default again. Apparently it _did_ cause 
problems in some cases. It can be turned back on from the samba3 settings page.

Included iconv support. Maybe that will fix the character coding issues.

Original comment by stefansc...@googlemail.com on 16 Nov 2012 at 10:46