Install from SSH

From ArchWiki
Revision as of 13:32, 23 December 2010 by Graysky (Talk | contribs) (Created page with "==Intro== 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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Intro

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:

Setting up Arch on...

  • HTPC without a proper monitor (i.e. an SDTV).
  • A PC located in another city, state, country.
  • A PC that you would rather setup remotely, for example from the comfort of one's own workstation with copy/paste abilities from the Arch Wiki.

Setup the Target System

1. Boot from Media

Template:NoteThis part will require physical access to the machine. Obviously, if physically located elsewhere, this will need to be coordinated with another person!

Boot into a live Arch environment via the [live CD/USB image] and log in as root.

2. Setup the Live Environment to use SSH

Template:NoteThis part will require physical access to the machine. Obviously, if physically located elsewhere, this will need to be coordinated with another person!

One should be presented with the root prompt [root@archiso ~]# at this point. Complete the following commands:

aif -partial-configure-network # setup the network
pacman -Syy # update the live environment's syncdb
pacman -S openssh # self explanatory
echo "sshd: ALL" >> /etc/hosts.allow # by default arch denies all connections 
passwd # set a password for the live environment's root user
/etc/rc.d/sshd start # self explanatory