rasberry install ubuntu note

1. flash ubuntu to SD

2. add wifi net 

  check hardware 

    

sudo lshw -C network

  

  sudo vi /etc/netplan/50-cloud-init.yaml

  edit as 

    

network:
    wifis:
        wlan0:
            dhcp4: true
            access-points:
                "wifi_name":
                    password: "wifipassword"        
    version : 2

  sudo netplan try

  sudo netplan apply  

 

3. replace apt source 

  cd /etc/apt

  cp sources.list sources.list.bak

  sudo -i 's/ports.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' sources.list 

4. apt update 

  sudo apt update 

  

5. install xfce4 

https://www.cnblogs.com/redke/p/16614548.html

 

sudo apt install xfce4 xfce4-goodies --no-install-recommends

sudo apt install xinit

sudo shutdown -h now

此时 进入桌面大概率会有问题,eg 图标不正常,需要卸载重新安装

sudo apt purge xfce4

sudo apt install xfce4

sudo reboot

startx

 

未开启图形时, free -h    =>  used 105M

开启后 free -h   =>  used  256M 

 

6. add swapfile 

sudo passwd

https://blog.csdn.net/qq_47029353/article/details/123430652

https://blog.51cto.com/defonds/5782405

posted @ 2023-01-19 21:42  方豆  阅读(17)  评论(0编辑  收藏  举报