certbot 更新 letsencrypt SSL 失敗

certbot renew 出現下面的錯誤
Cert is due for renewal, auto-renewing…
Could not choose appropriate plugin: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘An authentication script must be provided with –manual-auth-hook when using the manual plugin non-interactively.’)
Attempting to renew cert (def.com-0001) from /etc/letsencrypt/renewal/def.com-0001.conf produced an unexpected error: The manual plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘An authentication script must be provided with –manual-auth-hook when using the manual plugin non-interactively.’). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/abc.com-0003/fullchain.pem (failure)
/etc/letsencrypt/live/def.com-0001/fullchain.pem (failure)

Read more

MacBuntu BigSur 老電腦變身黑蘋果

先講一下MacBuntu 是Xubuntu分支,把Mac OS 11 BigSur 的開機畫面、布景和圖標整合進來。

MacOS 就是 MacOS,MacBuntu,只是看起來像Mac OS 11 Big Sur。
我測試的MacBuntu版本(基於Xubuntu 21.04 LTS? 20.04才是LTS),載點在這裡

Read more

初測manjaro Linux 環境

Debian 遇到操作不順暢的關係,看了一下Linux 桌面環境的市佔分佈,最多的前3名都是Ubuntu,之後就是manjaro,再來就是Linux Mint。

不想再操作Ubuntu的原因是,每次改版,都有東西改變,但debian上,都是一致的,為了降低學習曲線,debian好一陣子是我的首選操作系統。

Manjaro Linux是Arch Linux延申版本,使用的是pacman管理,不是debian , ubuntu系列的dpkg管理方式。

Read more

印像中第一次安裝 webmin 失敗,卡住

系統訊息
NAME=”Ubuntu”
VERSION=”20.04.1 LTS (Focal Fossa)”
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=”Ubuntu 20.04.1 LTS”
VERSION_ID=”20.04″
HOME_URL=”https://www.ubuntu.com/”
SUPPORT_URL=”https://help.ubuntu.com/”
BUG_REPORT_URL=”https://bugs.launchpad.net/ubuntu/”
PRIVACY_POLICY_URL=”https://www.ubuntu.com/legal/terms-and-policies/privacy-policy”
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

安裝在vmware server 6.0虛似伺服器上

Read more

Linux筆電來當成工作機/伺服器 蓋上螢幕 卻休眠了

筆電拿來灌Linux,當成工作機,或是當成Servre。可以達成省電,效能夠用的效果。

把筆電灌好,設定完,要立起來用置放架垂直置放,螢幕和週邊都外接,結果一蓋上,筆電就休眠了。

以Ubuntu為例
sudo vi /etc/systemd/logind.conf
HandleLidSwitch

Read more

ubuntu 2004 LEMP Quickly Install Guide.

最近在玩容器,而且在做一些linux架構優化,一常常重灌ubuntu,就把會用到的指令記錄下來,加快處理的時間。
1.先更新
sudo apt-get update
2.安裝nginx / mysql-server / php7.4-fpm
sudo apt install nginx php7.4-fpm php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl mysql-server -y
3.設定mysql

Read more

python3 mysql connector安裝出現 mysql_config not found

在我試安裝python3 + mysql-server及Pycharm在Windows環境上,我馬上後悔,光處理相容性,就花了快一個小時,最後還是放棄回來Ubuntu Linux上來。

畢竟Linux就有預先安裝的python,只是版本可只是2.X而不是最新的python 3.x

python3 預設就有pip
mysqlconntor安裝方式如下
python3 -m pip install mysqlclient

出現下面這些錯誤訊息
/bin/sh: 1: mysql_config: not found
/bin/sh: 1: mariadb_config: not found
/bin/sh: 1: mysql_config: not found

Read more