diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2024-11-30 22:12:16 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2024-11-30 22:12:16 +0100 |
| commit | e2f595b7a3719445375f1b2d559ba1b16c3f5ba1 (patch) | |
| tree | 6d6bafda9cf463edfca8ad3293bd078589b640e0 /guides/setups/operating-systems | |
| parent | bfca6cea4f4a3ad7032c139a451a154a5f8616a8 (diff) | |
| download | memory-leaks-e2f595b7a3719445375f1b2d559ba1b16c3f5ba1.tar.xz | |
Jot down some "sys" “"«admin»"” notes
Diffstat (limited to 'guides/setups/operating-systems')
| -rw-r--r-- | guides/setups/operating-systems/debian.org | 40 | ||||
| -rw-r--r-- | guides/setups/operating-systems/opensuse.org | 13 |
2 files changed, 53 insertions, 0 deletions
diff --git a/guides/setups/operating-systems/debian.org b/guides/setups/operating-systems/debian.org index 35f410d..21aff43 100644 --- a/guides/setups/operating-systems/debian.org +++ b/guides/setups/operating-systems/debian.org @@ -617,6 +617,46 @@ Some more stats, eyeballed from /proc/cpuinfo and - [[https://lists.debian.org/debian-kernel/2021/08/msg00278.html][2021-08]] - quick report that 5.10 from a fresh bullseye install does not improve things: 🦗 - 2023-08 - bookworm upgrade to 6.1: problem solved 🤷 +** samba server +- I want most of my music on my laptop. +- I want to access it from my desktop. +- I want anyone on my home network to access it too. +- I am too lazy to remove the Windows partition from my laptop, so + that partition sits mostly empty, eating 50% of the disk space. + +Therefore, the only sensible move is to run Samba on the laptop, +serving a folder on my Linux partition with a symlink to the Windows +partition. + +Chosen =/etc/smb.conf= excerpts: + +#+begin_src conf +[global] +allow insecure wide links = yes + +[sambo] +comment = Files yours truly is sharing with you. +path = /home/[…user…]/Public/smb +browseable = yes +read only = yes +guest ok = yes +wide links = yes +#+end_src + +Then: + +#+begin_src sh +# Mount Windows disk. +udisksctl mount --block-device /dev/disk/by-label/OS +# Symlink it from shared directory. +ln -s /media/[…user…]/OS/Music ~/Public/smb/ +#+end_src + +On the desktop side: +#+begin_src sh +sudo mount.cifs //hirondell.local/sambo […somewhere…] \ + -o guest,uid=$(id -u),gid=$(id -g) +#+end_src * Someday ** fix xfce4-terminal opening links with firefox-esr ** fix Thunar opening images with Firefox instead of Ristretto diff --git a/guides/setups/operating-systems/opensuse.org b/guides/setups/operating-systems/opensuse.org index 3bfa048..bddf66b 100644 --- a/guides/setups/operating-systems/opensuse.org +++ b/guides/setups/operating-systems/opensuse.org @@ -161,3 +161,16 @@ distribution upgrade", zypper would have realized that nobody needs "manually installed" with solution 1? 🤷 +** Auto-mount second disk under =$HOME/media= +#+begin_example +$ lsblk --fs +[…] +nvme0n1 +└─nvme0n1p1 xfs […UUID…] +$ sudo $edit /etc/fstab +[… add: +UUID=[…UUID…] […$HOME…]/media xfs user,exec 0 0 +…] +$ mkdir ~/media +$ mount ~/media +#+end_example |
