LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack won't copy Russian files (https://www.linuxquestions.org/questions/slackware-14/slack-won%27t-copy-russian-files-4175414972/)

AngryAngry 07-05-2012 12:35 AM

Slack won't copy Russian files
 
I've found it completely impossible to copy Russian language files to my removable usb mem sticks? Tried searching for an answer, found nothing. Do I need to install some kind of Russian Language support?

I used Thunar & Dolphin in XFCE, I did try to make sure the files were not read only/system/hidden and I had full permissions, I'm logged in as the Root user.
I have not tried console.

bormant 07-05-2012 01:25 AM

You need to configure russian locale (of your choice UTF-8, KOI8-R or more exotic cp1251, iso-8859-5) in /etc/profile.d/lang.sh and/or lang.csh.
For Thunar utf-8 support you need to add "utf8=true" stansa to [vfat], [ntfs-3g] etc. sections of /etc/xfce/xdg/xfce4/mount.rc.

More info (ru): http://linuxforum.ru/viewtopic.php?id=19691

damgar 07-06-2012 04:09 PM

<Insert joke about built in security measures here>

s1aw0 07-07-2012 08:34 AM

@AngryAngry

I guess you mean you cannot read file names written in Cyrillic, otherwise your question makes little sense. As have already been explained, you need a locale that supports Cyrillic, e.g., UTF8 or KOI8-R (with UTF-8 being more generic, AFAICT). In particular, with UTF8 being the default locale, I have no problems when downloading from the Internet and then saving files with names typeset in Russian.

It can be handy to use some language-specific options when mounting external drives (say, a USB stick or a Samba share). For example, if you choose KOI8-R for your PC, you may want to try mounting a Samba share with the "iocharset=koi8-r,codepage=866" options. Then you will see Russian names given to files on Windoze from you Linux machine.

flank'er 07-07-2012 09:23 AM

from terminal/xterm/konsole
Quote:

# mount /dev/sdX1 /mnt/tmp -t vfat -o codepage=866,iocharset=utf8
here /dev/sdX1 - your memory stick. good luck!

qweasd 07-07-2012 10:24 AM

In soviet Russia, the system changes YOUR locale!

Alkin 07-07-2012 11:03 AM

Are you using the stock kernel? If you are familiar with kernel
compilation you may look at section
"File systems-->Native language support" for available options.

If with the stock kernel you may try the following:

1. In terminal as root
Code:

modprobe nls_cp1251
modprobe nls_iso8859-5
modprobe nls_cp1250
modprobe nls_koi8-r
modprobe nls_koi8-u/ru

2. Re-mount (re-connect) your USB drive.
3. Copy the files as normal user.

Don't be angry :)

AngryAngry 07-11-2012 10:36 PM

Quote:

Originally Posted by s1aw0 (Post 4721520)
@AngryAngry

I guess you mean you cannot read file names written in Cyrillic, otherwise your question makes little sense. As have already been explained, you need a locale that supports Cyrillic, e.g., UTF8 or KOI8-R (with UTF-8 being more generic, AFAICT). In particular, with UTF8 being the default locale, I have no problems when downloading from the Internet and then saving files with names typeset in Russian.

It can be handy to use some language-specific options when mounting external drives (say, a USB stick or a Samba share). For example, if you choose KOI8-R for your PC, you may want to try mounting a Samba share with the "iocharset=koi8-r,codepage=866" options. Then you will see Russian names given to files on Windoze from you Linux machine.

I can read them, and even copy to the hardrive but they won't copy back onto the memory cards, I will try those other options guys thanks.

AngryAngry 07-27-2012 08:57 PM

Yes, No & Sorry
 
Quote:

Originally Posted by bormant (Post 4719635)
You need to configure russian locale (of your choice UTF-8, KOI8-R or more exotic cp1251, iso-8859-5) in /etc/profile.d/lang.sh and/or lang.csh.
For Thunar utf-8 support you need to add "utf8=true" stansa to [vfat], [ntfs-3g] etc. sections of /etc/xfce/xdg/xfce4/mount.rc.

More info (ru): http://linuxforum.ru/viewtopic.php?id=19691

Yes that worked very easily, Thank you.

Quote:

Originally Posted by flank'er (Post 4721537)
from terminal/xterm/konsole

here /dev/sdX1 - your memory stick. good luck!

I don't have sdX1 directory or file.

Sorry, I ought to have stated that I was a very knowledgeable Computer User but Linux Noob.


All times are GMT -5. The time now is 04:07 PM.