92 lines
5.3 KiB
XML
92 lines
5.3 KiB
XML
<?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: Mac Mini + SSD Enclosure on SWangNice</title>
|
||
<link>http://localhost:1313/projects/self_host/mac_mini_m4/</link>
|
||
<description>Recent content in My First Server in Room: Mac Mini + SSD Enclosure 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/projects/self_host/mac_mini_m4/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><p>I don&rsquo;t have a public IP, so my solution is SSH tunnel + reverse Proxy on cloud server.</p>
|
||
|
||
|
||
<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>NAS: Network Attachment Storage</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><h2 class="relative group">Hardware
|
||
<div id="hardware" 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="#hardware" aria-label="Anchor">#</a>
|
||
</span>
|
||
|
||
</h2>
|
||
<p>I went with the UNITEK 3373BBK for one of my drive enclosures—and honestly, it wasn’t the best decision.</p>
|
||
<p>The first big letdown? The bandwidth tops out at just 5Gbps. That’s fine for basic tasks, but definitely underwhelming if you’re dealing with high-speed storage or large file transfers.</p>
|
||
<p>Even worse, it doesn’t support S.M.A.R.T passthrough, which makes monitoring drive health a hassle. That was a big deal-breaker for me.</p></description>
|
||
|
||
</item>
|
||
|
||
<item>
|
||
<title>My Own Code Vault: Gitea on Mac Mini</title>
|
||
<link>http://localhost:1313/projects/self_host/mac_mini_m4/03_gitea/</link>
|
||
<pubDate>Fri, 20 Sep 2024 04:17:50 +0000</pubDate>
|
||
|
||
<guid>http://localhost:1313/projects/self_host/mac_mini_m4/03_gitea/</guid>
|
||
<description><p>Install dependence of gitea:</p>
|
||
<pre tabindex="0"><code>brew install git
|
||
brew install gitea
|
||
</code></pre><p>Start the configuration page of Gitea:</p>
|
||
<pre tabindex="0"><code>gitea web
|
||
</code></pre><p>Install MySQL:</p>
|
||
<pre tabindex="0"><code>brew install mysql
|
||
brew services start mysql
|
||
</code></pre><p>Login MySQL and create the database and user:</p>
|
||
<pre tabindex="0"><code>mysql -u root
|
||
</code></pre><p>Then, execute:</p>
|
||
<pre tabindex="0"><code>CREATE DATABASE gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||
CREATE USER &#39;gitea&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;&lt;yourpassword&gt;&#39;;
|
||
GRANT ALL PRIVILEGES ON gitea.* TO &#39;gitea&#39;@&#39;localhost&#39;;
|
||
FLUSH PRIVILEGES;
|
||
</code></pre><p>CREATE DATABASE gitea CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||
CREATE USER &lsquo;gitea&rsquo;@&rsquo;localhost&rsquo; IDENTIFIED BY &lsquo;gitea&rsquo;;
|
||
GRANT ALL PRIVILEGES ON gitea.* TO &lsquo;gitea&rsquo;@&rsquo;localhost&rsquo;;
|
||
FLUSH PRIVILEGES;</p></description>
|
||
|
||
</item>
|
||
|
||
</channel>
|
||
</rss>
|