2023-07-01から1ヶ月間の記事一覧

X-Authentication-Warning trusted-users

phpからメールを送るとX-Authentication-Warningヘッダがご丁寧に | 俺なんて….com ― ORENANTE.com ― ... orz 2010 sendmail.mcに以下のような記述がある場合に有効となります。 define(`confCT_FILE', `-o /etc/mail/trusted-users')sendmail設定(1)必要最…

systemd systemctl edit

ハマりそうな点について [Service]のExecStartを編集する際には、以下のようにすると既存の設定を上書きできます。 [Service] ExecStart= ExecStart=新しい設定systemdで既存のunitを編集する2つの方法 - Qiita 2015 ### Lines below this comment will be d…

GVM Report outdated / end-of-life Scan Engine

Version of installed component: 22.4.1 (Installed component: openvas-libraries on OpenVAS = 10) Latest available openvas-scanner version: 22.7.2 Reference URL(s) for the latest available version: https://forum.greenbone.net/t/greenbone-com…

FreeBSD UEFI Boot partition

手動インストール、起動パーティション復旧 Create the bootcode partition: for UEFI Boot: gpart add -a 4k -s 260M -t efi ada0 # Create a FAT32 partition newfs_msdos -F 32 -c 1 /dev/ada0p1 mount -t msdosfs -o longnames /dev/ada0p1 /mnt mkdir -…

SPF 転送

●Sender Rewriting Scheme(SRS) SPFではエンベロープの送信者を認証対象にするため、転送時にエンベロープの送信者に転送した(オリジナルの)送信者の情報を追加する。通常、UNIXシステムなどでエイリアスや.forwardの機能を使ってメールを転送すると、エ…

apache ansible ubuntu

https://www.digitalocean.com/community/tutorials/how-to-configure-apache-using-ansible-on-ubuntu-14-04a2enmod はモジュールがあるhttps://docs.ansible.com/ansible/latest/collections/community/general/apache2_module_module.htmla2enconf a2ensi…

ubuntu 22.04 + php 8.2

php 8.2 ppa:ondrej/php リポジトリを使う Run the following commands in your terminal to add Surý PPA to your system. sudo add-apt-repository ppa:ondrej/php https://computingforgeeks.com/how-to-install-php-8-2-on-ubuntu/ Ubuntu 22.04 LTSへの…

ansible timezone

--- - hosts: servers tasks: - name: Set timezone to Asia/Tokyo community.general.timezone: name: Asia/Tokyo become: true Ansibleのtimezoneモジュールでタイムゾーンを設定する | 晴耕雨読 2022

yamlfmt

https://github.com/google/yamlfmtGoogle 製 yaml フォーマッター「yamlfmt」を試してみる 2022 $ pkg search yamlfmt yamlfmt-0.9.0 Simple command line tool for formatting yaml files $ sudo pkg install yamlfmt https://github.com/google/yamlfmt/b…

Synology iperf3

問題はこちらのSynology NAS、調べてみるとCommunityレポジトリの中にある、「SynoCli Monitor Tools」パッケージの中にiPerf(iPerf2とiPerf3)が含まれているとこのと。 VPN越しにSynology NASとiPerf計測して新旧OpenWRTルータの性能比較 - Fun Scripting…

bash変数

Google Shell Style Guide から学ぶ保守性の高いシェルスクリプトの書き方|NAVITIME_Tech 2022 スペースを含む文字列を 1 つの文字列として echo コマンドに渡すには、次のようにダブルクォートで囲む必要があります。 echo で出力した文字列の中の連続する…

MySQL FLUSH PRIVILEGES

FLUSH PRIVILEGESが必要なケース ユーザ削除 一方、INSERT、UPDATE、DELETE などのステートメントを使用して、付与テーブルを直接変更する場合、サーバーを再起動するか、テーブルをリロードするようサーバーに指示するまで、変更内容は権限チェックに影響し…

asterisk ひかり電話 直接接続 直収

sip.conf register => 048xxxxxxx:@ntt-east.ne.jp/048xxxxxxx ;NTTのひかり電話網へ接続する設定 [ntt] type=peer host=118.177.125.1 ... ひかり電話のサブ番号での発着信をasteriskで実施する話 - Qiita 2021 pjsip.conf NTT光ネクストのひかり電話へAste…

別筐体で起動

Forien config読み込み BIOS UEFI合わせる