Installing Alpine on HDD overwriting everything: Difference between revisions

From Alpine Linux
(Updated doc for 2.2 - setup-alpine now handles setup-repos and setup-disk)
(Major Change. This page only reflects the current install of Alpine. Added in a lot more detail.)
Line 5: Line 5:
The following is meant to be an absolute newbie guide
The following is meant to be an absolute newbie guide


* Burn the alpine iso image to a CD
* Burn the Alpine ISO image to a CD
* Put the CD into the new computer and turn on the power.
* Put the CD into the new computer and turn on the power.
* Wait for the text "login:" to appear, type "root" and press enter.
* Wait for the text '''login:''' to appear, type '''root''' and press enter.
* Run the "setup-alpine" script to choose your keyboard, network and password options.
* Run the '''setup-alpine''' script
{{Note|If you are running Alpine Linux 2.2 or later, you are now done.  Please proceed to the 'Continue Setting up your Computer' section.}}
** Choose your keyboard, as an example, I chose '''US'''
{{Note|If you run setup-disk before setup-alpine, the setup-alpine script won't be available to you when you reboot.}}
** Host name, which will be the name of your computer, you can just press enter if you want to access the default
* Update your repositories
** Choose your network card, most people can just go with the default (press enter)
{{Cmd|vi /etc/apk/repositories}}
*** Most people will use DHCP, so press enter again, or you can enter in your static IP address
 
** Type in your root password
  http://dl-2.alpinelinux.org/alpine/v2.1/main
** Choose a time zone, I chose '''NZ''' for New Zealand
  http://dl-3.alpinelinux.org/alpine/v2.1/main
** Press enter to choose the fastest mirror
  http://dl-4.alpinelinux.org/alpine/v2.1/main
*** Press enter again once a mirror has been chosen
* Make sure the respository is working by typing in
** Choose a disk you want to install Alpine onto, if you only have one hard drive, then press enter
{{Cmd|apk update}}
*** Now choose how you would like to use it, for this guide, choose '''sys''', this will install the entire OS onto your hard drive
{{Note|The version needs to match the version you are installing, this is done so that the setup-disk command below can download fdisk if you are using the minimal install CD}}
*** You are given a final chance to back out, type in "Y" to continue
* Type "setup-disk" and press enter.
* The installation is now complete and your be asked to reboot. Type in '''reboot''' and press enter
* You will be asked where to install. If you don't understand the question, press y and enter.
Take out the CD, and your computer should boot into Alpine using your hard drive.
 
The system is now installed and after a while you will see a message saying "Please reboot"
 
Type "reboot" and press enter. You can remove the CD now, since the system is installed. Your system is ready. You can have fries with that, although there are healthier alternatives.
 
{{Note|Since you are installing to harddisk, there is no need to use the [[Alpine local backup]] system}}


=== Continue Setting up your Computer ===
=== Continue Setting up your Computer ===

Revision as of 16:50, 9 May 2011

Installing Alpine to a new machine, overwriting everything on the harddisk

Warning: This will erase everything on your machine's harddisk. Don't blame me if someone sues you for this, your cat dies etc. You are warned.


The following is meant to be an absolute newbie guide

  • Burn the Alpine ISO image to a CD
  • Put the CD into the new computer and turn on the power.
  • Wait for the text login: to appear, type root and press enter.
  • Run the setup-alpine script
    • Choose your keyboard, as an example, I chose US
    • Host name, which will be the name of your computer, you can just press enter if you want to access the default
    • Choose your network card, most people can just go with the default (press enter)
      • Most people will use DHCP, so press enter again, or you can enter in your static IP address
    • Type in your root password
    • Choose a time zone, I chose NZ for New Zealand
    • Press enter to choose the fastest mirror
      • Press enter again once a mirror has been chosen
    • Choose a disk you want to install Alpine onto, if you only have one hard drive, then press enter
      • Now choose how you would like to use it, for this guide, choose sys, this will install the entire OS onto your hard drive
      • You are given a final chance to back out, type in "Y" to continue
  • The installation is now complete and your be asked to reboot. Type in reboot and press enter

Take out the CD, and your computer should boot into Alpine using your hard drive.

Continue Setting up your Computer