You are not logged in.
Pages: 1
Hello, I have a problem with Russian character set files and folders when viewed from the ftp client in windows. I want to use an external ntfs hard drive and use it as a location for files ftp. (slitaz-base without gui)
# Downloading additional packages that were not enough for normal ntfs-3g
tazpkg get-install ntfs-3g --forced
# Mount the drive by UUID
mount -t ntfs-3g UUID=<uuid> /home/ftp -o iocharset=utf8,codepage=cp1251
Pure-ftpd run from the console with the key -4 -A -B -M -E
In the end, I do not get any error, the daemon is working properly, but instead of Russian letters, I see the trash of the characters. I just can not see how well I mount the drive with the Russian character set, since "ls -a" is also NOT visible Russian letters.
tazlocate - ru_RU and tazkeymap - ru: does not help
I also would like to mount the drive automatically, but using fstab do not succeed. Perhaps udev does not have time to give it a name, an error occurs:
ntfs-3g: failed to access volume 'UUID = <uuid>': No such file or directory
Offline
The first part of the problem, I decided mount command:
mount -t ntfs-3g -o silent,locale=ru_RU.UTF-8 UUID=<uuid> /home/ftp
PcMan correctly shows russian uft-8 characters
But the pure-ftpd does not want to support the re-encoding. According http://download.pureftpd.org/pub/pure-ftpd/doc/README since version 1.0.21 supports transcoding on the server side and client needs to run pure-ftpd with the keys:
-8 --fscharset <charset>
-9 --clientcharset <charset>
pure-ftpd write error:
pure-ftpd : invalid option -- '8'
pure-ftpd : invalid option -- '9'
Attempts to install the packages pure-ftpd-extras and pure-ftpd-pam does not resolve the problem. I tried to install pure-ftpd-1.0.36 from site developers and do:
./configure --with-rfc2640
make
make install
Set all the dependencies, the installation was successful, but the problem is not solved. I tried to edit the configuration file / etc / pure-ftpd / pure-ftpd.conf adding a line:
FileSystemCharset UTF-8
ClientCharset CP1251
Run pure-ftpd -4 -A -B -M -E (-8 and -9 again write error). The file names look at "Рнститут"
I have no idea what to do
Offline
I think the problem is that pure-ftpd is compiled from a repository without a key --with-rfc2640
I can not properly configure and install the package manually, I run as root:
tazpkg get-install gawk
tazpkg get-install cpp
tazpkg get-install linux-headers
tazpkg get-install binutils
tazpkg get-install glibc-dev
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.36.tar.bz2
tar -xjf pure-ftpd-1.0.36.tar.bz2
cd pure-ftpd-1.0.36
./configure --with-rfc2640 --with-everything --prefix=/usr/local/pure-ftpd
make
make install
pure-ftpd -B
-sh: pure-ftpd: not found
during configuration, some checking match no,
during make and make install I get a few warnings, no errors...
what information do I need to give order to understand what the error?
Offline
The problem is solved with the encoding.
I was not careful when using the configuration of the key
# ./configure --with-rfc2640 --with-everything --prefix=/usr/local/pure-ftpd
Installation took place in the directory /usr/local/pure-ftpd, but I tried to run the server without specifying a path, ie ran the package installed tazpkg.
It would be nice if the developers recompile the package with the above-mentioned key, to avoid problems with utf-8 or cp1251 encodings pure-ftpd
I hope this helps someone
The only thing I do that I can not do is to automatically mount the disk on the UUID: I add the line to /etc/rcS.conf
mount -t ntfs-3g -o silent,locale=ru_RU.UTF-8 UUID=<uuid> /home/ftp
and at boot:
# mount: can't find UUID=<uuid> in /etc/fstab
# /etc/init.d/rcS: /etc/rcS.conf: line 47: /home/ftp: not found
# ...
# mount: can't find UUID=<uuid> in /etc/fstab
# /etc/init.d/rcS: /etc/rcS.conf: line 47: /home/ftp: Permission denied
Offline
Pages: 1
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]