随笔 - 39  文章 - 0  评论 - 0  阅读 - 53721

最小化安装debian10&gnome最小化安装

  直到后面配置网络源之前都是断网安装,因为debian security好像总是要去总源找点东西,所以即便你选择国内源甚至不选择网络源安装,依然会莫名

的失败。

I. 最小化安装debian10(用root用户吧)
1. 修改控制台分辨率 (看情况,似乎不太需要)

  这里参考的资料比较老,其实也没有实践,后来在openeuler上尝试成功了,可能debian不完全一样吧,grub的配置文件现在的路径应该是

/boot/grub2/grub.cfg, 用vi编辑器打开后搜索vmlinuz基本上找到了,设置vga的时候似乎不能直接设置数字,需要写成16进制的方式0x792,这样的方式


http://www.chinastor.cn/linux/ubuntu/1210115152015.html
https://www.iteye.com/blog/yjy110-1881593
1)vi /boot/grub/grub.cfg
2)
linux   /boot/vmlinuz-2.6.35-22-generic root=UUID=30b3c856-a931-44cf-bb03-99fa91fcc597 ro   quiet
add "vag=792" behind "quiet", e.g:
linux   /boot/vmlinuz-2.6.35-22-generic root=UUID=30b3c856-a931-44cf-bb03-99fa91fcc597 ro   quiet vga=792

2.设置控制台字体(也是看情况,不是小到不能忍受就算了吧)
dpkg-reconfigure console-setup
UTF-8 > Guess optimal character set > TerminusBold > 10x20

https://blog.csdn.net/petpig0312/article/details/79445692

3. 设置默认编辑器,debian10现在默认是nano
update-alternatives --config editor

4. 设置支持的字符集以支持中文
apt install locales
dpkg-reconfigure locales
Add fontsets like This:
en_US.UTF8
zh_CN GB2312
zh_CN GBK GBK
zh_CN UTF-8 UTF-8

5. 设置系统时区
ln -fs /usr/share/zoneinfo/Asia/ShangHai /etc/localtime

6. 安装sudo命令,并设置你准备用的普通帐号又sudo权限
1) apt -y install sudo
2) Set common user with sudo power
visudo /etc/sudoers
add:
yourusername ALL=(ALL:ALL) NOPASSWD: ALL
down the: root ALL=(ALL:ALL) ALL

7. 安装一些比较重要的编译依赖工具
apt -y install gcc automake autoconf libtool make bc linux-headers-$(uname -r)



II. 安装感觉的gnome (这里就切换到普通账户用sudo权限执行吧)
1. 安装 gnome-shell
sudo apt -y install gnome-shell
2. 安装 gnome-session
sudo apt -y install gnome-session
3. 安装一些重要的组件
nautilus: gnome的文件管理器
network-manager:网络管理工具
alsa-utils:音频管理工具
gnome-terminal: gnome终端
gedit:文本编辑器
gnome-font-viewer:字体管理工具
4. 设置软件源,新版本据说可以自己选最快的源,看需求吧,下面的src似乎可以不配,一般用户似乎也用不到
backup /etc/apt/sources.list: sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

复制代码
deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib

deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
复制代码

[tips:] debian11的security源格式发生了一点变化

复制代码
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
复制代码


> 然后更新
apt -y update
apt -y upgrade
5. 联网后配源后通过非free源安装重要的组件工具等
apt -y install firmware-linux firmware-linux-nonfree libdrm-amdgpu1 xserver-xorg-video-amdgpu
apt -y install xfonts-wqy* fonts-wqy*
gnome-tweak-tool: 通过使用gnome-tweak-tool工具,我们可以自定义系统主题、图标、锁屏界面内容、字体等等内容
gnome-shell-extension-top-icons-plus: 顶栏支持托盘图标,不过貌似不能操作,仅仅支持显示
6. 安装输入法 rime挺好用的
apt -y install ibus ibus-rime
> 默认的中文输入不是简体,可以在输入状态下F4然后选择
7. 其他好用的软件
firefox-esr
flameshot: 火焰截图
Audacious: 音频播放器
cmus: 命令行音频播放器
thunderbird
vlc
goldendict:好用。。


posted on   smoggy  阅读(3734)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示