First commit on Mac Mini server
This commit is contained in:
1165
public/series/my-first-server-in-room/index.html
Normal file
1165
public/series/my-first-server-in-room/index.html
Normal file
File diff suppressed because it is too large
Load Diff
52
public/series/my-first-server-in-room/index.xml
Normal file
52
public/series/my-first-server-in-room/index.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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><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></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><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></description>
|
||||
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
10
public/series/my-first-server-in-room/page/1/index.html
Normal file
10
public/series/my-first-server-in-room/page/1/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>http://localhost:1313/series/my-first-server-in-room/</title>
|
||||
<link rel="canonical" href="http://localhost:1313/series/my-first-server-in-room/">
|
||||
<meta name="robots" content="noindex">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="refresh" content="0; url=http://localhost:1313/series/my-first-server-in-room/">
|
||||
</head>
|
||||
</html>
|
||||
Reference in New Issue
Block a user