草庐IT

ubuntu-server 22.04自动安装的docker 配置镜像源

新装了个ubuntuserver,安装的时候发现他可以选择安装默认程序包,就选了个docker。装完后,docker拉gitlab的镜像的时候特别慢,就想换一下国内的镜像源。遇到两个问题。1.daemon的配置文件路径。教程一般是叫你去/etc/docker/daemon.json这个路径地下设置镜像站点。我看了一下咱这docker的进程发现咱这个deamon.json的路径不是已经配置在这里了吗?咱只需要去修改这个配置文件就行了。{"log-level":"error","storage-driver":"overlay2","registry-mirrors":["https://regi

ubuntu22.04安装Docker两种方式

以下是在Ubuntu上安装Docker的步骤:一、官方更新包管理器:sudoaptupdate安装Docker的依赖包:sudoaptinstallapt-transport-httpsca-certificatescurlgnupglsb-release添加DockerGPG密钥:curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg|sudogpg--dearmor-o/usr/share/keyrings/docker-archive-keyring.gpg添加Dockerapt仓库:echo"deb[arch=amd64signed-

Ubuntu 22 安装Docker环境

删除旧Docker安装新Docker 之前需要彻底删除原先已经安装好的Docker,否则可能会有冲突,命令如下:apt-getremovedockerdocker-enginedocker.iocontainerdrunc设置Docker仓库一般配置国内的仓库即可,执行完此条命令后有些系统会自动执行“apt-getupdate” 导致此条命令执行时间可能会长一些。curl-fsSLhttps://get.docker.com|bash-sdocker--mirrorAliyun 上条命令执行完之后,更新apt-get包的索引apt-getupdate安装apt依赖包apt-getinstall

解决pip安装numpy问题:ERROR: Failed building wheel for numpy/ERROR: numpy-1.22.4+mkl-cp38-cp38-win_amd64.wh

出现过问题ERROR:Failedbuildingwheelfornumpy下载了whl文件后报错ERROR:numpy-1.22.4+mkl-cp38-cp38-win_amd64.whlisnotasupportedwheelonthisplatform.综合多篇博客的解决方法:1.使用pipdebug--verbose命令即可看pip支持在compatibletags中查看pip支持的版本然后在https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta官网中下载对应的轮子将下载的轮子存储在python所在的Scripts文件中然后在vscode终端输入p

linux ssh报错Unable to negotiate with **** port 22: no matching host key type found

目录linuxssh报错Unabletonegotiatewith****port22:nomatchinghostkeytypefoundssh连接机器报错linuxssh报错Unabletonegotiatewith****port22:nomatchinghostkeytypefoundssh连接机器报错今天使用mac通过ssh连接机器的时候报错如上,查阅网上资料后解决,方法如下//进入终端command+空格,输入终端后按回车进入命令行模式//进入家目录cd~//创建ssh目录,有的已经有了,则不需要创建mkdir-p.ssh//touch一个config文件并填入内容touchcon

Ubuntu 22.04 Ubuntu 22.10 解决按照官方教程无法使用搜狗输入法

Ubuntu22.04Ubuntu22.10安装了搜狗输入法,主要步骤就做了两步,一个是:sudoaptinstallfcitx另一个就是下载搜狗的deb文件,并使用dpkg-i安装该文件。后来还是按照官网操作指导:https://shurufa.sogou.com/linux/guide将所有步骤都做了,其中sudoaptinstalllibqt5qml5libqt5quick5libqt5quickwidgets5qml-module-qtquick2sudoaptinstalllibgsettings-qt1这两个才是关键,按照官方教程安装搜狗输入法后依然无法使用在/etc/enviro

c# - 为什么我会看到多条 "The thread 0x22c8 has exited with code 259 (0x103)."消息

我在我的Winforms应用程序中收到了大量这些消息,尽管我从未明确创建任何线程。为什么会这样?我四处寻找解释,但很难用这样的方式来表达询问。我使用的是VisualStudios2013,这是我关心的调试输出:Thethread0x23a4hasexitedwithcode259(0x103).Thethread0x2884hasexitedwithcode259(0x103).Thethread0x27echasexitedwithcode259(0x103).Thethread0x1978hasexitedwithcode259(0x103).Thethread0x1534hase

c# - 为什么我会看到多条 "The thread 0x22c8 has exited with code 259 (0x103)."消息

我在我的Winforms应用程序中收到了大量这些消息,尽管我从未明确创建任何线程。为什么会这样?我四处寻找解释,但很难用这样的方式来表达询问。我使用的是VisualStudios2013,这是我关心的调试输出:Thethread0x23a4hasexitedwithcode259(0x103).Thethread0x2884hasexitedwithcode259(0x103).Thethread0x27echasexitedwithcode259(0x103).Thethread0x1978hasexitedwithcode259(0x103).Thethread0x1534hase

搭建Ubuntu 22.04可视化界面

执行以下命令,清空缓存,更新您的软件包列表。sudoaptcleanall&&sudoaptupdate执行以下命令,安装桌面环境所需软件包。包括系统面板、窗口管理器、文件浏览器、终端等桌面应用程序。sudoaptinstallgnome-panelgnome-settings-daemonmetacitynautilusgnome-terminalubuntu-desktop开机默认进入命令行模式或图形用户界面:sudosystemctlset-defaultmulti-user.target#命令行sudosystemctlset-defaultgraphical.target#图形用户界

ssh 连接报错:Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found.

用ssh连接Linux服务器时,很偶然的情况下出现了如下报错:Unabletonegotiatewithxx.xx.xx.xxport22:nomatchingkeyexchangemethodfound.Theiroffer:diffie-hellman-group1-sha1大概的原因是ssh客户端不支持ssh-rsa算法,如果要解决报错需要手动修改本地配置,指定具体的ssh-rsa算法。解决方案新建~/.ssh/config文件:touch~/.ssh/configvi~/.ssh/config手动添加如下内容:Host192.168.xx.xxKexAlgorithms+diffie-