树莓派进阶之路 (040) - 树莓派卸载桌面,保留命令行模式

参考:https://raspberrypi.stackexchange.com/questions/4745/how-to-uninstall-x-server-and-desktop-manager-when-running-as-headless-server

参考:https://blog.csdn.net/Blears/article/details/105214851

树莓派的BOOT分区是一个只读分区,如果只按上述的方法卸载不成功,所以需要首先执行:

sudo mount -rw -o remount /boot

然后顺序执行:

sudo apt-get install deborphan
sudo apt-get autoremove --purge libx11-.* lxde-.* raspberrypi-artwork xkb-data omxplayer penguinspuzzle sgml-base xml-core alsa-.* cifs-.* samba-.* fonts-.* desktop-* gnome-.*
sudo apt-get autoremove --purge $(deborphan)
sudo apt-get autoremove --purge
sudo apt-get autoclean

 

posted @ 2020-08-11 17:08  极客先锋  阅读(1159)  评论(0编辑  收藏  举报