Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: Ubuntu

Ubuntu 22.04.3 LTS released

Posted on 2023 年 8 月 11 日 By 日落 在〈Ubuntu 22.04.3 LTS released〉中尚無留言

看了 release announcement 主要是安全性更新和增加穩定度。

除了 Ubuntu 以外,其他 Ubuntu based 的 distribution 也一起發布更新:

  • Lubuntu
  • Ubuntu Studio
  • Ubuntu Mate
Tags:Ubuntu

phpbrew install 時使用舊版 OpenSSL

Posted on 2023 年 8 月 8 日2023 年 8 月 8 日 By 日落 在〈phpbrew install 時使用舊版 OpenSSL〉中尚無留言

phpbrew install 8.0.11 時會出現 OpenSSL 的錯誤訊息:

/home/zero/.phpbrew/build/8.0.29/ext/openssl/xp_ssl.c:1240:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1240 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from /home/zero/.phpbrew/build/8.0.29/ext/openssl/xp_ssl.c:31:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~

主要是因為舊版的 PHP 使用到的 OpenSSL 也是舊版的。

解決方法:

  • 編譯、安裝舊版 OpenSSL (v1.1)
  • 自訂 pkgconfig 來跑 phpbrew install


先下載 OpenSSL v1.1,並編譯:

cd ~/tmp/openssl-1.1.1v

# --prefix 設定為暫存路徑
./Configure --prefix=/home/zeroplex/openssl-1.1.1/ -fPIC -shared linux-x86_64
make
make install

make install 後執行檔、函式庫就會存放到 /home/zeroplex/openssl 中。


先設定要使用的 OpenSSL pkgconfig:

# 在 openssl 位置中找到 pkgconfig 的路徑
export PKG_CONFIG_PATH=/home/zeroplex/openssl/lib/pkgconfig

接下來 phpbrew 使用相同的指令即可:

phpbrew install 8.0.29 +defaults

備註:phpbrew install 7.4 也需要相同的方法

Tags:Linux, PHP, Ubuntu

apt upgrade 時不詢問

Posted on 2023 年 6 月 27 日 By 日落 在〈apt upgrade 時不詢問〉中尚無留言

原本以為使用 DEBIAN_FRONTEND=noninteractive 參數就可以:

sudo DEBIAN_FRONTEND=noninteractive apt upgrade

後來發現還有個套件叫做 needrestart,預設會在 apt upgrade 完成後詢問哪一些服務要重新啟動:

which services should be restarted

先檢查一下是否有安裝 needrestart,有的話可以看到 /etc/needrestart 目錄。

再去修改設定檔 needrestart.conf:

# Restart mode: (l)ist only, (i)nteractive or (a)utomatically.
#
# ATTENTION: If needrestart is configured to run in interactive mode but is run
# non-interactive (i.e. unattended-upgrades) it will fallback to list only mode.
#
$nrconf{restart} = 'a';

參考資料:

  • How do I ask apt-get to skip any interactive post-install configuration steps?
  • apt-get upgrade auto restart services
Tags:Linux, Ubuntu

在 UbuntuMate 22.04 安裝使用者管理工具

Posted on 2023 年 2 月 26 日2023 年 2 月 25 日 By 日落 在〈在 UbuntuMate 22.04 安裝使用者管理工具〉中尚無留言

UbuntuMate 22.04 安裝完以後,在系統管理選單中是沒有使用者管理工具的,不曉得是不是產品的定位改為單人使用的工作環境。總之有需要還是可以裝回來。

打開終端機,安裝 gnome-system-tools:

sudo apt install gnome-system-tools

參考資料:Unable to add a new user – Ubuntu MATE Community

Tags:Ubuntu

更換 UbuntuMate 22.04 登入畫面背景圖片

Posted on 2023 年 2 月 25 日2023 年 2 月 25 日 By 日落 在〈更換 UbuntuMate 22.04 登入畫面背景圖片〉中尚無留言

以下方法僅適用於 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?

Tags:Linux, Ubuntu

文章分頁

1 2 ... 10 下一頁

其他

關於我  (About me)

小額贊助

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.