差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
public:it:linux:ubuntu [2016/12/28 15:18] – oakfire | public:it:linux:ubuntu [2023/07/20 11:41] (当前版本) – [Tips] oakfire | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Ubuntu ====== | ====== Ubuntu ====== | ||
* [[http:// | * [[http:// | ||
- | | + | ===== Snap ===== |
+ | | ||
+ | ===== Audio ===== | ||
+ | * [[https:// | ||
===== Tips ===== | ===== Tips ===== | ||
- | * 修改时区 [[https:// | + | |
+ | * Ubuntu18.04 后网络管理:[[https:// | ||
+ | * Ubuntu20.04 更新 openssl : [[https:// | ||
+ | # check version | ||
+ | openssl version -a | ||
+ | # backup | ||
+ | sudo cp -R / | ||
+ | # download latest version https:// | ||
+ | wget https:// | ||
+ | # check | ||
+ | wget https:// | ||
+ | echo "$(cat openssl-1.1.1m.tar.gz.sha256) openssl-1.1.1m.tar.gz" | ||
+ | # install | ||
+ | sudo apt update && sudo apt install build-essential -y | ||
+ | tar -zxvf openssl-1.1.1m.tar.gz | ||
+ | cd openssl-1.1.1m | ||
+ | ./config | ||
+ | make | ||
+ | sudo make install | ||
+ | sudo mv / | ||
+ | sudo ln -s / | ||
+ | sudo ldconfig | ||
+ | # check current version | ||
+ | openssl version -a | ||
+ | # fix cert | ||
+ | cd / | ||
+ | sudo rmdir certs | ||
+ | sudo ln -s / | ||
+ | sudo rmdir private/ | ||
+ | sudo ln -s / | ||
+ | sudo mv openssl.cnf openssl.cnf.original | ||
+ | sudo ln -s / | ||
+ | # check cert | ||
+ | wget https:// | ||
+ | </ | ||
+ | | ||
+ | # display settings | ||
+ | timedatectl | ||
+ | # display timezone list | ||
+ | timedatectl list-timezones | ||
+ | # set timezone | ||
+ | timedatectl set-timezone Asia/ | ||
+ | </ | ||
* 查看版本:< | * 查看版本:< | ||
* 修改主机名称: | * 修改主机名称: | ||
行 15: | 行 61: | ||
* 要在禁止所有用户通过ssh以用户名+密码的方式远程登录系统,修改/ | * 要在禁止所有用户通过ssh以用户名+密码的方式远程登录系统,修改/ | ||
# Change to no to disable tunnelled clear text passwords | # Change to no to disable tunnelled clear text passwords | ||
- | PasswordAuthentication no</ | + | PasswordAuthentication no</ |
passwd -l user</ | passwd -l user</ | ||
* 有时候 '' | * 有时候 '' | ||
行 21: | 行 67: | ||
sudo apt-get update | sudo apt-get update | ||
</ | </ | ||
+ | * 登录之后的欢迎信息来自 ''/ | ||
+ | * ubuntu 应用列表配置信息目录为 ''/ | ||
+ | * 双系统启动选项的配置,ubuntu下修改grub选项 '' | ||
+ | GRUB_DEFAULT=saved | ||
+ | GRUB_SAVEDEFAULT=true | ||
+ | </ | ||
+ | * ubuntu 的时间同步用的是 timesyncd , 可用 | ||
+ | * 关闭时间同步:'' | ||
+ | * 开启时间同步: | ||
==== 备忘 ==== | ==== 备忘 ==== | ||
- | <code bash> | + | * <code bash> |
# 添加账户 | # 添加账户 | ||
useradd oak -s /bin/bash -m -l -G sudo | useradd oak -s /bin/bash -m -l -G sudo | ||
行 30: | 行 85: | ||
passwd oak | passwd oak | ||
</ | </ | ||
+ | * 18.04 最小化安装开启远程桌面: <code bash> | ||
+ | # 安装 vino | ||
+ | sudo apt-get install vino | ||
+ | # 配置 vino | ||
+ | gsettings set org.gnome.Vino enabled true | ||
+ | gsettings set org.gnome.Vino require-encryption false | ||
+ | gsettings set org.gnome.Vino prompt-enabled false | ||
+ | gsettings set org.gnome.Vino view-only false | ||
+ | gsettings set org.gnome.Vino authentication-methods " | ||
+ | gsettings set org.gnome.Vino vnc-password $(echo -n " | ||
+ | # 启动 | ||
+ | / | ||
+ | </ | ||
+ | * 无人值守安全补丁更新:https:// | ||
+ | sudo apt install unattended-upgrades | ||
+ | sudo dpkg-reconfigure -plow unattended-upgrades | ||
+ | sudo vi / | ||
+ | # Unattended-Upgrade:: | ||
+ | sudo unattended-upgrades --dry-run -d # test | ||
+ | sudo unattended-upgrades -d # manual upgrade. | ||
+ | </ | ||
+ |