From 3924a9ee3bf0abf79fba4ea72af8d5749f2ba257 Mon Sep 17 00:00:00 2001 From: Carl Karsten Date: Sat, 11 Dec 2021 10:15:31 -0800 Subject: [PATCH] turn off nfs sync for great spead --- files/pxe/exports | 4 ++-- files/rpi/setup3.sh | 5 ++--- files/rpi/show_info.sh | 3 ++- files/scripts/normal.sh | 7 ++++++- notes.txt | 2 ++ setup2.sh | 6 +++--- 6 files changed, 17 insertions(+), 10 deletions(-) diff --git a/files/pxe/exports b/files/pxe/exports index 8782bf5..6ecaeb4 100644 --- a/files/pxe/exports +++ b/files/pxe/exports @@ -1,2 +1,2 @@ -/srv/nfs/rpi/bullseye/boot/merged *(ro,sync,no_subtree_check,no_root_squash,fsid=1) -/srv/nfs/rpi/bullseye/root/merged *(ro,sync,no_subtree_check,no_root_squash,fsid=2) +/srv/nfs/rpi/bullseye/boot/merged *(ro,no_subtree_check,no_root_squash,fsid=1) +/srv/nfs/rpi/bullseye/root/merged *(ro,no_subtree_check,no_root_squash,fsid=2) diff --git a/files/rpi/setup3.sh b/files/rpi/setup3.sh index 7338601..a26fdcc 100755 --- a/files/rpi/setup3.sh +++ b/files/rpi/setup3.sh @@ -4,10 +4,9 @@ # run on the pi apt update --allow-releaseinfo-change -apt install eatmydata -eatmydata apt upgrade --assume-yes +apt upgrade --assume-yes -eatmydata apt install --assume-yes ssh-import-id vim tmux \ +apt install --assume-yes ssh-import-id vim tmux \ git etckeeper sshfs tio rsync openocd fxload # E: Package 'sftp' has no installation candidate diff --git a/files/rpi/show_info.sh b/files/rpi/show_info.sh index a8cc3c0..5eea42b 100644 --- a/files/rpi/show_info.sh +++ b/files/rpi/show_info.sh @@ -1,4 +1,5 @@ +printf "\nRaspberry Pi FPGA gateway node.\n\n" cat /sys/firmware/devicetree/base/model -printf "\n\nSerial Number:" +printf "\nSerial Number:" cut -c "9-" /sys/firmware/devicetree/base/serial-number diff --git a/files/scripts/normal.sh b/files/scripts/normal.sh index bb0d09f..1c04afe 100755 --- a/files/scripts/normal.sh +++ b/files/scripts/normal.sh @@ -34,7 +34,7 @@ mount -o remount,ro ${p}/boot/merged mount -o remount,ro ${p}/root/merged # make the nfs shares ro -sed -i "/.*/s/rw,/ro,/" /etc/exports +sed -i "s/rw,/ro,/" /etc/exports systemctl start nfs-server.service # server enable automount the stack of pi files @@ -42,3 +42,8 @@ systemctl start nfs-server.service # overlayfs: failed to verify index dir 'upper' xattr # sed -i "\@overlay\s*${p}/[br]oot/merged@s@\bnoauto\b@auto@" /etc/fstab +cat ${boot}/cmdline.txt +cat ${root}/etc/fstab +cat /etc/exports +grep ${boot} /etc/fstab +findmnt ${boot} diff --git a/notes.txt b/notes.txt index f079564..54b43e9 100644 --- a/notes.txt +++ b/notes.txt @@ -80,3 +80,5 @@ Community String: pib (used in netgear/poe.sh) Access Mode: ReadWrite Status: Enable (Add) + +raspivid -md 4 -t 0 -l -o tcp://10.21.0.226:22681 --vflip --hflip diff --git a/setup2.sh b/setup2.sh index cfbae36..1dd5c2b 100755 --- a/setup2.sh +++ b/setup2.sh @@ -29,9 +29,9 @@ dist=bullseye # trunk of nfs things d=/srv/nfs/rpi/${dist} -apt install unzip nfs-kernel-server iptables pwgen whois snmp +apt install -y unzip nfs-kernel-server iptables pwgen whois snmp -printf "\n[nfsd]\nhost=10.21.0.1\n" >> /etc/default/nfs-kernel-server +printf "\nhost=10.21.0.1\n" >> /etc/default/nfs-kernel-server cd ${fdir} @@ -134,7 +134,7 @@ rm etc/profile.d/wifi-check.sh # Raspi is UK, Ubuntu and Debian are US cp ${fdir}/rpi/keyboard etc/default/ -cp ${fdir}/rpi/show_info.sh rpi/show_info.sh etc/profile.d/show_pidirs.sh +cp ${fdir}/rpi/show_info.sh etc/profile.d/ # things that maybe could be done here but it is easer to run them on the pi cp ${fdir}/rpi/setup3.sh root