随笔分类 -  linux

linux ubuntu ...
摘要:linux获取子文件和子目录 ```cpp #include #include #include #include #include // #include #define TAG "[demo]" // #define LOGD(...) __android_log_print(ANDROID_L 阅读全文
posted @ 2023-07-29 10:38 keep-minding 阅读(69) 评论(0) 推荐(0)
摘要:转载:https://blog.csdn.net/fihxc/article/details/115583294 https://blog.csdn.net/Felaim/article/details/100516282 报错信息 ```bash NVIDIA-SMI has failed bec 阅读全文
posted @ 2023-06-01 15:23 keep-minding 阅读(2113) 评论(0) 推荐(0)
摘要:转载:实战详细讲解ffmpeg命令的使用(来自一线的经验,视频合并&avi转MP4&补空白音频【收藏下来一定用的到】) 视频合并示例: # filelist.txt: #file 'a.flv' #file 'b.flv' # -f concat : 合并操作 # -safe 0 : 避免操作输入流 阅读全文
posted @ 2022-09-04 09:22 keep-minding 阅读(110) 评论(0) 推荐(0)
摘要:https://sourcedigit.com/20839-extract-install-tar-gz-files-ubuntu/ wget https://jaist.dl.sourceforge.net/project/ctags/ctags/5.8/ctags-5.8.tar.gz tar 阅读全文
posted @ 2020-12-23 10:00 keep-minding 阅读(661) 评论(0) 推荐(0)
摘要:vim as ide for c/cpp project https://blog.csdn.net/hunter___/article/details/81809001 vim查找: https://blog.csdn.net/xnxygxp/article/details/97252107 vi 阅读全文
posted @ 2020-12-22 19:14 keep-minding 阅读(184) 评论(0) 推荐(0)
摘要:/etc/vim/vimrc 中,打开以下语句: " Uncomment the following to have Vim jump to the last position when " reopening a file if has("autocmd") au BufReadPost * if 阅读全文
posted @ 2020-12-11 21:36 keep-minding 阅读(4505) 评论(1) 推荐(0)
摘要:ldd list dynamic dependencies 列出动态依赖关系 使用方法例: $ ldd darknet linux-vdso.so.1 => (0x00007ffe1c956000) libopencv_highgui.so.3.4 => /usr/local/lib/libopen 阅读全文
posted @ 2020-12-08 21:31 keep-minding 阅读(89) 评论(0) 推荐(0)
摘要:Vim下多行同时编辑与删除技巧 转载:https://www.jianshu.com/p/50d5b6cfd73b item 1 item 2 item 3 变成: my_item 1 my_item 2 my_item 3 将光标移到要插入相同内容的第一行第一个字符上,如上面代码中item 1中的 阅读全文
posted @ 2020-10-12 22:03 keep-minding 阅读(345) 评论(0) 推荐(0)
摘要:转载:http://www.mintos.org/soft/oneclick-deepinsoft.html 前文《一站式安装:Ubuntu/LinuxMint安装QQ和迅雷等常用软件》 介绍了在 LinuxMint/Ubuntu 下如何安装 QQ 微信等常用Wine软件。今天要介绍的是另外一种超级 阅读全文
posted @ 2020-10-06 10:21 keep-minding 阅读(546) 评论(0) 推荐(0)
摘要:scp 免密登录、传输 ssh-keygen -q -f ~/.ssh/id_rsa -t rsa from http://novosial.org/openssh/publickey-auth/ ssh-copy-id -i ~/.ssh/id_rsa root@192.168.1.5 添加id_ 阅读全文
posted @ 2020-09-09 16:49 keep-minding 阅读(215) 评论(0) 推荐(0)
摘要:转载:https://www.cnblogs.com/llfctt/p/11804082.html 1、第一步:备份原来的源文件 cd /etc/apt/ 命令 cp sources.list sources.list.bak 将sources.list备份到sources.list.bak 第二步 阅读全文
posted @ 2020-09-08 12:33 keep-minding 阅读(253) 评论(0) 推荐(0)
摘要:http://www.linuxdiyf.com/linux/21759.html 刚刚使用Ubuntu系统时,遇到了快捷键无法自定义的问题,走了许多弯路,这里给大家总结一下。 很多大神说打开系统首选项或者使用命令gconf-editor,但是我用的系统是Ubuntu 16.04 LTS ,这两种方 阅读全文
posted @ 2020-06-24 23:15 keep-minding 阅读(3116) 评论(0) 推荐(3)
摘要:nvidia显卡更新后,重启进不了系统,显示“/dev/...: clean ... files ... blocks ... /sys/class/backlight/nvidia_0/actural_brightness”并一直闪屏,如下图: 这是英伟达显卡的锅。 解决方法: 按 Ctrl+Al 阅读全文
posted @ 2020-06-24 23:02 keep-minding 阅读(1399) 评论(0) 推荐(0)
摘要:usb 设备自动挂起问题 现象 鼠标停止操作后3秒自动挂起,需要点击才能有反应;键盘也是,需要按一下按键才能有反应 解决方法 方法一: https://superuser.com/questions/408683/why-my-usb-mouse-gets-suspended-after-3-sec 阅读全文
posted @ 2020-05-16 20:54 keep-minding 阅读(805) 评论(0) 推荐(0)
摘要:ubuntu自定义终端风格 === 终端 vim 效果 阅读全文
posted @ 2020-05-01 18:07 keep-minding 阅读(454) 评论(0) 推荐(0)
摘要:转载:https://blog.csdn.net/educast/article/details/41911697 GNU DDD(Data Display Debugger)是命令行调试程序,如GDB、DBX、WDB、Ladebug、JDB、XDB、Perl Debugger或Python Deb 阅读全文
posted @ 2020-04-23 21:38 keep-minding 阅读(1303) 评论(0) 推荐(0)
摘要:监控docker及docker内程序的运行情况,可以用crontab来实现。在宿主机上设置定时执行任务(每分钟执行一次): $ crontab -e # m h dom mon dow command */1 * * * * bash /root/check-detect.sh 脚本 check-d 阅读全文
posted @ 2020-04-17 17:40 keep-minding 阅读(3241) 评论(1) 推荐(1)
摘要:转载: https://blog.csdn.net/lovekbaby/article/details/44863775 ubuntu 16.04 也能用 手机连接电脑时出现错误: unhandled error message: libmtp error 偶尔会出现这个错误: 安装了ubuntu1 阅读全文
posted @ 2020-04-10 22:28 keep-minding 阅读(966) 评论(0) 推荐(0)
摘要:set vim as ide link: https://realpython.com/vim and python a match made in heaven/ https://github.com/neovim/neovim/issues/5938 阅读全文
posted @ 2020-03-25 16:11 keep-minding 阅读(137) 评论(0) 推荐(0)
摘要:# 查看硬盘UUID和TYPE sudo fdisk -l # 将硬盘TYPE格式化为 ext4 sudo mkfs.ext4 /dev/sdb 永久挂载 sudo vim /etc/fstab: UUID=*** /mnt/db ext4 defaults 0 2 临时挂载 sudo mount 阅读全文
posted @ 2020-03-10 16:22 keep-minding 阅读(153) 评论(0) 推荐(0)