summaryrefslogtreecommitdiff
path: root/guides/setups/operating-systems/debian.org
diff options
context:
space:
mode:
Diffstat (limited to 'guides/setups/operating-systems/debian.org')
-rw-r--r--guides/setups/operating-systems/debian.org40
1 files changed, 40 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