cmd更改编码方式

更改为GBK编码(默认就是GBK编码) chcp 936 更改为UTF8编码 chcp 65001 查看cmd窗口charset:方法1 在命令行标题栏上点击右键,选择"属性"->“选项”,查看当前的charset。 查看cmd窗口charset:方法2 在cmd窗口中输入命令:chcp 查表: 字符内码 描述 437 MS-DOS 美国英语 936 简体中文(GBK)(默认) 950 繁体中文(大五码) 850 多语种 (MS-DOS Latin1) 65000 UTF-7 Unicode 65001 UTF-8 Unicode cmd窗口设置charset=utf-8 执行命令:CHCP 65001 cmd窗口设置charset=gbk 执行命令:CHCP 936 cmd带设置charset参数启动 Start Run (Win+R) Type cmd /K chcp 65001

arm Ubuntu | 安装中文包

Ubuntu中文显示乱码输出乱码,为了使调试程序方便安装中文语言包使其支持中文 apt install language-pack-zh-hans 配置语言环境变量 vim /etc/environment 在下面添加如下两行: LANG="zh_CN.UTF-8" LANGUAGE="zh_CN:zh:en_US:en" 保存后,执行命令: sudo locale-gen 完成后重启即可正常显示 reboot 嵌入式板子无需安装字体了吧

编译 openwrt 及初始配置-及部分排错

参考上篇,搭建命令行代理 克隆 git clone https://github.com/openwrt/openwrt.git 逐条输入下列命令(及时验证是否安装成功): sudo apt-get install g++ sudo apt-get install libncurses5-dev sudo apt-get install zlib1g-dev sudo apt-get install bison sudo apt-get install flex sudo apt-get install unzip sudo apt-get install autoconf sudo apt-get install gawk sudo apt-get install make sudo apt-get install gettext sudo apt-get install gcc sudo apt-get install binutils sudo apt-get install patch sudo apt-get install bzip2 sudo apt-get install libz-dev sudo apt-get install asciidoc

ubuntu windows 设置命令行代理 设置git代理

搭建代理服务器 这玩意好像不能发 设置代理 代理命令公式 export ALL_PROXY="socks5://代理服务器IP地址:代理端口" 例如: export ALL_PROXY="socks5://127.0.0.1:1080" export all_proxy="socks5://127.0.0.1:1080" export http_proxy=http://192.168.41.217:10811 export https_proxy=http://192.168.41.217:10811 取消设置的代理 unset ALL_PROXY unset all_proxy unset http_proxy unset https_proxy git设置代理 首先确认ip和端口,例如ip为127.0.0.1, 端口为1080, 打开终端,运行以下命令: git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080' 查看: cat ~/.gitconfig 发现是多了这两项配置 [http] proxy = socks5://127.0.0.1:1080 [https] proxy = socks5://127.0.0.1:1080 git取消socks代理 git config --global --unset http.proxy git config --global --unset https.proxy windows终端配置代理 set HTTP_PROXY=http://127.0.0.1:10811 set HTTPS_PROXY=http://127.0.0.1:10811

Ubuntu | arm ubuntu armv7l 开发板 ubuntu 系统添加开机启动脚本

写一个守护进程,每10秒检测一次,如果存在就没事,如果不存在就启动 添加sshd开机自启 在目录/root/下创建sshd守护进程脚本sshd_daemon.sh #!/bin/bash while true;do count=`ps -ef |grep "/sbin/sshd" |grep -v "grep" |wc -l` # echo $count if [ $count -eq 0 ];then nohup /sbin/sshd >~/sshd.log 2>&1 & fi sleep 10 done 在/etc/rc.local中添加守护进程执行 /root/sshd_daemon.sh & 重新启动一下开机服务以确保修改生效 sudo systemctl restart rc-local.service 添加pppd开机自启 在目录/root/下创建sshd守护进程脚本ppp-on_daemon.sh #!/bin/bash while true;do count=`ps -ef |grep "/etc/gosuncn/gosuncn_ppp_dialer" |grep -v "grep" |wc -l` # echo $count if [ $count -eq 0 ];then cd /etc/gosuncn/ && nohup ./ppp-on >~/ppp-on.log 2>&1 & fi sleep 10 done 在/etc/rc.