參考網址:https://blog.csdn.net/qq_19338977/article/details/108066246
ubuntu-22.04.2-preinstalled-server-armhf+raspi.img apt install net-tools apt install nmap adduser pi 讓pi也可以無密碼sudo /etc/sudoers.d/90-cloud-init-users 加入 pi apt install lubuntu-desktop apt install lightdm reboot 後會自動進入圖形介面 改hostname /etc/hostname reboot才能生效 ===anydesk wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add - echo deb http://deb.anydesk.com/ all main | sudo tee /etc/apt/sources.list.d/anydesk-stable.list apt update apt install anydesk Note: If after installing AnyDesk is not running or you get an error: While loading shared libraries: libpangox-1.0.so.0: cannot open shared object file: No such file or directory wget http://ftp.us.debian.org/debian/pool/main/p/pangox-compat/libpangox-1.0-0_0.0.2-5.1_amd64.deb apt install ./libpangox-1.0-0_0.0.2-5.1_amd64.deb Authorization required, but no authorization protocol specified service anydesk status 有這個錯誤 failed to open vchiq instance usermod -a -G video root usermod -a -G video pi ===LAMP server tasksel的選項變少了,只有web server 找不到 LAMP server 改用 apt install apache2 php-mysql libapache2-mod-php mysql-server php8.1 mysql mysql ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; FLUSH PRIVILEGES; php網頁程式出現The server requested authentication method unknown to the client https://blog.csdn.net/youcijibi/article/details/81153789 vi /etc/mysql/my.cnf加入 [mysqld] default_authentication_plugin=mysql_native_password 安裝php5.6 http://dchesmis.blogspot.tw/2016/09/ubunt-1604php5x.html sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php5.6 sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-gd php5.6-curl php5.6-zip sudo php -v http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/ 從 php8.1 切換到 php5.6: sudo a2dismod php8.1 ; sudo a2enmod php5.6 ; sudo service apache2 restart CLI: sudo update-alternatives –set php /usr/bin/php5.6 因要降級安裝php 所以phpmyadmin用下載的(不用apt 安裝) v4.9.11 apt install firefox apt install filezilla
終於搞定,但因效能太差,無法接受。