This article is intended to show users how to install Arch remotely via an SSH connection. Consider this approach over the standard one in scenarios such the following:

+

This article is intended to show users how to install Arch remotely via an SSH connection. Consider this approach over the standard one in scenarios such as the following:

Setting up Arch on...

Setting up Arch on...

Line 17:

Line 18:

== Boot from Media==

== Boot from Media==

−

Boot into a live Arch environment via the [[Beginners'_Guide#Obtain_the_latest_installation_media|live CD/USB image]] and log in as '''root'''.

+

Boot into a live Arch environment via the [[Beginners'_Guide#Obtain_the_latest_installation_media|Live CD/USB image]].

==Setup the Live Environment to use SSH==

==Setup the Live Environment to use SSH==

−

{{Note| The following commands should be executed as the root user. The # prompt has intentionally been omitted from the code lines to allow for a trivial copy/paste into the target box.}}

+

{{Note| The following commands should be executed as the root user, hence the '''#''' before the commands.}}

−

One should be presented with the root prompt '''[root@archiso ~]#''' at this point.

+

One should be logged in as root at this point. (This is the default user when running the livecd)

First, setup the network on the target machine.

First, setup the network on the target machine.

Line 31:

Line 32:

Secondly, start the openssh daemon:

Secondly, start the openssh daemon:

−

rc.d start sshd

+

+

On a live system using systemd: (2012.10.06 or later)

+

# systemctl start sshd

+

+

On a live system using initscripts: (pre-2012.10.06)

+

# rc.d start sshd

Finally, setup a root password which is needed for an ssh connection; the default arch password for root is empty.

Finally, setup a root password which is needed for an ssh connection; the default arch password for root is empty.

Line 52:

Line 58:

==Next Steps==

==Next Steps==

−

The sky is the limit. If the intent is to simply install Arch from the live media, run {{ic|/arch/setup}}. If the intent is to edit an existing Linux install that got broken, follow the [[Install from Existing Linux]] wiki article.

+

The sky is the limit. If the intent is to simply install Arch from the live media, follow the guide at [[Installation Guide]]. If the intent is to edit an existing Linux install that got broken, follow the [[Install from Existing Linux]] wiki article.

Notes

If the target machine is behind a firewall/router, the default ssh port of 22 will obviously need to be forward to the target machine's LAN IP address. The use of port forwarding is not covered in this guide.

One can edit /etc/ssh/sshd_config on the live environment prior to starting the daemon for example to run on a non-standard port if desired.

Next Steps

The sky is the limit. If the intent is to simply install Arch from the live media, follow the guide at Installation Guide. If the intent is to edit an existing Linux install that got broken, follow the Install from Existing Linux wiki article.

Manually partition the target HDD/SDD using the gdisk utility installed via pacman -S gdisk before starting the arch installer and when presented with the option to install a boot loader in the installation framework, simply answer no and drop back to the live environment's root prompt.

Installation of grub2 is trivial at this point. Simply chroot into the fresh arch install (default pre-mounted if coming out of the installer) then install and setup grub2: