网站首页 > 开源技术 正文
建议最小化安装 Ubuntu 系统,精简不必要的软件!
Ubuntu 镜像
用于 apt 加速。首先,选择你的 Ubuntu 版本的配置,
- 阿里源
- https://developer.aliyun.com/mirror/ubuntu
- 清华源
- https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/
然后,替换进 /etc/apt/sources.list :
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo vi /etc/apt/sources.list
sudo apt update
中文输入法
- 打开 Settings 的 Region & Language 配置页,点击 Manage Installed Language 弹出 Language Support 窗口
- 于 Language Support 窗口,点击 Install/Remove Languages ,勾选 Chinese (simplified) 再 Apply 安装语言
- Keyboard Input method system 选 IBus
- 回到 Region & Language 配置页, Input Sources 下点击 + ,选择 Chinese 再 Chinese (Intelligent Pinyin) 完成
- 打开 Settings 的 Devices Keyboard 配置页,可修改 Typing 快捷键。默认 Super+Space 切换输入。
- Chinese (Intelligent Pinyin) 时 Shift 切换中英。
exFAT 驱动
支持 exFAT 格式的移动硬盘。exFAT 于 macOS, Windows 可读写;文件和分区的大小,可到 128PB 。
sudo apt install exfat-fuse exfat-utils
必要开发软件
系统最小化安装时,必要安装的一些工具:
# ifconfig
sudo apt install net-tools
开发,必要安装的一些软件:
sudo apt install build-essential cmake git
- Visual Studio Code on Linux
- https://code.visualstudio.com/docs/setup/linux
SSH 配置
远程机器启用 SSH 服务:
# 安装服务
sudo apt install openssh-server
# 启动服务
sudo service ssh start
# 检查服务
ps -aux | grep ssh
如果要免密登录,可把公钥复制进 ~/.ssh/authorized_keys。或者,本地机器写进远程机器:
ssh-copy-id -i ~/.ssh/id_rsa.pub remote@0.0.0.0
本地机器添加 SSH 私钥:
# 如果没有,则生成秘钥
# 私钥 id_rsa 公钥 id_rsa.pub
ssh-keygen -t rsa -C "ikuokuo@hotmail.com"
# 把已有私钥放进 ~/.ssh/
mkdir -p ~/.ssh/
mv id_rsa ~/.ssh/
chmod 600 ~/.ssh/id_rsa
# 添加进 ssh-agent
ssh-add ~/.ssh/id_rsa
# 测试是否成功
ssh -T remote@0.0.0.0
配置 ~/.ssh/config,可设 Host 昵称,如用于 GitHub 多账户:
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
屏幕分享
Settings > Sharing > Screen Sharing ,启用屏幕分享。
系统最小化安装时,或于某些嵌入式版本的 Ubuntu ,不存在上述选项,需安装:
# 安装服务
sudo apt install vino
# 启用服务
/usr/lib/vino/vino-server
# SSH 登录启用服务
/usr/lib/vino/vino-server --display=:0
配置需关闭 require-encryption ,此后如 macOS Screen Sharing 等才可登录:
# sudo apt install dconf-editor
sudo apt install dconf-tools
dconf write /org/gnome/desktop/remote-access/require-encryption false
Ubuntu 可用 Remmina 客户端软件, VNC 进入远程桌面:
sudo apt install remmina remmina-plugin-vnc
屏幕录制
- Kazam: 屏幕录制
- HandBrake: 格式转换
因为 Kazam 录制格式于其他平台可能存在问题,如微信。可用 HandBrake 转换成 MPEG-4 再分享。
sudo apt install kazam handbrake
桌面优化
可用 Tweaks 优化或定制 GNOME 桌面。其扩展可见:https://extensions.gnome.org 。
sudo apt install gnome-tweaks
Nvidia 驱动
如果是 N 卡,可安装 Nvidia 驱动。推荐使用 graphics drivers PPA 方式:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
如果安装 CUDA Toolkit ,请先了解 CUDA Compatibility https://docs.nvidia.com/deploy/cuda-compatibility/index.html。安装 CUDA Toolkit 时,注意其携带的驱动版本,最好将其与驱动分别进行安装。而驱动从官方上直接找合适的版本。
查看驱动信息
Settings > Details > About, Graphics: 查看显卡驱动
nbsp;ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:14.3 ==
modalias : pci:v00008086d000006F0sv00008086sd000002A4bc02sc80i00
vendor : Intel Corporation
manual_install: True
driver : backport-iwlwifi-dkms - distro free
nbsp;lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Device 9bc4 (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f15 (rev a1)
nbsp;lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f15 (rev a1) (prog-if 00 [VGA controller])
Subsystem: Device 1d05:1097
Flags: bus master, fast devsel, latency 0, IRQ 159
Memory at c5000000 (32-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
Memory at c0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 6000 [size=128]
Expansion ROM at c6000000 [disabled] [size=512K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
安装 Nvidia 驱动
apt-cache search nvidia | grep ^nvidia-driver
sudo apt install nvidia-driver-440
查看 Nvidia 驱动信息
nbsp;nvidia-smi
Fri Apr 17 07:31:55 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.82 Driver Version: 440.82 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 2060 Off | 00000000:01:00.0 Off | N/A |
| N/A 40C P8 5W / N/A | 263MiB / 5934MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1560 G /usr/lib/xorg/Xorg 144MiB |
| 0 1726 G /usr/bin/gnome-shell 76MiB |
| 0 2063 G ...uest-channel-token=10544833948196615517 39MiB |
+-----------------------------------------------------------------------------+
# after reboot
nbsp;nvidia-settings
猜你喜欢
- 2024-10-11 RDP 访问组件 Razor 常见问题(rdp wrapper configuration)
- 2024-10-11 使用国产操作系统Deepin第三十六天,Deepin连接Windows远程桌面
- 2024-10-11 Linux :远程访问的 16 个最佳工具(一)
- 2024-10-11 童心未泯,一切皆甜!这里有一份技能礼包待查收
- 2024-10-11 Linux 桌面----EndeavourOS设置及软件安装(四)
- 2024-10-11 统信UOS V20专业版(1050update2)发布:文件共享全局搜索等优化
- 2024-10-11 Ubuntu 18.04 LTS将于4月26日发布 新增内容介绍
- 2024-07-06 ubuntu与windows局域网内远程相互访问设置笔记
- 2024-07-06 ubuntu第三讲:远程桌面连接(ubuntu远程桌面连接ubuntu)
- 2024-07-06 在Ubuntu上部署xrdp远程桌面服务(ubuntu20远程桌面)
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)