惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
SecWiki News
SecWiki News
博客园_首页
人人都是产品经理
人人都是产品经理
博客园 - 聂微东
P
Palo Alto Networks Blog
V
Vulnerabilities – Threatpost
Project Zero
Project Zero
WordPress大学
WordPress大学
NISL@THU
NISL@THU
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
Jina AI
Jina AI
AWS News Blog
AWS News Blog
Scott Helme
Scott Helme
Martin Fowler
Martin Fowler
C
Cybersecurity and Infrastructure Security Agency CISA
Forbes - Security
Forbes - Security
H
Heimdal Security Blog
小众软件
小众软件
I
Intezer
A
Arctic Wolf
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
O
OpenAI News
S
Security Affairs
阮一峰的网络日志
阮一峰的网络日志
Latest news
Latest news
G
GRAHAM CLULEY
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
N
News and Events Feed by Topic
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V2EX - 技术
V2EX - 技术
Stack Overflow Blog
Stack Overflow Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
L
LINUX DO - 最新话题
博客园 - Franky
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
P
Proofpoint News Feed
S
Secure Thoughts
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
F
Full Disclosure
Security Latest
Security Latest

品味苏州

老张的日记本‌diary主题 - 品味苏州 - 苏州生活博客 变更博客访问者头像源,恢复显示 - 品味苏州 - 苏州生活博客 2026射箭达级赛之苏州站 - 品味苏州 - 苏州生活博客 结缘苏超--再游镇江 - 品味苏州 - 苏州生活博客 梅雨季 - 品味苏州 - 苏州生活博客 春日 马年之始 与弓弦对峙的勇气 新年半月记 写给2026的你和我 2026 热力肆意 白嫖:阿里云边缘安全加速 ESA 人参鹿茸酒,一百八一杯 弓守其道,射以观德 从来只见新人笑 稀碎的十一长假 还债 从93到918 天南地北双飞客 至:风凌渡 hello,Mr.AI 2025,加油! 冬至快乐:苏州特色的冬至夜 主题升级PHP8测试 分享一批免费下载无损音乐的网站 注册时候爽,续费泪汪汪 国家公祭日:昭昭前事、惕惕后人 东方之门 & 品味苏州 方寸间、自有天地:一张明信片的故事 平行的世界还是短路的大脑? wordpress全站外链跳转中间页 我的互联网回忆录 反思:折腾一时爽,时间火葬场 独立博客自省问卷15题
从零开始用Linux系统使用笔记
扶苏 · 2024-12-09 · via 品味苏州

2024.12.12 将标题从 “debian系统使用笔记”改为“linux系统使用笔记”

有一台很破很破的笔记本,用windows感觉卡顿,且无聊。想起两年前尝试玩了几天ubuntu,这次换个debian12玩玩,基本什么都不懂,不懂不怕,有百度就好~此日志为自己使用时遇到的问题记录(随时更新中……)

1、切换管理员:

su
输入管理员密码

2、更新软件包列表和升级所有可用的软件包:

# 更新软件包索引
sudo apt-get update

# 升级所有可用的软件包
sudo apt-get upgrade -y

# 安装新的.deb包
sudo dpkg -i xxxx.deb
建议用下面这个
sudo apt install ./xxxx.deb

3、首次执行apt update命令时,会提示:

root@sc:/home/soulio# apt update
忽略:1 cdrom://[Debian GNU/Linux 12.7.0 Bookworm - Official amd64 DVD Binary-1 with firmware 20240831-10:40] bookworm InRelease
错误:2 cdrom://[Debian GNU/Linux 12.7.0 Bookworm - Official amd64 DVD Binary-1 with firmware 20240831-10:40] bookworm Release
请使用 apt-cdrom,通过它可以让 APT 识别该盘片。apt-get upgdate 不能被用来加入新的盘片。命中:3 http://mirrors.ustc.edu.cn/debian bookworm InRelease
命中:4 http://mirrors.ustc.edu.cn/debian bookworm-updates InRelease
命中:5 http://security.debian.org/debian-security bookworm-security InRelease
正在读取软件包列表… 完成E: 仓库 “cdrom://[Debian GNU/Linux 12.7.0 Bookworm - Official amd64 DVD Binary-1 with firmware 20240831-10:40] bookworm Release” 没有 Release 文件。N: 无法安全地用该源进行更新,所以默认禁用该源。N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

这是因为我们使用全量包安装系统时,使用了DVD源,系统安装完成后需要将DVD源注释:

  • 打开一个终端,切换到root用户,编辑/etc/apt/sources.list,注释掉含有DVD字样的行(这里是第一行)
#deb cdrom:[Debian GNU/Linux 12.7.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20240831-10:40]/ b>

deb http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware

deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware

4、nano 编辑器保存退出:

按 Ctrl + X。
如果你有未保存的更改,系统会提示你是否要保存,按 Y(是)或 N(否)来选择。
如果你选择保存(按 Y),系统会要求你确认文件名,直接按 Enter 保存。

5、安装软件指令:

在root账户权限下
sudo dpkg -i xxxx.deb
或(建议下面这条)
sudo apt install ./xxxx.deb

6、星火商店:

很方便的软件商店,debian12可以直接安装,不需要依赖包
https://www.spark-app.store/download_latest

7、gdm3、kdm 和 lightdm桌面安装:

安装:sudo apt-get install gdm3/sddm/lightdm
卸载:sudo apt-get remove gdm3/sddm/lightdm
切换:sudo dpkg-reconfigure gdm3/sddm/lightdm

2024年12月11日记录:
更换系统为 Deepin社区版(23),因为发现这个国产linux系统更符合国人的使用习惯,目前用了1天感觉不错。优势在于自带应用商店几乎囊括了所有需要用的常用软件,例如 微信、QQ、钉钉、WPS、哔哩哔哩、腾讯视频……基本和介绍的差不多,开机即用,适合我这种啥都不懂的新手,下面继续记录在使用deepin中遇到的问题。

8、安装好进入系统后 su 的密码是:

deepin root账户默认密码是随机的,自己的账户使用sudo和直接使用root账户是一样的,用sudo的话输入自己的密码就可以,当然也可以用sudo passwd来更改root密码,但不建议,参考下面的指令:
sudo 命令
sudo -i 可以切换到 root

2024年12月12号记录:
Deepin虽然生态非常好,但是破电脑还是太卡,还是滚回 Debian12吧,毕竟顺畅一些,软件的问题慢慢解决。

9、安装ClamAV及使用:

首先‌更新软件包列表‌:sudo apt update
其次‌安装ClamAV及其守护进程‌:sudo apt install clamav clamav-daemon
升级ClamAV(更新病毒库):sudo freshclam
使用ClamAV进行扫描
单个文件:clamscan /path/to/file
‌扫描整个目录‌:clamscan -r /path/to/directory
‌执行全盘扫描‌:sudo clamscan -r /

10、查看已安装软件和卸载软件:

#查看已安装的软件:
dpkg --get-selections

#卸载安装的软件:
sudo apt-get remove xxxx

#如果想删除配置文件:
sudo apt-get remove --purge xxxx

#最后自动删除不再需要的依赖项:
sudo apt-get autoremove

待续