随笔分类 -  linux

 
debian13 sudo systemctl start 没有启动
摘要:很奇怪,明明用了sudo systemctl daemon-reload 再sudo systemctl start但卡住 看日志服务里面的脚本没有启动 又重启另一个system 服务突然这个服务又能用了 猜测是systemctl start 卡住 更新 我停止了另一个Type=oneshot的sy 阅读全文
posted @ 2026-03-10 12:08 近真真 阅读(17) 评论(0) 推荐(0)
debian13 btrfs 启用swapfile进行休眠(根据回忆大概写的)
摘要:创建子卷并挂载子卷 sudo mount -t btrfs /dev/sdXn /mnt sudo btrfs subvolume create /mnt/@swap sudo umount /mnt sudo mkdir /swap sudo mount -t btrfs -o subvol=@s 阅读全文
posted @ 2025-09-28 21:27 近真真 阅读(183) 评论(0) 推荐(0)
无法用sudo 启动 gparted
摘要:sudo gparted 无法使用 显示 Authorization required, but no authorization protocol specified (gpartedbin:16540): Gtk-WARNING **: 07:01:33.227: cannot open dis 阅读全文
posted @ 2025-09-23 15:03 近真真 阅读(152) 评论(0) 推荐(0)
记一次debian13 进入紧急模式
摘要:进入紧急模式后 输入root密码登陆root 然后运行 systemctl --failed 出现 run-user-1000-doc.mount loaded failed failed 查看了/etc/fstab 发现多了几项莫名奇妙的东西 大致是挂载错误了 解决: sudo apt insta 阅读全文
posted @ 2025-09-23 13:00 近真真 阅读(55) 评论(0) 推荐(0)
debian12 使用luks加密的swap分区进行休眠
摘要:1 创建swap分区 # 如果有了swap分区的话,可以关掉swap再在原swap分区加密 sudo swapoff /dev/sdX # 编辑分区 sudo cfdisk # 查看swap分区 lsblk 2 加密需要配置为交换分区后打开它 # 安装软件包 sudo apt install cry 阅读全文
posted @ 2025-09-07 19:23 近真真 阅读(136) 评论(0) 推荐(0)
Ubuntu Gparted 您已将移动分区 /dev/sda2 起始扇区的操作加入队列。如果移动的是包含 /boot 目录的 GNU/Linux 分区,那么系统极有可能出现无法启动的情况。
摘要:注意:该文绝大部分由ai生成 问题如图 部分翻译: 您已将移动分区 /dev/sda2 起始扇区的操作加入队列。如果移动的是包含 /boot 目录的 GNU/Linux 分区,那么系统极有可能出现无法启动的情况。 ai 提问: You have queued an operation to move 阅读全文
posted @ 2025-09-07 13:48 近真真 阅读(89) 评论(0) 推荐(0)
debian12 btrfs系统进行 luks加密
摘要:Table of Contents 注意 1 进行系统备份 1.1 创建分区 1.2 创建文件系统并挂载 1.3 备份文件系统 2 加密分区 2.1 安装加密软件包 2.2 加密分区 2.3 打开加密分区用备份进行还原 3 配置系统启动 3.1 卸载/mnt 再挂载,配置fstab和crypttab 阅读全文
posted @ 2025-09-06 10:50 近真真 阅读(175) 评论(0) 推荐(0)
wayland下使用pot选词翻译
摘要:1 问题 在wayland下pot无法选词翻译 2 解决 2.1 方案 参照 https://github.com/pot-app/pot-desktop/issues/147 添加环境变量以在xwayland下运行 XDG_SESSION_TYPE=x11 GDK_BACKEND=x11 pot 阅读全文
posted @ 2025-07-06 09:41 近真真 阅读(73) 评论(0) 推荐(0)
debian12 修改用户名
摘要:ai生成 usermod -l newuser olduser # 修改登录名 usermod -d /home/newuser -m newuser # 修改主目录路径并迁移内容 groupmod -n newuser olduser # 修改用户组名(如需要) 阅读全文
posted @ 2025-06-01 21:03 近真真 阅读(177) 评论(0) 推荐(0)
debian12 sway下使用waydroid
摘要:教程1,直接本地安装 安装过程 1.安装waydroid sudo apt install curl ca-certificates -y curl -s https://repo.waydro.id | sudo bash sudo apt install waydroid -y 2.启动wayd 阅读全文
posted @ 2025-05-30 13:23 近真真 阅读(1067) 评论(0) 推荐(0)
debian12.10 sway下,waybar的声音调节bar
摘要:滚轮调节和点击需要 sudo apt install pulseaudio pavucontrol 再重启 阅读全文
posted @ 2025-03-27 19:53 近真真 阅读(121) 评论(0) 推荐(0)
distrobox enter debian时 Installing basic packages...需要很久 终端设置代理不管用
摘要:大概是网络问题 需要在容器内设置代理 解决: bash用 proxy=http://127.0.0.1:1080 t="echo 'Acquire::http::Proxy \\\""${proxy}"\\\";' > /etc/apt/apt.conf.d/proxy.conf; echo 'Ac 阅读全文
posted @ 2025-03-12 18:55 近真真 阅读(304) 评论(0) 推荐(0)
distrobox podman 拉取镜像失败timeout
摘要:报错如下 distrobox create --name archlinux --image archlinux:latest --home ~/.distrobox/archlinux-home Image archlinux:latest not found. Do you want to pu 阅读全文
posted @ 2025-03-11 16:51 近真真 阅读(639) 评论(0) 推荐(0)
香橙派zero2 debian_bookworm_server 无头启动桌面和vnc
摘要:1.安装桌面 sudo apt install xorg xfce4 xfce4-goodies xorg是X服务器 xfce4是桌面环境 xfce4-goodies是与xfce4桌面有关的软件 2.安装vnc服务器 sudo apt install tightvncserver 3.启动vnc服务 阅读全文
posted @ 2025-02-23 23:26 近真真 阅读(207) 评论(0) 推荐(0)