Files
swangnice_site/public/series/my-first-server-in-room/index.xml

53 lines
2.9 KiB
XML
Raw Normal View History

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