1.Solve font garbled characters in wine Chinese dialog box
In wine, Chinese characters are garbled and displayed as <>> ?? And so on. This is a solution for "OK" and so on in the dialog box:
In wine, the default font of the dialog box is tahoma. on Linux, The tahoma font cannot display Chinese characters normally. For example, in wine configuration, "OK" and "cancel" are changed to "<">.
The solution is simple:
In regedit of wine, find:
"HKEY_LOCAL_MACHINE" software "Microsoft" Windows NT "CurrentVersion" fontsubstitutes
Method 1. directly set this key to null, and the problem is solved ~
Method 2. set Ms shell DLG to an existing Chinese font in your font. If you have used simsun in Windows (this is windows, it is not available in Linux by default). Set it to simsun here.
2. gftp Chinese solution, which is currently the best solution
Edit the/usr/bin/gftp file,
Command: # vi/usr/bin/gftp
In #! /Bin/sh and add
Export lang = zh_cn
Save and exit to display Chinese characters.
3. Mount FTP to the local device, and mount FTP
Run the following command: curlftpfs 192.168.0.5/bbksource/Media/bbksource.
4. sshfs maps the remote host's file system to a local directory.
Sshfs is a host resource that can be connected to through SSH, Which is mapped to the local file system. Then, users can operate like local files, the actual file changes will be transmitted to the remote host through SSH. Similar to mounting a Windows shared directory, Samba shared by another Linux host, or NFS shared, the "Sharing Protocol" is changed to an SSH channel.
There are three packages in total: "fuse-utils libfuse2 sshfs", which is not big. It is only 179 K in total. The user group fuse will be automatically created during installation. To use sshfs, you must add the user group to the user group first (remember to log on again after completion). Otherwise, you will not have the permission to execute fusermount:
FUSE: failed to Exec fusermount: Permission denied
It is much simpler to use. Generally, you can connect a remote host to a local user:
Sshfs user @ hostname: path mount_point
If you need to enter the password, you will lose the password. Of course, it is more convenient to configure it to automatically log on to ssh. Umount is required after use. You can:
Fusemount-u mount_point
It is easy to use in non-sudo environments for common users. If you want to automatically mount the disk at startup, you can add the following to/etc/fstab:
Sshfs # user @ hostname: path mount_point fuse defaults, auto, allow_other 0 0
In this case, you must configure SSH Automatic Logon so that the root user can use the user identity to log on to the remote host. In addition, the allow_other parameter is very important. Without this parameter, the mounted directory can only be accessed by the root user.