溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Linux如何初始化環(huán)境

發(fā)布時(shí)間:2021-09-27 09:29:56 來源:億速云 閱讀:195 作者:柒染 欄目:大數(shù)據(jù)

Linux如何初始化環(huán)境,相信很多沒有經(jīng)驗(yàn)的人對(duì)此束手無策,為此本文總結(jié)了問題出現(xiàn)的原因和解決方法,通過這篇文章希望你能解決這個(gè)問題。

1.配置國(guó)內(nèi)源

sudo vi /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb-src https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src https://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

2.更新軟件

sudo apt update && sudo apt upgrade

3.擴(kuò)展分區(qū)

安裝好后,默認(rèn)顯示容量是小于實(shí)際容量的,需手動(dòng)擴(kuò)展文件系統(tǒng):

sudo raspi-config
7 Advanced Options -> A1 Expand Filesystem -> Finish

4.解鎖root用戶

系統(tǒng)默認(rèn)root用戶是鎖定狀態(tài),因此如需要使用root操作,需要解鎖root:

# 重新設(shè)置root密碼
sudo passwd root
# 解鎖root賬戶
sudo passwd --unlock root

5.遠(yuǎn)程桌面連接設(shè)置

sudo apt-get purge tightvnc xrdp
sudo apt-get install tightvncserver xrdp

看完上述內(nèi)容,你們掌握Linux如何初始化環(huán)境的方法了嗎?如果還想學(xué)到更多技能或想了解更多相關(guān)內(nèi)容,歡迎關(guān)注億速云行業(yè)資訊頻道,感謝各位的閱讀!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI