樹莓派安裝linux( ubuntu),安裝桌面

目錄

 

1、硬件準備:

2、軟件準備:

3、安裝系統:

4、進入系統,安裝桌面

把鏡像源換成國內的源

安裝桌面

5、安裝wifi驅動。


1、硬件準備:

樹莓派,內存卡,讀卡器

2、軟件準備:

SD Card Formatter

win32DiskImager

ubuntu鏡像

https://ubuntu.com/download/raspberry-pi

 記住點擊下載後不要急着退出,頁面下面有重要內容

3、安裝系統:

  1. 使用SD Card Formatter格式化內存卡(某些時候不進行這一步也行)。

  2. 用win32diskimager燒寫系統:將TF卡用讀卡器連接到電腦,選擇鏡像,TF卡,寫入,等待寫入成功。

  3. 把TF卡裝到樹莓派上,不要手殘就行,連接電源,等待開機就行,這個時候系統已經安裝好了。

  4. 根據官網提示的賬號密碼登錄,第一次登錄之後根據提示更改好密碼,密碼不能和原密碼相同,不能用簡單密碼。

4、進入系統,安裝桌面

上面安裝好的系統只是ubuntu server,進去後只有用命令行,這個時候還需要安裝桌面。

不要着急,先把鏡像源換成國內的源:

sudo vim /etc/apt/sources.list

把裏面的所有原來的源地址換成國內源,我的是將 ports.ubuntu.com換成mirrors.tuna.tsinghua.edu.cn,如下:

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports bionic-security multiverse

執行下

sudo apt update

更換鏡像源就完成了

現在可以安裝桌面了:

sudo apt install ubuntu-gnome-desktop

啓動gnome桌面服務,並確保它在啓動時運行。

sudo systemctl start gdm
sudo systemctl enable gdm

然後你就可以看到那個熟悉的ubuntu界面了。

5、安裝wifi驅動。

安裝好ubuntu server可能是沒有WiFi,需要安裝WiFi驅動。

wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi

將這個文件放到 /usr/bin 下,執行sudo install-wifi -h ,根據提示安裝wifi驅動

 

到此樹莓派安裝ubuntu就完成了,享受美好時光吧,提醒下,安裝的server沒有聲音,識別不到音頻設備,我也還沒想好怎麼處理。

歡迎轉載,標明出處

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章