My First Server in Room on SWangNice http://localhost:1313/series/my-first-server-in-room/ Recent content in My First Server in Room on SWangNice Hugo -- gohugo.io en © 2025 SWang Fri, 20 Sep 2024 04:17:50 +0000 Website Setup http://localhost:1313/projects/self_host/mac_mini_m4/01_website_hosting/ Fri, 20 Sep 2024 04:17:50 +0000 http://localhost:1313/projects/self_host/mac_mini_m4/01_website_hosting/ <h2 class="relative group">🍎Mac Mini Side <div id="mac-mini-side" class="anchor"></div> <span class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"> <a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#mac-mini-side" aria-label="Anchor">#</a> </span> </h2> <p>As a server, my Mac won&rsquo;t sleep, so change the setting firstly.</p> <pre tabindex="0"><code>sudo systemsetup -setcomputersleep Never # never sleep sudo systemsetup -setdisplaysleep 10 # display will sleep in 10 min </code></pre><p>Use autossh to avoid timeout:</p> <pre tabindex="0"><code>brew install autossh </code></pre><p>Add the configuration below in <code>~/.ssh/config</code>, Mac Mini will send package per 30 seconds to keep the connection alive.</p> File management system http://localhost:1313/projects/self_host/mac_mini_m4/02_nas/ Fri, 20 Sep 2024 04:17:50 +0000 http://localhost:1313/projects/self_host/mac_mini_m4/02_nas/ <pre tabindex="0"><code>diskutil list </code></pre><p>Solution: HFS+ + SMB3.0, 客户端设置“延迟加载目录”或“按需索引”</p> <p><code>diskutil list</code></p> <pre tabindex="0"><code>sudo smartctl -a /dev/disk2 </code></pre><p><code>brew install smartmontools</code></p>