分类: Linux

8 篇文章

ubuntu 阿里镜像源
https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11NWSsF4 https://mirrors.aliyun.com/ubuntu-releases/?spm=a2c6h.13651104.d-5263.1.631243efRiAkrx
ubuntu 下安装 nvidia 驱动
# 查看显卡型号 lspci | grep -i vga # 0000:b3:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060] (rev a1) # 查看当前可用驱动 ubuntu-drivers devices # driver : nvidia…
ssh 隧道
## 在一些临时性场合可以暂时性进行端口转发 --------------------------------------------------------------------- ## 远程端口映射至本地局域网 192.168.0.60 7893 端口 # -R 从远程主机映射至本地 # -C 使用数据压缩 # -N: 让 SSH 不执行远程…
linux 下关闭 usb 省电设置
# vi /etc/default/grub 修改 GRUB_CMDLINE_LINUX_DEFAULT 这行 GRUB_CMDLINE_LINUX_DEFAULT="quiet usbcore.autosuspend=-1" 然后执行更新并重启 # update-grub # grub-mkconfig # reboot 第一…
linux 后台任务
后台任务 用户退出后,后台任务可能会结束 用户查看不了其它用户的 jobs 任务 jobs -l 查看后台命令列表, -l 列出 PID 供 kill 使用 command & 运行命令后直接至后台 ctrl + z 暂停当前命令至后台 bg %1 暂停命令继续运行 fg %1 将后台命令切换至前台运行 kill PID 杀死后台命令 no…
systemd 一些命令
ln -s /home/frpc/frpc.service /etc/systemd/system/frpc.service # 将服务链接到 systemd 目录下, systemctl enable frpc 可能也会做这个动作,可以先试下 enable systemctl daemon-reload # 复制服务配置后,需要载入一下 syst…
windows 免费登录 linux
# 生成密钥 ssh-keygen -t rsa # 使用 type 代替 cat 复制公钥至 linux 机器 type ~\.ssh\id_rsa.pub | ssh root@10.168.10.138 -p 12025 "cat >> .ssh/authorized_keys"