summaryrefslogtreecommitdiff
path: root/public/post/install-archlinux-on-tencent-server
diff options
context:
space:
mode:
Diffstat (limited to 'public/post/install-archlinux-on-tencent-server')
-rw-r--r--public/post/install-archlinux-on-tencent-server/index.html106
1 files changed, 106 insertions, 0 deletions
diff --git a/public/post/install-archlinux-on-tencent-server/index.html b/public/post/install-archlinux-on-tencent-server/index.html
new file mode 100644
index 0000000..a4eceb0
--- /dev/null
+++ b/public/post/install-archlinux-on-tencent-server/index.html
@@ -0,0 +1,106 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+
+<title>Install arch linux on Tencent server | garhve&#x27;s gibberish</title>
+
+
+ <link rel="shortcut icon" type="image/png" href="&#x2F;images&#x2F;favicon.png">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+
+ <link id="stylesheet" rel="stylesheet" type="text/css" href="/dark.css">
+
+ <script type="text/javascript" src="/js/theme.js"></script>
+
+</head>
+
+<div class="header">
+ <div class="site_title">
+ <p><a href="/"><img src="https:&#x2F;&#x2F;blog.garhve.com&#x2F;images&#x2F;logo.ico" alt="garhve&#x27;s gibberish"
+ width="70" height=auto></a></p>
+ <p><a href="/">&nbsp;garhve&#x27;s gibberish</a></p>
+ </div>
+ <div class="menu">
+ <!-- <a href="/tags">tags</a>
+ &nbsp;--><a href="/categories">categories</a>
+ </div>
+</div>
+
+<body onload="getTheme()">
+ <section class="section">
+ <div class="container">
+
+<p>
+ <div class="title_postpage">Install arch linux on Tencent server</div>
+</p>
+<p>
+ <div class="date_postpage">2022-08-10</div>
+ <div class="taxonomies_postpage">
+
+
+ <a href="https://blog.garhve.com/categories/period/">/period</a>
+
+
+
+
+ &emsp;<a href="https://blog.garhve.com/tags/gibberish/">#gibberish</a>
+
+
+ </div>
+</p>
+
+<p>
+ <p>In order to build a website for myself, I rent a server from Tencent. This is my final decision, the process is turtuous...</p>
+<p>My requirement as below:</p>
+<ol>
+<li>abroad provider because they don't have to register..</li>
+<li>the the budget's not relax, all I can choosing was in range of $0 - $10.</li>
+<li>It can runs Arch linux seamlessly</li>
+</ol>
+<p>I already eye on one: Linode. But they don't see me... and banned all my gmail account from their service...</p>
+<p><img src="https://assets.garhve.com/pictures/screenshots/2022/08/38383267.png" alt="cancelEmail.png" /></p>
+<p>Fine! It's your loss!</p>
+<p>My second thought was hostkey, They got excellent support, and cheapest price comparing with other service me compared. So be it. I paid €3 to get one.</p>
+<p>The server was great at first. But when it comes to custom OS installation because I want my server runs Arch linux, things got frustrating. The server supports me mount custom OS installer from their library, but even it shows me that mounted successfully, i still can't boot from ISO, not saying start installation..</p>
+<p>There is where excellent support comes from. I feedbacked the issue, they immediately help me fixed it. Thanks a lot!</p>
+<p>And then, I started installation...</p>
+<p>I never tried install a arch linux into server. So when it has not network. I totally fucked up, I googled and googled. Finally I found that in official wiki, this issue has a solution. The solution tells me that if we had static IP, we can get network through <code>systemd-network</code> service which comes with iso. It's very tricky.</p>
+<p>It associates another service called <code>systemd-resolve</code>. Network can be reachable if both in proper configuration..</p>
+<blockquote>
+<p>Start both systemd service, then edit their config..</p>
+<ul>
+<li>For <code>systemd-network</code>, we can edit <code>/etc/systemd/network/20-*.conf</code></li>
+<li>For <code>systemd-resolve</code>, we can link <code>/etc/resolv.conf</code> to <code>/run/systemd/resolve/stub-resolv.conf</code></li>
+</ul>
+</blockquote>
+<p>After tricky part done, other steps just as normal as install in local env.</p>
+<p>I struggled and successfully installed arch linux on my server, but then i encountered night traffic jam.. No matter how hard I try, I just can't ssh into my server. That's unacceptable! I immediately start looking for other provider..</p>
+<p>Then, I found Tencent Cloud..</p>
+<p>I already have one server of it, based on Shanghai. It is good, but building a website in it would require me to register, so I never consider using it.</p>
+<p>I rent a server that based on Hong Kong, cost me ¥42 per month. But this has really good quality. even now at 2:05am when I'm writing this essay. It still performs stable connection.</p>
+<p>First thing I got hands on Tencent Hong Kong server, I changed OS to arch linux, just as before. But Tencent doesn't provide arch linux ISO, so i found some blogs on internet to know how to do it. And I succeed.</p>
+<p><img src="https://assets.garhve.com/pictures/screenshots/2022/08/4068602805.png" alt="tencentArch.png" /></p>
+<p>There involves three parts to install arch:</p>
+<ul>
+<li>Mount ISO to driver and delete other thing</li>
+<li>Manually add entry of ArchISO to grub</li>
+<li>Static IP is of internal whereas hostkey is public.</li>
+</ul>
+<p>So now, I got a server that running Arch Linux. Next, buiding a website on it!</p>
+
+</p>
+
+
+
+
+ </div>
+ </section>
+</body>
+
+<div class="footer">
+ &emsp;&copy; garhve
+</div>
+
+</html>