How VPS - How to use/setup VPS
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Arch

Installing Arch Linux On a Vultr Server

How VPS by How VPS
February 13, 2020
in Arch, Uncategorized
0
0
SHARES
14
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Want to contribute?


Vultr provides you with the awesome functionality of letting you use your own custom
image in addition to their excellent templates, which enables you to run a vast
range of operating systems on your server. This tutorial will provide a step-by-step
explanation of how to install Arch Linux.

While Arch is generally considered a distribution for desktops and notebooks and not
for servers. It is absolutely fitting to use it on your server. In exchange for the extra
effort needed for installation, you get a bleeding edge, yet stable experience.

First, you need to obtain a copy of the Arch installation image and upload it to your
dashboard. Generally speaking, any mirror is fine. To increase the download speed,
you should use a mirror that’s geographically close to your desired server location.

You start by going to the site for your image files and select a HTTP-link for the installation image, for example this one. Download time is generally under one minute, depending on the speed of the mirror.

After that, you can deploy your new server. Instead of choosing one of the listed operating system choices, you would choose the image you just uploaded from the drop-down menu named ISO.

After the deployment is complete, switch to the “Manage“-panel of your server and open up the VNC-console by clicking on View console. You are now in the live-shell of Arch.

Since there will be a lot of packages to be downloaded, the first thing you need to do is to set up the network connection. You can find the IPv4-information on your server’s dashboard. In order to find out how the network interface is called you run the ip-command:

ip link

The output should look similar to this:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:11:25:31:69:20 brd ff:ff:ff:ff:ff:ff

The first one is your loopback interface, which can be safely ignored for now. The second one is your ‘real’ interface which needs to be configured. Configuration is also performed with the IP-command. The syntax is as follows:

ip addr add yourip/yoursubnetmask dev yourinterfacename

For example (Do not use these IP addresses – use the ones you found in your dashboard instead):

ip addr add 10.0.0.1/24 dev eth0

Next, bring the interface up:

ip link set eth0 up

Then you need to set the gateway:

ip route add default via yourgateway

For example (Again, see your dashboard for the proper address):

ip route add default via 10.0.0.1

Now you should be able to reach the Internet. However, in order to have a fully working connection, you need DNS to work. Edit /etc/resolv.conf with your favorite text editor (nano or vi) and add two nameservers – I am using Google’s public DNS as example:

nameserver 8.8.8.8
nameserver 8.8.4.4

You can test that everything works by using the ping command:

ping -c 3 vultr.com

If that works, then you are connected to the Internet. The next step is the partitioning of the disks, with the cfdisk-utility. You open it by simply calling:

cfdisk /dev/vda

It will first prompt you for a partition type, select dos here. Then you create a “New” partition with a size of 2GB and type Primary. Next, a second partition that fills up the rest of the space and is again of type “Primary“. Make also sure that the Bootable-flag is set on the second partition. Finish the program by Writing everything and hitting ‘q‘ afterwards.

The partitions are now there, but they are lacking a filesystem. Since the first partition will be swap, you need to run:

mkswap /dev/vda1
swapon /dev/vda1

The main filesystem will reside on the second partition:

mkfs.ext4 /dev/vda2
mount /dev/vda2 /mnt

Now the real installation can start with the most basic packages:

pacstrap /mnt base base-devel

When that task has finished, you have a basic Arch-installation ready. Your installation still needs to be customized in a chroot. Before doing that, generate /etc/fstab for the installation:

genfstab -p /mnt > /mnt/etc/fstab

Now you can chroot:

arch-chroot /mnt bash

In the chroot environment, you configure your language settings by opening /etc/locale.gen with your favorite text editor and uncommenting your language of choice, for example:

en_US.UTF-8 UTF-8

Then, execute:

locale-gen

And add the language to /etc/locale.conf:

echo "LANG=en_US.UTF-8" > /etc/locale.conf

Next is properly setting the timezone (Replace the zoneinfo with the zone of your server’s location):

ln -s /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

Configure your hostname (Choose a hostname accordingly):

echo "vultrserver02" > /etc/hostname

Configure initramfs:

mkinitcpio -p linux

Install and configure grub:

pacman -S grub
grub-install /dev/vda
grub-mkconfig -o /boot/grub/grub.cfg

Set a password for the root user account:

passwd

Configure the static IP address for your server by editing /etc/netctl/eth0 with your favorite text editor:

Description='eth0'
Interface=eth0
Connection=ethernet
IP=static
Address='youraddress/yoursubnetmask'
Gateway='yourgateway'
DNS = 'nameserverofchoice'

and enabling the service at boot-time:

netctl enable eth0

Since administrating your server from the virtual console isn’t exactly fun, you are going to install OpenSSH and activate it at boot-time:

pacman -S openssh
systemctl enable sshd.service

Afterwards, you are finished. Leave the chroot by issuing the:

exit

command, and reboot your server. Don’t forget to remove the image or else you will be stuck in a boot-loop.

Your Arch Linux server is now online!

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
How VPS

How VPS

Related Posts

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers
Uncategorized

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Install Arch Linux With Btrfs Snapshotting
Uncategorized

Install Arch Linux With Btrfs Snapshotting

February 13, 2020
Arch

Setup Mumble Server on Arch Linux

February 13, 2020
Next Post

Setup Spigot Server on Arch Linux

Setup a Team Fortress 2 Server on Arch Linux

Setup a Counter-Strike: Global Offensive (CSGO) Server on Arch Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

How to enable LetsEncrypt with Centmin Mod

How to enable LetsEncrypt with Centmin Mod?

3 years ago

How to Install Apache on CentOS 7

3 years ago

Running WordPress on OpenBSD 6.5 with OpenBSD’s HTTPD

3 years ago

Tips to Create ISO from CD, Watch User Activity and Check Memory Usages of Browser

4 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8 February 25, 2022
  • How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.