PDA

Bekijk de volledige versie : Bugs FTP, Samba server



njosef
13-05-2005, 22:41
Hi, Oleg. I am fing two bugs in firmware version 1.9.2.7-5a and before version.
Do not copy to FTP server and Samba file server files with Czech characters code.
Example: ěčř.rar
When copy file exaple: escryaie.rar, this copy it is OK!
Please update this firmware.
Thank you very mutch!
unreal1024@seznam.cz
ftp://194.228.5.3/jnovak/0.jpg ftp://194.228.5.3/jnovak/1.jpg ftp://194.228.5.3/jnovak/2.jpg ftp://194.228.5.3/jnovak/3.jpg

Oleg
13-05-2005, 22:48
You've to manualy configure nvram options to fix this. I've no idea which codepage is used in Czech Republic, so someone else (probably engy) should post correct settings. For the Russian cp1251 I use these commands:



nvram set usb_vfat_options=codepage=866,iocharset=cp1251
nvram set usb_smbcpage_x=866
nvram set usb_smbcset_x=1251
nvram commit

njosef
13-05-2005, 23:43
It is possible implement this change Czech, English, Rusian characters in the new version firmware?

Your code is working!

For Czech republic is this code:
=======================
nvram set usb_vfat_options=codepage=852,iocharset=cp1250
nvram set usb_smbcpage_x=852
nvram set usb_smbcset_x=1250
nvram commit


Internationals Code page (http://www.microsoft.com/globaldev/reference/oslocversion.mspx)

Thank you very mutch for your help.
Sorry, but i am not good speaker in english language.

njosef
14-05-2005, 20:56
Hi Oleg, please help me, STEP-BY-STEP.
I am using WL-500gx with firmware version 1.9.2.7-5a.
I am need configure samba server for three users.
I have extrenal usb hdd mounted /usr/tmp/harddisk/
I am need configure three users:
user1 with password1 access to directory read/write to /usr/tmp/harddisk/user1
user2 with password2 access to directory read/write to /usr/tmp/harddisk/user2
user3 with password3 access to directory only read to /usr/tmp/harddisk/user1 and /usr/tmp/harddisk/user2

Thanks for your help!!!
unreal1024@seznam.cz

Ondrej
20-09-2005, 11:58
You've to manualy configure nvram options to fix this. I've no idea which codepage is used in Czech Republic, so someone else (probably engy) should post correct settings. For the Russian cp1251 I use these commands:



nvram set usb_vfat_options=codepage=866,iocharset=cp1251
nvram set usb_smbcpage_x=866
nvram set usb_smbcset_x=1251
nvram commit


I tried Oleg's setting (with Josef's Czech modification) and it really works. Samba is now shortening all file names. But that is not what I want.
How can I return to the original setting?
My problem is that some files containing Czech letters were not possible to copy on Samba disk. I hoped to solve this problem by this code but the reason is shortening, not correct displaying (submining) by Samba.
Thanks in advance

Oleg
20-09-2005, 12:19
nvram unset usb_vfat_options
nvram unset usb_smbcpage_x
nvram unset usb_smbcset_x
nvram commit

sarlacc
21-06-2007, 19:15
I have the same problem as Ondřej;
filenames are shorter and without Czech symbols ěščřžďťň and corresponding upper case symbols ĚŠČŘŽĎŤŇ. Any idea? (cp1250,852; Samba2)

sarlacc
23-06-2007, 10:29
I have installed Samba 3 and there is a similar problem. Czech symbols aren't displayed correctly (filenames of my old data on my external disc). I can rename it manually and then I can see ěščřž... but it isn't solution.
System Fat32 (I cannot use ext3 at this moment) .
I tried (in smb.conf)


unix charset = UTF-8
dos charset = 852
display charset = UTF-8

and also


unix charset = ISO8859-2
dos charset = 852
display charset = ISO8859-2




nvram set usb_vfat_options=codepage=852,iocharset=cp1250
nvram set usb_smbcpage_x=852
nvram set usb_smbcset_x=1250
nvram commit


I need a bit of advice. Maybe there is missing a right library.

asteriosk
10-01-2008, 00:05
Hello,

I use samba3 and Oleg's firmware.

For Greek(Ελληνικά) filenames the correct steps are the following:

nvram set usb_vfat_options=defaults,utf8
nvram set usb_smbcpage_x=737
nvram set usb_smbcset_x=1253
nvram commit

and the contents of my smb.conf:
[global]
workgroup = WORKGROUP
guest account = admin
security = share
browseable = yes
writeable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Plethon
server string = wl500gPremium customized by Asterios
unix charset = UTF-8
dos charset = 1253
display charset = UTF-8

[Files]
path=/tmp/harddisk/Files
writeable = yes
browseable =yes
read only = no

[Downloads]
path=/tmp/harddisk/downloads
writeable = yes
browseable =yes
read only = no

thanks a lot for your hints Oleg, very nice work.

bisbinix
20-03-2008, 07:12
asteriosk i did what yoy wrote above but with no success.
i still get no greek filenames in ftp when i conect to my WL500gp at home via Filezilla. Do you have any idea what i did wrong. Do you have also the custom bios from oleg?

(θες να επικοινωνήσουμε μέσω mail?)

Grigoris

bisbinix
20-03-2008, 07:48
Do i need also to execute the following statements?

flashfs save
flashfs commit
flashfs enable
reboot

to make the changes permanent?