Created
February 21, 2013 19:49
-
-
Save jackyueq/5007572 to your computer and use it in GitHub Desktop.
Add utf-8 support to synology dsm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.xn--brwolff-5wa.de/tech-notes/synology-diskstation-howto-set-locale.txt | |
I've been using a Synology Diskstation DS209j to backup data via rsync. However, the locale on my laptop (the source of the backups) is de_DE.utf8, and on the Diskstation no such locale (in fact, no utf-8 locale at all) is available by default. This becomes a problem as soon as you're dealing with file names containing "non-standard" characters such as German umlauts. Here's what I did to remedy the problem, largely based on a very useful howto at <http://forum.synology.com/wiki/index.php/CrashPlan_Headless_Client>: | |
log in to the Diskstation as root | |
cd /volume1/@tmp | |
uname -a # in order to find out what system you're at, and which tool chain to download from http://sourceforge.net/projects/dsgpl/files/; mine was <http://sourceforge.net/projects/dsgpl/files/DSM%203.2%20Tool%20Chains/Marvell%2088F628x%20Linux%202.6.32/gcc421_glibc25_88f6281-GPL.tgz/download> | |
wget $the_url_found_in the_previous_step | |
tar -xzvf $the_file_thus_downloaded | |
cd $the_dir/$the_dir | |
cp libc/usr/bin/locale /usr/bin | |
cp libc/usr/bin/localedef /usr/bin | |
cp -r libc/usr/share/i18n /usr/share | |
mkdir /usr/lib/locale | |
localedef -f UTF-8 -i de_DE de_DE.UTF-8 # or en_US en_US.UTF-8 if you so wish | |
locale -a # should now give you more than C and POSIX | |
vi /etc/profile | |
# add: | |
LANG=de_DE.UTF-8 | |
LC_ALL=de_DE.UTF-8 | |
export LANG LC_ALL | |
reboot | |
#done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment