Difference between revisions of "Arch Linux"

From PrgmrWiki
(Replaced content with "Our current instructions are out of date and will be updated this weekend. In the meantime please contact support if you need assistance installing arch linux.")
Line 1: Line 1:
=Fresh Install=
+
Our current instructions are out of date and will be updated this weekend. In the meantime please contact support if you need assistance installing arch linux.
<b style="font-size:20px">1GB of ram is required to run the installer.</b>
 
 
 
==Initial setup==
 
 
 
WARNING: this will delete all your data!<br>
 
 
 
At the management console, check the line "swap i386/amd64 bootloaders (pvgrub)" and make sure it says amd64 at the end.<br>
 
Shut down your instance if it is running.<br>
 
Select "create/start"<br>
 
Select "Debian GNU/Linux, Live Rescue" from the GNU GRUB menu and press enter.<br>
 
Wait for the boot to complete and use "root" as the login user.  There is no password.<br>
 
 
 
===Quick start===
 
<pre>
 
echo -e 'o\nn\np\n1\n2048\n+256M\nn\np\n2\n\n\nw' | fdisk -u /dev/xvda
 
mkfs.ext3 -L BOOT /dev/xvda1
 
mount /dev/xvda1 /mnt
 
tar xvf /distros/arch*.tar.gz -C /mnt
 
reboot
 
</pre>
 
===Details===
 
Partition /dev/xvda to have at least two partitions.  /dev/xvda1 will be boot and should have at least 256MB.  You can complete partitioning now or use the Arch linux installation one later. A graphical partitioner can be used with:
 
<pre>
 
root@rescue:~# cfdisk /dev/xvda
 
</pre>
 
Next format the partition:
 
<pre>
 
root@rescue:~# mkfs.ext3 -L BOOT /dev/xvda1
 
</pre>
 
Mount:
 
<pre>
 
mount /dev/xvda1 /mnt
 
</pre>
 
Extract the installer
 
<pre>
 
tar xvf /distros/arch*.tar.gz -C /mnt
 
</pre>
 
And reboot.  On the next boot, for the "user bootloader configuration" the arch linux installer will be loaded.
 
 
 
==Installer and post-installation steps==
 
Procede through 0, 1, and 2 as normal.  For 3 "Prepare storage device" use the following selections:<br>
 
2. Partition storage drives<br>
 
No - do not use GUID partition table<br>
 
Select "/dev/xvda" as device to partition - /dev/xvde and /dev/xvdf are read-only<br>
 
In parted, leave partition "1" as is to be /boot and partition otherwise as you see fit - a sane default is to have partition 2 be the rest of the disk<br>
 
Select "DONE" when done with parted to go back to main "Prepare storage device" menu<br>
 
Under "4 Set Filesystem Mountpoints" - select optional swap partition, select root partition, and then select "/dev/xvda1" as an additional partition to mount as "/boot"<br>
 
Select "ext3" as the filesystem for "/dev/xvda1"<br>
 
Select "No" for "Would you like to create a filesystem on /dev/xvda1?"<br>
 
Select "Done"
 
Your final selections should resemble:
 
<pre>
 
      ┌────────────────────────────────────────────────────────────────┐
 
      │ Would you like to create and mount the filesytems like this?  │
 
      │                                                                │
 
      │ Syntax                                                        │
 
      │ ------                                                        │
 
      │ DEVICE:TYPE:MOUNTPOINT:FORMAT:LABEL:FSOPTIONS:BTRFS_DETAILS    │
 
      │                                                                │
 
      │ /dev/xvda2:ext3:/:yes:ROOT:NONE:NONE:NONE:NONE:no:            │
 
      │ /dev/xvda1:ext3:/boot:no:BOOT:NONE:NONE:NONE:NONE:no:          │
 
      ├────────────────────────────────────────────────────────────────┤
 
      │                  < Yes >          < No  >                    │
 
      └────────────────────────────────────────────────────────────────┘
 
</pre>
 
On the main menu, under "4 Select Source", choose "2 NETWORK"<br>
 
For a mirror, I suggest "http://mirrors.xmission.com" which is 4th from the bottom if you scroll to the end.<br>
 
Proceed as normal until "7 Configure System"<br>
 
In "7 Configure System", select "/etc/pacman.d/mirrorlist" and uncomment a mirror. Otherwise configure as desired.<br>
 
For "8 Install Bootloader" select "BIOS" and then "GRUB(2) BIOS".  Note we aren't actually going to use grub2, we are just going to use the grub2 configuration as a starting point.<br>
 
Select "/dev/xvda" as the install point. Do not customize grub.cfg.<br>
 
Select "no" when asked "Do you want to install another bootloader?" <br>
 
Select "9 Exit install" <br>
 
From here, at the shell prompt run:
 
<pre>
 
 
 
cp /etc/resolv.conf /install/etc
 
mount --bind /proc /install/proc
 
mount --bind /sys /install/sys
 
mount --bind /dev /install/dev
 
chroot /install /bin/sh
 
 
 
pacman -Syy
 
</pre>
 
If at this step you get an error, verify in /etc/pacman.d/mirrorlist that a mirror is uncommented and try again.
 
Then continuing:
 
<pre>
 
pacman -S python2
 
cp /boot/grub/menu.lst /boot/grub/menu.lst.old
 
cat /boot/grub/grub.cfg | /boot/prgmr-grub2-to-pv-grub-menu  > /boot/grub/menu.lst
 
</pre>
 
At this point, /boot/grub/menu.lst should look like the following:
 
<pre>
 
default=0
 
timeout=10
 
title Arch Linux
 
  root (hd0,0)
 
  kernel /vmlinuz-linux root=LABEL=ROOT rootfstype=ext3 rw rootflags=rw,relatime,data=ordered cgroup_disable=memory
 
  initrd /initramfs-linux.img
 
 
 
title Arch Linux Fallback
 
  root (hd0,0)
 
  kernel /vmlinuz-linux root=LABEL=ROOT rootfstype=ext3 rw rootflags=rw,relatime,data=ordered cgroup_disable=memory
 
  initrd /initramfs-linux-fallback.img
 
</pre>
 
Note the prgmr-grub2-to-pv-grub-menu script is only a partial implementation of a conversion from the grub2 to legacy grub format and may fail, so you should always back up the original /boot/grub/menu.lst before generating a new one.  If you are satisfied, then run "exit" to exit the chroot and then reboot.
 
 
 
{{u}} {{distros}}
 

Revision as of 00:55, 5 March 2015

Our current instructions are out of date and will be updated this weekend. In the meantime please contact support if you need assistance installing arch linux.