2025年11月6日木曜日

cockpit

sudo dnf install cockpit
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --reload
https://<サーバーのIPアドレス>:9090

2025年10月29日水曜日

メモリテスト lsusb

 # dmidecode --type memory | grep -E "Speed|Configured"

Speed: 4800 MT/s

Configured Memory Speed: 4800 MT/s

Configured Voltage: 1.1 V

Speed: 4800 MT/s

Configured Memory Speed: 4800 MT/s

Configured Voltage: 1.1 V


sudo dnf install -y memtester
sudo memtester 2G 1

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0db0:0076 Micro Star International MYSTIC LIGHT 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 0e8d:0616 MediaTek Inc. Wireless_Device
Bus 003 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 003 Device 005: ID 054c:06c3 Sony Corp. RC-S380
Bus 003 Device 006: ID 214b:7250 Huasheng Electronics USB2.0 HUB
Bus 003 Device 007: ID 056e:011c Elecom Co., Ltd HUGE TrackBall
Bus 003 Device 008: ID 056e:013d Elecom Co., Ltd ELECOM OpticalMouse
Bus 003 Device 009: ID 1ea7:0066 SHARKOON Technologies GmbH [Mediatrack Edge Mini Keyboard]
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[root@rocky92 takahab]# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Internal GPP Bridge to Bus [C:A]
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Internal GPP Bridge to Bus [C:A]
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: Phison Electronics Corporation E18 PCIe4 NVMe Controller (rev 01)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Upstream Port (rev 01)
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:0c.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
03:0d.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
04:00.0 Non-Volatile memory controller: Phison Electronics Corporation PS5021-E21 PCIe4 NVMe Controller (DRAM-less) (rev 01)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
09:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Upstream Port (rev 01)
0a:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:08.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:0c.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0a:0d.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset PCIe Switch Downstream Port (rev 01)
0c:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
10:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller S4LV008[Pascal]
11:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset USB 3.2 Controller (rev 01)
12:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset SATA Controller (rev 01)
13:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset USB 3.2 Controller (rev 01)
14:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] 600 Series Chipset SATA Controller (rev 01)
15:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev c9)
15:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Radeon High Definition Audio Controller [Rembrandt/Strix]
15:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP
15:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge USB 3.1 xHCI
15:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge USB 3.1 xHCI
15:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller
16:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Raphael/Granite Ridge USB 2.0 xHCI




2025年10月27日月曜日

rtar リモートファイルコピー

#!/bin/bash
usage(){
echo "USAGE rtar get takahab@rocky88:/m2_1/xxxx"
echo " rtar put src takahab@rocky88:/m2_1/xxxx "
}
SRC_DIR=$2
DST_DIR=$2

#---------------------------------------------------------------------------
main(){
case "$1" in
"get" )
ssh takahab@rocky88 "tar czf - ${SRC_DIR}" |pv| tar xzf - -C .
;;

"put" )
tar czf - ${SRC_DIR} |pv| ssh takahab@rocky88 "tar xzf - -C ${DST_DIR}"
;;

*)
usage
;;

esac
}

main $@

$ find /m2_2/work/disk1/final_写真保存/1996-7 -type f -exec touch -t 199607010000 {} +

 ./organize.py --move --cleanup /m2_2/写真 /m2_2/dest_dir


2025年10月24日金曜日

WOL

rocky92 -> rockyi7
【rocki7 BIOS】
(1) Power On By PCI-E/PCI -> enable
(2) Onboard devices Configuration/Realtek LAN Controller -> on
(3) Onboard devices Configuration/Realtek PXE OPROM -> On
※「PME Event Wake Up」と言う項目はない。

【rockyi7側 Rocky linux9】
# nmcli c
NAME UUID TYPE DEVICE
lan000 423e4c49-31e4-4932-bdd8-9f8ffe0cd1c2 ethernet enp4s0
# ip a
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 9c:5c:8e:97:48:5f brd ff:ff:ff:ff:ff:ff

# nmcli connection modify lan000 802-3-ethernet.wake-on-lan magic
# nmcli connection up lan000
# ethtool enp4s0
Supports Wake-on: pumbg
Wake-on: g

【rocky92 側】
$ pip3 install wakeonlan
$ wakeonlan -i 192.168.1.255 9c:5c:8e:97:48:5f


   

2025年10月17日金曜日

samsung 990 Pro のファーム更新(Rocky linux9)

https://semiconductor.samsung.com/jp/consumer-storage/support/tools/

mkdir /mnt/iso
sudo mount -o loop ./Samsung_SSD_990_PRO_7B2QJXD7.iso /mnt/iso/
mkdir /tmp/fwupdate
cd /tmp/fwupdate
gzip -dc /mnt/iso/initrd | cpio -idv --no-absolute-filenames
cd root/fumagician/
sudo ./fumagician
sudo smartctl -a -s on /dev/nvme2n1 | grep "Firmware Version"
Firmware Version:                   4B2QJXD7  → 7B2QJXD7

# nvme list
Node                  Generic               SN                   Model                                    Namespace  Usage                      Format           FW Rev  
--------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
/dev/nvme0n1  /dev/ng0n1   511230612051000688  MSI M480 PRO 2TB           0x1          2.00  TB /   2.00  TB    512   B +  0 B   EIFM31.6
/dev/nvme1n1  /dev/ng1n1   511230411274000010  MSI M461 2TB                     0x1          2.00  TB /   2.00  TB    512   B +  0 B   ELFMC1.0
/dev/nvme2n1  /dev/ng2n1   S7HPNJ0Y301818H      Samsung SSD 990 PRO with Heatsink 2TB   0x1   993.64  MB /   2.00  TB  512   B +  0 B  7B2QJXD7

【SSD比較】

https://kakaku.com/prdcompare/prdcompare.aspx?pd_cmpkey=K0001673420_K0001588762_K0001559684_K0001504089_K0001546441_K0001662527&pd_ctg=0537

https://kakaku.com/prdcompare/prdcompare.aspx?pd_cmpkey=K0001673415_K0001647870_K0001673416_K0001656275_K0001712041_K0001656599_K0001656276&pd_ctg=0540&spec=101_3-1_1-1_2-1-2_4-1-2-3_9-1,107_6-1-2-3-4-5,108_12-1-2-3-4,109_13-1-2-3-4,110_14-1-2,104_8-1-2-3-4-5-6-7-8,106_10-1-2-3,103_7-1-2-3-4

https://www.microsoft.com/en-us/software-download/windows11?utm_source=chatgpt.com



2025年10月12日日曜日

Rocky10 インストール

timedatectl set-timezone Asia/Tokyo
localectl set-locale LANG=ja_JP.utf8
nmcli general hostname rocky10

TV

https://kakaku.com/prdcompare/prdcompare.aspx?pd_cmpkey=K0001624181_K0001624179_K0001689053&pd_ctg=2041