summaryrefslogtreecommitdiff
path: root/public/post/install-archlinux-on-tencent-server/index.html
blob: d825843a64bc96dc6167aeff6be66d2ddbee01ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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.png" 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>