DigitalOcean are a promising host: good machines, lovely interface, lots of free credit floating about. However they don't support custom disk images, which leaves a lot of distros unusable.
You can use this script to replace a fresh Debian 7.0 droplet with an Arch system (including the Arch Kernel). While there's no reason to think this script does anything naughty, it isn't easy to be sure. DigitalOcean might make a change that renders it unbootable, so backups would be advisable.
Installing digitalocean-debian-to-arch
- Create a new Debian 7.0 droplet (either 32-bit or 64-bit works).
- In the droplet (either SSH or console access works),
run the following as root:
wget https://raw.githubusercontent.com/gh2o/digitalocean-debian-to-arch/master/install.sh && bash install.sh
- 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.
- If the script asks to remove a failed installation,
there is a failed installation at
- Sit back and relax! The system will automatically reboot once complete, and you should have a fully updated Arch Linux system in within minutes.
- 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.
I suggest running rm -rf /oldroot
and rebooting before the next part. Your old user credentials will still work.
We'll configure the timezone, locale and swap. The system this creates is more minimal than ordinary Arch images: we'll need to install the base-devel
package to install further software.
sudo ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
sudo sh -c 'echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen'
sudo locale-gen
sudo sh -c 'echo LANG=en_GB.UTF-8 UTF-8 > /etc/locale.conf'
sudo mkinitcpio -p linux
sudo pacman -S base-devel