From 9ba50a608c9dde5243d032e94d4a02c71bf023f7 Mon Sep 17 00:00:00 2001 From: julien Date: Sat, 15 Nov 2025 15:05:55 +0100 Subject: [PATCH] "Updates" --- Turing Pi/compute-modules.md | 153 ----------------------------------- Turing Pi/disks.md | 111 +++++++++++++++++++++++++ Turing Pi/hosts.md | 51 +++++++++++- 3 files changed, 159 insertions(+), 156 deletions(-) create mode 100644 Turing Pi/disks.md diff --git a/Turing Pi/compute-modules.md b/Turing Pi/compute-modules.md index 63e4c12..f99e7f3 100644 --- a/Turing Pi/compute-modules.md +++ b/Turing Pi/compute-modules.md @@ -153,159 +153,6 @@ sudo apt update && sudo apt install -y git-all git-lfs curl wget screenfetch net --- -### Disk(s) -#### Format and mount the disks - -```bash -sudo fdisk -l - -**With disk ** -sudo fdisk /dev/ -(create new primary partition) - -sudo mkfs -t ext4 /dev/ -sudo blkid -s UUID -o value /dev/ -``` - -#### If needed, check and repair the filesystem -```bash -sudo e2fsck -fDC0 /dev/sdaX -``` - -#### Add mount point to fstab -```bash -sudo mkdir -p /mnt/ -echo "UUID=... /mnt/ ext4 defaults 0 0" | sudo tee -a /etc/fstab -``` - -#### bob (nvme0n1) -``` -UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 -# NVME -UUID=2423d885-a583-44d2-bd45-80d847c625b0 /mnt/data ext4 defaults 0 0 -# HDD -# UUID=a4e3d8f1-11cc-482b-9596-57c44b122e48 /mnt/tmp ext4 defaults 0 0 -# -/mnt/data/www /var/www auto defaults,nofail,nobootwait,bind 0 2 -``` - -#### carlo (nvme0n1) -``` -UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 -UUID=0c85672d-0fbd-4d11-a93e-c01d1373c4c3 /mnt/docker ext4 defaults 0 0``` -``` - -#### gary (nvme0n1) ... -``` -# -UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 -UUID=7f348b05-b44e-4b85-8445-657dc95e72df /mnt/data ext4 defaults 0 0 -# NFS -krabs:/srv/nfs4/media /nfs/media nfs _netdev,x-systemd.automount,nofail,noatime,nolock,tcp,bg,actimeo=1800 -krabs:/srv/nfs4/downloads /nfs/downloads nfs defaults -``` - -#### sandy (sda / nvme0n1) ... -``` -# -UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 -UUID=6fab06af-f38f-493a-87ab-512f52a6616c /mnt/data ext4 defaults 0 0 -# NFS -krabs:/srv/nfs4/cloud /nfs/cloud nfs nofail,noatime,_netdev,actimeo=1800,x-systemd.automount,bg,nolock,tcp -krabs:/srv/nfs4/ebooks /nfs/ebooks nfs defaults -# HDD -UUID=22446d47-8d74-451e-8774-e1c8e2617b7e /mnt/hdd ext4 defaults 0 0 -``` - -#### sheldon (sda / sdb / nvme0n1) ... -``` -# -UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 -# nvme -UUID=a612717e-ca95-44a3-9b10-10e6be26112f /mnt/docker ext4 defaults 0 0 -# LVM -UUID=dbc636b9-e77b-4fb5-a192-a17c244857a2 /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -``` - -#### krabs (nfs server) -``` -UUID=0c390345-ca52-45fd-9097-6e931d651a8f / ext4 defaults,x-systemd.growfs 0 1 -# LVM -/dev/hdds/datas /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 -# NFS exports -/mnt/data/cloud /srv/nfs4/cloud none bind,nofail 0 0 -/mnt/data/media /srv/nfs4/media none bind,nofail 0 0 -/mnt/data/ebooks /srv/nfs4/ebooks none bind,nofail 0 0 -/mnt/data/git /srv/nfs4/git none bind,nofail 0 0 -/mnt/data/photos /srv/nfs4/photos none bind,nofail 0 0 -/mnt/data/media/downloads /srv/nfs4/downloads none bind,nofail 0 0 -/opt/backups /srv/nfs4/backups none bind,nofail 0 0 -``` - -#### bernie (nvme0n1) ... - -``` -UID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 -# SSD -UUID=e8d74f7a-642a-486d-92db-d39388d1545f /mnt/docker ext4 defaults 0 0 -``` - -#### Check -```bash -cat /etc/fstab -``` - -#### Mount disk... -```bash -sudo mount -a -sudo systemctl daemon-reload - -df -h /mnt/ -``` - -### Hosts -```bash -sudo vim /etc/hosts -``` - -```conf -127.0.0.1 localhost -127.0.1.1 .local - -# The following lines are desirable for IPv6 capable hosts -::1 ip6-localhost ip6-loopback -fe00::0 ip6-localnet -ff00::0 ip6-mcastprefix -ff02::1 ip6-allnodes -ff02::2 ip6-allrouters -ff02::3 ip6-allhosts - -# -192.168.1.11 bob -192.168.1.12 carlo -192.168.1.13 gary -192.168.1.14 sandy -192.168.1.15 krabs -192.168.1.16 sheldon -192.168.1.17 bernie -# 192.168.1.18 pearl - -# -192.168.1.53 retropie -``` - -#### On remote (PC) : - -```bash -ssh-keygen -t ed25519 -​ -ssh-copy-id -f -i ~/.ssh/id_ed25519.pub pleb@192.168.1.xxx -​ -ssh-copy-id -f -i ~/.ssh/id_ed25519.pub pleb@ -``` - ---- - ### Documentation [https://docs.turingpi.com](https://docs.turingpi.com) diff --git a/Turing Pi/disks.md b/Turing Pi/disks.md new file mode 100644 index 0000000..9f3488e --- /dev/null +++ b/Turing Pi/disks.md @@ -0,0 +1,111 @@ +Disk(s) +=== + +#### Format and mount the disks + +```bash +sudo fdisk -l + +**With disk ** +sudo fdisk /dev/ +(create new primary partition) + +sudo mkfs -t ext4 /dev/ +sudo blkid -s UUID -o value /dev/ +``` + +#### If needed, check and repair the filesystem +```bash +sudo e2fsck -fDC0 /dev/sdaX +``` + +#### Add mount point to fstab +```bash +sudo mkdir -p /mnt/ +echo "UUID=... /mnt/ ext4 defaults 0 0" | sudo tee -a /etc/fstab +``` + +#### bob (nvme0n1) +``` +UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 +# NVME +UUID=2423d885-a583-44d2-bd45-80d847c625b0 /mnt/data ext4 defaults 0 0 +# HDD +# UUID=a4e3d8f1-11cc-482b-9596-57c44b122e48 /mnt/tmp ext4 defaults 0 0 +# +/mnt/data/www /var/www auto defaults,nofail,nobootwait,bind 0 2 +``` + +#### carlo (nvme0n1) +``` +UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 +UUID=0c85672d-0fbd-4d11-a93e-c01d1373c4c3 /mnt/docker ext4 defaults 0 0``` +``` + +#### gary (nvme0n1) ... +``` +# +UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 +UUID=7f348b05-b44e-4b85-8445-657dc95e72df /mnt/data ext4 defaults 0 0 +# NFS +krabs:/srv/nfs4/media /nfs/media nfs _netdev,x-systemd.automount,nofail,noatime,nolock,tcp,bg,actimeo=1800 +krabs:/srv/nfs4/downloads /nfs/downloads nfs defaults +``` + +#### sandy (sda / nvme0n1) ... +``` +# +UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 +UUID=6fab06af-f38f-493a-87ab-512f52a6616c /mnt/data ext4 defaults 0 0 +# NFS +krabs:/srv/nfs4/cloud /nfs/cloud nfs nofail,noatime,_netdev,actimeo=1800,x-systemd.automount,bg,nolock,tcp +krabs:/srv/nfs4/ebooks /nfs/ebooks nfs defaults +# HDD +UUID=22446d47-8d74-451e-8774-e1c8e2617b7e /mnt/hdd ext4 defaults 0 0 +``` + +#### sheldon (sda / sdb / nvme0n1) ... +``` +# +UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1 +# nvme +UUID=a612717e-ca95-44a3-9b10-10e6be26112f /mnt/docker ext4 defaults 0 0 +# LVM +UUID=dbc636b9-e77b-4fb5-a192-a17c244857a2 /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 +``` + +#### krabs (nfs server) +``` +UUID=0c390345-ca52-45fd-9097-6e931d651a8f / ext4 defaults,x-systemd.growfs 0 1 +# LVM +/dev/hdds/datas /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 +# NFS exports +/mnt/data/cloud /srv/nfs4/cloud none bind,nofail 0 0 +/mnt/data/media /srv/nfs4/media none bind,nofail 0 0 +/mnt/data/ebooks /srv/nfs4/ebooks none bind,nofail 0 0 +/mnt/data/git /srv/nfs4/git none bind,nofail 0 0 +/mnt/data/photos /srv/nfs4/photos none bind,nofail 0 0 +/mnt/data/media/downloads /srv/nfs4/downloads none bind,nofail 0 0 +/opt/backups /srv/nfs4/backups none bind,nofail 0 0 +``` + +#### bernie (nvme0n1) ... + +``` +UID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00 / ext4 defaults,x-systemd.growfs 0 1 +# SSD +UUID=e8d74f7a-642a-486d-92db-d39388d1545f /mnt/docker ext4 defaults 0 0 +``` + +#### Check +```bash +cat /etc/fstab +``` + +#### Mount disk... +```bash +sudo mount -a +sudo systemctl daemon-reload + +df -h /mnt/ +``` diff --git a/Turing Pi/hosts.md b/Turing Pi/hosts.md index 97a5fcd..5b14ca8 100644 --- a/Turing Pi/hosts.md +++ b/Turing Pi/hosts.md @@ -1,15 +1,60 @@ -# Hosts +Hosts +=== ## Hosts / IPs +```bash +sudo vim /etc/hosts +``` + +```bash +127.0.0.1 localhost +127.0.1.1 .local + +# The following lines are desirable for IPv6 capable hosts +::1 ip6-localhost ip6-loopback +fe00::0 ip6-localnet +ff00::0 ip6-mcastprefix +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters +ff02::3 ip6-allhosts + +# +192.168.1.11 bob +192.168.1.12 carlo +192.168.1.13 gary +192.168.1.14 sandy +192.168.1.15 krabs +192.168.1.16 sheldon +192.168.1.17 bernie +# 192.168.1.18 pearl + +# +192.168.1.53 retropie +``` + +### SSH +#### On remote (PC) : + +```bash +ssh-keygen -t ed25519 +​ +ssh-copy-id -f -i ~/.ssh/id_ed25519.pub pleb@192.168.1.xxx +​ +ssh-copy-id -f -i ~/.ssh/id_ed25519.pub pleb@ +``` + +=== +### Map + ```markdown . bikiniBottom ├── bob (192.168.1.11) # caddy -├── carlo (192.168.1.12) +├── carlo (192.168.1.12) # stream ├── turing-pi (192.168.1.10) | ├── gary (192.168.1.13) | ├── sandy (192.168.1.14) -| ├── sheldon (192.168.1.16) # En attente +| ├── sheldon (192.168.1.16) | └── pearl (192.168.1.18) # En attente ├── krabs (192.168.1.15) # nfs server ├── bernie (192.168.1.17) # octoprint