2.5 ROX-Filer文件名乱码问题
这里有一个问题:如果你的系统里既有gb2312编码的文件名,如从网上下载的rar包,解压后都是这种编码,又有utf8编码的文件名,一般都用utf8 编码,这样终端(如urxvt)和文件管理器(如rox-filer)都只能正确显示一种字符集编码的文件,另一种出现乱码,不知道各位有什么办法解决
2.6 中文输入,fcitx
| cat ~/.bashrc <<EOF export XMODIFIERS="@im=fcitx" EOF |
| sed -i '{/im-xim.so/{n};s/ko:ja:th:zh/ko:ja:th:zh:en}/' |
2.7 MLdonkey下载中文文件名变短划线的问题
从源码编译安装MLdonkey:MLdonkey依赖ocaml软件包,编译ocaml时先从网上下载一个ocaml的unicode补丁,打上补丁后再编译ocaml和mldonkey,就能解决MLdonkey下载中文文件,文件名变成短划线的情况。
三.网络问题
3.1 ADSL拨号
如果用LFS直接拨号,确保编译内核时选择了PPP协议支持(及一些子选项)
| Device Drivers-->Network device Support--> <*> PPP(point-to-point protocol) support |
| adsl-setup >>> Enter your PPPoE user name (default ): gz_a123456@gz.jx >>> Enter the Ethernet interface (default eth0): >>> Enter the demand value (default no): >>> Enter the DNS information here: server >>> Please enter your PPPoE password: >>> Choose a type of firewall (0-2): >>> Accept these settings and adjust configuration files (y/n) ? |
3.2 Linux与Windows共享文件SAMBA
a)先配置/etc/samba/smb.conf
| cat /etc/samba/smb.conf <<EOF [global] workgroup = linuxgroup server string = linux-smb dos charset = cp936 unix charset = utf8 hosts allow = 192.168.1. #允许的连接的IP段,这里要注意一下 log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers dns proxy = no [share] path = /mnt/share/ ;guest ok = yes browseable = yes create mask = 0755 writeable = yes EOF |
| cat /etc/passwd | mksmbpasswd.awk > /etc/samba/smbpasswd smbpasswd -ae $USER |
c)连接
在Windows中访问SAMBA服务器,只要在网络邻居中添加一个连接就可以,输入地址时输入类似
\\192.168.1.1\share的地址
