linux
文章平均质量分 50
团长sama
这个作者很懒,什么都没留下…
展开
-
报错:docker报错Error response from daemon: could not select device driver ““ with capabilities: [[gpu]]
使用 报错 安装nvidia-container-toolkit:原创 2022-06-11 10:07:33 · 700 阅读 · 0 评论 -
docker更改root目录以及更改阿里源加速
一般docker默认存放容器镜像的root目录是,当空间不够时,构建docker 可能会报:之类错误。使用命令 可以看到 docker的root目录位置。2. 转移 root 目录比如我们新的docker root目录是 ,则:3. 编写 daemon.json该文件是docker的配置文件,没有就直接创建一个 ,填入以下内容4.重启docker服务去https://cr.console.aliyun.com/ 登录你的支付宝账号,在左侧镜像中心加速器中即可看到更改方法。......原创 2022-06-11 02:01:15 · 789 阅读 · 0 评论 -
报错: 构建nvidia docker时 apt update 提示 Public GPG key error
docker 环境为 ubuntu 18.04,在 nvidia devel docker 基础上构建自己 docker 时,apt update 会提示 Public GPG key error 相关错误,比如:解决方法在 Dockerfile 中添加以下语句:注意非 ubuntu18.04 ,deb 相关地址可能需要更换,具体见网址:https://developer.download.nvidia.com/compute/cuda/repos/...原创 2022-06-11 00:44:03 · 3351 阅读 · 2 评论 -
paddle 运行出现:FatalError: `Segmentation fault` is detected by the operating system.
文章目录问题描述:解决方法问题描述:使用 paddle_ocr 时,运行时报错:---------------------- Error Message Summary:原创 2021-08-10 17:04:12 · 5768 阅读 · 7 评论 -
工具---nvim-treesitter报Error
因最新的nvim-treesitter需要最新的neovim,而ubuntu渠道无法更新到最新.方法1: 固定nvim-treesitter版本若使用vim-plug,则Plug 'nvim-treesitter/nvim-treesitter', { 'commit': '3c07232'}方法2:源码构建最新neovimsudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g+原创 2020-12-15 10:31:02 · 2706 阅读 · 2 评论 -
爬坑记录--Ubuntu开机显示welcome to emergency mode
文章目录问题描述解决方案问题描述公司服务器,开机出现welcome to emergency mode!after logging in ,type “journalctl -xb” to view system logs,“systemctl reboot” to reboot ,“systemctl default” to try again to boot into default mode。 give root password for maintenance (?? Control-D?原创 2020-06-04 23:54:03 · 543 阅读 · 0 评论 -
工具---让bash显示的信息更加有用
文章目录前言做法前言想让bash默认就能显示出conda当前环境,git分支信息和fish里面的路径折叠。不想用zsh因为慢,不想用fish因为怕兼容性出问题。修改前终端显示是这样的:因为我用tmux,所以主机名和用户名对我没啥意义,而且这么长的路径个人觉得很占空间,毕竟要路径都直接pwd。我最想要的是conda环境信息和git分支信息。修改之后终端变成了这样:终端仅仅显示cond...原创 2019-11-21 20:41:11 · 297 阅读 · 0 评论 -
git--使用git在局域网机器上进行代码同步
文章目录情景描述做法1.建立服务器A上中转仓库2.建立A本地仓库与中转仓库联系3.B(已有代码)和A的中转仓库建立远程连接4.C(无代码)与A中转仓库建立远程连接注意事项:一些参考git新手,刚整明白这些事,这里留个记录。情景描述服务器A上已有代码,并且和本地机器B代码不一致,想建立连接,将服务器A代码,同步到B上,同时本地机C 也想考一份稳定版本的代码用于开发,以后B和C在本地开发稳定之后...原创 2019-11-10 20:37:35 · 2732 阅读 · 0 评论 -
Ubuntu误删root账户所有信息修复
文章目录问题解决方法参考其他问题手抖眼花敲了userdel -rf root结果没法进入系统了解决方法找个ubuntu启动盘,进入体验版的ubuntu执行mount命令把原始硬盘上的ubuntu的/文件夹挂载到/mnt下进入挂载点,新建root文件夹vi打开挂载点下的/etc/passwd添加root:x:0:0:root:/root:/bin/bash将挂载点下/...原创 2019-10-21 16:16:03 · 832 阅读 · 0 评论