Archive for the ‘Serverの構築と運用覚書き’ Category



conda を update したらcommand promptが表示されなくなった

Thursday, October 6th, 2022

conda を最新のversionに更新したら command promptが表示されなくなっていた。

障害のおきたconda のversion は 22.9.0。現時点で最新のversionだ。

Googleで該当する問題についての記述をみつけた。該当記事は、「conda 22.9.0 breaks bash command prompt #1185

解決方法は、

conda init bash

を実行し、shellを再起動。



AlmaLinux の更新(ver.8.4 => 8.6)

Thursday, September 1st, 2022

我が自宅サーバで活用しているLinux OS、AlmaLinux8 を ver.8.4 から ver.8.6 に更新した。

更新は、下記コマンドにより行なった。

[root@server02 ~]#  dnf update -y

更新作業終了後、system を rebootし、version を確認した。

[root@server02 ~]# reboot

[root@server02 ~]# cat /etc/redhat-release
AlmaLinux release 8.6 (Sky Tiger)

なお、AlmaLinuxのMajor Version 9.0がリリースされているが、今回は、これへの更新は行っていない。
クリーンインストールするかどうか、検討中。
  
参考サイト:

AlmaLinux Wiki

 



LetsEncrypt SSL証明書の更新(2022/08/31実施)

Wednesday, August 31st, 2022

LetsEncrypt SSL証明書を更新した。

前回、前々回の更新と同様、ディレクトリ /etc/letsencryptを削除後、新たにletsencryptを作成する手順で更新。

新規作成後、httpd を再起動。その後、証明書の有効期間を確認。

更新後の証明書有効期間は:
         2022/08/31/ から 2022/11/29



LetsEncrypt SSL証明書の更新(2022/06/14実施)

Tuesday, June 14th, 2022

単なる更新履歴。

LetsEncriptにはお世話になっているが、SSL証明書の更新期限が3か月であることが大変。

前回更新したのが4月1日だったので6月までには更新する必要ある。

スクリプトを書いて自動更新できればいいと思うが、wild card の照明書を用いているので、更新ごとにDNSレコードの書き換えをマニュアルで行なっている。

結果、システム維持には、煩雑な更新作業が3か月ごとに必要。

更新の手順は前回と全く同じ。



LetsEncrypt SSL証明書の更新(2022/04/01実施)

Saturday, April 2nd, 2022

LetsEncrypt SSL証明書を更新した。

前回、前々回の更新と同様、ディレクトリ /etc/letsencryptを削除後、新たにletsencryptを作成する手順で更新。

新規作成後、httpd を再起動。その後、証明書の有効期限を確認。

以下、更新時ログ:

[root@server02 etc]# certbot certonly --manual
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): *****@yamasnet.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): *.yamasnet.com
Requesting a certificate for *.yamasnet.com

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:

_acme-challenge.yamasnet.com.

with the following value:

*******************************************

Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.yamasnet.com.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/yamasnet.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/yamasnet.com/privkey.pem
This certificate expires on 2022-06-30.
These files will be updated when the certificate renews.

NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[root@server02 etc]# systemctl restart httpd