diff options
author | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2023-01-02 06:02:01 +0800 |
commit | be772f40c42711de54a3331db2781b1511acba9d (patch) | |
tree | 0808a7750d3c1055b0e86071c219d872775b1f92 /content/post/install archlinux on tencent server.md | |
parent | 3ae5ecf803ed2d4ece2c9da6d91aae0f075c5b0c (diff) |
change to zola
Diffstat (limited to 'content/post/install archlinux on tencent server.md')
-rw-r--r-- | content/post/install archlinux on tencent server.md | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/content/post/install archlinux on tencent server.md b/content/post/install archlinux on tencent server.md new file mode 100644 index 0000000..c07c478 --- /dev/null +++ b/content/post/install archlinux on tencent server.md @@ -0,0 +1,62 @@ ++++ +title = "Install arch linux on Tencent server" +date = 2022-08-10 +[taxonomies] +categories = ["period"] +tags = ["gibberish"] +[extra] +math = false ++++ + +In order to build a website for myself, I rent a server from Tencent. This is my final decision, the process is turtuous... + +My requirement as below: + +1. abroad provider because they don't have to register.. +2. the the budget's not relax, all I can choosing was in range of $0 - $10. +3. It can runs Arch linux seamlessly + +I already eye on one: Linode. But they don't see me... and banned all my gmail account from their service... + + + +Fine! It's your loss! + +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. + +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.. + +There is where excellent support comes from. I feedbacked the issue, they immediately help me fixed it. Thanks a lot! + +And then, I started installation... + +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 `systemd-network` service which comes with iso. It's very tricky. + +It associates another service called `systemd-resolve`. Network can be reachable if both in proper configuration.. + +> Start both systemd service, then edit their config.. +> +> - For `systemd-network`, we can edit `/etc/systemd/network/20-*.conf` +> - For `systemd-resolve`, we can link `/etc/resolv.conf` to `/run/systemd/resolve/stub-resolv.conf` + +After tricky part done, other steps just as normal as install in local env. + +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.. + +Then, I found Tencent Cloud.. + +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. + +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. + +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. + + + +There involves three parts to install arch: + +- Mount ISO to driver and delete other thing +- Manually add entry of ArchISO to grub +- Static IP is of internal whereas hostkey is public. + +So now, I got a server that running Arch Linux. Next, buiding a website on it! |