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

sudo認証 pam_ssh_agent_auth ssh-agent

sudoをパスワードレス認証で使いたい | IIJ Engineers Blog 2025 /etc/sudoers Defaults env_keep += "SSH_AUTH_SOCK"の追加が必要だった。ssh接続してるんだから、sudo認証にパスワードではなくssh公開鍵認証を使う #Linux - Qiita 2021サーバ sudo dnf ins…

PgBouncer ソースコンパイル

https://www.pgbouncer.orghttps://www.pgbouncer.org/install.html Hint: I have no idea if the installation step for Pandoc is needed or not. If you get errors with Pandoc, don’t pull pgbouncer from Git, but download a release from https://gi…

recvspace RWIN

デフォルト (FreeBSD 12.1, 14.3)kern.ipc.maxsockbuf: 2097152 net.inet.tcp.rfc1323: 1 net.inet.tcp.sendspace: 32768 net.inet.tcp.recvspace: 6553665536 64Kx8kern.ipc.maxsockbuf=16777216 net.inet.tcp.sendspace=262144 net.inet.tcp.recvspace=524…

Synology DSM 7.3 サードパーティ HDD

https://kb.synology.com/ja-jp/DSM/tutorial/Drive_compatibility_policies UPDATE 7 Oct 2025DSM 7.3 has removed the many of the restrictions that were in DSM 7.2.2 for 2025 Plus models.See https://kb.synology.com/en-global/DSM/tutorial/Drive_…

smartctl megaraid

PD 物理ディスクとの対応 man smartctl ... megaraid,N - [Linux only] the device consists of one or more SCSI/SAS disks connected to a MegaRAID controller. The non-negative integer N (in the range of 0 to 127 inclusive) denotes which disk on …

bhyve Debian 13 Trixie

https://forums.freebsd.org/threads/debian-13-0-0-guest-via-bhyve-unable-to-get-grub-working.98915/grubで起動しない → uefi /zroot/vm/debian13-test/debian13-test.conf loader="uefi"vm iso https://cdimage.debian.org/debian-cd/current/amd64/iso…

mdrv= パラメータ

.htaccess RewriteEngine On RewriteCond %{QUERY_STRING} ^mdrv= RewriteRule ^ - [F,L]https://stackoverflow.com/questions/71386719/block-visits-that-uses-a-strange-parameter-mdrv This request illustrates a client accessing the specified IP ad…

Googleフォト Amazon Photos

GoogleフォトからAmazon Photosへ – 写真移行とデータ削除の全手順 - ビューローみかみ 2025Amazon Photos 上で写真を削除しても端末の写真が削除されない

Googleスプレッドシート セルへの日本語入力 確定とともに勝手に改行

そうなってくると、現状では Safariとスプレットシート間の問題になってきますね。 たしかに Safari では日本語を確定すると、セル内で改行されますね。 でも実際には改行されない状況になります。こちらを改善するためには、次の操作をしてください。 ただ…

lsyncd exclude

rsyncの除外パターンをモデルとしてるが簡易版 Exclusion rules are modeled after rsync’s exclusion patterns but are a bit simpler. Lsyncd supports these features: Generally if any segment of the pathname (see below Layer 3) of an event matche…

ContactFinderBot

13.221.221.88 - - [22/Nov/2025:20:19:01 +0900] "HEAD /inquiry/inquiry.php HTTP/1.1" 404 231 "-" "ContactFinderBot/1.0 (+https://karitoru.example)" 1948651 contact フォーム UA偽装もする

Synology 電源ユニット故障

https://www.reddit.com/r/synology/comments/1ju91h3/a_blinking_blue_power_light_on_a_synology_nas/ To try, remove the drives. Does it start then ? If yes, it seems the power supply is in fact dying. Usually they die slowly, and initially ca…

Synology LED status 緑点滅

Synology’s help page (as of November 21, 2022) tells us that STATUS: Blinking Green means one of three things: No drive installed, or DSM not installed, or ‘Configuration lost’ https://www.minmaxgeek.com/blog/synology-blinking-status https…

apache リダイレクト /.well-known/ 除外

apache 2.4 <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteRule ^\.well\-known/ - [END] RewriteCond %{HTTP_HOST} ^example.com RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] </IfModule>https://stackoverflow.com/questions/38790421/letsencrypt-with-htac…

freebsd rsyslog 導入

FreeBSD 14.3syslog を rsyslog に切替える pkg install rsyslog service syslogd stop service syslogd disable service rsyslogd enable service rsyslogd start ログ転送設定 mkdir var/spool/rsyslog/ vi /usr/local/etc/rsyslog.d/10-remotelog.conf gl…

WHOIS 後継 RDAP

一部のドメインにおいてWHOISはもうオワコン?ICANN公式のRDAPコマンドラインツールを導入してみた話 - TPDN Blog 2025https://github.com/icann/icann-rdap $ sudo pkg install rdap $ rdap yahoo.com Domain: Domain Name: YAHOO.COM Handle: 3643624_DOMA…

bind ログ logging

BIND Logging - some basic recommendations named9デーモンのデフォルト・ロギングに使用される4つの定義済みチャンネルは、以下の通りである。 channel "default_syslog" { syslog daemon; // send to syslog's daemon // facility severity info; // only…

nagios check_dns check_dig

https://github.com/nagios-plugins/nagios-pluginsFreeBSD pkg は check_dig が入るhttps://www.freshports.org/net-mgmt/nagios-plugins/ Examples: check_dig -H DNSSERVER -l www.example.com -A "+tcp" This will send a tcp query to DNSSERVER for ww…

nagios monitoring-plugin-check_domain FreeBSD

https://github.com/glensc/monitoring-plugin-check_domainhttps://raw.githubusercontent.com/glensc/monitoring-plugin-check_domain/refs/heads/master/check_domain.shGNU getopt GNU date (gdate) が必要 sudo pkg install getopt sudo pkg install co…

U3HC-A424P10

USB3.1 Gen2 USB Type-Cコネクタ搭載USBハブ(USB PD対応) - U3HC-A424P10BKUSB3.1 Hub 製品ID: 0x0822 製造元ID: 0x2109 (VIA Labs, Inc.) バージョン: 6.94 シリアル番号: 000000001 速度: 最高10 Gb/秒 製造元: VIA Labs, Inc.温かい70Wアダプタ → 60W

error in rsync protocol data stream

rsync -av ... rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(468) [sender=2.6.8] rsync -av --protocol=26 ...https://serverfault.com/questions/4350…

needs-restarting

dnfアップデート後って必ず再起動必要なの? 2024 dnf install yum-utils needs-restarting needs-restarting -s needs-restarting -r

AlmaLinux9 OpenSSL version mismatch

Red Hat Enterprise Linux(RHEL) 9.5 にて、opensslが 3.0.x から 3.2.x にリベースされています。Red Hat Enterprise Linux 9.5 リリースノート >> 4.2. セキュリティーRHEL 9.0から9.4まで提供されていたopenssl 3.0.x ライブラリを利用したまま、 RHEL 9.…

AlmaLinux 9 php 8.0 php 8.4 アップデート

AlmaLinux 9.5でLaravel環境を構築|PHP設定からプロジェクト作成まで | 白々さじきのテックブログ 2025 確認 $ dnf list installed | grep php インストールコマンド作成 $ dnf list installed | grep php | awk '{print $1}' | sed 's/\.x86_64//' | tr '\…

ceph OSD 永続削除

osd.2 の例ストレージクラスターから OSD を削除します。 ceph osd out OSD_ID $ ceph osd out 2 osd.2 is already out. CRUSH マップから OSD を削除します。 ceph osd crush remove osd.OSD_ID $ ceph osd crush remove osd.2 removed item id 2 name 'osd…

PERC battery

h710p https://www.youtube.com/watch?v=AjQGcPeTQ3khttps://www.japanbattery.jp/dell-batteries/dell-perc-h710p-battery.htmhttps://www.japanbattery.jp/ https://www.aolstecell.com/https://www.ultragreenbattery.com/product/ugb-new-70k80-battery-…

MySQL 一時テーブル 制限

これらの条件を満たす場合、一時テーブルが強制的にディスク上に作成される場合があるようです。 この制限には明確な理由があり、それは MEMORY ストレージエンジンの特性によるものです。MySQL :: MySQL 5.6 リファレンスマニュアル :: 15.3 MEMORY ストレ…

php session_start() レスポンスヘッダ Expires Cache-Control Pragma

PHPのsessionでセットされるレスポンスヘッダー #PHP - Qiita 注意: この関数は、設定によって複数の HTTP ヘッダを送信します。 これらのヘッダをカスタマイズするには session_cache_limiter() を参照ください。 https://www.php.net/manual/ja/function.s…

cookie secure httponly php

https://fair-communications.net/vulnerability-scan-service/alerts/cookie-without-secure-flagCookieのSecure属性を有効にしましょうという話 2024php.ini session.cookie_secure = 1 session.cookie_httponly = 1 Set-Cookie: PHPSESSID=b673a778c7c4a4…

apache SSLSessionCache

Init: Session Cache is not configured [hint: SSLSessionCache]https://cwiki.apache.org/confluence/display/httpd/SSLSessionCacheSSLSessionCache "shmcb:/var/run/ssl_scache(512000)"ssl-config.mozilla.org で SSLSessionCache が出力されなくなった…