Script to convert a Debian installation on DigitalOcean to Arch Linux
Go to file
Gavin Li 36627829e1 Update README.md 2015-06-16 20:27:39 -07:00
.gitignore gitignore 2014-07-13 14:47:26 -07:00
README.md Update README.md 2015-06-16 20:27:39 -07:00
install.sh on transitory abort, redirect to /dev/console 2015-06-01 22:49:44 -07:00
test.py add test script 2014-10-04 17:12:42 -07:00

README.md

DigitalOcean Debian to Arch

DigitalOcean deprecated Arch Linux a while back because it was relatively difficult to support due to the rolling updates. I wrote this script to bring it back! This script downloads all the packages necessary for a base Arch Linux VPS, extracts them, configures them, and installs the fully configured system on the root of the filesystem. This script also configures the system to run kexec on startup to ensure that the latest installed kernel version is running.

Warning

This script may cause your VPS to become unbootable. I only recommend running this script on newly created droplets with no important data.

Installation

  1. Create a new Debian 7.0 droplet (either 32-bit or 64-bit works).
  2. In the droplet (either SSH or console access works), run the following as root: wget https://raw.githubusercontent.com/gh2o/digitalocean-debian-to-arch/debian7/install.sh && bash install.sh
  3. Answer the questions as prompted.
    • If the script asks to remove a failed installation, there is a failed installation at /archroot that is unlikely to contain important data. It is safe and recommended to answer yes here.
    • Because the random number generator, required to generate keys for pacman, is painstakingly slow, the script will offer to install the package haveged which will speed it up. Again it is recommended to answer yes here.
  4. Sit back and relax! The system will automatically reboot once complete, and you should have a fully updated Arch Linux system in within minutes.
  5. You will be able to log in with your original root password. The replaced Debian files are located in /oldroot, which may be safely deleted to free up space.

Advanced Configuration

  • You may set archlinux_mirror in the script to a mirror closer to your droplet's datacenter for a faster installation.