Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

双系统的一些bug #7

Open
chiwent opened this issue Sep 14, 2018 · 0 comments
Open

双系统的一些bug #7

chiwent opened this issue Sep 14, 2018 · 0 comments
Labels
Linux Linux Notes

Comments

@chiwent
Copy link
Owner

chiwent commented Sep 14, 2018

Windows + Linux双系统使用上的一些bug

压缩文件的编码问题

Linux在解压Windows的zip压缩文件时会出现乱码,可以用下面的简易脚本解决,可以将其软链接sudo ln -sf unzipcode.sh /usr/bin/unzipcode

#!/bin/sh
unzip -d $2 -O cp936 $1

demo: unzipcode 解压生成目录 压缩文件

时间不准

无论是Windows还是Linux,在切换系统后都可能会出现时间不准的情况(Windows的情况更多)。在遇到这样的问题后需要我们手动设置与网上同步,Windows的直接控制面板即可。如果是Linux就稍微多一点步骤:

sudo apt-get install ntpdate
sudo ntpdate -u ntp.sjtu.edu.cn

注意在更新时间的时候要先停止ntp(/etc/init.d/ntp)服务,不然会冲突

@chiwent chiwent added the Linux Linux Notes label Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Linux Notes
Projects
None yet
Development

No branches or pull requests

1 participant