先確認有安裝 php-pgsql
套件:
sudo apt install php-pgsql
安裝完套件,就可以使用 PDO 來建立連線:
$connection = new PDO( 'pgsql:host=127.0.0.1;port=5432;dbname=postgres', 'postgres', 'password' );
軟體開發、伺服器和生活瑣事
先確認有安裝 php-pgsql
套件:
sudo apt install php-pgsql
安裝完套件,就可以使用 PDO 來建立連線:
$connection = new PDO( 'pgsql:host=127.0.0.1;port=5432;dbname=postgres', 'postgres', 'password' );
UbuntuMate 22.04 安裝完以後,在系統管理選單中是沒有使用者管理工具的,不曉得是不是產品的定位改為單人使用的工作環境。總之有需要還是可以裝回來。
打開終端機,安裝 gnome-system-tools
:
sudo apt install gnome-system-tools
以下方法僅適用於 UbuntuMate 22.04,其他版本可能無法使用相同的方法修改。
開啟系統設定檔 /usr/share/glib-2.0/schemas/30_ubuntu-mate.gschema.override
,應該可以在檔案前半段找到系統預設使用的背景圖片檔 Jammy-Jellyfish_WP_4096x2304_Green.png
。
把這個設定改為自己要使用的檔案即可:
background=/home/zeroplex/圖片/login.png
修改完成以後,打開終端機,輸入以下指令:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
重新開機以後,登入畫面應該就會更新。
參考資料:How to change login screen background in Ubuntu Mate 21.04?
Local
:已安裝的程式儲存與使用者帳號相關資料的地方LocalLow
:同 Local
,但通常是受到存取受到限制時使用的路徑 (例如瀏覽器的隱私模式等)Roaming
:若使用者的資料,需要同步儲存到多個不同的主機時,資料會放在這個目錄下參考資料: