2023-01-01から1年間の記事一覧

脆弱性 和訳 参考

https://jvn.jp【脆弱性レポートの読み方】〜OpenSSL脆弱性を例に〜 | 脆弱性 | CyberSecurityTIMES

ubuntu 22.04 cuda

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.htmlNvidia Driver, CUDA, cuDNN, gcc, g++のインストール(Ubuntu 22.04 on MacBookPro 15" Late 2013) - Note to Self by notekunst 2022ubuntuにCUDA、nvidiaドライバをインストール…

ubuntu 22.04 ベアメタル インストール

https://www.server-world.info/query?os=Ubuntu_22.04&p=installSoftware RAID 1 mdadmhttps://tonyfernandeztech.wordpress.com/2021/04/27/installing-ubuntu-20-04-with-software-raid-1/

memcached 1.6.6 GCC 12 (FreeBSD 13)

GCC 12 memcached.c:1434:31: error: array subscript 'protocol_binary_request_incr[0]' is partly outside array bounds of 'char[45]' [-Werror=array-bounds] 1434 | req->message.body.delta = ntohll(req->message.body.delta); workaround cd memcac…

Ansible php ソースコンパイル

Ansibleのmakeモジュールを使ってPHPをインストールしてみる - Qiita 2018

MySQL 8.0 config 更新

Update deprecated configs in my.cnf.sampleSome configs in my.cnf.sample are now deprecated. These should be replaced with their replacement, or removed if there is no replacement. Replace deprecated slave-load-tmpdir with replica-load-tmpd…

FreeBSD 12.4 sudo 1.9.14 hang

sudo-1.9.13p3 から sudo-1.9.14p3 に更新すると、特定の1台のVM (13.2-RELEASE-p1) で頻繁にsudoがハングアップするようになりました。 sudo関係のプロセスが3個動いていて、末端のプロセスSIGKILLで止めると復旧しますが、それまではSSHログインも認証後プ…

SPFBL delist 解除申請

SMTPサーバーがブロックリスト(ブラックリスト)に登録された-SPFBL編 - プログラミングや副業・フリーランスに関する情報 2020

FreeBSD rclone バージョン

FreeBSD 11.3-RELEASE-p1 + rclone v1.63.1 NG $ rclone -V runtime: kevent failed with 78 fatal error: runtime: kevent failed ... FreeBSD 11.3-RELEASE-p1 + rclone v1.46 OK $ rclone -V rclone v1.46 - os/arch: freebsd/amd64 - go version: go1.11…

ansible copy module bash スクリプトの実行中上書き動作

bash スクリプトの実行中上書き動作について 2021bash スクリプトの実行中上書き動作は ansible copy (template) module で再現しない。 本挙動が発生するかしないかは inode が変わるか変わらないがポイントとなっており、コピー前後の inode をデバッグ出…

ansible pkgng cached

Could not update catalogue [1]: Updating FreeBSD repository catalogue...→ cached: true で暫定回避https://docs.ansible.com/ansible/latest/collections/community/general/pkgng_module.html --- - pkgng: name: - curl - pv state: present cached: …

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合わせる

authorized_keys での制限

sshの公開鍵 authorized_keys ファイルの制限機能について調べてみたら楽しかった.(実行コマンド制限など) - それマグで! 2011 以下のオプションはセキュリティを向上するため推奨されますが、munin-asyncが正しく機能するためには必須ではありません。 S…

hetzner cloud

ドイツのホスティングプロバイダhetznerのpublic cloud。なぜかフィンランドにもDCがある。 hetzner cloud構成メモ - Qiita AS24940 – Hetzner Online GmbHhttps://ipinfo.io/AS24940

名前解決

resolv.confのsearchとdomainを記載していない場合、ホスト名が利用されます。 ホスト名に www.denet.co.jp という名前を利用していた場合は、denet.co.jp を所属ドメインとして名前解決してくれます。 名前解決の優先順位について調べてみた - DENET 技術ブ…

Postgres バックアップ データベース毎

#/bin/sh # PostgreSQL database backup script # Version 1.1 [Apr. 17, 2002] Add routine: deleting exipired files. # Version 1.0 [Sep. 10, 2002] First release. # Saito Hiroaki <example@example.com> # * Feature # Dump to DATABASE_NAME_YYMMDD.pgdmp. # Delete expir</example@example.com>…

nginx リダイレクト

2. 日本語を含む URL をリダイレクトする... 飛び元のURLには、パーセントエンコードされたURLは指定できません。 ... 非常に大事なのは、設定ファイルのエンコードです。 このエンコードが utf-8 であることが大事です。Nginx でリダイレクト ( rewrite ) …