摘要: 1、sudo 免密 使用sudo 打开 /etc/sudoers 修改这2个位置,增加NOPASSWD:,注意NOPASSWD:的冒号,且前后有空格 2、仅显示当前目录名 sudo gedit ~/.bashrc 将文件第60行的小写w改为大写W,第62行不用动 把hostname显示也去掉(@\h 阅读全文
posted @ 2022-02-10 17:23 丶Future 阅读(764) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 20是按ESC 步骤: 1. 开机重启 2. 常按ESC,此时会进入BIOS选项,直接回车就行 3. 回车后按一下ESC即可进入Grub启动菜单,如果按多了进入Grub命令行,那么重新来一遍。 4. 选择Ubuntu 的高级选项 5. 选择 recovery mode那行按e进入编辑模 阅读全文
posted @ 2022-02-09 09:34 丶Future 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: 旧的版本中可以直接编辑 rc.local 添加开机启动脚本,而新版本这个功能默认是禁用的; 提示 对于应用程序,也可以添加 systemd 服务使其开机自启Ubuntu 20.04 编辑 rc-local.service vi /lib/systemd/system/rc-local.service 阅读全文
posted @ 2022-02-08 14:41 丶Future 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 需要先安装arm-Linux编译链 安装教程:交叉环境安装以及交叉编译 - Leo's Notes (leoc.top) 首先将gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu.tar.xz解压至自建目录/usr/local/ARM-toolchai 阅读全文
posted @ 2021-12-16 16:55 丶Future 阅读(584) 评论(0) 推荐(0) 编辑
摘要: // 推荐快捷键 ctrl+shift+/ //将选择的行添加双斜杠注释或取消双斜杠注释 macro WangQiGuo_MultiLineComment() { hwnd = GetCurrentWnd() selection = GetWndSel(hwnd) LnFirst = GetWndS 阅读全文
posted @ 2021-12-15 10:18 丶Future 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 下面介绍下Ubuntu 环境下具体的安装过程:1、配置安装gcc/g++/gdb/make 等基本编程工具(必须装好) 刚装好的Ubuntu系统中已经有GCC了,但是这个GCC几乎什么文件都不能编译,因为缺少一些必须的头文件,所以要安装build-essential这个软件包。 可以在新立得里面搜索 阅读全文
posted @ 2021-11-18 15:58 丶Future 阅读(2618) 评论(0) 推荐(1) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #define FILE_InName "log.txt" //Read the data file name of the comparison #define FILE_OutN 阅读全文
posted @ 2021-11-18 12:06 丶Future 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #! /bin/sh #while 循环 i=0 count=100 while true do echo {$i} echo $RANDOM if [ $i == $count ] then break fi let "i=i+1" done #for 循环 for i in 1 2 3 4 5 阅读全文
posted @ 2021-11-17 08:55 丶Future 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Linux Synergy安装步骤 Alternatively, snapd can be installed from the command line: $ sudo apt update $ sudo apt install snapd Either log out and back in a 阅读全文
posted @ 2021-11-11 14:48 丶Future 阅读(8611) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install package 安装软件包sudo apt-get install package - - reinstall 重新安装软件包sudo apt-get -f install 修复安装软件包"-f = ——fix-missing"sudo apt-get re 阅读全文
posted @ 2021-11-11 10:18 丶Future 阅读(1576) 评论(0) 推荐(0) 编辑