自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 Job for iptables.service failed because the control process exit with error code 修复

Job for iptables.service failed because the control process exited with error code. See “systemctl status iptables.service” and “journalctl -xe” for details.今天设置mosh server打开UPD端口时遇到一个错误:#systemctl ...

2018-12-31 00:42:47 13556 3

原创 默认终端 + iTerm2 + oh_my_zsh + agnoster theme + Powerline fonts + solarized 打造macOS炫酷终端

先上图iTerm2效果macOS自带终端效果iTerm2iTerm是一个非常好的终端模拟器,官网地址:http://iterm2.com/,下载安装之。oh_my_zsh查看系统支持的sh环境cat /etc/shellsmacOS已经自带zsh,但是它不是默认shell# List of acceptable shells f...

2018-12-28 14:43:14 3969 1

原创 从homebrew 安装 ctags 和 Cscope

这几天配置Visual Studio Code未完成的时候,尝试为Sublime Text 配置 ctags和Cscope,从homebrew安装ctags和Cscope命令如下:brew install ctagsbrew install Cscope安装之后的路径默认如下:/usr/local/Cellar/ctags/5.8_1/bin/ctags/usr/loca...

2018-12-27 18:27:40 929

原创 Visual Studio Code 的 includePath 全局设置

这几天折腾使用Visual Studio Code 编写 ESP8266 non_os 代码,基本设置都没问题,但是就是自动补全折腾很久没弄好。在折腾了一圈插件之后(包括Auto Import, C++ Intellisense, CTags Support, scope4code, c/c++ Clang Command Adapter,platformIO IDE),还是没法实现结构体及其成员...

2018-12-27 18:16:28 96682 4

原创 Git 推送本地所有分支和拉取远程所有分支

本文是另外一篇博文Win10 Ubuntu子系统设置Git服务器和SSH Server 证书登录,实现win10和macOS源码同步的一部分,单独拿出来说一下:首先,设置好远程Git Server的ssh证书登录,假设用户名是git,远程服务器Host设置为nas (具体设置参考上述博文);其次,设置好 ssh-agent 自启动,具体参考Win10 cmd命令行,Powershel...

2018-12-26 17:02:24 18849 1

原创 Win10 cmd命令行,Powershell,Linux子系统Ubuntu bash自动启动ssh-agent

        当从win10的cmd命令行,PowerShell,或者Ubuntu子系统访问SSH服务器或者SSH Git Server,可以使用证书登录。但是默认情况下,需要每次都输入证书密码(passphrase),很不方便。        使用Visual Studio Code的终端,可以设置为使用以上三种Shell之一【可参考 设置Visual Studio Code的默认SHEL...

2018-12-26 01:53:06 6535

原创 Visual Studio Code 终端的不同选择

Visual Studio Code 终端可以进行设置,选择使用 cmd,PowerShell, Git Bash, Bashon Ubuntu(on Windows),下面是settings.json的选1项,选择其中一个就好了:1. CMD// 64-bit cmd if available, otherwise 32-bit"terminal.integrated.shell....

2018-12-25 12:42:35 7260 5

原创 Win10 Ubuntu子系统设置Git服务器和SSH Server 证书登录,实现win10和macOS源码同步

首先是安装Win10的Ubuntu子系统,如果没有,可以看到我另外一篇博文的相关内容:Visual Studio Code 与 Win10 64bit Ubuntu bash 的ESP8266 编译开发环境搭建(无需编译toolchain)1. 设置Git服务器首先右键点击开始按钮-”运行“-"bash",进入Ubuntu bash命令行如果没有安装过git,那么安装一下:...

2018-12-24 13:06:34 2688 1

原创 macOS下emacs图形界面共享系统剪贴板以及鼠标选中自动复制到剪贴板

在~/.emacs中添加3行即可(setq x-select-enable-clipboard t)(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)(setq mouse-drag-copy-region t)如果用鼠标选中文字,那么它会自动加入到macOS系统剪贴板中。终端界面未测试。...

2018-12-22 23:06:37 735

原创 Xcode彻底卸载及升级

我的macOS前一阵升级到了macOS Mojave,今天想折腾一下macOS下的ESP8266编译环境,结果提示:Your Xcode (9.4.1) is too outdated./Users/simonliu >brew install gnu-sed --with-default-namesError: Your Xcode (9.4.1) is too outdated....

2018-12-22 23:04:45 17661 1

原创 Visual Studio Code 与 Win10 64bit Ubuntu bash 的ESP8266 编译开发环境搭建(无需编译toolchain)

本文参考如下文章:1.ESP8266 建立Linux開發環境2.Win10 Bash搭建ESP8266编译环境(RTOS SDK)Note:工具链是直接下载的,无需编译最近重装win系统,然后按照我以前写的博文重新搭建ESP8266编译环境https://blog.csdn.net/toopoo/article/details/80528536但是发现如果直接运行Ecli...

2018-12-21 21:51:38 1635 2

原创 禁止Centos系统 You have new mail in /var/spool/mail/root提示

Centos会在root输入命令的时候出现一行提示:You have new mail in /var/spool/mail/root该功能为Linux操作系统核对系统资源状态和(比如crontab脚本执行结果或者错误)的汇总,默认发送到root用户的/var/spool/mail/root目录,并在标准输出中提示如上的信息。使用 mail 命令可以查看这些信息[root@us...

2018-12-18 23:52:30 1251

原创 macOS 安装mtr 和mtr: Failure to start mtr-packet: Invalid argument 错误的解决

1.通过Homebrew安装mtrbrew install mtr先出现一个错误提示:Error: The `brew link` step did not complete successfullyThe formula built, but is not symlinked into /usr/localCould not symlink sbin/mtrTarget /u...

2018-12-16 19:46:38 2915

原创 centos证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误的修复

centos证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误有很多原因。具体情况需要具体分析。今天折腾centos服务器,遇到了证书登录Permission denied (publickey,gssapi-keyex,gssapi-with-mic)错误,折腾很久以后发现,是因为修改了sshd配置文件(/et...

2018-12-16 19:16:28 6232 1

原创 Arduino IDE 无法编辑代码的问题

昨天参加一个活动,开启了好久没用的Arduino IDE,发现代码无法编辑,不论打开旧文档还是新建文档也不行。当时百思不得其解。晚上回来才想起来,我启用了Arduino IDE的外部编辑器,所以在此选项启用的情况下,是官方IDE内是无法编辑的。做个记录,免得以后遇到类型情况又懵逼。...

2018-12-03 15:04:06 6555 6

原创 macOS Mojave emacs 无法显示文件内容问题的解决

前几日升级到MacOS Mojave,发现emacs不能正常使用了,打开以后窗口内没有任何文本显示,尝试输入也不显示任何字符。,再次从Homebrew重装也不行。搜了一下,据说是渲染问题,找到了解决方法,关键就是重装macports,以下是详细步骤:Install Xcode and the Xcode Command Line Tools Agree to Xcode license in...

2018-12-03 14:56:49 705

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除