答: 在Dockerfile中添加以下语句来配置apt-get 从当前的系统中复制/etc/apt/sources.list以及/etc/apt/apt.conf到Dockerfile所处的目录中 $ cp /etc/apt/sources.list ./ $ cp /etc/apt.conf ./ ...
分类:
系统相关 时间:
2020-06-30 12:47:49
阅读次数:
121
ubuntu20.04更改登陆背景 下载 ubuntu-20.04-change-gdm-background 这个sh文件 wget github.com/thiggy01/ubuntu-20.04-change-gdm-background/raw/master/ubuntu-20.04-cha ...
分类:
系统相关 时间:
2020-06-28 00:00:09
阅读次数:
496
1.在设置里面添加共享文件夹 2.在虚拟机里面执行添加用户权限 sudo usermod -a -G vboxsf 用户名 ...
分类:
系统相关 时间:
2020-06-27 10:06:23
阅读次数:
63
1. 本机环境搭建 安装docker for desktop 启用wsl2 windows商店安装Ubuntu20.04 说明:因为我本机是windows环境,所以需要安装一个linux,这样才能编译出linux下的二进制执行文件, 也可以在linux虚拟机中安装docker进行构建 将docker ...
分类:
其他好文 时间:
2020-06-26 18:33:24
阅读次数:
80
以前因为win10下,pip安装太慢容易出错,所以离线下载许多包,现在想想自己好傻。可以通过修改下载源来解决问题。 1:windows 编辑C:\Users\用户名\AppData\Roaming\pip\pip.ini(没有则新建),写入以下内容: [global] index-url = htt ...
分类:
编程语言 时间:
2020-06-25 23:22:25
阅读次数:
74
引用自 https://www.cnblogs.com/linuxws/p/9307187.html 补充:https://blog.csdn.net/hello_new_life/article/details/75099249 一、文件/文件夹管理ls 列出当前目录文件(不包括隐含文件)ls - ...
分类:
系统相关 时间:
2020-06-25 21:44:20
阅读次数:
61
ubuntu2004.exe config --default-user root Ubuntu 18.04 LTS ubuntu1804.exe config --default-user root debian debian.exe config --default-user root ...
分类:
系统相关 时间:
2020-06-25 12:23:25
阅读次数:
209
1. 配置镜像加速器 针对Docker客户端版本大于 1.10.0 的用户 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EO ...
分类:
其他好文 时间:
2020-06-23 17:16:23
阅读次数:
55
tbox下运行gdb:1、ulimit -c unlimited2、sysctl -w "kernel.core_pattern=/ydsdata/core_%e_%t.%p"3、手动运行程序4、/ydsdata 目录中产生core文件5、gdb /ydsapp/run/hum /ydsdata/c ...
分类:
数据库 时间:
2020-06-23 14:58:06
阅读次数:
110
ls /usr/bin/python* sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 sudo update-alternatives --install /usr/bin/python ...
分类:
编程语言 时间:
2020-06-23 11:42:43
阅读次数:
72