Arch Linux VPS Setup Guide
Prepare an Arch Linux server, secure it, and learn the update habits that keep a rolling release reliable.
Arch does not stay healthy by itself. Setup is quick, and what really matters is the update routine at the end of this guide.
- Release: Rolling, always the latest
- Minimum server: 512 MiB of RAM officially, 1 GB to 2 GB in practice
- Sold on: our Global plans
Order and set your password
Arch Linux is available on our Global plans. Unlike our cloud plans, the root password is one you set yourself in the checkout form, so save it somewhere safe.
Log in
Connect using the password from checkout.
ssh root@YOUR_SERVER_IP
uname -rRun a full system upgrade
Always upgrade everything together. Partial upgrades are not supported on Arch and can leave the system broken.
Never run pacman -Sy followed by installing a single package. Use pacman -Syu.
pacman -Syu --noconfirm
rebootCreate a user with sudo
When visudo opens, uncomment the line beginning with %wheel ALL=(ALL:ALL) ALL.
pacman -S sudo vi --noconfirm
useradd -m -G wheel -s /bin/bash deploy
passwd deploy
EDITOR=vi visudoSet up SSH keys and lock down login
Copy your key from your own computer first, then apply the policy on the server.
Confirm a new login works before ending this session.
# on your own computer
ssh-copy-id deploy@YOUR_SERVER_IP
# on the server
sudo tee /etc/ssh/sshd_config.d/10-hardening.conf > /dev/null <<'EOF'
PermitRootLogin no
PasswordAuthentication no
EOF
sudo sshd -t && sudo systemctl restart sshdStart the firewall
Arch includes a sensible nftables ruleset that blocks incoming traffic other than SSH and ping. Enable it and review what it does.
sudo pacman -S nftables --noconfirm
sudo systemctl enable --now nftables
sudo nft list rulesetInstall the maintenance tools
pacman-contrib adds checkupdates, which lists pending updates without syncing, and paccache, which trims old packages.
sudo pacman -S pacman-contrib --noconfirm
sudo systemctl enable --now paccache.timer
checkupdatesUse the AUR carefully
The Arch User Repository is powerful, but its packages come from users. Build as a normal user and read every PKGBUILD first.
sudo pacman -S --needed base-devel git --noconfirm
git clone https://aur.archlinux.org/PACKAGE.git
cd PACKAGE
less PKGBUILD
makepkg -siAdopt an update routine
This is what keeps an Arch server healthy:
- Update at least every couple of weeks, because long gaps make updates harder
- Read archlinux.org/news before updating
- Run sudo pacman -Syu, and read its output
- Merge any .pacnew configuration files that it reports
- Reboot after kernel updates
Get a server for this guide
Arch Linux plans run everything in this guide, from $5.52/mo.
See Arch Linux plansTable of Contents
- 1.1. Order and set your password
- 2.2. Log in
- 3.3. Run a full system upgrade
- 4.4. Create a user with sudo
- 5.5. Set up SSH keys and lock down login
- 6.6. Start the firewall
- 7.7. Install the maintenance tools
- 8.8. Use the AUR carefully
- 9.9. Adopt an update routine
Arch Linux VPS Setup Guide: Frequently Asked Questions
Quick answers to common questions.
How do I set the root password for an Arch Linux VPS?
On an Arch Linux VPS you set the root password yourself in the checkout form, unlike our cloud plans, where we email it to you. Save it somewhere safe, because it is what you use for your first SSH login as root. Arch Linux is available on our Global plans.
How do I give a user sudo rights on Arch Linux?
Install sudo with pacman, create the user with useradd -m -G wheel -s /bin/bash and set a password with passwd. Then run EDITOR=vi visudo and uncomment the line beginning with %wheel ALL=(ALL:ALL) ALL. Members of the wheel group can now use sudo on your Arch Linux server.
Which firewall should I use on an Arch Linux server?
Use nftables: Arch Linux ships a sensible default ruleset that blocks incoming traffic other than SSH and ping. Install the nftables package, enable it with systemctl enable --now nftables and review the rules with nft list ruleset. Then add rules for any other service you run.
How do I check for Arch Linux updates without syncing?
Install pacman-contrib and run checkupdates, which lists pending Arch Linux updates without syncing your real package database. That avoids the partial-upgrade state a plain pacman -Sy can leave behind. When you are ready, apply everything at once with sudo pacman -Syu.
What are .pacnew files on Arch Linux?
A .pacnew file is a new default configuration file that pacman saves next to one you have changed, instead of overwriting yours. pacman -Syu reports them in its output, and you merge the changes into your own config by hand. Handling .pacnew files is part of the routine that keeps an Arch Linux server healthy.
How often should I update an Arch Linux VPS?
Update an Arch Linux server at least every couple of weeks, because long gaps make updates harder. Read the Arch Linux news page before each update, run sudo pacman -Syu and read its output, merge any .pacnew files and reboot after kernel updates.
How much RAM does an Arch Linux VPS really need?
Arch Linux officially needs 512 MiB of RAM, but 1 GB to 2 GB is the practical minimum for a server that runs real services. The base system is small, so most of the memory goes to the software you install on top of it.
Explore More VPS Hosting Options
Find the right server for your project.