随笔分类 -  linux

linux系统
摘要:简介 wsl 默认安装在c盘,如果需要修改磁盘,可以使用以下方式处理 步骤 导出虚拟机: wsl --export Ubuntu-22.04 f:\wsl2\Ubuntu-22.04.tar 注销虚拟机: wsl --unregister Ubuntu-22.04 安装导出的虚拟机: wsl --i 阅读全文
posted @ 2022-07-24 13:45 春树&暮云 阅读(228) 评论(0) 推荐(0) 编辑
摘要:docker 安装 remove podman: sudo dnf remove podman install: sudo yum remove docker-ce docker-ce-cli containerd.io 如果提示还有冲突,添加参数 --allowerasing 阅读全文
posted @ 2022-06-22 14:13 春树&暮云 阅读(208) 评论(0) 推荐(0) 编辑
摘要:工具 linux截图涂鸦: flameshot 阅读全文
posted @ 2022-04-17 10:54 春树&暮云 阅读(36) 评论(0) 推荐(0) 编辑
摘要:问题 当需要打开多个终端窗口分别执行不同的命令,可以是bash脚本统一处理 方法 vim xxxxx.sh gnome-terminal --tab -e "bash -c 'cd $dir; bash xx.sh'" gnome-terminal --tab -e "bash -c 'cd $di 阅读全文
posted @ 2022-04-17 10:52 春树&暮云 阅读(304) 评论(0) 推荐(0) 编辑
摘要:linux解压中文乱码 unzip -O CP936 xxx.zip 阅读全文
posted @ 2022-04-11 10:50 春树&暮云 阅读(20) 评论(0) 推荐(0) 编辑
摘要:连接 windows设置共享文件夹,可设置允许访问的用户 linux添加位置 smb://$ip 用户和密码对应上一步骤 挂载 sudo mount.cifs //ip/folder mount_position -o user=xxx 卸载:sudo umount mount_position 阅读全文
posted @ 2022-01-10 15:07 春树&暮云 阅读(82) 评论(0) 推荐(0) 编辑
摘要:基本使用 镜像构建 docker build --force-rm -t $repo:$build_tag . 镜像启动 后台启动(生产) docker run -d --restart=always -p 80:80 --name xxxx --privileged=true --env-file 阅读全文
posted @ 2021-12-30 09:14 春树&暮云 阅读(113) 评论(0) 推荐(0) 编辑
摘要:问题 服务启动后,客户端(其他机器)访问服务请求无法到达(IP可以ping通), 考虑防火墙的问题 方法 方式1: 关闭防火墙(centos8) systemctl stop firewalld.service 备注: systemctl disable firewalld.service #禁止开 阅读全文
posted @ 2021-12-29 15:15 春树&暮云 阅读(748) 评论(0) 推荐(0) 编辑
摘要:Quicky Started https://developer.nvidia.cn/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=CentOS&target_version=8&target_type=rpm_loca 阅读全文
posted @ 2021-12-17 16:12 春树&暮云 阅读(38) 评论(0) 推荐(0) 编辑
摘要:方法 下载对应版本驱动 安装相关开发工具包 禁用nouveau 检查nouveau是否已禁用 lsmod | grep nouveau # 无任何输出意味着已禁用 如果已禁用,则无需操作,否则需要配置 可参考 https://www.jianshu.com/p/5d8d06ade64f yum re 阅读全文
posted @ 2021-12-17 12:36 春树&暮云 阅读(710) 评论(0) 推荐(0) 编辑
摘要:问题 尝试安装NVIDIA驱动,禁用nouveau,一系列操作后无法进入图形桌面 方法 修改grup,启动文字界面(level 3) 步骤 启动电脑,光标停留在其中一个centos 按e 进入grup,出现几行命令,在kernel 对应的行 末尾 加上 空格3,相当于level 3 然后按照下方提示 阅读全文
posted @ 2021-12-17 12:12 春树&暮云 阅读(1063) 评论(0) 推荐(0) 编辑
摘要:问题 uuntu20 频繁假死,cpu和内存正常,鼠标和键盘没反应 方法 kill掉桌面进程(临时) 找其他机器远程连到当前机器 ps aux | grep xorg kill -s 9 $pid 备注: 浏览器和终端数据会丢失 阅读全文
posted @ 2021-12-14 15:33 春树&暮云 阅读(67) 评论(0) 推荐(0) 编辑
摘要:需求 ubuntu系统以非root开机自动挂载外接磁盘 步骤 查看外接磁盘UUID 方式1: 使用Ubuntu系统自带的磁盘工具 "磁盘" 查看磁盘UUID 方式2: sudo fdisk -l 编辑/etc/fstab sudo vim /etc/fstab UUID=02901fxxxxxx / 阅读全文
posted @ 2021-11-29 14:42 春树&暮云 阅读(344) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示