注:这是本人使用debain的一些基础设置方便新手上手
1、添加软件源(我认为第一步肯定要方便我们装软件吧)
nano /etc/apt/sources.list(打开软件源的配置)
在下面配置下写入
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ trixie-security main contrib non-free non-free-firmware
ctrl+o保存回车,ctrl+x退出
apt update(更新软件源)
2、下载工具
一般常用的就是wget和curl了
su -(提权)
apt install wget curl
3、打驱动
su –
apt update
apt install linux-headers-$(uname -r) build-essential dkms nvidia-detect(安装内核头文件、编译工具、显卡检测工具)
nvidia-detect(检测你的N卡,看推荐驱动)
apt install nvidia-driver firmware-misc-nonfree(正式安装NVIDIA闭源驱动 + 非自由固件)
reboot(充重启电脑)
nvidia-smi(验证)
完整卸载
su –
apt purge –auto-remove “nvidia“
rm /etc/modprobe.d/blacklist-nouveau.conf
update-initramfs -u
reboot
4、常用开发工具git和node.js
su –
apt-get install git
apt install nodejs npm
5、更多的软件
为是选择安装deb包的,感觉很方便
6、wine(用于运行windows)
我知道很多人说都用linux了为什么还要用windows但是这确实是有一定需求的,毕竟全面转linux了还是会用一些exe文件的,所以单独列了一个,还是推荐装一个的
安装
- 开启32位架构支持(Windows程序必备)
sudo dpkg –add-architecture i386
- 新建密钥目录,导入WineHQ官方GPG密钥
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
- 添加 WineHQ 软件源
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources
- 更新软件源缓存
sudo apt update
- 安装 WineHQ
sudo apt install –install-recommends winehq-stable
- 安装微软字体,防止exe中文乱码
sudo apt install ttf-mscorefonts-installer - 安装wine
sudo apt install –install-recommends winehq-stable
- 初始化Wine,弹出配置窗口,直接点确定
winecfg
- 验证是否安装成功,查看wine版本
wine –version
普通运行exe
wine xxx.exe
调用你的独显运行Windows游戏
prime-run wine xxx.exe
DXVK 把DirectX转Vulkan
sudo apt install dxvk(装好之后wine运行游戏会自动加载DXVK,不需要额外配置)
卸载
sudo apt purge –auto-remove winehq-stable
rm -rf ~/.wine
rm /etc/apt/sources.list.d/winehq-bookworm.sources
当然如果不想老是打su -就
1.先进root
su –
2.安装sudo程序
apt install sudo
3.把你的用户名加入sudo组
usermod -aG sudo 用户名
使用感受
个人还是推荐Ubuntu和debain(虽然确实Ubuntu商业化现在比较严重了,但是如果上手最快我觉得的还是他),因为本人玩的第一个linux系统就是Ubuntu,现在转debain了,感觉上ubuntu的自带的应用市场要这些要做的好一点,为个人决觉得上手还是要比debain快一些,debain的自带的应用市场要少很多,不过deb包的话还是去github上找比较好,毕竟github我觉得才是最大的应用市场。
总结:大概就这些吧,其他的桌面美化插件我还没玩,我个人用下来还是很顺畅的,当然还是不建议把主力机装windows的,就算准备装也可以先尝试网页版的,再看看是不是适合自己,还有不建议上来就是arch(真的很劝退小白)