当前位置: 首页 > backend >正文

Ubuntu使用说明

安装SSH服务

# 安装 OpenSSH Server
sudo apt update
sudo apt install -y openssh-server# 检查 SSH 服务状态
sudo systemctl status ssh
#      Active: active (running) since Sat 2025-05-31 17:13:07 CST; 6s ago# 重启服务
sudo systemctl restart ssh

自定义分辨率

新增

# 生成 Modeline
~/work/$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync# 新建显示模式
~/work/$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync# 添加显示模式
~/work/$ xrandr --addmode VGA-1-1 "1920x1080_60.00"

删除

# 查看显示器信息
~/work$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
VGA-1-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm1024x768      60.00  800x600       60.32    56.25  640x480       59.94  1920x1080_60.00  59.96* 1872x1248_60.00  59.92  # 删除前先切换到其他模式
~/work$ xrandr --output VGA-1-1 --mode 1024x768# 删除指定显示器的模式
~/work$ xrandr --delmode VGA-1-1 "1872x1248_60.00"# 删除通用模式
xrandr --rmmode 1872x1248_60.00

开机自动连接wifi

如果你使用的是较新的 Ubuntu 版本(如 Ubuntu 17.10 及以后),可以使用 netplan 来配置网络。编辑 /etc/netplan/ 目录下的 YAML 文件(例如 01-netcfg.yaml),添加你的 WiFi 网络配置:

network:version: 2wifis:wlan0:dhcp4: trueoptional: trueaccess-points:"YourSSID":password: "YourPassword"

然后应用配置:

sudo netplan apply
 

http://www.xdnf.cn/news/10347.html

相关文章:

  • 112 Gbps 及以上串行链路的有效链路均衡
  • JAVA中的枚举
  • 《管理经济》期末复习题(2)
  • 缓存穿透、击穿、雪崩的解决方案
  • 开源版 PyMOL 如何绘制 Galidesivir 分子结构 ?
  • [LitCTF 2024]SAS - Serializing Authentication
  • 在Cesium中通过geojson和3d tiles分别加载楼宇白膜
  • 【深度学习】线性因子模型:数据降维与结构解析的数学透镜
  • 深入探讨redis:主从复制
  • 【鱼皮-用户中心】笔记
  • 优化的两极:凸优化与非凸优化的理论、应用与挑战
  • 雪花算法的实际应用
  • 6个月Python学习计划 Day 10 - 模块与标准库入门
  • 表单校验代码和树形结构值传递错误解决
  • 【Qt】Bug:findChildren找不到控件
  • 【C语言练习】074. 理解C语言中的多线程编程
  • MySQL 8.0:解析
  • Github 热点 Github 热点 Syncthing:多台设备,持续同步文件,安全同步,隐私无忧!
  • 79. 单词搜索-极致优化,可行性剪枝和顺序剪枝
  • LeetCode 1010. 总持续时间可被 60 整除的歌曲
  • leetcode hot100刷题日记——30.两数之和
  • 那些常用的运维工具
  • LeetCode 1524. 和为奇数的子数组数目
  • 【题解-洛谷】P9422 [蓝桥杯 2023 国 B] 合并数列
  • Flask-Login使用示例
  • R语言错误处理方法大全
  • Python 从入门到精通视频下载
  • Nacos实战——动态 IP 黑名单过滤
  • 【LLM】FastAPI入门教程
  • 无公网ip远程桌面连接不了怎么办?内网计算机让外网访问方法和问题分析