Solaris{ ssh server{ -- setting server 1. Please check the sshd configuration file /etc/ssh/sshd_config and make sure PermitRootLogin is set to yes as shown below. # vi /etc/ssh/sshd_config PermitRootLogin yes 2. Once you have modified the file to have the parameter, restart the ssh service for the changes to take effect. svcadm restart ssh 3. If the parameter AllowUsers is set as well, it is necessary to add user “root” to the list of AllowUsers list as shown below. # vi /etc/ssh/sshd_config AllowUsers user01 user02 root -- search error ##Run svcs -xv to get the log file location for the service that's failing. svcs -xv } } CentOS upgrade g++{ # Scientific Linux Cern 6 repository to install gcc 4.9 and g++ 4.9 # https://superuser.com/questions/834862/how-to-install-g-4-9-2-in-cent-os-6-5 cd /etc/yum.repos.d wget http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo yum -y --nogpgcheck install devtoolset-3-gcc devtoolset-3-gcc-c++ scl enable devtoolset-3 bash ## auto enable echo 'source /opt/rh/devtoolset-3/enable' >> /etc/profile.d/devtools } CentOS cmake 3.8.2{ wget https://cmake.org/files/v3.8/cmake-3.8.2.tar.gz ↓ tar xvf cmake-3.8.2.tar.gz cd cmake-3.8.2 ↓ ./bootstrap && make && sudo make install } CentOS GNU Make 3.8.2{ wget http://ftp.gnu.org/gnu/make/make-3.82.tar.gz tar xvf make-3.82.tar.gz cd make-3.82/ ./configure make sudo make install } CentOS meson install { wget http://ftp.gnu.org/gnu/make/make-3.82.tar.gz tar xvf make-3.82.tar.gz cd make-3.82/ ./configure make sudo make install } CentOS 7{ sudo systemctl set-default graphical.target sudo systemctl set-default multi-user.target # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm yum install vlc } CentOS { command { cd /var/cache/ dnf list installed // CentOS 8 或更新版本 yum list installed // CentOS 7 或更早版本 ------------------------- cd /media/mirrors/centos/8/NasServer/x86_64/os rm -rf repodata createrepo ./ ------------------------- for mktemp(for hp-ux test) yum install coreutils yumdownloader --source coreutils rpm2cpio coreutils-8.30-12.el8.src.rpm | cpio -idmv ## yum groupinstall "Development Tools" ./configure make sudo make install } } debian9{ useradd -s /bin/bash -d /home/kk kk -m passwd kk kkk123 kkk123 apt install -y nfs-common apt-get install lvm2 usermod -aG sudo jin apt-get install -y net-tools sudo apt-get install -y qemu qemu-user-static binfmt-support mkdir -p /media/netdir service rpcbind start mount -v nas-27-59-FD:/data/tmp /media/netdir debianmeetingresume201503-presentation-iwamatsu.pdf chroot . bin/bash } make img file{ make SD Card{ # add suer setting , local setting, keybord setting to [2019-09-26-raspbian-buster.img] dd bs=16M if=2019-09-26-raspbian-buster_jin.img of=/dev/sda status=progress && sync # using raspi-tftp-dhcp-dns.js(make_raspi_tftp) add dhcp,dns,tftp service to [2019-09-26-raspbian-buster_jin.img] dd bs=16M if=raspberry0_srerver_min.img of=/dev/sda status=progress && sync # using raspi-tftp-dhcp-dns.js(make_system_disk) make /mnt/DISK1/SYSTEM/sys . } Raspberry pi img file{ fdisk -lu 2017-07-05-raspbian-jessie_compile-armel.img { Disk 2017-07-05-raspbian-jessie_compile-armel.img: 4.3 GiB, 4661483520 bytes, 9104460 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x970b8044 Device Boot Start End Sectors Size Id Type 2017-07-05-raspbian-jessie_compile-armel.img1 8192 93596 85405 41.7M c W95 FAT32 (LBA) 2017-07-05-raspbian-jessie_compile-armel.img2 94208 9104459 9010252 4.3G 83 Linux } dd if=/dev/zero bs=4M count=1024 >> 2017-07-05-raspbian-jessie_compile-armel.img losetup -f -P --show 2017-07-05-raspbian-jessie_compile-armel.img { /dev/loop0 losetup: 2017-07-05-raspbian-jessie_compile-armel.img: Warning: file does not fit into a 512-byte sector; the end of the file will be ignored. } sudo parted /dev/loop0 { sudo: unable to resolve host raspberrypi48: No address associated with hostname GNU Parted 3.2 Using /dev/loop0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 8956MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4194kB 47.9MB 43.7MB primary fat32 lba 2 48.2MB 4661MB 4613MB primary ext4 (parted) rm 2 (parted) mkpart primary 48.2 8956 (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 8956MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4194kB 47.9MB 43.7MB primary fat32 lba 2 48.2MB 8956MB 8908MB primary lba (parted) q Information: You may need to update /etc/fstab. } e2fsck -f /dev/loop0p2 { e2fsck 1.44.5 (15-Dec-2018) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/loop0p2: 127734/281680 files (0.1% non-contiguous), 1011611/1126281 blocks root@raspberrypi48:/media/netdir/raspbrreyPi/mnt_runimg# } resize2fs /dev/loop0p2 { resize2fs 1.44.5 (15-Dec-2018) Resizing the filesystem on /dev/loop0p2 to 2174720 (4k) blocks. The filesystem on /dev/loop0p2 is now 2174720 (4k) blocks long. } sudo parted /dev/loop0 { sudo: unable to resolve host raspberrypi48: No address associated with hostname GNU Parted 3.2 Using /dev/loop0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 8956MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4194kB 47.9MB 43.7MB primary fat32 lba 2 48.2MB 8956MB 8908MB primary ext4 (parted) q } losetup -d /dev/loop0 sudo apt-get install g++-arm-linux-gnueabi sudo apt-get install g++-arm-linux-gnueabihf } Raspberry pi img file(2024-07-04-raspios-bookworm-arm64_jin.img){ dd if=/dev/zero bs=4M count=1024 >> 2024-07-04-raspios-bookworm-arm64_jin.img{ 1024+0 records in 1024+0 records out 4294967296 bytes (4.3 GB, 4.0 GiB) copied, 79.5961 s, 54.0 MB/s } [root@h97archx64d3 mnt_runimg]# losetup -f -P --show 2024-07-04-raspios-bookworm-arm64_jin.img { /dev/loop0 } [root@h97archx64d3 mnt_runimg]# parted /dev/loop0 { GNU Parted 3.6 Using /dev/loop0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) unit MB (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 10377MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4.19MB 541MB 537MB primary fat32 lba 2 541MB 6082MB 5541MB primary ext4 (parted) rm 2 (parted) mkpart primary 541 10377 (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 10377MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4.19MB 541MB 537MB primary fat32 lba 2 541MB 10377MB 9836MB primary (parted) (parted) q Information: You may need to update /etc/fstab. } [root@h97archx64d3 mnt_runimg]# e2fsck -f /dev/loop0p2 { e2fsck 1.47.0 (5-Feb-2023) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information rootfs: 144680/338688 files (0.1% non-contiguous), 1149853/1352704 blocks } [root@h97archx64d3 mnt_runimg]# resize2fs /dev/loop0p2 { resize2fs 1.47.0 (5-Feb-2023) Resizing the filesystem on /dev/loop0p2 to 2401280 (4k) blocks. The filesystem on /dev/loop0p2 is now 2401280 (4k) blocks long. } [root@h97archx64d3 mnt_runimg]# parted /dev/loop0 { GNU Parted 3.6 Using /dev/loop0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) unit MB (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 10377MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4.19MB 541MB 537MB primary fat32 lba 2 541MB 10377MB 9836MB primary ext4 (parted) q } losetup -d /dev/loop0 } debian img file(SD card){ root@raspberrypi48:/media/netdir/raspbrreyPi/mnt_runimg# dmesg | tail -5 { [ 9495.900968] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 9495.913128] sda: sda1 sda2 [ 9495.917069] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 9495.932532] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 9496.583647] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) } sudo dd if=/dev/zero of=/dev/sda bs=1M count=1 fdisk /dev/sda { Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x2b1073d6. Command (m for help): o Created a new DOS disklabel with disk identifier 0xcad0e3be. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-15523839, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15523839, default 15523839): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-15523839, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-15523839, default 15523839): Created a new partition 2 of type 'Linux' and of size 7.4 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. } sudo mkfs.msdos /dev/sda1 { sudo: unable to resolve host raspberrypi48: No address associated with hostname mkfs.fat 4.1 (2017-01-24) } sudo mkfs.ext4 /dev/sda2 { sudo: unable to resolve host raspberrypi48: No address associated with hostname mke2fs 1.44.5 (15-Dec-2018) /dev/sda2 contains a ext4 file system created on Wed Jan 1 03:16:35 2020 Proceed anyway? (y,N) y Creating filesystem with 1932032 4k blocks and 483328 inodes Filesystem UUID: af95f0c1-9678-4e26-9d7a-407558437b50 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: debian_armel done } mkdir /tmp/boot /tmp/rootfs sudo mount /dev/sda1 /tmp/boot sudo mount /dev/sda2 /tmp/rootfs #apt-key adv --recv-keys --keyserver hkp://p80.pool.sks-keyservers.net:80 9D6D8F6BC857C906 #apt-key adv --recv-keys --keyserver hkp://p80.pool.sks-keyservers.net:80 AA8E81B4331F7F50 #apt-key fingerprint oprate on readynas cdebootstrap /tmp/rootfs --arch=armel -f build --foreign jessie sudo cdebootstrap --arch=armel -f standard --foreign jessie --include=openssh-server,ntp,ca-certificates,vim /tmp/rootfs sudo curl -o /tmp/rootfs/usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update sudo chmod +x /tmp/rootfs/usr/bin/rpi-update sudo mkdir /tmp/rootfs/lib/modules sudo ROOT_PATH=/tmp/rootfs BOOT_PATH=/tmp/boot /tmp/rootfs/usr/bin/rpi-update cat fstab { proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 0 /dev/mmcblk0p2 / ext4 defaults,noatime 0 0 } } debian img file2(SD card){ root@raspberrypi48:/media/netdir/raspbrreyPi/mnt_runimg# dmesg | tail -5 { [ 9495.900968] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 9495.913128] sda: sda1 sda2 [ 9495.917069] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 9495.932532] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 9496.583647] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) } sudo dd if=/dev/zero of=/dev/sda bs=1M count=1 fdisk /dev/sda { Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x2b1073d6. Command (m for help): o Created a new DOS disklabel with disk identifier 0xcad0e3be. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-15523839, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15523839, default 15523839): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-15523839, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-15523839, default 15523839): Created a new partition 2 of type 'Linux' and of size 7.4 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. } sudo mkfs.msdos /dev/sda1 { sudo: unable to resolve host raspberrypi48: No address associated with hostname mkfs.fat 4.1 (2017-01-24) } sudo mkfs.ext4 /dev/sda2 { sudo: unable to resolve host raspberrypi48: No address associated with hostname mke2fs 1.44.5 (15-Dec-2018) /dev/sda2 contains a ext4 file system created on Wed Jan 1 03:16:35 2020 Proceed anyway? (y,N) y Creating filesystem with 1932032 4k blocks and 483328 inodes Filesystem UUID: af95f0c1-9678-4e26-9d7a-407558437b50 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: debian_armel done } mkdir /tmp/boot /tmp/rootfs sudo mount /dev/sda1 /tmp/boot sudo mount /dev/sda2 /tmp/rootfs #apt-key adv --recv-keys --keyserver hkp://p80.pool.sks-keyservers.net:80 9D6D8F6BC857C906 #apt-key adv --recv-keys --keyserver hkp://p80.pool.sks-keyservers.net:80 AA8E81B4331F7F50 #apt-key fingerprint oprate on readynas debootstrap --arch armel jessie /tmp/rootfs http://ftp.jp.debian.org/debian/ cd /tmp/rootfs mount --bind /dev dev/ mount --bind /sys sys/ mount --bind /proc proc/ mount --bind /dev/pts dev/pts chroot . bin/bash } debian img file3(IMG){ root@raspberrypi48:/mnt/runimg# dd if=/dev/zero bs=8M count=1024 >armel_debian_setup_test.img 1024+0 records in 1024+0 records out 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 101.707 s, 84.5 MB/s root@raspberrypi48:/mnt/runimg# root@raspberrypi48:/mnt/runimg# ls -l { total 37187112 -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 22:50 2012-07-15-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 00:08 2013-02-09-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 2962227200 Dec 20 23:26 2013-12-20-wheezy-raspbian.img -rwx------+ 1 99 99 8956451117 Jan 8 23:31 2017-07-05-raspbian-jessie_compile-armel.img -rwxrwxrwx+ 1 99 99 4555014144 Jan 7 22:32 2019-04-08-raspbian-stretch_chroot.img -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Jan 2 10:18 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 30 09:55 2019-04-08-raspbian-stretch-make-old.img -rw-rw-rw-+ 1 99 99 8589934592 Jan 11 23:43 armel_debian_setup_test.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-rw-rw-+ 1 99 99 2173698048 Jan 8 23:25 readynas_compile_tool.img } root@raspberrypi48:/mnt/runimg# losetup -f -P --show armel_debian_setup_test.img /dev/loop0 root@raspberrypi48:/mnt/runimg# fdisk /dev/loop0 { Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x507c6446. Command (m for help): o Created a new DOS disklabel with disk identifier 0xaf5fd7cb. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-16777215, default 16777215): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-16777215, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-16777215, default 16777215): Created a new partition 2 of type 'Linux' and of size 8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. root@raspberrypi48:/mnt/runimg# } root@raspberrypi48:/mnt/runimg# sudo mkfs.msdos /dev/loop0p1 mkfs.fat 4.1 (2017-01-24) root@raspberrypi48:/mnt/runimg# root@raspberrypi48:/mnt/runimg# root@raspberrypi48:/mnt/runimg# sudo mkfs.ext4 /dev/loop0p2 mke2fs 1.44.5 (15-Dec-2018) Creating filesystem with 2088704 4k blocks and 522240 inodes Filesystem UUID: 7c187600-e532-467c-b570-e03b681a4d50 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done root@raspberrypi48:/mnt/runimg# mkdir /tmp/boot /tmp/rootfs root@raspberrypi48:/mnt/runimg# sudo mount /dev/loop0p1 /tmp/boot root@raspberrypi48:/mnt/runimg# sudo mount /dev/loop0p2 /tmp/rootfs root@raspberrypi48:/mnt/runimg# debootstrap --arch armel jessie /tmp/rootfs http://ftp.jp.debian.org/debian/ { I: Target architecture can be executed W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg I: Retrieving InRelease I: Retrieving Release I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://ftp.jp.debian.org/debian... I: Retrieving acl 2.2.52-2 I: Validating acl 2.2.52-2 I: Retrieving libacl1 2.2.52-2 I: Validating libacl1 2.2.52-2 I: Retrieving adduser 3.113+nmu3 I: Validating adduser 3.113+nmu3 I: Retrieving apt 1.0.9.8.4 I: Validating apt 1.0.9.8.4 I: Retrieving apt-utils 1.0.9.8.4 I: Validating apt-utils 1.0.9.8.4 I: Retrieving libapt-inst1.5 1.0.9.8.4 I: Validating libapt-inst1.5 1.0.9.8.4 I: Retrieving libapt-pkg4.12 1.0.9.8.4 I: Validating libapt-pkg4.12 1.0.9.8.4 I: Retrieving libattr1 1:2.4.47-2 I: Validating libattr1 1:2.4.47-2 I: Retrieving libaudit-common 1:2.4-1 I: Validating libaudit-common 1:2.4-1 I: Retrieving libaudit1 1:2.4-1+b1 I: Validating libaudit1 1:2.4-1+b1 I: Retrieving base-files 8+deb8u11 I: Validating base-files 8+deb8u11 I: Retrieving base-passwd 3.5.37 I: Validating base-passwd 3.5.37 I: Retrieving bash 4.3-11+deb8u1 I: Validating bash 4.3-11+deb8u1 I: Retrieving libdns-export100 1:9.9.5.dfsg-9+deb8u15 I: Validating libdns-export100 1:9.9.5.dfsg-9+deb8u15 I: Retrieving libirs-export91 1:9.9.5.dfsg-9+deb8u15 I: Validating libirs-export91 1:9.9.5.dfsg-9+deb8u15 I: Retrieving libisc-export95 1:9.9.5.dfsg-9+deb8u15 I: Validating libisc-export95 1:9.9.5.dfsg-9+deb8u15 I: Retrieving libisccfg-export90 1:9.9.5.dfsg-9+deb8u15 I: Validating libisccfg-export90 1:9.9.5.dfsg-9+deb8u15 I: Retrieving libboost-iostreams1.55.0 1.55.0+dfsg-3 I: Validating libboost-iostreams1.55.0 1.55.0+dfsg-3 I: Retrieving bsdmainutils 9.0.6 I: Validating bsdmainutils 9.0.6 I: Retrieving libbz2-1.0 1.0.6-7+b3 I: Validating libbz2-1.0 1.0.6-7+b3 I: Retrieving libdebconfclient0 0.192 I: Validating libdebconfclient0 0.192 I: Retrieving coreutils 8.23-4 I: Validating coreutils 8.23-4 I: Retrieving cpio 2.11+dfsg-4.1+deb8u1 I: Validating cpio 2.11+dfsg-4.1+deb8u1 I: Retrieving cron 3.0pl1-127+deb8u1 I: Validating cron 3.0pl1-127+deb8u1 I: Retrieving libcryptsetup4 2:1.6.6-5 I: Validating libcryptsetup4 2:1.6.6-5 I: Retrieving dash 0.5.7-4+b1 I: Validating dash 0.5.7-4+b1 I: Retrieving libdb5.3 5.3.28-9+deb8u1 I: Validating libdb5.3 5.3.28-9+deb8u1 I: Retrieving debconf 1.5.56+deb8u1 I: Validating debconf 1.5.56+deb8u1 I: Retrieving debconf-i18n 1.5.56+deb8u1 I: Validating debconf-i18n 1.5.56+deb8u1 I: Retrieving debian-archive-keyring 2017.5~deb8u1 I: Validating debian-archive-keyring 2017.5~deb8u1 I: Retrieving debianutils 4.4+b1 I: Validating debianutils 4.4+b1 I: Retrieving diffutils 1:3.3-1+b1 I: Validating diffutils 1:3.3-1+b1 I: Retrieving dpkg 1.17.27 I: Validating dpkg 1.17.27 I: Retrieving e2fslibs 1.42.12-2+b1 I: Validating e2fslibs 1.42.12-2+b1 I: Retrieving e2fsprogs 1.42.12-2+b1 I: Validating e2fsprogs 1.42.12-2+b1 I: Retrieving libcomerr2 1.42.12-2+b1 I: Validating libcomerr2 1.42.12-2+b1 I: Retrieving libss2 1.42.12-2+b1 I: Validating libss2 1.42.12-2+b1 I: Retrieving findutils 4.4.2-9+b1 I: Validating findutils 4.4.2-9+b1 I: Retrieving gcc-4.8-base 4.8.4-1 I: Validating gcc-4.8-base 4.8.4-1 I: Retrieving gcc-4.9-base 4.9.2-10+deb8u1 I: Validating gcc-4.9-base 4.9.2-10+deb8u1 I: Retrieving libgcc1 1:4.9.2-10+deb8u1 I: Validating libgcc1 1:4.9.2-10+deb8u1 I: Retrieving libstdc++6 4.9.2-10+deb8u1 I: Validating libstdc++6 4.9.2-10+deb8u1 I: Retrieving libgdbm3 1.8.3-13.1 I: Validating libgdbm3 1.8.3-13.1 I: Retrieving libc-bin 2.19-18+deb8u10 I: Validating libc-bin 2.19-18+deb8u10 I: Retrieving libc6 2.19-18+deb8u10 I: Validating libc6 2.19-18+deb8u10 I: Retrieving multiarch-support 2.19-18+deb8u10 I: Validating multiarch-support 2.19-18+deb8u10 I: Retrieving libgmp10 2:6.0.0+dfsg-6 I: Validating libgmp10 2:6.0.0+dfsg-6 I: Retrieving gnupg 1.4.18-7+deb8u5 I: Validating gnupg 1.4.18-7+deb8u5 I: Retrieving gpgv 1.4.18-7+deb8u5 I: Validating gpgv 1.4.18-7+deb8u5 I: Retrieving libgnutls-deb0-28 3.3.8-6+deb8u7 I: Validating libgnutls-deb0-28 3.3.8-6+deb8u7 I: Retrieving libgnutls-openssl27 3.3.8-6+deb8u7 I: Validating libgnutls-openssl27 3.3.8-6+deb8u7 I: Retrieving grep 2.20-4.1 I: Validating grep 2.20-4.1 I: Retrieving groff-base 1.22.2-8 I: Validating groff-base 1.22.2-8 I: Retrieving gzip 1.6-4 I: Validating gzip 1.6-4 I: Retrieving hostname 3.15 I: Validating hostname 3.15 I: Retrieving libicu52 52.1-8+deb8u7 I: Validating libicu52 52.1-8+deb8u7 I: Retrieving ifupdown 0.7.53.1 I: Validating ifupdown 0.7.53.1 I: Retrieving init 1.22 I: Validating init 1.22 I: Retrieving init-system-helpers 1.22 I: Validating init-system-helpers 1.22 I: Retrieving insserv 1.14.0-5 I: Validating insserv 1.14.0-5 I: Retrieving iproute2 3.16.0-2 I: Validating iproute2 3.16.0-2 I: Retrieving iptables 1.4.21-2+b1 I: Validating iptables 1.4.21-2+b1 I: Retrieving libxtables10 1.4.21-2+b1 I: Validating libxtables10 1.4.21-2+b1 I: Retrieving iputils-ping 3:20121221-5+b2 I: Validating iputils-ping 3:20121221-5+b2 I: Retrieving isc-dhcp-client 4.3.1-6+deb8u3 I: Validating isc-dhcp-client 4.3.1-6+deb8u3 I: Retrieving isc-dhcp-common 4.3.1-6+deb8u3 I: Validating isc-dhcp-common 4.3.1-6+deb8u3 I: Retrieving libjson-c2 0.11-4 I: Validating libjson-c2 0.11-4 I: Retrieving kmod 18-3 I: Validating kmod 18-3 I: Retrieving libkmod2 18-3 I: Validating libkmod2 18-3 I: Retrieving less 458-3 I: Validating less 458-3 I: Retrieving libcap2 1:2.24-8 I: Validating libcap2 1:2.24-8 I: Retrieving libcap2-bin 1:2.24-8 I: Validating libcap2-bin 1:2.24-8 I: Retrieving libestr0 0.1.9-1.1 I: Validating libestr0 0.1.9-1.1 I: Retrieving libffi6 3.1-2+deb8u1 I: Validating libffi6 3.1-2+deb8u1 I: Retrieving libgcrypt20 1.6.3-2+deb8u4 I: Validating libgcrypt20 1.6.3-2+deb8u4 I: Retrieving libgpg-error0 1.17-3 I: Validating libgpg-error0 1.17-3 I: Retrieving libidn11 1.29-1+deb8u2 I: Validating libidn11 1.29-1+deb8u2 I: Retrieving liblocale-gettext-perl 1.05-8+b1 I: Validating liblocale-gettext-perl 1.05-8+b1 I: Retrieving liblogging-stdlog0 1.0.4-1 I: Validating liblogging-stdlog0 1.0.4-1 I: Retrieving liblognorm1 1.0.1-3 I: Validating liblognorm1 1.0.1-3 I: Retrieving libmnl0 1.0.3-5 I: Validating libmnl0 1.0.3-5 I: Retrieving libnetfilter-acct1 1.0.2-1.1 I: Validating libnetfilter-acct1 1.0.2-1.1 I: Retrieving libnfnetlink0 1.0.1-3 I: Validating libnfnetlink0 1.0.1-3 I: Retrieving libpipeline1 1.4.0-1 I: Validating libpipeline1 1.4.0-1 I: Retrieving libpsl0 0.5.1-1 I: Validating libpsl0 0.5.1-1 I: Retrieving libselinux1 2.3-2 I: Validating libselinux1 2.3-2 I: Retrieving libsemanage-common 2.3-1 I: Validating libsemanage-common 2.3-1 I: Retrieving libsemanage1 2.3-1+b1 I: Validating libsemanage1 2.3-1+b1 I: Retrieving libsepol1 2.3-2 I: Validating libsepol1 2.3-2 I: Retrieving libsigc++-2.0-0c2a 2.4.0-1 I: Validating libsigc++-2.0-0c2a 2.4.0-1 I: Retrieving libtasn1-6 4.2-3+deb8u3 I: Validating libtasn1-6 4.2-3+deb8u3 I: Retrieving libtext-charwidth-perl 0.04-7+b3 I: Validating libtext-charwidth-perl 0.04-7+b3 I: Retrieving libtext-iconv-perl 1.7-5+b2 I: Validating libtext-iconv-perl 1.7-5+b2 I: Retrieving libtext-wrapi18n-perl 0.06-7 I: Validating libtext-wrapi18n-perl 0.06-7 I: Retrieving libusb-0.1-4 2:0.1.12-25 I: Validating libusb-0.1-4 2:0.1.12-25 I: Retrieving logrotate 3.8.7-1+b1 I: Validating logrotate 3.8.7-1+b1 I: Retrieving lsb-base 4.1+Debian13+nmu1 I: Validating lsb-base 4.1+Debian13+nmu1 I: Retrieving dmsetup 2:1.02.90-2.2+deb8u1 I: Validating dmsetup 2:1.02.90-2.2+deb8u1 I: Retrieving libdevmapper1.02.1 2:1.02.90-2.2+deb8u1 I: Validating libdevmapper1.02.1 2:1.02.90-2.2+deb8u1 I: Retrieving man-db 2.7.0.2-5 I: Validating man-db 2.7.0.2-5 I: Retrieving manpages 3.74-1 I: Validating manpages 3.74-1 I: Retrieving mawk 1.3.3-17 I: Validating mawk 1.3.3-17 I: Retrieving nano 2.2.6-3 I: Validating nano 2.2.6-3 I: Retrieving libncurses5 5.9+20140913-1+deb8u3 I: Validating libncurses5 5.9+20140913-1+deb8u3 I: Retrieving libncursesw5 5.9+20140913-1+deb8u3 I: Validating libncursesw5 5.9+20140913-1+deb8u3 I: Retrieving libtinfo5 5.9+20140913-1+deb8u3 I: Validating libtinfo5 5.9+20140913-1+deb8u3 I: Retrieving ncurses-base 5.9+20140913-1+deb8u3 I: Validating ncurses-base 5.9+20140913-1+deb8u3 I: Retrieving ncurses-bin 5.9+20140913-1+deb8u3 I: Validating ncurses-bin 5.9+20140913-1+deb8u3 I: Retrieving net-tools 1.60-26+b1 I: Validating net-tools 1.60-26+b1 I: Retrieving netbase 5.3 I: Validating netbase 5.3 I: Retrieving netcat-traditional 1.10-41 I: Validating netcat-traditional 1.10-41 I: Retrieving libhogweed2 2.7.1-5+deb8u2 I: Validating libhogweed2 2.7.1-5+deb8u2 I: Retrieving libnettle4 2.7.1-5+deb8u2 I: Validating libnettle4 2.7.1-5+deb8u2 I: Retrieving libnewt0.52 0.52.17-1+b1 I: Validating libnewt0.52 0.52.17-1+b1 I: Retrieving whiptail 0.52.17-1+b1 I: Validating whiptail 0.52.17-1+b1 I: Retrieving nfacct 1.0.1-1.1 I: Validating nfacct 1.0.1-1.1 I: Retrieving libssl1.0.0 1.0.1t-1+deb8u8 I: Validating libssl1.0.0 1.0.1t-1+deb8u8 I: Retrieving libp11-kit0 0.20.7-1 I: Validating libp11-kit0 0.20.7-1 I: Retrieving libpam-modules 1.1.8-3.1+deb8u2+b1 I: Validating libpam-modules 1.1.8-3.1+deb8u2+b1 I: Retrieving libpam-modules-bin 1.1.8-3.1+deb8u2+b1 I: Validating libpam-modules-bin 1.1.8-3.1+deb8u2+b1 I: Retrieving libpam-runtime 1.1.8-3.1+deb8u2 I: Validating libpam-runtime 1.1.8-3.1+deb8u2 I: Retrieving libpam0g 1.1.8-3.1+deb8u2+b1 I: Validating libpam0g 1.1.8-3.1+deb8u2+b1 I: Retrieving libpcre3 2:8.35-3.3+deb8u4 I: Validating libpcre3 2:8.35-3.3+deb8u4 I: Retrieving perl-base 5.20.2-3+deb8u11 I: Validating perl-base 5.20.2-3+deb8u11 I: Retrieving libpopt0 1.16-10 I: Validating libpopt0 1.16-10 I: Retrieving libprocps3 2:3.3.9-9+deb8u1 I: Validating libprocps3 2:3.3.9-9+deb8u1 I: Retrieving procps 2:3.3.9-9+deb8u1 I: Validating procps 2:3.3.9-9+deb8u1 I: Retrieving libreadline6 6.3-8+b3 I: Validating libreadline6 6.3-8+b3 I: Retrieving readline-common 6.3-8 I: Validating readline-common 6.3-8 I: Retrieving rsyslog 8.4.2-1+deb8u2 I: Validating rsyslog 8.4.2-1+deb8u2 I: Retrieving sed 4.2.2-4+deb8u1 I: Validating sed 4.2.2-4+deb8u1 I: Retrieving sensible-utils 0.0.9+deb8u1 I: Validating sensible-utils 0.0.9+deb8u1 I: Retrieving login 1:4.2-3+deb8u4 I: Validating login 1:4.2-3+deb8u4 I: Retrieving passwd 1:4.2-3+deb8u4 I: Validating passwd 1:4.2-3+deb8u4 I: Retrieving libslang2 2.3.0-2 I: Validating libslang2 2.3.0-2 I: Retrieving startpar 0.59-3 I: Validating startpar 0.59-3 I: Retrieving libsystemd0 215-17+deb8u7 I: Validating libsystemd0 215-17+deb8u7 I: Retrieving libudev1 215-17+deb8u7 I: Validating libudev1 215-17+deb8u7 I: Retrieving systemd 215-17+deb8u7 I: Validating systemd 215-17+deb8u7 I: Retrieving systemd-sysv 215-17+deb8u7 I: Validating systemd-sysv 215-17+deb8u7 I: Retrieving udev 215-17+deb8u7 I: Validating udev 215-17+deb8u7 I: Retrieving initscripts 2.88dsf-59 I: Validating initscripts 2.88dsf-59 I: Retrieving sysv-rc 2.88dsf-59 I: Validating sysv-rc 2.88dsf-59 I: Retrieving sysvinit-utils 2.88dsf-59 I: Validating sysvinit-utils 2.88dsf-59 I: Retrieving tar 1.27.1-2+deb8u1 I: Validating tar 1.27.1-2+deb8u1 I: Retrieving tasksel 3.31+deb8u1 I: Validating tasksel 3.31+deb8u1 I: Retrieving tasksel-data 3.31+deb8u1 I: Validating tasksel-data 3.31+deb8u1 I: Retrieving traceroute 1:2.0.20-2+b1 I: Validating traceroute 1:2.0.20-2+b1 I: Retrieving tzdata 2018e-0+deb8u1 I: Validating tzdata 2018e-0+deb8u1 I: Retrieving libustr-1.0-1 1.0.4-3+b2 I: Validating libustr-1.0-1 1.0.4-3+b2 I: Retrieving bsdutils 1:2.25.2-6 I: Validating bsdutils 1:2.25.2-6 I: Retrieving libblkid1 2.25.2-6 I: Validating libblkid1 2.25.2-6 I: Retrieving libmount1 2.25.2-6 I: Validating libmount1 2.25.2-6 I: Retrieving libsmartcols1 2.25.2-6 I: Validating libsmartcols1 2.25.2-6 I: Retrieving libuuid1 2.25.2-6 I: Validating libuuid1 2.25.2-6 I: Retrieving mount 2.25.2-6 I: Validating mount 2.25.2-6 I: Retrieving util-linux 2.25.2-6 I: Validating util-linux 2.25.2-6 I: Retrieving vim-common 2:7.4.488-7+deb8u3 I: Validating vim-common 2:7.4.488-7+deb8u3 I: Retrieving vim-tiny 2:7.4.488-7+deb8u3 I: Validating vim-tiny 2:7.4.488-7+deb8u3 I: Retrieving wget 1.16-1+deb8u5 I: Validating wget 1.16-1+deb8u5 I: Retrieving liblzma5 5.1.1alpha+20120614-2+b3 I: Validating liblzma5 5.1.1alpha+20120614-2+b3 I: Retrieving zlib1g 1:1.2.8.dfsg-2+b1 I: Validating zlib1g 1:1.2.8.dfsg-2+b1 I: Chosen extractor for .deb packages: dpkg-deb I: Extracting acl... I: Extracting libacl1... I: Extracting adduser... I: Extracting libattr1... I: Extracting libaudit-common... I: Extracting libaudit1... I: Extracting base-files... I: Extracting base-passwd... I: Extracting bash... I: Extracting libbz2-1.0... I: Extracting libdebconfclient0... I: Extracting coreutils... I: Extracting libcryptsetup4... I: Extracting dash... I: Extracting libdb5.3... I: Extracting debconf... I: Extracting debconf-i18n... I: Extracting debianutils... I: Extracting diffutils... I: Extracting dpkg... I: Extracting e2fslibs... I: Extracting e2fsprogs... I: Extracting libcomerr2... I: Extracting libss2... I: Extracting findutils... I: Extracting gcc-4.8-base... I: Extracting gcc-4.9-base... I: Extracting libgcc1... I: Extracting libc-bin... I: Extracting libc6... I: Extracting multiarch-support... I: Extracting grep... I: Extracting gzip... I: Extracting hostname... I: Extracting init... I: Extracting insserv... I: Extracting libkmod2... I: Extracting libcap2... I: Extracting libcap2-bin... I: Extracting libgcrypt20... I: Extracting libgpg-error0... I: Extracting liblocale-gettext-perl... I: Extracting libselinux1... I: Extracting libsemanage-common... I: Extracting libsemanage1... I: Extracting libsepol1... I: Extracting libtext-charwidth-perl... I: Extracting libtext-iconv-perl... I: Extracting libtext-wrapi18n-perl... I: Extracting lsb-base... I: Extracting dmsetup... I: Extracting libdevmapper1.02.1... I: Extracting mawk... I: Extracting libncurses5... I: Extracting libncursesw5... I: Extracting libtinfo5... I: Extracting ncurses-base... I: Extracting ncurses-bin... I: Extracting libpam-modules... I: Extracting libpam-modules-bin... I: Extracting libpam-runtime... I: Extracting libpam0g... I: Extracting libpcre3... I: Extracting perl-base... I: Extracting libprocps3... I: Extracting procps... I: Extracting sed... I: Extracting sensible-utils... I: Extracting login... I: Extracting passwd... I: Extracting libslang2... I: Extracting startpar... I: Extracting libsystemd0... I: Extracting libudev1... I: Extracting systemd... I: Extracting systemd-sysv... I: Extracting udev... I: Extracting initscripts... I: Extracting sysv-rc... I: Extracting sysvinit-utils... I: Extracting tar... I: Extracting tzdata... I: Extracting libustr-1.0-1... I: Extracting bsdutils... I: Extracting libblkid1... I: Extracting libmount1... I: Extracting libsmartcols1... I: Extracting libuuid1... I: Extracting mount... I: Extracting util-linux... I: Extracting liblzma5... I: Extracting zlib1g... I: Installing core packages... I: Unpacking required packages... I: Unpacking acl... I: Unpacking libacl1:armel... I: Unpacking adduser... I: Unpacking libattr1:armel... I: Unpacking libaudit-common... I: Unpacking libaudit1:armel... I: Unpacking base-files... I: Unpacking base-passwd... I: Unpacking bash... I: Unpacking libbz2-1.0:armel... I: Unpacking libdebconfclient0:armel... I: Unpacking coreutils... I: Unpacking libcryptsetup4:armel... I: Unpacking dash... I: Unpacking libdb5.3:armel... I: Unpacking debconf... I: Unpacking debconf-i18n... I: Unpacking debianutils... I: Unpacking diffutils... I: Unpacking dpkg... I: Unpacking e2fslibs:armel... I: Unpacking e2fsprogs... I: Unpacking libcomerr2:armel... I: Unpacking libss2:armel... I: Unpacking findutils... I: Unpacking gcc-4.8-base:armel... I: Unpacking gcc-4.9-base:armel... I: Unpacking libgcc1:armel... I: Unpacking libc-bin... I: Unpacking libc6:armel... I: Unpacking multiarch-support... I: Unpacking grep... I: Unpacking gzip... I: Unpacking hostname... I: Unpacking init... I: Unpacking insserv... I: Unpacking libkmod2:armel... I: Unpacking libcap2:armel... I: Unpacking libcap2-bin... I: Unpacking libgcrypt20:armel... I: Unpacking libgpg-error0:armel... I: Unpacking liblocale-gettext-perl... I: Unpacking libselinux1:armel... I: Unpacking libsemanage-common... I: Unpacking libsemanage1:armel... I: Unpacking libsepol1:armel... I: Unpacking libtext-charwidth-perl... I: Unpacking libtext-iconv-perl... I: Unpacking libtext-wrapi18n-perl... I: Unpacking lsb-base... I: Unpacking dmsetup... I: Unpacking libdevmapper1.02.1:armel... I: Unpacking mawk... I: Unpacking libncurses5:armel... I: Unpacking libncursesw5:armel... I: Unpacking libtinfo5:armel... I: Unpacking ncurses-base... I: Unpacking ncurses-bin... I: Unpacking libpam-modules:armel... I: Unpacking libpam-modules-bin... I: Unpacking libpam-runtime... I: Unpacking libpam0g:armel... I: Unpacking libpcre3:armel... I: Unpacking perl-base... I: Unpacking libprocps3:armel... I: Unpacking procps... I: Unpacking sed... I: Unpacking sensible-utils... I: Unpacking login... I: Unpacking passwd... I: Unpacking libslang2:armel... I: Unpacking startpar... I: Unpacking libsystemd0:armel... I: Unpacking libudev1:armel... I: Unpacking systemd... I: Unpacking systemd-sysv... I: Unpacking udev... I: Unpacking initscripts... I: Unpacking sysv-rc... I: Unpacking sysvinit-utils... I: Unpacking tar... I: Unpacking tzdata... I: Unpacking libustr-1.0-1:armel... I: Unpacking bsdutils... I: Unpacking libblkid1:armel... I: Unpacking libmount1:armel... I: Unpacking libsmartcols1:armel... I: Unpacking libuuid1:armel... I: Unpacking mount... I: Unpacking util-linux... I: Unpacking liblzma5:armel... I: Unpacking zlib1g:armel... I: Configuring required packages... I: Configuring gcc-4.8-base:armel... I: Configuring lsb-base... I: Configuring sensible-utils... I: Configuring ncurses-base... I: Configuring libsemanage-common... I: Configuring gcc-4.9-base:armel... I: Configuring libaudit-common... I: Configuring libc6:armel... I: Configuring startpar... I: Configuring libc-bin... I: Configuring diffutils... I: Configuring insserv... I: Configuring findutils... I: Configuring debianutils... I: Configuring hostname... I: Configuring multiarch-support... I: Configuring mawk... I: Configuring libprocps3:armel... I: Configuring libpcre3:armel... I: Configuring libbz2-1.0:armel... I: Configuring libkmod2:armel... I: Configuring libgpg-error0:armel... I: Configuring base-files... I: Configuring libdebconfclient0:armel... I: Configuring libselinux1:armel... I: Configuring libcomerr2:armel... I: Configuring libslang2:armel... I: Configuring libsepol1:armel... I: Configuring libgcc1:armel... I: Configuring libustr-1.0-1:armel... I: Configuring libsmartcols1:armel... I: Configuring libaudit1:armel... I: Configuring libtinfo5:armel... I: Configuring libudev1:armel... I: Configuring libattr1:armel... I: Configuring libss2:armel... I: Configuring liblzma5:armel... I: Configuring base-passwd... I: Configuring e2fslibs:armel... I: Configuring libgcrypt20:armel... I: Configuring libncursesw5:armel... I: Configuring libdb5.3:armel... I: Configuring zlib1g:armel... I: Configuring libcap2:armel... I: Configuring libsystemd0:armel... I: Configuring libdevmapper1.02.1:armel... I: Configuring libsemanage1:armel... I: Configuring sysvinit-utils... I: Configuring libacl1:armel... I: Configuring ncurses-bin... I: Configuring acl... I: Configuring libncurses5:armel... I: Configuring libcap2-bin... I: Configuring bsdutils... I: Configuring coreutils... I: Configuring tar... I: Configuring dpkg... I: Configuring sed... I: Configuring perl-base... I: Configuring grep... I: Configuring debconf... I: Configuring tzdata... I: Configuring gzip... I: Configuring dash... I: Configuring libtext-iconv-perl... I: Configuring sysv-rc... I: Configuring liblocale-gettext-perl... I: Configuring libtext-charwidth-perl... I: Configuring libpam0g:armel... I: Configuring initscripts... I: Configuring libpam-modules-bin... I: Configuring bash... I: Configuring procps... I: Configuring libtext-wrapi18n-perl... I: Configuring libpam-modules:armel... I: Configuring libpam-runtime... I: Configuring debconf-i18n... I: Configuring passwd... I: Configuring login... I: Configuring adduser... I: Configuring libuuid1:armel... I: Configuring libblkid1:armel... I: Configuring libmount1:armel... I: Configuring util-linux... I: Configuring libcryptsetup4:armel... I: Configuring mount... I: Configuring e2fsprogs... I: Configuring udev... I: Configuring systemd... I: Configuring dmsetup... I: Configuring systemd-sysv... I: Configuring init... I: Configuring libc-bin... I: Unpacking the base system... I: Unpacking apt... I: Unpacking apt-utils... I: Unpacking libapt-inst1.5:armel... I: Unpacking libapt-pkg4.12:armel... I: Unpacking libdns-export100... I: Unpacking libirs-export91... I: Unpacking libisc-export95... I: Unpacking libisccfg-export90... I: Unpacking libboost-iostreams1.55.0:armel... I: Unpacking bsdmainutils... I: Unpacking cpio... I: Unpacking cron... I: Unpacking debian-archive-keyring... I: Unpacking libstdc++6:armel... I: Unpacking libgdbm3:armel... I: Unpacking libgmp10:armel... I: Unpacking gnupg... I: Unpacking gpgv... I: Unpacking libgnutls-deb0-28:armel... I: Unpacking libgnutls-openssl27:armel... I: Unpacking groff-base... I: Unpacking libicu52:armel... I: Unpacking ifupdown... I: Unpacking init-system-helpers... I: Unpacking iproute2... I: Unpacking iptables... I: Unpacking libxtables10... I: Unpacking iputils-ping... I: Unpacking isc-dhcp-client... I: Unpacking isc-dhcp-common... I: Unpacking libjson-c2:armel... I: Unpacking kmod... I: Unpacking less... I: Unpacking libestr0... I: Unpacking libffi6:armel... I: Unpacking libidn11:armel... I: Unpacking liblogging-stdlog0:armel... I: Unpacking liblognorm1:armel... I: Unpacking libmnl0:armel... I: Unpacking libnetfilter-acct1:armel... I: Unpacking libnfnetlink0:armel... I: Unpacking libpipeline1:armel... I: Unpacking libpsl0:armel... I: Unpacking libsigc++-2.0-0c2a:armel... I: Unpacking libtasn1-6:armel... I: Unpacking libusb-0.1-4:armel... I: Unpacking logrotate... I: Unpacking man-db... I: Unpacking manpages... I: Unpacking nano... I: Unpacking net-tools... I: Unpacking netbase... I: Unpacking netcat-traditional... I: Unpacking libhogweed2:armel... I: Unpacking libnettle4:armel... I: Unpacking libnewt0.52:armel... I: Unpacking whiptail... I: Unpacking nfacct... I: Unpacking libssl1.0.0:armel... I: Unpacking libp11-kit0:armel... I: Unpacking libpopt0:armel... I: Unpacking libreadline6:armel... I: Unpacking readline-common... I: Unpacking rsyslog... I: Unpacking tasksel... I: Unpacking tasksel-data... I: Unpacking traceroute... I: Unpacking vim-common... I: Unpacking vim-tiny... I: Unpacking wget... I: Configuring the base system... I: Configuring readline-common... I: Configuring libgdbm3:armel... I: Configuring manpages... I: Configuring libxtables10... I: Configuring cpio... I: Configuring libpopt0:armel... I: Configuring kmod... I: Configuring libestr0... I: Configuring less... I: Configuring libssl1.0.0:armel... I: Configuring gpgv... I: Configuring liblogging-stdlog0:armel... I: Configuring netcat-traditional... I: Configuring libpipeline1:armel... I: Configuring iproute2... I: Configuring libtasn1-6:armel... I: Configuring nano... I: Configuring libgmp10:armel... I: Configuring libisc-export95... I: Configuring init-system-helpers... I: Configuring libnettle4:armel... I: Configuring debian-archive-keyring... I: Configuring vim-common... I: Configuring libnfnetlink0:armel... I: Configuring libstdc++6:armel... I: Configuring libffi6:armel... I: Configuring libnewt0.52:armel... I: Configuring bsdmainutils... I: Configuring net-tools... I: Configuring cron... I: Configuring libmnl0:armel... I: Configuring libapt-pkg4.12:armel... I: Configuring libusb-0.1-4:armel... I: Configuring traceroute... I: Configuring logrotate... I: Configuring libidn11:armel... I: Configuring libreadline6:armel... I: Configuring libjson-c2:armel... I: Configuring libicu52:armel... I: Configuring netbase... I: Configuring vim-tiny... I: Configuring libhogweed2:armel... I: Configuring ifupdown... I: Configuring libisccfg-export90... I: Configuring libsigc++-2.0-0c2a:armel... I: Configuring groff-base... I: Configuring liblognorm1:armel... I: Configuring whiptail... I: Configuring gnupg... I: Configuring libpsl0:armel... I: Configuring libboost-iostreams1.55.0:armel... I: Configuring libdns-export100... I: Configuring iptables... I: Configuring libapt-inst1.5:armel... I: Configuring libp11-kit0:armel... I: Configuring libgnutls-deb0-28:armel... I: Configuring wget... I: Configuring apt... I: Configuring man-db... I: Configuring libnetfilter-acct1:armel... I: Configuring rsyslog... I: Configuring nfacct... I: Configuring apt-utils... I: Configuring libirs-export91... I: Configuring libgnutls-openssl27:armel... I: Configuring iputils-ping... I: Configuring isc-dhcp-common... I: Configuring isc-dhcp-client... I: Configuring tasksel... I: Configuring tasksel-data... I: Configuring libc-bin... I: Configuring systemd... I: Base system installed successfully. } root@raspberrypi48:/mnt/runimg# root@raspberrypi48:/mnt/runimg# cd /tmp/rootfs root@raspberrypi48:/tmp/rootfs# mount --bind /sys sys/ root@raspberrypi48:/tmp/rootfs# mount --bind /proc proc/ root@raspberrypi48:/tmp/rootfs# mount --bind /dev/pts dev/pts root@raspberrypi48:/tmp/rootfs# chroot . bin/bash ............ umount dev/pts proc/ sys/ cd umount /tmp/boot /tmp/rootfs losetup -d /dev/loop0 } debian img file3(IMG amd64 buster repo http://nas-27-5A-1D/dev/mirrors/debian/ ){ dd if=/dev/zero bs=8M count=1024 > amd64_debian_buster_repo.img{ 1024+0 records in 1024+0 records out 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 130.014 s, 66.1 MB/s } losetup -f -P --show amd64_debian_buster_repo.img{ /dev/loop0 } fdisk /dev/loop0 { Welcome to fdisk (util-linux 2.36.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x00ce7285. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-16777215, default 16777215): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code or alias (type L to list all): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-16777215, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-16777215, default 16777215): Created a new partition 2 of type 'Linux' and of size 8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. } sudo mkfs.msdos /dev/loop0p1 { mkfs.fat 4.2 (2021-01-31) } sudo mkfs.ext4 /dev/loop0p2 { mke2fs 1.46.2 (28-Feb-2021) Creating filesystem with 2088704 4k blocks and 522240 inodes Filesystem UUID: 234f26dc-f610-4991-b80b-421d3e30675a Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done } cd /media/netdir/svn_tmp gpg --import my_pub_key.asc{ gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: Total number processed: 1 gpg: imported: 1 } /* gpg --import my_key_backup.asc { gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: key 6AF52B481B08D09B: secret key imported gpg: Total number processed: 1 gpg: imported: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 } */ gpg --list-keys { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2021-10-04 [SC] [expires: 2023-10-04] 3A7A0EBDA895CA68326D48786AF52B481B08D09B uid [ unknown] jinzhongjie sub rsa3072 2021-10-04 [E] [expires: 2023-10-04] } mkdir /tmp/boot /tmp/rootfs sudo mount /dev/loop0p1 /tmp/boot sudo mount /dev/loop0p2 /tmp/rootfs debootstrap --keyring=/root/.gnupg/pubring.kbx --include=gpg,gpg-agent --arch amd64 buster /tmp/rootfs http://nas-27-5A-1D/dev/mirrors/debian/ { I: Target architecture can be executed I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 3A7A0EBDA895CA68326D48786AF52B481B08D09B) I: Validating Packages I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://nas-27-5A-1D/dev/mirrors/debian... ............ I: Configuring systemd... I: Base system installed successfully. } cd umount /tmp/boot /tmp/rootfs losetup -d /dev/loop0 } debian img file4(IMG armel jessie repo http://nas-27-5A-1D/dev/mirrors/debian/ ){ dd if=/dev/zero bs=8M count=1024 > armel_debian_jessie_repo.img { 1024+0 records in 1024+0 records out 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 132.51 s, 64.8 MB/s } losetup -f -P --show armel_debian_jessie_repo.img{ /dev/loop0 } fdisk /dev/loop0 { Welcome to fdisk (util-linux 2.36.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xf8a4efcf. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-16777215, default 16777215): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code or alias (type L to list all): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-16777215, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-16777215, default 16777215): Created a new partition 2 of type 'Linux' and of size 8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. } sudo mkfs.msdos /dev/loop0p1 { mkfs.fat 4.2 (2021-01-31) } sudo mkfs.ext4 /dev/loop0p2 { mke2fs 1.46.2 (28-Feb-2021) Creating filesystem with 2088704 4k blocks and 522240 inodes Filesystem UUID: 781c0cac-b27f-4de2-b6ed-a91559eec7db Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done } cd /media/netdir/svn_tmp gpg --import my_pub_key.asc{ gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: Total number processed: 1 gpg: imported: 1 } /* gpg --import my_key_backup.asc { gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: key 6AF52B481B08D09B: secret key imported gpg: Total number processed: 1 gpg: imported: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 } */ gpg --list-keys { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2021-10-04 [SC] [expires: 2023-10-04] 3A7A0EBDA895CA68326D48786AF52B481B08D09B uid [ unknown] jinzhongjie sub rsa3072 2021-10-04 [E] [expires: 2023-10-04] } mkdir /tmp/boot /tmp/rootfs sudo mount /dev/loop0p1 /tmp/boot sudo mount /dev/loop0p2 /tmp/rootfs debootstrap --keyring=/root/.gnupg/pubring.kbx --arch armel jessie /tmp/rootfs http://nas-27-5A-1D/dev/mirrors/debian/ { I: Target architecture can be executed I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 3A7A0EBDA895CA68326D48786AF52B481B08D09B) I: Validating Packages I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://nas-27-5A-1D/dev/mirrors/debian... ............ I: Configuring systemd... I: Base system installed successfully. } cd umount /tmp/boot /tmp/rootfs losetup -d /dev/loop0 } debian img file5(IMG armhf stretch repo http://nas-27-5A-1D/dev/mirrors/debian/ ){ dd if=/dev/zero bs=8M count=1024 > armhf_debian_stretch_repo.img { 1024+0 records in 1024+0 records out 8589934592 bytes (8.6 GB, 8.0 GiB) copied, 132.51 s, 64.8 MB/s } losetup -f -P --show armhf_debian_stretch_repo.img{ /dev/loop0 } fdisk /dev/loop0 { Welcome to fdisk (util-linux 2.36.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x8429db0c. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-16777215, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-16777215, default 16777215): +32M Created a new partition 1 of type 'Linux' and of size 32 MiB. Command (m for help): t Selected partition 1 Hex code or alias (type L to list all): e Changed type of partition 'Linux' to 'W95 FAT16 (LBA)'. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (67584-16777215, default 67584): Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-16777215, default 16777215): Created a new partition 2 of type 'Linux' and of size 8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. } sudo mkfs.msdos /dev/loop0p1 { mkfs.fat 4.2 (2021-01-31) } sudo mkfs.ext4 /dev/loop0p2 { mke2fs 1.46.2 (28-Feb-2021) Creating filesystem with 2088704 4k blocks and 522240 inodes Filesystem UUID: 781c0cac-b27f-4de2-b6ed-a91559eec7db Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done } cd /media/netdir/svn_tmp gpg --import my_pub_key.asc{ gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: Total number processed: 1 gpg: imported: 1 } /* gpg --import my_key_backup.asc { gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 6AF52B481B08D09B: public key "jinzhongjie " imported gpg: key 6AF52B481B08D09B: secret key imported gpg: Total number processed: 1 gpg: imported: 1 gpg: secret keys read: 1 gpg: secret keys imported: 1 } */ gpg --list-keys { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2021-10-04 [SC] [expires: 2023-10-04] 3A7A0EBDA895CA68326D48786AF52B481B08D09B uid [ unknown] jinzhongjie sub rsa3072 2021-10-04 [E] [expires: 2023-10-04] } mkdir /tmp/boot /tmp/rootfs sudo mount /dev/loop0p1 /tmp/boot sudo mount /dev/loop0p2 /tmp/rootfs debootstrap --keyring=/root/.gnupg/pubring.kbx --include=gnupg,gnupg-agent --arch armhf stretch /tmp/rootfs http://nas-27-5A-1D/dev/mirrors/debian/ { I: Target architecture can be executed I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 3A7A0EBDA895CA68326D48786AF52B481B08D09B) I: Validating Packages I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Checking component main on http://nas-27-5A-1D/dev/mirrors/debian... ............ I: Configuring systemd... I: Base system installed successfully. } cd umount /tmp/boot /tmp/rootfs losetup -d /dev/loop0 } apt-get --download-only --assume-yes reinstall $(dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}'){ bullseye:11 buster:10 stretch:9 jessie:8 wheezy:7 squeeze:6 } How to resize img file created with dd? { losetup -f -P --show xxxxxxxx sudo gparted /dev/loop0 sudo parted /dev/loop0 { GNU Parted 3.2 Using /dev/loop0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: Loopback device (loopback) Disk /dev/loop0: 8590MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 34.6MB 33.6MB primary fat16 lba 2 34.6MB 2174MB 2139MB primary ext4 (parted) } fdisk /dev/loop0 { Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/loop0: 8 GiB, 8589934592 bytes, 16777216 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x2bd36824 Device Boot Start End Sectors Size Id Type /dev/loop0p1 2048 67583 65536 32M e W95 FAT16 (LBA) /dev/loop0p2 67584 4245503 4177920 2G 83 Linux Command (m for help): q } dd if=/dev/loop0 of=readynas_compile_tool.img bs=512 count=4245504 { 4245504+0 records in 4245504+0 records out 2173698048 bytes (2.2 GB, 2.0 GiB) copied, 52.3288 s, 41.5 MB/s } } CentOs69x32 img make{ dd if=/dev/vda of=/media/netdir/raspbrreyPi/mnt_runimg/b85CentOs69x32.img } } Raspberry pi { cat /etc/apt/sources.list apt-get update --allow-unauthenticated apt-get update --allow-releaseinfo-change apt-get install --download-only xxxxxxx LVMボリュームのマウントの仕方{ apt-get install lvm2 root@raspberrypi4:~# pvscan PV /dev/sda2 VG VG lvm2 [<465.27 GiB / 0 free] Total: 1 [<465.27 GiB] / in use: 1 [<465.27 GiB] / in no VG: 0 [0 ] root@raspberrypi4:~# root@raspberrypi4:~# root@raspberrypi4:~# lvscan inactive '/dev/VG/lv_swap' [<4.99 GiB] inherit inactive '/dev/VG/lv_tmp' [<9.77 GiB] inherit inactive '/dev/VG/lv_var' [<9.77 GiB] inherit inactive '/dev/VG/lv_root' [<421.22 GiB] inherit inactive '/dev/VG/lv_home' [19.53 GiB] inherit root@raspberrypi4:~# lvchange --available y /dev/VG/lv_root root@raspberrypi4:~# root@raspberrypi4:~# lvscan inactive '/dev/VG/lv_swap' [<4.99 GiB] inherit inactive '/dev/VG/lv_tmp' [<9.77 GiB] inherit inactive '/dev/VG/lv_var' [<9.77 GiB] inherit ACTIVE '/dev/VG/lv_root' [<421.22 GiB] inherit inactive '/dev/VG/lv_home' [19.53 GiB] inherit root@raspberrypi4:~# root@raspberrypi4:~# root@raspberrypi4:~# mkdir -p /media/disk root@raspberrypi4:~# root@raspberrypi4:~# root@raspberrypi4:~# mount /dev/VG/lv_root /media/disk root@raspberrypi4:~# cd /media/disk root@raspberrypi4:/media/disk# ls -l total 88 lrwxrwxrwx. 1 root root 7 Oct 10 19:51 bin -> usr/bin drwxr-xr-x. 2 root root 4096 Oct 10 19:50 boot drwxr-xr-x. 2 root root 4096 Oct 10 19:50 dev drwxr-xr-x. 155 root root 12288 Dec 26 21:22 etc drwxr-xr-x. 2 root root 4096 Oct 10 19:50 home lrwxrwxrwx. 1 root root 7 Oct 10 19:51 lib -> usr/lib lrwxrwxrwx. 1 root root 9 Oct 10 19:51 lib64 -> usr/lib64 drwx------. 2 root root 16384 Oct 10 19:50 lost+found drwxr-xr-x. 3 root root 4096 Dec 22 13:35 media drwxr-xr-x. 2 root root 4096 Apr 11 2018 mnt drwxr-xr-x. 3 root root 4096 Oct 10 20:09 opt drwxr-xr-x. 2 root root 4096 Oct 10 19:50 proc dr-xr-x---. 17 root root 4096 Dec 26 19:03 root drwxr-xr-x. 2 root root 4096 Oct 10 19:50 run lrwxrwxrwx. 1 root root 8 Oct 10 19:51 sbin -> usr/sbin drwxr-xr-x. 2 root root 4096 Apr 11 2018 srv drwxr-xr-x. 2 root root 4096 Oct 10 19:50 sys drwxr-xr-x. 2 root root 4096 Oct 10 19:50 tmp drwxr-xr-x. 13 root root 4096 Oct 10 19:51 usr drwxr-xr-x. 2 root root 4096 Oct 10 19:50 var drwxr-xr-x 2 root root 4096 Dec 24 23:22 VM root@raspberrypi4:/media/disk# cd VM root@raspberrypi4:/media/disk/VM# ls -l total 204256996 -rw------- 1 root root 4061331456 Oct 31 20:50 CentOs69x32_xxx.img -rw------- 1 root root 5926027264 Oct 24 21:23 CentOs69x64_xxxxx.img -rw------- 1 root root 6751256576 Oct 26 09:29 CentOs76x64_xxx.img -rw------- 1 root root 7145259008 Nov 4 15:02 CentOs77x64_xxx.img -rw------- 1 root root 2460221440 Dec 23 22:59 debian10x32_xxx.img -rw------- 1 root root 5598609408 Dec 24 23:17 debian9x32_xxx.img -rw------- 1 root root 5839257600 Dec 23 20:51 debian9_xxx.img -rw------- 1 root root 19039256576 Dec 23 23:42 optiplex5040_CentOs69x32_d1.img -rw------- 1 root root 33186709504 Dec 23 23:42 optiplex5040_CentOs69x32_d2.img -rw------- 1 root root 8567062528 Dec 23 23:42 optiplex5040_CentOs69x32_d3.img -rw------- 1 sshd render 4061659136 Nov 26 23:24 optiplex5040_CentOs69x32_d4.img -rw------- 1 root root 22781034496 Nov 26 18:00 optiplex5040_CentOs76x64_d2.img -rw------- 1 root root 41631678464 Nov 24 09:56 optiplex5040_CentOs76x64_dev.img -rw------- 1 sshd render 7242186752 Nov 28 00:04 optiplex5040_CentOs77x64_d1.img -rw------- 1 root root 2916679680 Dec 24 23:45 optiplex5040_Debian10x32_d1.img -rw------- 1 root root 2460614656 Dec 24 23:46 optiplex5040_Debian10x32_d2.img -rw------- 1 root root 8748007424 Dec 26 21:19 optiplex5040_Debian9x32_d1.img -rw------- 1 root root 5653659648 Dec 26 21:20 optiplex5040_Debian9x32_d2.img -rw------- 1 root root 9248112640 Dec 26 21:20 optiplex5040_Debian9x64_d1.img -rw------- 1 root root 5841682432 Dec 26 21:20 optiplex5040_Debian9x64_d2.img root@raspberrypi4:/media/disk/VM# } raspberry pi read-only setting{ INSTALL cd /home/pi sudo bash apt-get install -y git rsync gawk busybox bindfs dphys-swapfile swapoff dphys-swapfile uninstall update-rc.d dphys-swapfile disable systemctl disable dphys-swapfile git clone https://github.com/josepsanzcamp/root-ro.git rsync -va root-ro/etc/initramfs-tools/* /etc/initramfs-tools/ mkinitramfs -o /boot/initrd.gz echo initramfs initrd.gz >> /boot/config.txt echo 192.168.1.220 nas-48-71-3b >> /etc/hosts reboot WR-ENABLE{ #!/bin/sh if [ -e /mnt/boot-ro/config.txt ]; then sudo mount -o remount,rw /dev/mmcblk0p1 sudo grep -v initramfs /mnt/boot-ro/config.txt >/tmp/config.txt sudo cp /tmp/config.txt /mnt/boot-ro/config.txt sudo reboot else echo Already write enabled fi } WR-PROTECT{ #!/bin/sh if [ -e /mnt/boot-ro/config.txt ]; then echo Already write protected else sudo grep -v initramfs /boot/config.txt >/tmp/config.txt sudo echo initramfs initrd.gz >> /tmp/config.txt sudo cp /tmp/config.txt /boot/config.txt sudo reboot fi } } raspberry pi commands{ Setup{ sudo passwd root sudo raspi-config{ 1 System Options Configure system settings{ S6 Network at Boot Select wait for network connection on boot } 4 Localisation Options Set up language and regional settings to match your location{ I1 Change Locale Set up language and regional settings to match your location I2 Change Timezone Set up timezone to match your location } } # cd /boot cd /boot/firmware touch ssh /etc/network/interfaces ---------------install app apt-get install -y gparted xfsprogs vim git ---------------------------------------------------vdesktop git clone https://github.com/Botspot/vdesktop chmod +x /home/pi/vdesktop/rc.local /home/pi/vdesktop/vdesktop ---------------------------------------------------autofs apt-get -y install autofs vi /etc/auto.master{ # 最終行に追記 /- /etc/auto.mount } vi /etc/auto.mount{ /media/netdir -fstype=nfs,rw nas-27-59-FD:/data/tmp /mnt/runimg -fstype=nfs,rw nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_runimg /home/pi/Videos -fstype=nfs,rw nas-27-59-FD:/data/Videos /mnt/tools -fstype=nfs,rw nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_tools } systemctl restart autofs } ---------------DISPLAY pi{ Ctrl+Alt+F1 startx } root{ Ctrl+Alt+F2 startx } ---------------mount mount -v nas-48-71-3B:/data/dev/raspbrreyPi/mnt/DISK2 /mnt/DISK1 mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_DISK1 /mnt/DISK1 mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_tools /mnt/tools sudo umount /dev/sda1 mount -v 192.168.1.218:/data/tmp /media/netdir mount -v nas-27-59-FD:/data/tmp /media/netdir mount -v nas-27-59-FD:/data/SYS /media/disk mount -v nas-27-59-FD:/data/Videos /media/Videos mount -v nas-27-59-FD:/data/Videos /home/pi/Videos mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_tools /mnt/tools mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_runimg /mnt/runimg mount -v nas-27-59-FD:/data/SYS/soft/Archive /media/archive mount -v nas-27-59-FD:/data/SYS/soft/setup /media/tool mount -v nas-27-5A-1D:/data/tmp /media/disk mount -v nas-27-5A-1D:/data/tmp /media/netdir mount -v nas-27-59-FD:/data/svn_bak /media/svn_bak mount -v nas-27-5A-1D:/data/wechat /media/wechat mount -v nas-48-71-3B:/data/dev/mirrors /media/mirrors mount -v nas-48-71-3b:/data/dev/setup/tools /mnt/tools mount -v nas-48-71-3B:/data/dev /media/dev mount -v nas-48-71-3B:/data/Repository /mnt/repo ---------------copy img raspbian{ cd /media/netdir/raspbrreyPi/ dd bs=16M if=2018-11-13-raspbian-stretch-full.img of=/dev/sda dd bs=16M if=2019-04-08-raspbian-stretch.img of=/dev/sda dd bs=16M if=2019-09-26-raspbian-buster.img of=/dev/sda dd bs=16M if=2019-09-26-raspbian-buster_jin.img of=/dev/sda status=progress && sync unzip -p 2019-09-26-raspbian-buster.zip | sudo dd of=/dev/sda bs=4M conv=fsync dd bs=16M if=2020-02-13-raspbian-buster_jin.img of=/dev/sda status=progress && sync unzip -p 2020-02-13-raspbian-buster_jin.zip | sudo dd of=/dev/sda bs=4M status=progress && sync cd /media/netdir/raspbrreyPi/mnt_runimg dd bs=16M if=2020-02-13-raspbian-buster_jin-make_tftp.img of=/dev/sda status=progress && sync ## xz -d -v 2022-04-04-raspios-bullseye-armhf.img.xz ## xzcat console.img.xz | dd of=/dev/mmcblk0p3 status=progress ## xz -dc console.img.xz | dd of=/dev/mmcblk0p3 status=progress xzcat 2022-04-04-raspios-bullseye-armhf.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2022-04-04-raspios-bullseye-arm64.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2022-04-04-raspios-buster-armhf.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2022-04-04-raspios-bullseye-armhf_jin_tftp.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2024-07-04-raspios-bookworm-arm64.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2024-07-04-raspios-bookworm-armhf.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2024-07-04-raspios-bookworm-arm64_jin_tftp.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync xzcat 2024-07-04-raspios-bookworm-armhf_jin_tftp.img.xz | sudo dd of=/dev/sda bs=4M status=progress && sync unzip -p lineage-16.0-20200713-UNOFFICIAL-KonstaKANG-rpi4.zip | sudo dd of=/dev/sda bs=4M conv=fsync unzip -p lineage-17.1-20200813-UNOFFICIAL-KonstaKANG-rpi4.zip | sudo dd of=/dev/sda bs=4M conv=fsync unzip -p lineage-17.1-20210122-UNOFFICIAL-KonstaKANG-rpi4.zip | sudo dd of=/dev/sda bs=4M status=progress && sync } android{ cd /data/tmp/raspbrreyPi/android gzip -dc android.img.gz | sudo dd of=/dev/sda bs=4M status=progress && sync ssh pi@raspberry48 "sudo dd if=/dev/sda | gzip -1 -" | sudo dd of=/home/archive/android.img.gz kpartx -a -v /home/archive/android.img mkdir -p {bootmnt,rootmnt,vendor,userdata} mount /dev/mapper/loop0p1 bootmnt/ mount /dev/mapper/loop0p2 rootmnt/ mount /dev/mapper/loop0p3 vendor/ mount /dev/mapper/loop0p4 userdata/ } ---------------install app /var/cache/apt/archives apt-get install -y gparted xfsprogs sudo apt-get install manpages-posix manpages-posix-dev apt-get install -y subversion apt-get install dnsmasq sudo apt-get install chkconfig apt install -y tftpd-hpa apt-get install -y xinetd tftpd tftp tftp-server -----------------cpu cmd { vcgencmd measure_temp vcgencmd measure_volts vcgencmd measure_clock arm for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do echo -e "$src:\t$(vcgencmd measure_clock $src)" ; done vcgencmd get_mem arm vcgencmd get_mem gpu for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do echo -e "$src:\t$(vcgencmd measure_clock $src)" ; done lscpu } 树莓派的输入电压 { vcgencmd get_throttled { throttled=0x50005 ---------------------- 各个位的含义如下: 位 0: 低电压检测(0x1) 位 1: 过热(0x2) 位 2: 电压/频率过低(0x4) 位 16: 曾经出现过低电压(0x10000) 位 17: 曾经出现过过热(0x20000) 位 18: 曾经出现过电压/频率过低(0x40000) } } dhcpcd sudo apt-get install -y chkconfig xinetd tftpd tftp vim isc-dhcp-server samba samba-client bind9 dnsutils nfs-kernel-server pxelinux syslinux-common sudo apt-get install -y xinetd tftpd tftp ~/.vimrc{ syntax on colorscheme pablo set mouse= } --------------------------------pxe pxe{ /etc/bind/named.conf.local /etc/xinetd.d/tftp root@raspberrypi:/etc/default# cat bind9{ # run resolvconf? RESOLVCONF=no # startup options for the server OPTIONS="-u bind -4" }root@raspberrypi:/etc/default# root@raspberrypi:/etc/default# cat isc-dhcp-server | grep -v ^# { DHCPDv4_CONF=/etc/dhcp/dhcpd.conf DHCPDv4_PID=/var/run/dhcpd.pid OPTIONS="-4" INTERFACESv4="eth0" INTERFACESv6="" }root@raspberrypi:/etc/default# sudo systemctl start dhcpd.service sudo systemctl start isc-dhcp-server.service sudo systemctl stop isc-dhcp-server.service rm -f /var/run/dhcpd.pid /etc/init.d/xinetd start /etc/init.d/xinetd stop /etc/init.d/bind9 restart service bind9 status vi /etc/default/isc-dhcp-server sudo service isc-dhcp-server start sudo service isc-dhcp-server stop /etc/init.d/bind9 start /etc/init.d/bind9 stop /etc/init.d/bind9 restart /etc/init.d/bind9 status systemctl restart smbd sudo service isc-dhcp-server restart systemctl start smbd.service systemctl start bind9.service systemctl start xinetd.service systemctl start isc-dhcp-server.service systemctl stop smbd.service systemctl stop bind9.service systemctl stop xinetd.service systemctl stop isc-dhcp-server.service systemctl disable smbd.service systemctl disable bind9.service systemctl disable xinetd.service systemctl disable isc-dhcp-server.service systemctl status smbd.service systemctl status bind9.service systemctl status xinetd.service systemctl status isc-dhcp-server.service sudo dmesg | grep -i eth Why eth0 is renamed to enx78e7d1ea46da after upgrade?{ $ vim /lib/udev/rules/73-usb-net-by-mac.rules You should see: ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", NAME=="", \ ATTR{address}=="?[014589cd]:*", \ TEST!="/etc/udev/rules.d/80-net-setup-link.rules", \ IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_MAC}" Change the NAME at the end as follows: ACTION=="add", SUBSYSTEM=="net", SUBSYSTEMS=="usb", NAME=="", \ ATTR{address}=="?[014589cd]:*", \ TEST!="/etc/udev/rules.d/80-net-setup-link.rules", \ IMPORT{builtin}="net_id", NAME="eth0" } } untar{ mount /dev/mmcblk0p3 /mnt/DISK1 mkdir -p /mnt/DISK1/SYSTEM/sys mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_tools /mnt/tools mount -v nas-27-59-FD:/data/tmp/raspbrreyPi/mnt_DISK1 /mnt/DISK1 #svn co http://nas-48-71-3b/svn/dhcp_tftp_setup/dos_net/setup_batch/WIN /mnt/DISK1/SYSTEM/sys/WIN svn co http://nas-48-71-3b/svn/dhcp_tftp_setup/dos_net/setup_batch/soft/batch /mnt/DISK1/SYSTEM/sys/soft/batch svn co http://nas-48-71-3b/svn/unattended-code/unattended/install /mnt/DISK1/SYSTEM/sys/unattend-install ssh manager@nas-48-71-3b "cat /data/svn_bak/NAS_bak/win_setup_update.tar.gz" | tar zxvf - -C /mnt/DISK1/SYSTEM/sys/soft/ ssh manager@nas-48-71-3b "cat /data/svn_bak/NAS_bak/unattend-install_os.tar.gz" | tar zxvf - -C /mnt/DISK1/SYSTEM/sys/unattend-install/os/ ssh manager@nas-48-71-3b "cat /data/svn_bak/NAS_bak/linuxaux.tar.gz" | tar zxvf - -C /mnt/DISK1/SYSTEM/sys/unattend-install/ mkdir -p /mnt/DISK0/linux ssh manager@nas-48-71-3b "cat /data/SYS/linux/bak/CentOs6.9x86_64.tar.z" | tar zxvf - -C /mnt/DISK0/linux/ ssh manager@nas-48-71-3b "cat /data/SYS/linux/bak/CentOs6.9_i386.tar.z" | tar zxvf - -C /mnt/DISK0/linux/ } } nfs{ sudo apt install nfs-kernel-server sudo mkdir -p /mnt/nfs_share sudo chown -R nobody:nogroup /mnt/nfs_share sudo chmod 777 /mnt/nfs_share sudo vim /etc/exports{ /mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check) } ## cat cmdline.txt { ##console=serial0,115200 console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles ##console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.1.218:/data/tmp/raspbrreyPi/mnt_stage/raspap1/SD2,vers=4.1,proto=tcp rw ip=dhcp elevator=deadline rootwait ##console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.1.91:/srv/nfs/rpi4-334e28f,vers=4.1,proto=tcp rw ip=dhcp elevator=deadline rootwait console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.1.90:/mnt/nfs_share/SDPI,vers=4.1,proto=tcp rw ip=dhcp elevator=deadline rootwait ##console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.1.218:/data/tmp/raspbrreyPi/mnt_stage/raspap1/SD,tcp,vers=3,rw ip=dhcp rootfstype=nfs elevator=deadline rootwait } } python3{ sudo apt update sudo apt upgrade sudo rpi-update sudo reboot ----------------------------------------------- cd git clone https://github.com/pyenv/pyenv.git ~/.pyenv vim .bashrc{ export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" } git clone git://github.com/pyenv/pyenv-update.git ~/.pyenv/plugins/pyenv-update pyenv update sudo apt install libffi-dev libbz2-dev libssl-dev libreadline-dev libsqlite3-dev pyenv install --list CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.3 pyenv versions ----------------------------------------------- pip3 install -U pip pip3 install selenium pip3 install python-dateutil } readynas{ update-rc.d mlnet defaults update-rc.d -f mlnet remove ln -sf /etc/init.d/mlnet /etc/rc0.d/K100mlnet ln -sf /etc/init.d/mlnet /etc/rc1.d/K100mlnet ln -sf /etc/init.d/mlnet /etc/rc2.d/S100mlnet ln -sf /etc/init.d/mlnet /etc/rc3.d/S100mlnet ln -sf /etc/init.d/mlnet /etc/rc4.d/S100mlnet ln -sf /etc/init.d/mlnet /etc/rc5.d/S100mlnet ln -sf /etc/init.d/mlnet /etc/rc6.d/K100mlnet } PXE{ ## Go to the directory where the bootloader images are stored: cd /lib/firmware/raspberrypi/bootloader/beta/ ## Make a copy of the latest firmware image file. In my case it was pieeprom-2019-11-18.bin: sudo cp -p pieeprom-2020-01-17.bin /home/pi/new-pieeprom.bin ## Extract the config from the eeprom image cd sudo rpi-eeprom-config new-pieeprom.bin > bootconf.txt ## In bootconf.txt, change the BOOT_ORDER variable to BOOT_ORDER=0x21. ## In my case it had defaulted to BOOT_ORDER=0x1. 0X1 means only boot from SD card. 0x21 means attempt SD card boot first, then network boot. ## See this Raspberry Pi Bootloader page for more details on the values and what they control. ## Now save the new bootconf.txt file to the firmware image we copied earlier: rpi-eeprom-config --out netboot-pieeprom.bin --config bootconf.txt new-pieeprom.bin ## Now install the new boot loader: sudo rpi-eeprom-update -d -f ./netboot-pieeprom.bin ##If you get an error with the above command, double check that your apt-get full-upgrade completed successfully. vcgencmd bootloader_config } apache2 http file server{ vim /etc/apache2/apache2.conf{ Options Indexes FollowSymLinks AllowOverride None Require all granted } vim /etc/apache2/sites-available/000-default.conf{ ##DocumentRoot /var/www/html/files DocumentRoot /media } sudo systemctl restart apache2 command { sudo chmod -R 755 /media/pi/setup sudo chown -R www-data:www-data /media/pi/setup sudo chmod +x /media sudo chmod +x /media/pi sudo chmod +x /media/pi/setup sudo systemctl restart apache2 tail -f /var/log/apache2/error.log } } } Docker{ command{ docker rmi xxxx docker rm $(docker ps -a -q -f status=exited) docker exec -it 224be4fefe72 /bin/bash docker run -it armel/debian /bin/bash docker run --net=host -it armel/debian /bin/bash docker network ls docker run -it armel/debian /bin/bash docker run -it -v /media/netdir/source/raspberrypi:/mnt/compile armel/debian /bin/bash docker save -o /media/netdir/raspbrreyPi/docker_img/armel_make_phantomjs.tar armel_make_phantomjs sudo docker load -i /media/netdir/raspbrreyPi/docker_img/armel_make_phantomjs.tar docker login -u xjzj xjin129921 docker push xjzj/armel_make_phantomjs sudo docker commit infallible_keldysh xjzj/armel_make_phantomjs } Debian 9{ --前準備 # apt-get install sudo --visudoを実行し、ログインしているユーザにsudoの権限を与える visudo tatsuya ALL=(ALL:ALL) ALL --Dockerの導入 $ sudo apt-get remove docker docker-engine docker.io $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common $ sudo curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - --KeyのFingerPrintが下記と一致していることを確認する $ sudo apt-key fingerprint 0EBFCD88 pub 4096R/0EBFCD88 2017-02-22 Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 uid Docker Release (CE deb) sub 4096R/F273FCD8 2017-02-22 $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ $(lsb_release -cs) \ stable" $ sudo apt-get update $ sudo apt-get install docker-ce --下記コマンドで、HelloWorld出来れば成功 $ sudo docker run hello-world --Docker Composeの導入 $ sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose $ sudo chmod +x /usr/local/bin/docker-compose $ docker-compose --version docker-compose version 1.16.1, build 1719ceb } change docker data directory on debian{ 1. Edit /etc/docker/daemon.json 2. Add the following{ { "data-root":"/mnt/docker" } } 3. Stop docker { sudo systemctl stop docker } 4. Check docker has been stopped { ps aux | grep -i docker | grep -v grep } 5. Copy the files to the new location { sudo rsync -axPS /var/lib/docker/ /mnt/docker{ -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) -x, --one-file-system don''t cross filesystem boundaries -P show progress during transfer -S, --sparse handle sparse files efficiently sudo systemctl start docker } } 6. Start Docker back up { sudo systemctl start docker } 7. Check Docker has started up using the new location { docker info | grep 'Docker Root Dir' } 8. Check everything has started up that should be running { docker ps } Leave both copies on the server for a few days to make sure no issues arise, then feel free to delete it. { sudo rm -r /var/lib/docker } } } debian_setup_config{ setup_debian.js qBittorrent debug{ error in bullseye{ ## E: Package 'qt5-default' has no installation candidate qt5-default not in Ubuntu 21.04{ sudo apt-get update sudo apt-get install equivs ------ cd ~/Downloads cat < qt5-default-control Package: qt5-default Source: qtbase-opensource-src Version: 5.99.99+fake-13ubuntu37 Architecture: all Depends: qtbase5-dev, qtchooser Suggests: qt5-qmake, qtbase5-dev-tools Conflicts: qt4-default Section: libdevel Priority: optional Homepage: http://qt-project.org/ Description: Qt 5 development defaults fake package EOF ----------- equivs-build qt5-default-control sudo apt-get install ./qt5-default_5.99.99+fake-13ubuntu37_all.deb } } apt-get install -y pkg-config libboost-all-dev libtorrent-rasterbar-dev git build-essential cmake qt5-default qtscript5-dev libssl-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev libqt5webkit5-dev libsdl2-dev libasound2 libxmu-dev libxi-dev freeglut3-dev libasound2-dev libjack-jackd2-dev libxrandr-dev libqt5xmlpatterns5-dev libqt5xmlpatterns5 git clone https://github.com/qbittorrent/qBittorrent.git cd qBittorrent (git checkout release-4.3.1) ./configure ./configure --disable-gui --with-boost-libdir=/usr/lib/arm-linux-gnueabihf (./configure --disable-gui --with-boost-libdir=/usr/lib/aarch64-linux-gnu) make && make install qbittorrent qbittorrent-nox --webui-port=8077 ----------------------------/home/pi/.local/share/data/qBittorrent/logs/qbittorrent.log log{ ----------------------------start (N) 2020-03-10T22:21:09 - qBittorrent v4.3.0alpha1 started (N) 2020-03-10T22:21:09 - Using config directory: /home/pi/.config/qBittorrent/ (I) 2020-03-10T22:21:09 - Trying to listen on: 0.0.0.0:23368,[::]:23368 (N) 2020-03-10T22:21:09 - Peer ID: -qB4300- (N) 2020-03-10T22:21:09 - HTTP User-Agent is 'qBittorrent/4.3.0alpha1' ----------------------------end (I) 2020-03-10T22:20:57 - UPnP / NAT-PMP support [OFF] } crontab -e { ----------------------------------- 10 19 * * 1-5 /usr/local/bin/qbittorrent-nox 1>/home/pi/qbittorrent-nox.log 2>&1 #37 0 * * 1-5 /usr/local/bin/qbittorrent-nox 1>/home/pi/qbittorrent-nox.log 2>&1 10 7 * * 6,7 /usr/local/bin/qbittorrent-nox 1>/home/pi/qbittorrent-nox.log 2>&1 55 0 * * * /bin/kill -s SIGINT $(pgrep qbittorrent-nox) 45 0 * * * /bin/kill -s SIGINT $(pgrep qbittorrent-nox) ----------------------------------- 30 19 * * * /mnt/tools/python/MUFJ/get_bank_list.sh 10 19 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/qbittorrent-nox 1>/dev/null 2>&1 10 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/qbittorrent-nox 1>/dev/null 2>&1 30 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/qbittorrent-nox 1>/dev/null 2>&1 50 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/qbittorrent-nox 1>/dev/null 2>&1 10 07 * * 6,7 /home/pi/start_one_app.sh /usr/local/bin/qbittorrent-nox 1>/dev/null 2>&1 55 00 * * * /bin/kill -s SIGINT $(pgrep qbittorrent-nox) 45 00 * * * /bin/kill -s SIGINT $(pgrep qbittorrent-nox) } pi@raspberry48:~ $ cat ./start_one_app.sh{ #!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games HOME=/home/pi app_path=$1 shift app_name=$(basename $app_path) NAS=`cat /etc/fstab |grep -v ^# | grep /data/Videos | awk -F: '{ print $1;}'` limit=190 count=0 while rpcinfo -t ${NAS} nfs > /dev/null 2>&1 if [ $? -eq 0 ]; then sleep 3 break fi #echo $count #echo $[count++] if [ $count -eq $limit ] ; then exit 1 fi let count=count+1 do sleep 6; done if pidof -o %PPID -x ${app_name}>/dev/null; then echo "[$app_name] already running" exit 1 fi $app_path 1>/home/pi/${app_name}.log 2>&1 & exit 0 } } aMule { error in bullseye{ ## E: Package 'libwxgtk3.0-dev' has no installation candidate apt-get install -y libwxgtk3.0-gtk3-dev ## libghc-crypto-doc : Depends: haddock-interface-33 but it is not installable ## E: Unable to correct problems, you have held broken packages. apt -y install libghc-crypto-api-doc } apt-get install -y libgtk2.0-dev ## apt-get install -y libwxgtk3.0-dev apt-get install -y crypto++ ./autogen.sh ./configure --enable-webserver --enable-amule-daemon --enable-amulecmd amuled & crontab -e { ----------------------------------- 10 19 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuled 1>/dev/null 2>&1 10 19 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuleweb --amule-config-file=/home/pi/.aMule/amule.conf 1>/dev/null 2>&1 10 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuled 1>/dev/null 2>&1 10 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuleweb --amule-config-file=/home/pi/.aMule/amule.conf 1>/dev/null 2>&1 30 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuled 1>/dev/null 2>&1 30 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuleweb --amule-config-file=/home/pi/.aMule/amule.conf 1>/dev/null 2>&1 50 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuled 1>/dev/null 2>&1 50 18 * * 1-5 /home/pi/start_one_app.sh /usr/local/bin/amuleweb --amule-config-file=/home/pi/.aMule/amule.conf 1>/dev/null 2>&1 10 07 * * 6,7 /home/pi/start_one_app.sh /usr/local/bin/amuled 1>/dev/null 2>&1 10 07 * * 6,7 /home/pi/start_one_app.sh /usr/local/bin/amuleweb --amule-config-file=/home/pi/.aMule/amule.conf 1>/dev/null 2>&1 55 00 * * * /bin/kill -s SIGINT $(pgrep amuleweb) 55 00 * * * /bin/kill -s SIGINT $(pgrep amuled) 45 00 * * * /bin/kill -s SIGINT $(pgrep amuleweb) 45 00 * * * /bin/kill -s SIGINT $(pgrep amuled) } } command { apt-get install --reinstall --download-only $(dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}') apt-get --download-only --assume-yes reinstall $(dpkg --get-selections | awk '!/deinstall|purge|hold/ {print $1}') } } LinuxMint_setup_config{ ## setup ssh server apt-get install openssh-server -y setup_debian.js command{ shutdown --poweroff } nfs{ sudo apt install nfs-kernel-server sudo mkdir -p /mnt/nfs_share sudo chown -R nobody:nogroup /mnt/nfs_share sudo chmod 777 /mnt/nfs_share sudo vim /etc/exports{ /mnt/nfs_share 192.168.1.0/24(rw,sync,no_subtree_check) } sudo exportfs -a sudo systemctl restart nfs-kernel-server sudo ufw allow from 192.168.1.0/24 to any #sudo ufw allow from 192.168.1.0/24 to any port nfs #sudo ufw allow from 192.168.1.0/24 to any port ssh sudo ufw enable ufw status mkdir -p /mnt/minit mount -v op5040Mint20x64d1:/mnt/nfs_share /mnt/minit rpcinfo -p op5040Mint20x64d1 | fgrep nfs rpcinfo -p | grep nfs cat /proc/fs/nfsd/versions https://willhaley.com/blog/ubuntu-nfs-server/ vim /etc/default/nfs-kernel-server } } arch linux{ command { journalctl -b systemctl list-unit-files --state enabled systemctl disable NetworkManager-wait-online.service systemctl status NetworkManager-wait-online.service systemctl is-active NetworkManager systemctl is-enabled NetworkManager pacman -U https://archive.archlinux.org/packages/l/libvirt/libvirt-1:8.0.0-2-x86_64.pkg.tar.zst pacman -U http://nas-48-71-3b/dev/mirrors/archlinux/x86_64/3_x86_64_kvm/networkmanager-1.34.0-1-x86_64.pkg.tar.zst ---------------- Nvidia{ Main proprietary drivers. $ sudo pacman -S nvidia nvidia-utils -Secondary proprietary drivers. $ sudo pacman -S nvidia-304xx -Open source drivers. $ sudo pacman -S xf86-video-nouveau } Ati (radeon).{ $ sudo pacman -S xf86-video-ati } Intel{ $ sudo pacman -S xf86-video-intel } 安装特定版本{ /etc/pacman.d/mirrorlist 添加历史仓库: 在文件的底部,添加以下内容,其中 {date} 替换为您选择的日期: Server = https://archive.archlinux.org/repos/{date}/$repo/os/$arch 例如,如果您选择的日期是 2022-01-01,则添加: Server = https://archive.archlinux.org/repos/2022/01/01/$repo/os/$arch 同步仓库: 运行以下命令以同步仓库: sudo pacman -Sy 安装特定版本: 现在,您可以使用 pacman 安装特定版本的 QEMU。请将 {package} 替换为实际的软件包名称,例如 qemu。 sudo pacman -S {package} sudo pacman -S qemu 恢复仓库设置: 安装完特定版本后,记得将 /etc/pacman.conf 中添加的历史仓库行删除或注释掉,以避免影响将来的系统更新。 同步仓库: 最后,再次运行以下命令以同步仓库: sudo pacman -Sy } } yay{ git clone https://aur.archlinux.org/yay.git git log --pretty=format:"%h %ci %s"{ c5c3460 2024-03-16 01:35:25 +0100 12.3.3 09ad4b6 2024-03-13 17:27:14 +0100 bump 1aeb640 2024-03-13 16:49:28 +0100 add support for pacman 6.1 17f4503 2024-03-05 11:59:26 +0100 12.3.1 188037e 2024-02-19 17:27:18 +0100 12.3.0 e881112 2023-11-30 09:41:45 +0100 12.2.0 251d38a 2023-09-15 11:32:09 +0200 v12.1.3 #★ 2ecf033 2023-07-30 23:39:08 +0200 12.1.2 3b3b0e9 2023-06-23 20:48:47 +0200 12.1.0 bdf27d6 2023-05-23 00:25:26 +0200 12.0.5 } git checkout 251d38a git submodule update makepkg -si yay -S nvidia-470xx-dkms nvidia-470xx-utils nvidia-470xx-settings } grub menu list{ -- /etc/default/grub [root@jin-i3-4150 nvidia-470xx-utils]# cat /etc/default/grub | grep GRUB_DEFAULT GRUB_DEFAULT="Arch Linux, with Linux linux-vfio custome" # setting 'GRUB_DEFAULT=saved' above. [root@jin-i3-4150 nvidia-470xx-utils]# -- /etc/grub.d/40_custom [root@jin-i3-4150 nvidia-470xx-utils]# cat /etc/grub.d/40_custom #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "Arch Linux, with Linux linux-vfio custome" { insmod ext2 set root='hd0,msdos1' # 根据你的分区调整 linux /vmlinuz-linux-vfio root=UUID=4ac2f939-e055-4b1f-b86d-778e9c9412ba rw ipv6.disable=1 intel_iommu=on iommu=pt i915.enable_hd_vgaarb=1 pci=realloc pci=nocrs rdblacklist=nouveau nouveau.modeset=0 pci-stub.ids=10de:11c6,10de:0e0b net.ifnames=0 biosdevname=0 ipv6.disable=1 loglevel=3 intel_iommu=on iommu=pt video=efif:off console=tty0 console=ttyS0,115200n8 serial ipv6.disable=1 initrd /intel-ucode.img /initramfs-linux-vfio.img } [root@jin-i3-4150 nvidia-470xx-utils]# } } alpine linux{ Enable Serial Console on Boot { # https://wiki.alpinelinux.org/wiki/Enable_Serial_Console_on_Boot Grub { GRUB_TERMINAL="serial console" GRUB_SERIAL_COMMAND="serial --unit=0 --word=8 --parity=no --speed 115200 --stop=1" ---------------------------------- /etc/default/grub { GRUB_TIMEOUT=2 GRUB_DISABLE_SUBMENU=y GRUB_DISABLE_RECOVERY=true GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8d modules=sd-mod,usb-storage,xfs quiet rootfstype=xfs" GRUB_TERMINAL="serial console" GRUB_SERIAL_COMMAND="serial --unit=0 --word=8 --parity=no --speed 115200 --stop=1" } grub-mkconfig -o /boot/grub/grub.cfg # Enabling a login console /etc/inittab{ # Put a getty on the serial port ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 } ## Add your serial console to the trusted local terminal list ## Add this to the /etc/securetty file: /etc/securetty{ ttyS0 } } } command { apk add python3 py3-pip ffmpeg pip3 install ffmpeg-python } } qemu-kvm { cmd{ wmic path softwarelicensingservice get OA3xOriginalProductKey strings /sys/firmware/acpi/tables/MSDM } win10 slic{ VK7JG-NPHTM-C97JM-9MPGT-3V66T{ ------------------------------------hvm alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: SeaBIOS Version: Arch Linux 1.16.2-1-1 Release Date: 04/01/2014 Address: 0xE8000 Runtime Size: 96 kB ROM Size: 64 kB Characteristics: BIOS characteristics not supported Targeted content distribution is supported BIOS Revision: 0.0 alpine_pxe:~# } alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0100, DMI type 1, 27 bytes System Information Manufacturer: QEMU Product Name: Standard PC (Q35 + ICH9, 2009) Version: pc-q35-7.2 Serial Number: Not Specified UUID: f5f188bb-4c52-47eb-b1fe-c2916350ddf4 Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified alpine_pxe:~# } ------------------------------------ alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: SeaBIOS Version: Arch Linux 1.16.1-1-1 Release Date: 04/01/2014 Address: 0xE8000 Runtime Size: 96 kB ROM Size: 64 kB Characteristics: BIOS characteristics not supported Targeted content distribution is supported BIOS Revision: 0.0 alpine_pxe:~# } alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0100, DMI type 1, 27 bytes System Information Manufacturer: QEMU Product Name: Standard PC (Q35 + ICH9, 2009) Version: pc-q35-7.2 Serial Number: Not Specified UUID: 98edeeea-a04e-476b-a973-a2f28fe2507f Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified alpine_pxe:~# } } XN6TT-63299-T64YF-T43DB-K766P{ ------------------------------------物理机(x260) alpine_pxe:~# dmidecode -t 0{ # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x000B, DMI type 0, 24 bytes BIOS Information Vendor: LENOVO Version: R02ET74W (1.47 ) Release Date: 09/15/2020 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 16 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported 3.5""/720 kB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.47 Firmware Revision: 1.15 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x000C, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 20F5S0RN0G Version: ThinkPad X260 Serial Number: PC0CHJFX UUID: 7361ba4c-27c1-11b2-a85c-e059adce4dd7 Wake-up Type: Power Switch SKU Number: LENOVO_MT_20F5_BU_Think_FM_ThinkPad X260 Family: ThinkPad X260 alpine_pxe:~# } } PNG9D-FMC27-K474H-3F34T-YG9TP{ ------------------------------------ alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: SeaBIOS Version: Arch Linux 1.16.1-1-1 Release Date: 04/01/2014 Address: 0xE8000 Runtime Size: 96 kB ROM Size: 64 kB Characteristics: BIOS characteristics not supported Targeted content distribution is supported BIOS Revision: 0.0 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x0100, DMI type 1, 27 bytes System Information Manufacturer: QEMU Product Name: Standard PC (Q35 + ICH9, 2009) Version: pc-q35-7.2 Serial Number: Not Specified UUID: 4ebd80f3-b9d4-448c-ab5d-cc5692301481 Wake-up Type: Power Switch SKU Number: Not Specified Family: Not Specified alpine_pxe:~# } ------------------------------------物理机(T460) alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x000C, DMI type 0, 24 bytes BIOS Information Vendor: LENOVO Version: R06ET69W (1.43 ) Release Date: 01/08/2020 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 16 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported 3.5""/720 kB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.43 Firmware Revision: 1.11 alpine_pxe:~# } alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.3 Getting SMBIOS data from sysfs. SMBIOS 2.8 present. Handle 0x000D, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 20FMS23100 Version: ThinkPad T460 Serial Number: PC0H9KLQ UUID: a4a5e34c-1f94-11b2-a85c-c4deec5f7a1e Wake-up Type: Power Switch SKU Number: LENOVO_MT_20FM_BU_Think_FM_ThinkPad T460 Family: ThinkPad T460 alpine_pxe:~# } } N9V78-TWFHG-3FD2W-C74FK-FRG6P{ ------------------------------------物理机(corei3-8100:312A SDK0J40697 WIN 3305224244683) alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.2.1 present. Handle 0x0000, DMI type 0, 26 bytes BIOS Information Vendor: LENOVO Version: M1UKT70A Release Date: 02/09/2023 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 12 MB Characteristics: PCI is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25""/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.112 Firmware Revision: 1.24 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.2.1 present. Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 10ST000VJP Version: ThinkCentre M720s Serial Number: PC18NM62 UUID: 5c953e80-d660-11e9-97fc-24f3f3042300 Wake-up Type: Power Switch SKU Number: LENOVO_MT_10ST_BU_Think_FM_ThinkCentre M720s Family: ThinkCentre M720s alpine_pxe:~#} ------------------------------------ } 3YYPQ-TNTWF-6XC73-8K22P-9QBW2{ ------------------------------------物理机(optiplex3040) alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x0000, DMI type 0, 24 bytes BIOS Information Vendor: Dell Inc. Version: 1.18.1 Release Date: 12/08/2021 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 16 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported 5.25""/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) ACPI is supported USB legacy is supported BIOS boot specification is supported Function key-initiated network boot is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.18 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: Dell Inc. Product Name: OptiPlex 3040 Version: Not Specified Serial Number: GT91CB2 UUID: 4c4c4544-0054-3910-8031-c7c04f434232 Wake-up Type: Power Switch SKU Number: 06BB Family: OptiPlex alpine_pxe:~#} ------------------------------------ } CBPFF-N66BF-PX4C3-2G2YB-FGDGP{ ------------------------------------物理机(l580) alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x000B, DMI type 0, 24 bytes BIOS Information Vendor: LENOVO Version: R0QET52W (1.29 ) Release Date: 11/22/2018 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 16 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported 3.5"/720 kB floppy services are supported (int 13h) " Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.29 Firmware Revision: 1.29 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x000C, DMI type 1, 27 bytes System Information Manufacturer: LENOVO Product Name: 20LXS06100 Version: ThinkPad L580 Serial Number: PF1FWXK5 UUID: 26f3574c-2fd7-11b2-a85c-b8579671f842 Wake-up Type: Power Switch SKU Number: LENOVO_MT_20LX_BU_Think_FM_ThinkPad L580 Family: ThinkPad L580 alpine_pxe:~# } ------------------------------------ } QYY92-ND3J2-W4X36-KHCJY-FGDGP{ ------------------------------------物理机( VK26HDAGG3GUSCD ) alpine_pxe:~# dmidecode -t 0 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x000B, DMI type 0, 24 bytes BIOS Information Vendor: NEC Version: N1YET45W (1.23 ) Release Date: 09/14/2017 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 16 MB Characteristics: PCI is supported PNP is supported BIOS is upgradeable BIOS shadowing is allowed Boot from CD is supported Selectable boot is supported EDD is supported 3.5"/720 kB floppy services are supported (int 13h) " Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported BIOS boot specification is supported Targeted content distribution is supported UEFI is supported BIOS Revision: 1.23 Firmware Revision: 1.23 alpine_pxe:~#} alpine_pxe:~# dmidecode -t 1 { # dmidecode 3.4 Getting SMBIOS data from sysfs. SMBIOS 3.0.0 present. Handle 0x000C, DMI type 1, 27 bytes System Information Manufacturer: NEC Product Name: VK26HDAGG3GUSCD Version: Serial Number: 79016051A UUID: d9b3cbad-4ac4-2a4b-8a4d-d34d198117b5 Wake-up Type: Power Switch SKU Number: VK26HDAGMAYUZEZZ5SCD Family: VersaPro alpine_pxe:~# } } } } openwrt_command{ 1 opkg update 2 opkg install luci 3 opkg install luci-ssl 4 /etc/init.d/uhttpd restart } RaspAP { sudo apt-get update sudo apt-get full-upgrade sudo reboot Username: admin Password: secret dtoverlay -a | grep pi3 curl -sL https://install.raspap.com | bash Terminal log{ root@raspberry4:~# curl -sL https://install.raspap.com | bash 888888ba .d888888 888888ba 88 8b d8 88 88 8b a88aaaa8P'' .d8888b. .d8888b. 88d888b. 88aaaaa88a a88aaaa8P 88 8b. 88 88 Y8ooooo. 88 88 88 88 88 88 88 88. .88 88 88. .88 88 88 88 dP dP 88888P8 88888P 88Y888P 88 88 dP 88 dP version 2.6.2 The Quick Installer will guide you through a few easy steps RaspAP Install: Configure installation Detected OS: Raspbian GNU/Linux 10 (buster) Using GitHub repository: raspap/raspap-webgui 2.6.2 branch Configuration directory: /etc/raspap lighttpd root: /var/www/html? [Y/n]: Y Installing lighttpd directory: /var/www/html Complete installation with these values? [Y/n]: Y RaspAP Install: Updating sources Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2 http://archive.raspberrypi.org/debian buster InRelease Reading package lists... RaspAP Install: Installing required packages Reading package lists... Building dependency tree... Reading state information... git is already the newest version (1:2.20.1-2+deb10u3). hostapd is already the newest version (2:2.7+git20190128+0c1e29f-6+deb10u2). iptables-persistent is already the newest version (1.0.11+deb10u1). lighttpd is already the newest version (1.4.53-4+deb10u1). php7.3-cgi is already the newest version (7.3.27-1~deb10u1). qrencode is already the newest version (4.0.2-1). vnstat is already the newest version (1.18-2). dnsmasq is already the newest version (2.80-1+rpt1+deb10u1). 0 upgraded, 0 newly installed, 0 to remove and 242 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up gost-crypto-dkms (0.3-1) ... Removing old gost-crypto-0.3 DKMS files... Y ------------------------------ Deleting module version: 0.3 completely from the DKMS tree. ------------------------------ Done. Loading new gost-crypto-0.3 DKMS files... It is likely that 4.19.97-v7l+ belongs to a chroot''s host Building for 4.19.97+, 4.19.97-v7+, 4.19.97-v7l+, 4.19.97-v8+, 5.4.83+, 5.4.83-v7+ and 5.4.83-v7l+ Module build for kernel 4.19.97+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v7+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v7l+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v8+ was skipped since the kernel headers for this kernel does not seem to be installed. Building initial module for 5.4.83+ Error! Bad return status for module build on kernel: 5.4.83+ (armv7l) Consult /var/lib/dkms/gost-crypto/0.3/build/make.log for more information. dpkg: error processing package gost-crypto-dkms (--configure): installed gost-crypto-dkms package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: gost-crypto-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) [ ? error ] Unable to install dependencies [ ? ok ] RaspAP Install: Enabling PHP for lighttpd already enabled Run "service lighttpd force-reload" to enable changes lighttpd.service is not active, cannot reload. Job for lighttpd.service failed because the control process exited with error code. See "systemctl status lighttpd.service" and "journalctl -xe" for details. [ ? error ] Unable to restart lighttpd RaspAP Install: Creating RaspAP directories Creating /etc/raspap/networking RaspAP Install: Optimize PHP configuration Enable HttpOnly for session cookies (Recommended)? [Y/n]: Php-cgi enabling session.cookie_httponly. RaspAP Install: Backing up existing configs to /etc/raspap/backups [ ? ok ] RaspAP Install: Cloning latest files from github Cloning into '/tmp/raspap-webgui'... [ ? ok ] RaspAP Install: Changing file ownership in web root directory RaspAP Install: Creating hostapd logging & control scripts changed ownership of '/etc/raspap/hostapd/disablelog.sh' from root:root to root:www-data changed ownership of '/etc/raspap/hostapd/enablelog.sh' from root:root to root:www-data changed ownership of '/etc/raspap/hostapd/servicestart.sh' from root:root to root:www-data [ ? ok ] RaspAP Install: Creating lighttpd control scripts Copying configport.sh to /etc/raspap/lighttpd Changing file ownership changed ownership of '/etc/raspap/lighttpd/configport.sh' from root:root to root:www-data [ ? ok ] RaspAP Install: Copying lighttpd extra config files Copying 50-raspap-router.conf to /etc/lighttpd/conf-available Creating link to /etc/lighttpd/conf-enabled ln: failed to create symbolic link '/etc/lighttpd/conf-enabled/50-raspap-router.conf': File exists [ ? error ] Unable to symlink lighttpd config file. Job for lighttpd.service failed because the control process exited with error code. See "systemctl status lighttpd.service" and "journalctl -xe" for details. [ ? error ] Unable to restart lighttpd [ ? ok ] RaspAP Install: Moving configuration file to /etc/raspap RaspAP Install: Applying default configuration to installed services Changing file ownership of /etc/raspap Checking for existence of /etc/dnsmasq.d Copying bridged AP config to /etc/systemd/network Copying primary RaspAP config to includes/config.php [ ? ok ] RaspAP Install: Configuring networking Enabling IP forwarding net.ipv4.ip_forward = 1 Restarting procps (via systemctl): procps.service. Checking iptables rules Rule already exits: -A POSTROUTING -j MASQUERADE Rule already exits: -A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE Enable RaspAP control service (Recommended)? [Y/n]: Y RaspAP Install: Enabling RaspAP daemon Disable with: sudo systemctl disable raspapd.service Created symlink /etc/systemd/system/multi-user.target.wants/raspapd.service → /lib/systemd/system/raspapd.service. [ ? ok ] RaspAP Install: Configure ad blocking (Beta) Install ad blocking and enable list management? [Y/n]: Y RaspAP Install: Creating ad blocking base configuration (Beta) Creating /etc/raspap/adblock Fetching latest hostnames list /tmp/hostnames.txt 100%[===================>] 6.65M 16.2MB/s in 0.4s Fetching latest domains list /tmp/domains.txt 100%[===================>] 10.51M 17.7MB/s in 0.6s Adding blocklists to /etc/raspap/adblock Moving and setting permissions for blocklist update script changed ownership of '/etc/raspap/adblock/domains.txt' from root:root to root:www-data changed ownership of '/etc/raspap/adblock/hostnames.txt' from root:root to root:www-data changed ownership of '/etc/raspap/adblock/update_blocklist.sh' from root:root to root:www-data Enabling local DNS name resolution for DHCP clients Enabling ad blocking management option [ ? ok ] RaspAP Install: Configure OpenVPN support Install OpenVPN and enable client configuration? [Y/n]: Y RaspAP Install: Installing OpenVPN and enabling client configuration Adding packages via apt-get Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: easy-rsa libccid libpkcs11-helper1 opensc opensc-pkcs11 pcscd Suggested packages: pcmciautils openvpn-systemd-resolved The following NEW packages will be installed: easy-rsa libccid libpkcs11-helper1 opensc opensc-pkcs11 openvpn pcscd 0 upgraded, 7 newly installed, 0 to remove and 242 not upgraded. 1 not fully installed or removed. Need to get 1,910 kB of archives. After this operation, 5,293 kB of additional disk space will be used. Get:1 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf easy-rsa all 3.0.6-1 [37.9 kB] Get:2 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf libccid armhf 1.4.30-1 [328 kB] Get:3 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf libpkcs11-helper1 armhf 1.25.1-1 [41.9 kB] Get:4 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf opensc-pkcs11 armhf 0.19.0-1 [718 kB] Get:5 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf opensc armhf 0.19.0-1 [274 kB] Get:6 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian buster/main armhf openvpn armhf 2.4.7-1 [426 kB] Get:7 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian buster/main armhf pcscd armhf 1.8.24-1 [84.8 kB] Preconfiguring packages ... Fetched 1,910 kB in 4s (510 kB/s) Selecting previously unselected package easy-rsa. (Reading database ... 238019 files and directories currently installed.) Preparing to unpack .../0-easy-rsa_3.0.6-1_all.deb ... Unpacking easy-rsa (3.0.6-1) ... Selecting previously unselected package libccid. Preparing to unpack .../1-libccid_1.4.30-1_armhf.deb ... Unpacking libccid (1.4.30-1) ... Selecting previously unselected package libpkcs11-helper1:armhf. Preparing to unpack .../2-libpkcs11-helper1_1.25.1-1_armhf.deb ... Unpacking libpkcs11-helper1:armhf (1.25.1-1) ... Selecting previously unselected package opensc-pkcs11:armhf. Preparing to unpack .../3-opensc-pkcs11_0.19.0-1_armhf.deb ... Unpacking opensc-pkcs11:armhf (0.19.0-1) ... Selecting previously unselected package opensc. Preparing to unpack .../4-opensc_0.19.0-1_armhf.deb ... Unpacking opensc (0.19.0-1) ... Selecting previously unselected package openvpn. Preparing to unpack .../5-openvpn_2.4.7-1_armhf.deb ... Unpacking openvpn (2.4.7-1) ... Selecting previously unselected package pcscd. Preparing to unpack .../6-pcscd_1.8.24-1_armhf.deb ... Unpacking pcscd (1.8.24-1) ... Setting up libccid (1.4.30-1) ... Setting up pcscd (1.8.24-1) ... Created symlink /etc/systemd/system/sockets.target.wants/pcscd.socket → /lib/systemd/system/pcscd.socket. Setting up gost-crypto-dkms (0.3-1) ... Removing old gost-crypto-0.3 DKMS files... ------------------------------ Deleting module version: 0.3 completely from the DKMS tree. ------------------------------ Done. Loading new gost-crypto-0.3 DKMS files... It is likely that 4.19.97-v7l+ belongs to a chroot's host' Building for 4.19.97+, 4.19.97-v7+, 4.19.97-v7l+, 4.19.97-v8+, 5.4.83+, 5.4.83-v7+ and 5.4.83-v7l+ Module build for kernel 4.19.97+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v7+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v7l+ was skipped since the kernel headers for this kernel does not seem to be installed. Module build for kernel 4.19.97-v8+ was skipped since the kernel headers for this kernel does not seem to be installed. Building initial module for 5.4.83+ Error! Bad return status for module build on kernel: 5.4.83+ (armv7l) Consult /var/lib/dkms/gost-crypto/0.3/build/make.log for more information. dpkg: error processing package gost-crypto-dkms (--configure): installed gost-crypto-dkms package post-installation script subprocess returned error exit status 10 Setting up libpkcs11-helper1:armhf (1.25.1-1) ... Setting up opensc-pkcs11:armhf (0.19.0-1) ... Setting up easy-rsa (3.0.6-1) ... Setting up openvpn (2.4.7-1) ... [ ok ] Restarting virtual private network daemon.:. Created symlink /etc/systemd/system/multi-user.target.wants/openvpn.service → /lib/systemd/system/openvpn.service. Setting up opensc (0.19.0-1) ... Processing triggers for systemd (241-7~deb10u2+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for desktop-file-utils (0.23-4) ... Processing triggers for mime-support (3.62) ... Processing triggers for gnome-menus (3.31.4-3) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: gost-crypto-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) [ ? error ] Unable to install openvpn Enabling openvpn-client service on boot Created symlink /etc/systemd/system/multi-user.target.wants/openvpn-client@client.service → /lib/systemd/system/openvpn-client@.service. RaspAP Install: Creating OpenVPN control scripts changed ownership of '/etc/raspap/openvpn/configauth.sh' from root:root to root:www-data [ ? ok ] RaspAP Install: Adding raspap.sudoers to /etc/sudoers.d/090_raspap RaspAP Install: Symlinked wpa_supplicant hooks for multiple wlan interfaces RaspAP Install: Unmasking and enabling hostapd service Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable hostapd [ ? ok ] RaspAP Install: Installation completed Join RaspAP Insiders for access to exclusive features: > https://github.com/sponsors/RaspAP The system needs to be rebooted as a final step. Reboot now? [y/N]:Y } setting{ readme{ https://wiki.archlinux.org/index.php/Systemd-networkd_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E6%A1%A5%E6%8E%A5%E7%AB%AF%E5%8F%A3 https://man.archlinux.org/man/systemd.netdev.5 } root@raspberry4:/etc/systemd/network# cat raspap-bridge-br0.netdev { [NetDev] Name=br0 Kind=bridge MACAddress=DC:A6:32:6C:9D:46 } root@raspberry4:/etc/systemd/network# cat raspap-br0-member-eth0.network { [Match] Name=eth0 [Network] Bridge=br0 DHCP=yes ##DHCP=ipv4 } root@raspberry4:/etc/systemd/network# cat raspap-bridge-br0.network { [Match] Name=br0 [Network] DHCP=yes ##DHCP=ipv4 Gateway=192.168.1.251 DNS=192.168.1.251 } } } overlayfs{ rpi4-nfs{ apt install nfs-common # Open the /etc/network/interfaces file, and add the following line so that the Pi only get’s an IP once during boot: iface eth0 inet manual Modify your /etc/fstab entries to reflect the NFS root and the new boot SD card as per below.{ For Raspbian, your /etc/fstab should look like this:{ proc /proc proc defaults 0 0 LABEL=boot /boot vfat defaults 0 2 NFS-SERVER-IP:/nfs-export/PI-Raspbian / nfs defaults 0 0 } For Ubuntu, your /etc/fstab should look like this:{ LABEL=system-boot /boot/firmware vfat defaults 0 2 /dev/nfs / nfs defaults 0 0 } } Mount the root partition of the SD Card Linux install to a directory. In my case I used directory called “old”.{ mount /dev/sdb2 old/ } Mount the NFS Export for the NFS Root to a directory. In my case I used a directory called “nfs”.{ mount IPADDRESS:/nfs-export/PI-ImageName nfs/ } Use the rsync command to transfer the SD card Linux install to the NFS Root Export.{ rsync -avxHAXS --numeric-ids --info=progress2 --progress old/ nfs/ } Unmount the directories.{ umount old/ umount nfs/ } Mount the boot partition of the SD Card Linux install to a directory. In my case I used directory called “old”.{ mount /dev/sdb1 old/ } Mount the new boot partition of the boot SD card to a new directory. In my case I used the directory called “new”.{ mount /dev/sdc1 new/ } Use the rsync command to transfer the SD card Linux install boot partition to the new boot SD card.{ rsync -avxHAXS --numeric-ids --info=progress2 --progress old/ new/ } Unmount the directories.{ umount old/ umount new/ } First, insert the boot SD card, and mount it to a temporary directory.{ mount /dev/sdc1 new/ } If you’re running Ubuntu, your existing nobtcmd.txt should look like this:{ dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait } We’ll modify and replace some text to make it look like this. Don’t forget to change the command to reflect your IP and directory:{ dwc_otg.lpm_enable=0 console=tty1 root=/dev/nfs nfsroot=IPADDRESS:/nfs-export/PI-Ubuntu,tcp,rw ip=dhcp rootfstype=nfs elevator=deadline rootwait } For Raspbian, your existing cmdline.txt should look like this:{ console=serial0,115200 console=tty1 root=PARTUUID=97709164-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait } We’ll modify and replace some text to make it look like this. Don’t forget to change the command to reflect your IP and directory:{ console=serial0,115200 console=tty1 root=/dev/nfs nfsroot=IPADDRESS:/nfs-export/PI-Raspbian,tcp rw vers=3 ip=dhcp rootfstype=nfs elevator=deadline rootwait } } --------------------------------- cd /mnt/nfs_share/ sudo systemctl stop nfs-kernel-server umount /mnt/nfs_share/SDPI mount -t overlay -o lowerdir=SDPI,upperdir=overlay_up_rpi-eeprom-config,workdir=work -o nfs_export=on -o index=on overlay ./SDPI mount -t overlay -o lowerdir=SD2,upperdir=ver1,workdir=work -o nfs_export=on -o index=on overlay ./SD2 mount -t overlay -o lowerdir=/srv/nfs/rpi4-c334e28f,upperdir=/srv/nfs/overlay_rpi4/upper,workdir=/srv/nfs/overlay_rpi4/work -o nfs_export=on -o index=on overlay /srv/nfs/rpi4-c334e28f mount -t overlay -o lowerdir=/srv/nfs/rpi4-c334e28f,upperdir=/srv/nfs/overlay_rpi4-eeprom-config/upper,workdir=/srv/nfs/overlay_rpi4-eeprom-config/work -o nfs_export=on -o index=on overlay /srv/nfs/rpi4-c334e28f mount -t overlay -o lowerdir=/srv/nfs/rpi4-c334e28f,upperdir=/srv/nfs/overlay_rpi4_tftp-dhcp-dns/upper,workdir=/srv/nfs/overlay_rpi4_tftp-dhcp-dns/work -o nfs_export=on -o index=on overlay /srv/nfs/rpi4-c334e28f mount -t overlay -o lowerdir=/srv/nfs/rpi4-c334e28f,upperdir=/srv/nfs/overlay_rpi4_test/upper,workdir=/srv/nfs/overlay_rpi4_test/work -o nfs_export=on -o index=on overlay /srv/nfs/rpi4-c334e28f mount -t overlay -o lowerdir=/srv/nfs/rpi4-c334e28f,upperdir=/srv/nfs/overlay_rpi4_test2/upper,workdir=/srv/nfs/overlay_rpi4_test2/work -o nfs_export=on -o index=on overlay /srv/nfs/rpi4-c334e28f sudo systemctl restart nfs-kernel-server --------------------------------- Resolving error { mount: /srv/nfs/rpi4-c334e28f: mount(2) system call failed: Stale file handle.{ rm -rf /srv/nfs/work/* } } } linux_hard_command{ # RAM info check dmidecode --type memory ( dmidecode --type 17 ) dmidecode -t baseboard # CPU温度 sensors qemu-system-x86_64 -M help } TeraTerm key{ teraterm マクロ での Ctrl と文字を合わせたキーの書き方 Ctrl+ 書き方 意味 Ctrl+@ #$00 NUL Ctrl+A #$01 SOH Ctrl+B #$02 STX Ctrl+C #$03 ETX Ctrl+D #$04 EOT Ctrl+E #$05 ENQ Ctrl+F #$06 ACK Ctrl+G #$07 BEL Ctrl+H #$08 BS Ctrl+I #$09 HT Ctrl+J #$0A LF Ctrl+K #$0B VT Ctrl+L #$0C FF Ctrl+M #$0D CR Ctrl+N #$0E SO Ctrl+O #$0F SI Ctrl+P #$10 DLE Ctrl+Q #$11 DC1 Ctrl+R #$12 DC2 Ctrl+S #$13 DC3 Ctrl+T #$14 DC4 Ctrl+U #$15 NAK Ctrl+V #$16 SYN Ctrl+W #$17 ETB Ctrl+X #$18 CAN Ctrl+Y #$19 EM Ctrl+Z #$1A SUB Ctrl+[ #$1B ESC Ctrl+\ #$1C FS Ctrl+] #$1D GS Ctrl+^ #$1E RS Ctrl+_ #$1F US } MSYS32{ https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository cat /etc/pacman.conf pacman -Ss gcc ------ pacman -Syuu pacman -Sy pacman -S gcc pacman -S g++ pacman -S gdb pacman -S openssh pacman -S git pacman -S make pacman -S mingw-w64-i686-gcc pacman -S mingw-gcc pacman -S subversion git clone https://github.com/rprichard/winpty.git TMP_PATH=${PATH} export PATH=/mingw32/bin:/d/svn/nas-27-59-fd/winpty/winpty/debug:${TMP_PATH} ------ add install package pacman -S meson pkg-config cmake glib2 mingw-w64-x86_64-glib2 glib2-devel pacman -S mingw-w64-x86_64-gtk3 export PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:${PKG_CONFIG_PATH} } Repository{ make key{ gpg command { find . -name '*.sig' -exec gpg --verify {} \; gpg --delete-secret-keys gpg --delete-keys{ [root@hp6archx64d1 ~]# gpg --list-keys /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2021-10-04 [SC] [expired: 2023-10-04] 3A7A0EBDA895CA68326D48786AF52B481B08D09B uid [ expired] jinzhongjie [root@hp6archx64d1 ~]# [root@hp6archx64d1 ~]# gpg --delete-secret-keys 3A7A0EBDA895CA68326D48786AF52B481B08D09B ... ... [root@hp6archx64d1 ~]# gpg --list-keys /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2021-10-04 [SC] [expired: 2023-10-04] 3A7A0EBDA895CA68326D48786AF52B481B08D09B uid [ expired] jinzhongjie ... ... [root@hp6archx64d1 ~]# gpg --delete-keys 3A7A0EBDA895CA68326D48786AF52B481B08D09B [root@hp6archx64d1 ~]# gpg --list-keys gpg: checking the trustdb gpg: no ultimately trusted keys found [root@hp6archx64d1 ~]# } gpg --full-generate-key { gpg (GnuPG) 2.2.41; Copyright (C) 2022 g10 Code GmbH This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Please select what kind of key you want: (1) RSA and RSA (default) (2) DSA and Elgamal (3) DSA (sign only) (4) RSA (sign only) (14) Existing key from card Your selection? RSA keys may be between 1024 and 4096 bits long. What keysize do you want? (3072) Requested keysize is 3072 bits Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) Key does not expire at all Is this correct? (y/N) Key is valid for? (0) Key does not expire at all Is this correct? (y/N) y GnuPG needs to construct a user ID to identify your key. Real name: jinzhongjie Email address: xjinzhongjie@gmail.com Comment: for home work You selected this USER-ID: "jinzhongjie (for home work) " Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy. gpg: revocation certificate stored as '/root/.gnupg/openpgp-revocs.d/767056F5FE4902C762ED57ED8AC127EADEF4677B.rev' public and secret key created and signed. pub rsa3072 2023-10-15 [SC] 767056F5FE4902C762ED57ED8AC127EADEF4677B uid jinzhongjie (for home work) sub rsa3072 2023-10-15 [E] [root@hp6archx64d1 ~]# } gpg --recv-keys { [root@hp6archx64d2 ~]# gpg --recv-keys 7258734B41C31549 gpg: key 7258734B41C31549: 2 duplicate signatures removed gpg: key 7258734B41C31549: 2 signatures reordered gpg: key 7258734B41C31549: public key "David Runge " imported gpg: Total number processed: 1 gpg: imported: 1 [root@hp6archx64d2 ~]# } gpg --list-keys { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2023-10-15 [SC] 767056F5FE4902C762ED57ED8AC127EADEF4677B uid [ultimate] jinzhongjie (for home work) sub rsa3072 2023-10-15 [E] [root@hp6archx64d1 ~]# } gpg --list-secret-keys { /root/.gnupg/pubring.kbx ------------------------ sec rsa3072 2023-10-15 [SC] 767056F5FE4902C762ED57ED8AC127EADEF4677B uid [ultimate] jinzhongjie (for home work) ssb rsa3072 2023-10-15 [E] [root@hp6archx64d1 ~]# } gpg --list-signatures { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2023-10-15 [SC] 767056F5FE4902C762ED57ED8AC127EADEF4677B uid [ultimate] jinzhongjie (for home work) sig 3 8AC127EADEF4677B 2023-10-15 jinzhongjie (for home work) sub rsa3072 2023-10-15 [E] sig 8AC127EADEF4677B 2023-10-15 jinzhongjie (for home work) [root@hp6archx64d1 ~]# [root@hp6archx64d1 ~]# } gpg --fingerprint { /root/.gnupg/pubring.kbx ------------------------ pub rsa3072 2023-10-15 [SC] 7670 56F5 FE49 02C7 62ED 57ED 8AC1 27EA DEF4 677B uid [ultimate] jinzhongjie (for home work) sub rsa3072 2023-10-15 [E] [root@hp6archx64d1 ~]# } } apt-key command { apt-key add my_pub_key.asc{ Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). OK } } -------------------------------raspberry48 gpg --gen-key gpg --export-secret-keys --armor 6AF52B481B08D09B > my_key_backup.asc root@raspberry48:/media/netdir/svn_tmp# cp -p /root/my_key_backup.asc ./ cd /media/netdir/svn_tmp gpg --import my_key_backup.asc -------------------------------hp6archx64d1 gpg --full-generate-key gpg --export-secret-keys --armor 8AC127EADEF4677B > my_key_backup.asc gpg --export -a 8AC127EADEF4677B > my_pub_key.asc cd /media/dev/mirrors/pubkey mv my_pub_key.asc old_my_pub_key.asc cp /root/my_pub_key.asc /media/dev/mirrors/pubkey/ cd /media/netdir/svn_tmp mv my_key_backup.asc old_my_key_backup.asc mv my_pub_key.asc old_my_pub_key.asc cp -p /root/my_key_backup.asc ./ cp -p /root/my_pub_key.asc ./ -------------------------------b85archx64d5 gpg --export --armor 38DBBDC86092693E > 38DBBDC86092693E.asc gpg --export --armor B8AC08600F108CDF > B8AC08600F108CDF.asc } MSYS32 Repository{ http://nas-48-71-3b/dev/mirrors/msys2/i686/ -------------------------------win7jpXXX-dev cd //nas-48-71-3b/dev/mirrors/msys2/x86_64/1_x86_64_first cp -p /var/cache/pacman/pkg/* ./ -------------------------------archlinux2021x64d1 rm -f custom.files custom.db custom.db.tar.gz custom.files.tar.gz gpg --import my_key_backup.asc export GPG_TTY=$(tty) PIN=jin123 PKGPATH=/media/mirrors/msys2/x86_64/1_x86_64_first DBNAME=custom for pkg in $PKGPATH/*.pkg.tar.{xz,zst}; do echo ${PIN} | gpg --batch --yes --passphrase-fd 0 --detach-sign --no-armor -o $pkg.sig $pkg done repo-add $PKGPATH/$DBNAME.db.tar.gz -s $PKGPATH/*.pkg.tar.{xz,zst} ln -s 1_x86_64_first pkg -------------------------------win7jpXXX-dev jin@win7jp-32-dev MSYS /d/tmp # pacman-key --add my_pub_key.asc # pacman-key --lsign-key 6AF52B481B08D09B } python Repository{ ###### export CRYPTOGRAPHY_DONT_BUILD_RUST=1 ###### pip3 install cryptography==3.4.6 cd //nas-48-71-3b/dev/mirrors/python/pkg pypi-mirror download -d . cryptography==3.4.6 pypi-mirror download -d . requests pypi-mirror download -d . selenium pypi-mirror download -d . python-dateutil } raspberry pi Repository{ -------------source ok refer to https://www.cnblogs.com/bamanzi/p/create-simple-apt-repo.html gpg --generate-key cd /media/netdir/svn_tmp gpg --import my_key_backup.asc mkdir -p /home/pi/mirrors/raspbian/dists/buster/dists/buster/pkg apt list --installed apt-get download ... ... ... cp -p /var/cache/apt/archives/* /home/pi/mirrors/raspbian/dists/buster/dists/buster/pkg/ cd /home/pi/mirrors/raspbian/dists/buster/ mkdir -p main/binary-armhf main/binary-all dpkg-scanpackages -a armhf . > main/binary-armhf/Packages dpkg-scanpackages -a aarch64 . > main/binary-aarch64/Packages dpkg-scanpackages -a all . > main/binary-all/Packages gzip -c main/binary-armhf/Packages > main/binary-armhf/Packages.gz gzip -c main/binary-all/Packages > main/binary-all/Packages.gz gzip -c main/binary-aarch64/Packages > main/binary-aarch64/Packages.gz apt-ftparchive release . > Release gpg --armor --detach-sign --sign -o Release.gpg Release gpg --clearsign -o InRelease Release ln -s dists/buster/pkg pkg vi /etc/apt/sources.list{ deb [trusted=yes] http://nas-48-71-3b/dev/mirrors/raspbian/ buster main } -------------https://www.youtube.com/watch?v=vUKOAqVxVNM mkdir -p /var/www/html/local-apt-repo/dists/cache/local/binary-armhf mkdir -p /var/www/html/local-apt-repo/dists/cache/local/binary-all scp pi@192.168.0.213:/var/cache/apt/archives/* /var/www/html/local-apt-repo cd /var/www/html/local-apt-repo dpkg-scanpackages -a armhf . /dev/null | gzip -9c > dists/cache/local/binary-armhf/Packages.gz dpkg-scanpackages -a all . /dev/null | gzip -9c > dists/cache/local/binary-all/Packages.gz vi /etc/apt/sources.list deb http://192.168.0.213/local-apt-repo cache local ---------------https://mcnoviceelectronics.wordpress.com/2018/03/22/raspberry-pi-creating-local-apt-repository sudo mkdir -p /home/pi/mirrors/raspbian/buster/main sudo chown user:group /home/pi/mirrors/raspbian/buster/main sudo chmod g+w /home/pi/mirrors/raspbian/buster/main sudo mount --bind /home/pi/mirrors/raspbian/buster/main/ /srv/ftp/ mount | grep apt-mirror cd /var/cache/apt/archives scp *.deb user@192.168.1.100:/home/pi/mirrors/raspbian/buster/main apt-ftparchive packages /home/pi/mirrors/raspbian/buster/main > /home/pi/mirrors/raspbian/buster/main/Packages gzip -c /home/pi/mirrors/raspbian/buster/main/Packages > /home/pi/mirrors/raspbian/buster/main/Packages.gz apt-ftparchive release /home/pi/mirrors/raspbian/buster/main > /home/pi/mirrors/raspbian/buster/main/Release gpg --yes --clearsign -o /home/pi/mirrors/raspbian/buster/main/InRelease /home/pi/mirrors/raspbian/buster/main/Release gpg --yes -abs -o /home/pi/mirrors/raspbian/buster/main/Release.gpg } git Repository{ ----------Git Daemon Service root@raspberry49:/mnt/tools/raspberryPi_pkg# cat git-daemon.service{ [Unit] Description=Git Daemon Service [Service] ExecStartPre=/root/wait_for_nfs.sh ExecStart=/usr/bin/git daemon --export-all --base-path=/media/dev/mirrors/git_repo --syslog --reuseaddr --enable=receive-pack #ExecStart=/usr/bin/git daemon --export-all --base-path=/media/dev/mirrors/git_repo --syslog --reuseaddr --detach Restart=always User=root Group=root [Install] WantedBy=multi-user.target } root@raspberry49:/mnt/tools/raspberryPi_pkg# cat wait_for_nfs.sh{ #!/bin/bash NAS=`cat /etc/fstab |grep -v ^# | grep /data/Videos | awk -F: '{ print $1;}'` # 等待NFS连接成功 while ! rpcinfo -p ${NAS} | grep -q nfs; do echo "Waiting for NFS to be ready..." # cd /mnt/repo/raspberrypi_git # ls sleep 1 done #ls -l /mnt/repo/raspberrypi_git sleep 2 echo --------------------------------------- while ! ls /mnt/repo/raspberrypi_git ; do #sleep 1 echo "Waiting for /mnt/repo/raspberrypi_git to be ready..." #ls -l sleep 2 done echo --------------------------------------- } server { setting command{ git clone --mirror https://github.com/archlinux/linux git ls-remote git://raspberrypi/root-ro.git git config daemon.uploadarch true git config daemon.receivepack true git remote -v # 查看当前远程设置 git remote remove origin # 移除远程设置,如果有 git remote set-url origin "" git config --global user.email "xjinzhongjie@gmil.com" git config --global user.name "jin" git log --pretty=format:"%h %ci %s" git log --oneline --decorate git rev-parse --is-bare-repository git config --get remote.origin.mirror git config --unset remote.origin.mirror } update Repository command{ # 进入镜像仓库目录: cd /media/dev/mirrors/git_repo/linux-vfio.git git remote -v # 获取最新的变更: git fetch origin # 更新本地分支: 如果你想要更新本地分支(如 master 分支),可以使用 git update-ref 命令: git update-ref refs/heads/master origin/master # 强制推送到其他克隆的镜像: 如果你希望将更新的状态推送到其他克隆的镜像,可以使用 git push --mirror 命令: git push --mirror git log # 如果你想查看某个特定分支的提交历史,可以在 git log 命令后面加上分支名 例如: git log master git add initramfs-tools/scripts/init-bottom/root-ro git commit -m "for bookworm version" git push origin master } } client{ get Repository command{ git init --bare /media/mirrors/git_repo/git_test.git # git://h97archx64d3/zlib.git 如果仓库还没有克隆:{ git clone cd git checkout -b origin/ } 如果仓库已经存在:{ git fetch origin #然后,切换到你要修改的分支: git checkout #如果分支还没有本地化,你可以使用以下命令创建并切换到远程分支: git checkout -b origin/ } #3. 进行修改并提交 git add # 添加你修改的文件 git commit -m "Your commit message" # 提交修改 #4. 推送修改到远程仓库 git push origin #5. 在其他端末上提取新的修改 #在其他端末或开发人员想要获取最新的修改时,可以执行: git fetch origin git pull origin } } git-svn{ git server { [root@h270archx64d3 git_repo]# cat authors-transform.txt { git_jin = jinzhongjie jin = jin [root@h270archx64d3 git_repo]# } git config --global user.email "xjinzhongjie@gmil.com" git config --global user.name "git_jin" # git svn clone http://optiplex3040/svn/virtuanessrc_x --no-metadata -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout virtuanessrc_x.git git svn clone http://optiplex3040/svn/virtuanessrc_x -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout virtuanessrc_x.git git svn clone http://optiplex5040/svn/RegEditor -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout RegEditor.git git svn clone http://h270archx64d3/svn/test -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout test.git git svn clone http://optiplex5040/svn/scite_update -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout scite_update.git git svn clone http://optiplex5040/svn/scite_2017 -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout scite_2017.git # ------------------------------------ git svn clone http://h97archx64d6/svn/scite_update -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout scite_update.git git svn clone http://h97archx64d6/svn/scite_2017 -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout scite_2017.git git svn clone http://nas-E5-DD-10/svn/Doc -A authors-transform.txt -s --prefix=svn/ --trunk=/ --branches='' --tags='' --stdlayout Doc.git{ chown -R http:http Doc.git git config --global --add safe.directory /mnt/repo/dell2wyse5070_git/Doc.git systemctl restart git-daemon git config receive.denyCurrentBranch updateInstead git config core.autocrlf false } make Repository list{ setting user/passwd{ cat > ~/.netrc < vc2013-repo/master } git log vc2013-repo/master { [jin@h270archx64d3 virtuanessrc_x]$ git log vc2013-repo/master commit 045198297eaa6a3b96efabd971b214f10c4cb2fd (vc2013-repo/master) Author: jinzhongjie Date: Fri Oct 11 23:26:33 2024 +0900 vc2017 compile ok commit 0a84c441307eb9033e62fb4413969bddc5f1de61 Author: jinzhongjie Date: Fri Oct 11 22:43:17 2024 +0900 vc2008 compile commit d7b88593b0d750d3c426c341990f59b25f77979a Author: jinzhongjie Date: Wed Oct 9 20:50:42 2024 +0900 init [jin@h270archx64d3 virtuanessrc_x]$ } git cherry-pick 0a84c441307eb9033e62fb4413969bddc5f1de61 git cherry-pick 045198297eaa6a3b96efabd971b214f10c4cb2fd { [jin@h270archx64d3 virtuanessrc_x]$ git cherry-pick 0a84c441307eb9033e62fb4413969bddc5f1de61 [master 37a526b] vc2008 compile Author: jinzhongjie Date: Fri Oct 11 22:43:17 2024 +0900 2 files changed, 759 insertions(+) create mode 100644 virtuanes/vc/vc2008/VirtuaNES_x.sln create mode 100644 virtuanes/vc/vc2008/VirtuaNES_x.vcproj [jin@h270archx64d3 virtuanessrc_x]$ git cherry-pick 045198297eaa6a3b96efabd971b214f10c4cb2fd [master dac2e20] vc2017 compile ok Author: jinzhongjie Date: Fri Oct 11 23:26:33 2024 +0900 7 files changed, 608 insertions(+) create mode 100644 virtuanes/vc/vc2017/VirtuaNES_x.sln create mode 100644 virtuanes/vc/vc2017/VirtuaNES_x.vcxproj [jin@h270archx64d3 virtuanessrc_x]$ } git push origin master { [jin@h270archx64d3 virtuanessrc_x]$ git push origin master Enumerating objects: 26, done. Counting objects: 100% (26/26), done. Delta compression using up to 2 threads Compressing objects: 100% (15/15), done. Writing objects: 100% (19/19), 8.42 KiB | 2.81 MiB/s, done. Total 19 (delta 10), reused 10 (delta 3), pack-reused 0 To git://h270archx64d3/virtuanessrc_x.git 640c4aa..dac2e20 master -> master [jin@h270archx64d3 virtuanessrc_x]$ } } } ----------Git for windows Git push卡住解决办法{ # 客户端命令窗口执行 git config --global sendpack.sideband false git config --global core.autocrlf true # 或 false,根据需要调整 git config --global core.eol lf # 或 crlf,根据实际需求 # 查看设定 git config --global --list } } cent os Repository{ -----------------install tools dnf install modulemd-tools ----------------- [root@b85mg_CentOs83x64_d3 dnf]# yum -y reinstall --downloadonly libnsl [root@b85mg_CentOs83x64_d3 dnf]# cd /var/cache/ [root@b85mg_CentOs83x64_d3 cache]# find ./ -name libnsl-2.28-164.el8.x86_64.rpm ./dnf/baseos-398269605bdca3dc/packages/libnsl-2.28-164.el8.x86_64.rpm [root@b85mg_CentOs83x64_d3 cache]# centos_package_list.js ⇒{ ./dnf/baseos-398269605bdca3dc/packages/libnsl-2.28-164.el8.x86_64.rpm ------- =================================== mkdir -p /media/mirrors/centos/8/NasServer/x86_64/os/Packages/baseos =================================== cp ./dnf/baseos-398269605bdca3dc/packages/libnsl-2.28-164.el8.x86_64.rpm /media/mirrors/centos/8/NasServer/x86_64/os/Packages/baseos/libnsl-2.28-164.el8.x86_64.rpm =================================== } setup_centos.js ⇒{ var run_func = "make_repo_link"; } [root@312acentos83x64d1 centos]# cd /media/mirrors/centos [root@312acentos83x64d1 centos]# find ./ -name *.rpm centos_package_list.js ⇒{ ./6/NasServer/i386/Packages/base/deltarpm-3.5-0.5.20090913git.el6.i686.rpm ./6/NasServer/i386/Packages/base/ncurses-devel-5.7-4.20090207.el6.i686.rpm ./6/NasServer/i386/Packages/base/python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm ./6/NasServer/i386/Packages/base/tcsh-6.17-38.el6.i686.rpm ./6/NasServer/i386/Packages/epel/ntfs-3g-2017.3.23-11.el6.i686.rpm ./6/NasServer/i386/Packages/epel/ntfs-3g-devel-2017.3.23-11.el6.i686.rpm ./6/NasServer/i386/Packages/updates/qemu-guest-agent-0.12.1.2-2.506.el6_10.8.i686.rpm ./6/NasServer/noarch/Packages/base/createrepo-0.9.9-28.el6.noarch.rpm ./6/NasServer/noarch/Packages/epel/epel-release-6-8.noarch.rpm ./6/NasServer/noarch/Packages/extras/epel-release-6-8.noarch.rpm ./6/NasServer/x86_64/Packages/base/deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm ./6/NasServer/x86_64/Packages/base/python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm ./6/NasServer/x86_64/Packages/base/tcsh-6.17-38.el6.x86_64.rpm ./6/NasServer/x86_64/Packages/epel/ntfs-3g-2017.3.23-11.el6.x86_64.rpm ./6/NasServer/x86_64/Packages/epel/ntfs-3g-devel-2017.3.23-11.el6.x86_64.rpm ./6/NasServer/x86_64/Packages/updates/qemu-guest-agent-0.12.1.2-2.506.el6_10.8.x86_64.rpm ./7/NasServer/noarch/Packages/base/createrepo-0.9.9-28.el7.noarch.rpm ./7/NasServer/noarch/Packages/epel/epel-release-7-14.noarch.rpm ./7/NasServer/x86_64/Packages/base/dbus-1.10.24-15.el7.x86_64.rpm ./7/NasServer/x86_64/Packages/base/dbus-devel-1.10.24-15.el7.x86_64.rpm ./7/NasServer/x86_64/Packages/base/dbus-libs-1.10.24-15.el7.x86_64.rpm ./7/NasServer/x86_64/Packages/base/dbus-x11-1.10.24-15.el7.x86_64.rpm ./7/NasServer/x86_64/Packages/base/qemu-guest-agent-2.12.0-3.el7.x86_64.rpm ./8/NasServer/noarch/os/Packages/baseos/centos-linux-release-8.5-1.2111.el8.noarch.rpm ./8/NasServer/noarch/os/Packages/baseos/dnf-plugins-core-4.0.21-3.el8.noarch.rpm ./8/NasServer/noarch/os/Packages/baseos/python3-dnf-plugins-core-4.0.21-3.el8.noarch.rpm ./8/NasServer/noarch/os/Packages/baseos/yum-utils-4.0.21-3.el8.noarch.rpm ./8/NasServer/x86_64/os/Packages/appstream/createrepo_c-0.17.2-3.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/appstream/createrepo_c-libs-0.17.2-3.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/appstream/drpm-0.4.1-3.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/appstream/qemu-guest-agent-4.2.0-59.module_el8.5.0+1063+c9b9feff.1.x86_64.rpm ./8/NasServer/x86_64/os/Packages/appstream/tcsh-6.20.00-13.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/coreutils-8.30-12.el8.src.rpm ./8/NasServer/x86_64/os/Packages/baseos/coreutils-8.30-12.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/coreutils-common-8.30-12.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-common-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-devel-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-headers-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-langpack-en-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/glibc-locale-source-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/nscd-2.28-164.el8.x86_64.rpm ./8/NasServer/x86_64/os/Packages/baseos/libnsl-2.28-164.el8.x86_64.rpm -------⇒ centos_pkg.txt =================================== 8:x86_64:baseos:libnsl-2.28-164.el8.x86_64.rpm =================================== } // [root@312acentos83x64d1 os]# cd /media/mirrors/centos/8/NasServer/x86_64/os [root@312acentos83x64d1 os]# cd /media/mirrors/centos/8/baseos/x86_64/os [root@312acentos83x64d1 os]# rm -rf repodata [root@312acentos83x64d1 os]# createrepo ./ { Directory walk started Directory walk done - 20 packages Temporary output repo path: ./.repodata/ Preparing sqlite DBs Pool started (with 5 workers) Pool finished [root@312acentos83x64d1 os]# } 为模块化 RPM 包补上模块元数据{ tar zcvf Packages_.tar.gz ./Packages/appstream/libserf-1.3.9-9.module_el8.3.0+703+ba2f61b7.x86_64.rpm ./Packages/appstream/subversion-1.10.2-4.module_el8.3.0+703+ba2f61b7.x86_64.rpm ./Packages/appstream/subversion-libs-1.10.2-4.module_el8.3.0+703+ba2f61b7.x86_64.rpm ./Packages/appstream/utf8proc-2.1.1-5.module_el8.3.0+703+ba2f61b7.x86_64.rpm mv Packages_.tar.gz /root/ cd /root/ tar zxvf Packages_.tar.gz mkdir -p /root/os mv Packages os cd /root/os/ createrepo ./ repo2module ./ --module-name subversion --module-stream stable --module-version 20250413 --module-context el8 > modules.yaml { ## 我怎么知道用什么 module name/stream/context? ## subversion-1.10.2-4.module_el8.3.0+703+ba2f61b7.x86_64 ## 可以解析为: ## module name: subversion ## module context: el8.3.0+703+ba2f61b7 ## module stream: stable(你可以自定义,也可以从 Fedora Modular 仓库查) ## module version: 自己定,例如时间戳 20250413 } mv modules.yaml /media/mirrors/centos/8/NasServer/x86_64/os/ cd /media/mirrors/centos/8/NasServer/x86_64/os modifyrepo_c modules.yaml repodata/ } } Rocky Repository{ -----------------------------解决 不能用 @^minimal-environment { ## [root@b85mg_CentOs83x64_d3 rockylinux]# cd Rocky-8-10-x86_64-dvd1/ ## [root@b85mg_CentOs83x64_d3 Rocky-8-10-x86_64-dvd1]# ## [root@b85mg_CentOs83x64_d3 Rocky-8-10-x86_64-dvd1]# createrepo ./ ## Directory walk started ## Directory walk done - 8843 packages ## Temporary output repo path: ./.repodata/ ## Preparing sqlite DBs ## Pool started (with 5 workers) ## Pool finished ## [root@b85mg_CentOs83x64_d3 Rocky-8-10-x86_64-dvd1]# } 能用 @^minimal-environment { [root@optiplex3040 rockylinux]# mkdir Rocky-8-10-x86_64-dvd1_iso [root@optiplex3040 rockylinux]# cd Rocky-8-10-x86_64-dvd1_iso [root@optiplex3040 Rocky-8-10-x86_64-dvd1_iso]# [root@optiplex3040 Rocky-8-10-x86_64-dvd1_iso]# pwd /media/sys/linux/rockylinux/Rocky-8-10-x86_64-dvd1_iso [root@optiplex3040 Rocky-8-10-x86_64-dvd1_iso]# cd .. [root@optiplex3040 rockylinux]# [root@optiplex3040 rockylinux]# xorriso -osirrox on -indev /media/disk/linux/rocky/Rocky-8.10-x86_64-dvd1.iso -extract / /media/sys/linux/rockylinux/Rocky-8-10-x86_64-dvd1_iso/ { xorriso 1.5.6 : RockRidge filesystem manipulator, libburnia project. Copying of file objects from ISO image to disk filesystem is: Enabled xorriso : NOTE : Loading ISO image tree from LBA 0 xorriso : UPDATE : 8963 nodes read in 1 seconds xorriso : NOTE : Detected El-Torito boot information which currently is set to be discarded Drive current: -indev '/media/disk/linux/rocky/Rocky-8.10-x86_64-dvd1.iso' Media current: stdio file, overwriteable Media status : is written , is appendable Boot record : El Torito , MBR isohybrid cyl-align-off GPT Media summary: 1 session, 6940149 data blocks, 13.2g data, 3301g free Volume id : 'Rocky-8-10-x86_64-dvd' xorriso : UPDATE : 93 files restored ( 45949k) in 1 seconds , 33.9xD xorriso : UPDATE : 153 files restored ( 97948k) in 2 seconds , 37.1xD ... ... ... xorriso : UPDATE : 8959 files restored ( 13641m) in 269 seconds , 74.1xD xorriso : UPDATE : 8963 files restored ( 13641m) in 269 seconds = 38.3xD Extracted from ISO image: file '/'='/media/sys/linux/rockylinux/Rocky-8-10-x86_64-dvd1_iso' } [root@optiplex3040 rockylinux]# chmod 777 -R ./* [root@optiplex3040 rockylinux]# ls -l total 0 drwxrwxrwx+ 1 root root 152 Apr 15 22:14 Rocky-8-10-x86_64-dvd1_iso drwxrwxrwx+ 1 root root 64 Apr 15 21:46 rocky-kickstart [root@optiplex3040 rockylinux]# } -----------------------------调查 ## 在安装失败时,切到 TTY3(通常是 Ctrl+Alt+F3),然后查看日志: less /tmp/anaconda.log less /tmp/packaging.log less /tmp/syslog ## mount -t nfs nas-server:/data/dev_work mnt_tmp cd mnt_tmp/ cp /tmp/anaconda.log ./ cp /tmp/packaging.log ./ cp /tmp/syslog ./ } } GPU Passthrough{ arch linux GPU Passthrough{ OVMF{ ① Enabling IOMMU ## For Intel CPUs (VT-d) set intel_iommu=on { [root@jin-i3-4150 ~]# cat /boot/loader/entries/archlinux.conf title Arch Linux efi /vmlinuz-linux initrd /intel-ucode.img initrd /initramfs-linux.img options initrd=initramfs-linux.img root=UUID=94c328cd-fe42-4aa7-b9ad-7f1cfa82c7e5 rw intel_iommu=on [root@jin-i3-4150 ~]# dmesg | grep -i -e DMAR -e IOMMU ...... [ 0.069956] DMAR: IOMMU enabled ...... [root@jin-i3-4150 ~]# } ② Isolating the GPU ## Binding vfio-pci via device ID{ [root@jin-i3-4150 ~]# [root@jin-i3-4150 ~]# cat vfio.sh { #!/bin/bash shopt -s nullglob for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do echo "IOMMU Group ${g##*/}:" for d in $g/devices/*; do echo -e "\t$(lspci -nns ${d##*/})" done; done; } [root@jin-i3-4150 ~]# ./vfio.sh { IOMMU Group 0: 00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06) IOMMU Group 1: 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] [10de:1380] (rev a2) 01:00.1 Audio device [0403]: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] [10de:0fbc] (rev a1) IOMMU Group 2: 00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06) IOMMU Group 3: 00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06) ...... IOMMU Group 14: 05:00.0 Ethernet controller [0200]: Intel Corporation 82576NS Gigabit Network Connection [8086:150a] (rev 01) IOMMU Group 15: 05:00.1 Ethernet controller [0200]: Intel Corporation 82576NS Gigabit Network Connection [8086:150a] (rev 01) } [root@jin-i3-4150 ~]# cat /etc/modprobe.d/vfio.conf { options vfio-pci ids=10de:1380,10de:0fbc,8086:150a ###options vfio-pci ids=10de:1380,10de:0fbc,1002:6778,1002:aa98 } /etc/mkinitcpio.conf{ MODULES=(... vfio_pci vfio vfio_iommu_type1 vfio_virqfd ...) HOOKS=(... modconf ...) -------- [root@jin-i3-4150 VM]# cat /etc/mkinitcpio.conf | grep -v ^# { MODULES=(i915 vfio_pci vfio vfio_iommu_type1 vfio_virqfd ) BINARIES=() FILES=() HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block fsck filesystems) COMPRESSION="zstd" } [root@jin-i3-4150 VM]# } mkinitcpio -p linux reboot [root@jin-i3-4150 VM]# dmesg | grep -i vfio { [ 1.128996] VFIO - User Level meta-driver version: 0.3 [ 1.143345] vfio-pci 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none [ 1.159326] vfio_pci: add [10de:1380[ffffffff:ffffffff]] class 0x000000/00000000 [ 1.175881] vfio_pci: add [10de:0fbc[ffffffff:ffffffff]] class 0x000000/00000000 [ 1.209312] vfio_pci: add [8086:150a[ffffffff:ffffffff]] class 0x000000/00000000 [25574.353841] vfio-pci 0000:01:00.0: enabling device (0000 -> 0003) [25574.354058] vfio-pci 0000:01:00.0: vfio_ecap_init: hiding ecap 0x1e@0x258 [25574.354068] vfio-pci 0000:01:00.0: vfio_ecap_init: hiding ecap 0x19@0x900 } } } Seabios{ compile kernel (add-acs-overrides.patch && i915-vga-arbiter.patch) { -- root pacman -Sy -- user mkdir ~/kernelbuild cd ~/kernelbuild gpg --keyserver pgp.mit.edu --recv-key 3B94A80E50A477C7 git clone https://aur.archlinux.org/linux-vfio.git cd linux-vfio/ makepkg -si } install linux-vfio { [root@jin-i3-4150 VM]#cat /etc/modprobe.d/vfio.conf options vfio-pci ids=10de:1380,10de:0fbc /etc/mkinitcpio.conf{ # 从内核 6.2 版本开始,vfio_virqfd 的功能已经并入 vfio 模块 # MODULES=(... vfio_pci vfio vfio_iommu_type1 vfio_virqfd ...) MODULES=(... vfio_pci vfio vfio_iommu_type1 ...) HOOKS=(... modconf ...) -------- [root@jin-i3-4150 VM]# cat /etc/mkinitcpio.conf | grep -v ^# { MODULES=(i915 vfio_pci vfio vfio_iommu_type1 vfio_virqfd ) BINARIES=() FILES=() HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block fsck filesystems) COMPRESSION="zstd" } [root@jin-i3-4150 VM]# } pacman -U linux-vfio-5.17.4.arch1-1-x86_64.pkg.tar.zst modify archlinux-vfio.conf (boot menu){ -- [root@epson-mr4500e ~]# cd /boot/loader/entries/ [root@epson-mr4500e entries]# ls -l total 16 -rwxr-xr-x 1 root root 213 Mar 19 09:41 archlinux.conf -rwxr-xr-x 1 root root 203 Mar 17 11:56 archlinux-fallback.conf -rwxr-xr-x 1 root root 216 Mar 17 11:56 archlinux-terminal.conf -rwxr-xr-x 1 root root 233 Mar 19 10:05 archlinux-vfio.conf -- archlinux-vfio.conf [root@epson-mr4500e entries]# cat archlinux-vfio.conf title Arch Linux vfio efi /vmlinuz-linux-vfio initrd /intel-ucode.img initrd /initramfs-linux-vfio.img # options initrd=initramfs-linux-vfio.img root=UUID=ddfbb1f8-8faa-4551-b0e2-5c3468d2724f rw intel_iommu=on i915.enable_hd_vgaarb=1 options initrd=initramfs-linux-vfio.img root=UUID=87547ef4-7b97-44b3-9f81-887051216af0 rw intel_iommu=on iommu=pt i915.enable_hd_vgaarb=1 pci-stub.ids=10de:1d01,10de:0fb8 [root@epson-mr4500e entries]# -- /boot/loader/loader.conf [root@epson-mr4500e loader]# cat /boot/loader/loader.conf # alis timeout 5 default archlinux-vfio.conf editor 0 [root@epson-mr4500e loader]# } } ① Enabling IOMMU ## For Intel CPUs (VT-d) set intel_iommu=on { [root@asus-b85mg ~]# lspci -nn { ... ... 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750] [10de:1381] (rev a2) 01:00.1 Audio device [0403]: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] [10de:0fbc] (rev a1) ... ... [root@asus-b85mg ~]# } [root@asus-b85mg ~]# cat /etc/default/grub { ... ... GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 intel_iommu=on iommu=pt video=efif:off" GRUB_CMDLINE_LINUX="ipv6.disable=1 intel_iommu=on iommu=pt i915.enable_hd_vgaarb=1 pci=realloc pci=nocrs rdblacklist=nouveau nouveau.modeset=0 pci-stub.ids=10de:1381,10de:0fbc" ... ... [root@asus-b85mg ~]# } grub-mkconfig -o /boot/grub/grub.cfg } ② edit kvm xml{ 5.16.11-arch1-1-vfio;qemu 6.1.0-5{ #★★★ #★★★ #★★★ } 6.0.12-arch1-1-vfio;qemu-base 7.2.0-1{ #★★★ # #★★★ # #★★★ #★★★ #★★★ #★★★ #★★★ #★★★ #★★★ #★★★ } Fixing error 43{ https://mathiashueber.com/fighting-error-43-nvidia-gpu-virtual-machine/#:~:text=The%20infamous%20error%2043%20is%20triggered%20by%20the,you%20with%20cumbersome%20800%20by%20600%20display%20resolution. https://passthroughpo.st/apply-error-43-workaround/#:~:text=The%20steps%20to%20get%20rid%20of%20the%20%E2%80%9CError,virtual%20machine%20is%20off%2C%20edit%20its%20xml%20file. ------------------------------- ... ... #★★★ #★★★ #★★★ #★★★ ... ... #★★★ #★★★ #★★★ #★★★ } Fixing win7 usb mouse not work when boot{ -------------------------------
#★★★ 1 ⇒ 4 } readme.txt:2579:qemu-kvm } } Slowed down audio pumped through HDMI on the video card{ lspci -vs $device | grep 'MSI:' // Enable后的-代表支持MSI,但虚拟机并没有启用。+代表虚拟机正在使用MSI。 [root@jin-i3-4150 VM]# lspci -vs 01:00.1 | grep 'MSI:' Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+ [root@jin-i3-4150 VM]# ---Windows: Line-Based vs. Message Signaled-Based Interrupts. MSI tool. https://forums.guru3d.com/threads/windows-line-based-vs-message-signaled-based-interrupts-msi-tool.378044/ Checking for PCI devices working in MSI-mode. Go to Device Manager. Click in menu "View -> Resources by type". Expand "Interrupt request (IRQ)" node of the tree. Scroll down to "(PCI) 0x... (...) device name" device nodes. Devices with positive number for IRQ (like "(PCI) 0x00000011 (17) ...") are in Line-based interrupts-mode. Devices with negative number for IRQ (like "(PCI) 0xFFFFFFFA (-6) ...") are in Message Signaled-based Interrupts-mode. Trying to switch device to MSI-mode manually. You must locate device`s registry key. Invoke device properties dialog. Switch to "Details" tab. Select "Device Instance Path" in "Property" combo-box. Write down "Value" (for example "PCI\VEN_1002&DEV_4397&SUBSYS_1609103C&REV_00\3&11583659&0&B0"). This is relative registry path under the key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\". Go to that device`s registry key ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1002&DEV_4397&SUBSYS_1609103C&REV_00\3&11583659&0&B0") and locate down the subkey "Device Parameters\Interrupt Management". For devices working in MSI-mode there will be subkey "Device Parameters\Interrupt Management\MessageSignaledInterruptProperties" and in that subkey there will be DWORD value "MSISupported" equals to "0x00000001". To switch device from legacy- to MSI-mode just add these subkey and value. Before adding these key and value (or changing "MSISupported" to "0x00000001" in case subkey and value already exist) you have to perform safety steps like doing backup (creating system restore point at least). Do tweak one device -> reboot and check (1) if it is displayed in Device Manager as correctly working device; (2) if its IRQ became negative -> if no (1) and no (2) then either remove subkey "MessageSignaledInterruptProperties" (if you added it) or change "MSISupported" to "0x00000000" and reboot. Theoretically if device driver (and platform = chipset) unable to perform in MSI-mode it should ignore mentioned subkey and value. But who knows... } } } Guide to predefined macros in C++ compilers (gcc, clang, msvc etc.){ https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html gcc -x c /dev/null -dM -E { gcc -x c /dev/null -dM -E | grep WIN{ --Target: x86_64-w64-mingw32 #define _WIN64 1 #define __WINT_MAX__ 0xffff #define __WINT_MIN__ 0 #define __WIN64 1 #define __WINNT 1 #define __WINNT__ 1 #define __WIN32__ 1 #define __SIZEOF_WINT_T__ 2 #define _WIN32 1 #define WIN32 1 #define WIN64 1 #define __WINT_TYPE__ short unsigned int #define __WINT_WIDTH__ 16 #define __WIN32 1 #define WINNT 1 #define __WIN64__ 1 --Target: i686-w64-mingw32 #define __WINT_MAX__ 0xffff #define __WINT_MIN__ 0 #define __WINNT 1 #define __WINNT__ 1 #define __WIN32__ 1 #define __SIZEOF_WINT_T__ 2 #define _WIN32 1 #define WIN32 1 #define __WINT_TYPE__ short unsigned int #define __WINT_WIDTH__ 16 #define __WIN32 1 #define WINNT 1 --Target: x86_64-pc-msys #define __WINT_MAX__ 0xffffffffU #define __WINT_MIN__ 0U #define __SIZEOF_WINT_T__ 4 #define __CYGWIN__ 1 ★ #define __WINT_TYPE__ unsigned int #define __WINT_WIDTH__ 32 --ターゲット: i686-pc-cygwin #define __WINT_MAX__ 0xffffffffU #define __WINT_MIN__ 0U #define __SIZEOF_WINT_T__ 4 #define __CYGWIN__ 1 ★ #define __WINT_TYPE__ unsigned int #define __CYGWIN32__ 1 --Target: arm-linux-gnueabihf #define __WINT_MAX__ 0xffffffffU #define __WINT_MIN__ 0U #define __SIZEOF_WINT_T__ 4 #define __WINT_TYPE__ unsigned int #define __WINT_WIDTH__ 32 } gcc -x c /dev/null -dM -E | grep MINGW{ --Target: x86_64-w64-mingw32 #define __MINGW32__ 1 #define __MINGW64__ 1 --Target: i686-w64-mingw32 #define __MINGW32__ 1 } gcc -x c /dev/null -dM -E | grep GNU gcc -x c /dev/null -dM -E | grep linux{ --Target: arm-linux-gnueabihf #define __linux 1 #define __linux__ 1 #define __gnu_linux__ 1 #define linux 1 } gcc -x c /dev/null -dM -E | grep SYS{ --Target: x86_64-pc-msys #define __MSYS__ 1 } } } taskschd.msc err break{ 如何解决apt-get中Unmet dependencies问题{ } apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 ssh 连接失败 { [jin@optiplex3040 ~]$ ssh root@b85CentOs69x64d1 Unable to negotiate with 192.168.18.18 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss [jin@optiplex3040 ~]$ ------ # 编辑 ~/.ssh/config 文件(如果不存在就新建): ~/.ssh/config { Host * HostKeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa } } }