Debian11镜像更新为阿里巴巴开源镜像站镜像,切换root用户,解决用户名不在sudoers文件中此事将被报告,Debian11 文件夹对话框、火狐浏览器、命令终端等没有最大化和最小化
選擇Debian作為編程開發最佳Linux的理由:
Debian是面向程序員的最古老,最出色的Linux發行版之一。Debian提供了具有.deb軟件包管理兼容性的超穩定發行版。Debian為程序員提供了許多最新功能。因此,它具有一個特殊的編程空間。Debian是開發人員友好的操作系統。這些庫是世界一流的,并且社區在不斷發展,您可以使用apt-get和build-dep。對于系統管理員和高級程序員而言,Debian是最好的選擇。
Debian更適合于作為服務器的操作系統,它比Ubuntu要穩定得多。Debian整個系統基礎核心非常小,不僅穩定,而且占用硬盤空間小,占用內存小。128M的VPS即可以流暢運行Debian,而Ubuntu則會略顯吃力
Debian11下載地址:
https://mirrors.aliyun.com/debian/ https://mirrors.aliyun.com/debian-archive/ https://repo.huaweicloud.com/debian-cd/Debian11安裝后需要進行一些配置。
1.Debian11切換root用戶方法
輸入su命令后再輸入root密碼
2.解決用戶名不在sudoers文件中此事將被報告問題
出現這個提示,就是這個用戶沒法得到超級用戶權限。怎么辦?變成超級用戶:
2.1切換到root用戶
2.2編輯/etc/sudoers文件,添加用戶名 ALL=(ALL:ALL) ALL
vi /etc/sudoers在root ALL=(ALL:ALL) ALL下面添加:
用戶名 ALL=(ALL:ALL) ALL3.Debian11鏡像更新為阿里巴巴開源鏡像站鏡像
3.1切換到root用戶
3.2編輯/etc/apt/sources.list文件
vi /etc/apt/sources.list在文件最前面添加以下條目(操作前請做好相應備份)
deb http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb http://mirrors.aliyun.com/debian-security/ bullseye-security main deb-src http://mirrors.aliyun.com/debian-security/ bullseye-security main deb http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib3.3運行命令生成緩存
apt-get clean - 刪除所有已下載的包文件 apt-get update - 取回更新的軟件包列表信息 apt-get upgrade - 進行一次升級4.解決Debian11 文件夾對話框、火狐瀏覽器、命令終端等沒有最大化和最小化的問題
應用程序–搜索"優化"–啟動–左側點擊窗口標題欄–右側將最大化、最小化選項打開。
總結
以上是生活随笔為你收集整理的Debian11镜像更新为阿里巴巴开源镜像站镜像,切换root用户,解决用户名不在sudoers文件中此事将被报告,Debian11 文件夹对话框、火狐浏览器、命令终端等没有最大化和最小化的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第四章语法分析和语法分析程序
- 下一篇: Docker镜像和容器常用命令