Installation: Difference between revisions

From Alpine Linux
No edit summary
(organize better with sense.. by example put advanced before post install section does not have logic)
Line 30: Line 30:
One of the [[Installation#Post-Install|first commands you might want to use]] is <code>[[setup-alpine]]</code>.
One of the [[Installation#Post-Install|first commands you might want to use]] is <code>[[setup-alpine]]</code>.


== Installation Handbook ==
= Installation Handbook =
=== Basics ===
 
Alpine can be used in any of three modes:
Alpine can be booted or not, just use it. Alpine Linux installation process are so flexible that indeed can just boot up inside other broken Linux. '''You believe that every system needs a DVD disc, or a USB to install it?, but Alpine may not even need it''', so much so that it can even boot from its phone memory. Obviously '''the more exquisite the more complicated method'''.
<dl>
 
<dt>diskless mode
A proper setup of your system are need, but if you deploy all of an ecosystems in your own home and job.. in your only machine... you will need a proper guide to setup your main system (or maybe a parallel system?).
<dd>You'll boot from a read-only medium such as the installation CD, a [[Create a Bootable USB|USB drive]], or a [[Create a Bootable Compact Flash|Compact Flash card]]. {{Tip| To prepare either a USB or Compact Flash card, you can use the <code>[[setup-bootable]]</code> script; see the pages linked above for details.}} When you use Alpine in this mode, you need to use [[Alpine local backup|Alpine Local Backup (lbu)]] to save your modifications between reboots. That requires some writable medium, usually removable. If your boot medium is, for example, a USB drive, you can save modifications there; you don't need a separate partition or drive. See also [[Local APK cache]].
 
As any Linux installation, Alpine start process by booting from an external device (CD/DVD, USB Drive, etc...).
 
As Alpine uses Linux kernel, start step of collecting information to initialize a minimum system, the <code>[[setup-alpine]]</code> will copy files. This minimun system started before proceed to property install are a [[Alpine_newbie_install_manual#diskless_mode|diskless mode]] started from the orig medium.
 
The post installation step provides the way to choose the root password, and eventually boot up the new installed system.
 
=== Overview of run modes for Alpine system ===
 
Alpine can be used in any of '''three modes respected the install process''':
 
== diskless mode ==
 
You'll boot from a read-only medium such as the installation CD, a [[Create a Bootable USB|USB drive]], or a [[Create a Bootable Compact Flash|Compact Flash card]]. {{Tip| To prepare either a USB or Compact Flash card, you can use the <code>[[setup-bootable]]</code> script; see the pages linked above for details.}} When you use Alpine in this mode, you need to use [[Alpine local backup|Alpine Local Backup (lbu)]] to save your modifications between reboots. That requires some writable medium, usually removable. If your boot medium is, for example, a USB drive, you can save modifications there; you don't need a separate partition or drive. See also [[Local APK cache]].
{{Note| When the <code>[[setup-alpine]]</code> script asks for a disk, say "none". It will then prompt whether you'd like to preserve modifications on any writable medium.}}
{{Note| When the <code>[[setup-alpine]]</code> script asks for a disk, say "none". It will then prompt whether you'd like to preserve modifications on any writable medium.}}
<dt>data mode
<dd>As in diskless mode, your OS is run from a read-only medium. However, here a writable partition (usually on a hard disk) is used to store the data in {{Path|/var}}. That partition is accessed directly, rather than copied into a tmpfs; so this is better-suited to uses where large amounts of data need to be preserved between reboots. {{Note| The <code>[[setup-alpine]]</code> script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "data".}} This mode may be used for mailspools, database and log servers, and so on.
<dt>sys mode
<dd>This is a [[Install to disk|traditional hard-disk install]] (see link for details). <!-- includes [[Installing Alpine on HDD overwriting everything]] --> Both the boot system and your modifications are written to the hard disk in a standard Linux hierarchy. {{Note| The <code>[[setup-alpine]]</code> script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "sys". By default, it will create three partions on your disk for {{Path|/boot}}, {{Path|/}}, and {{Path|swap}}; however you can also [[Setting up disks manually|partition your disk manually]].
}} This mode may be used for [[Desktops|desktops]], development boxes, and virtual servers.
    <!-- [[Native Harddisk Install 1.6]] Obsolete -->
</dl>


=== Advanced ===
== data mode ==
* [[Kernels]]
* [[Create UEFI boot USB]]
* [[Tutorials_and_Howtos#Storage|Setting up storage with RAID, LVM, LUKS encryption, iSCSI, or suchlike]]
* [[Setting up disks manually]]
* [[Partitioning and Bootmanagers]]
* [[Migrating data]]
* Details about [[Alpine setup scripts]]


* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]
As in diskless mode, your OS is run from a read-only medium. However, here a writable partition (usually on a hard disk) is used to store the data in {{Path|/var}}. That partition is accessed directly, rather than copied into a tmpfs; so this is better-suited to uses where large amounts of data need to be preserved between reboots. {{Note| The <code>[[setup-alpine]]</code> script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "data".}} This mode may be used for mailspools, database and log servers, and so on.
* [[Create A VirtualBox Guest with Grub and XFS]]
* [[Replacing non-Alpine Linux with Alpine remotely]]
<!-- [[Installing Xubuntu using Alpine boot floppy]] Obsolete -->
<!-- [[Installing Alpine Linux on USB Automated]] Obsolete -->


* [[Bootstrapping Alpine Linux]]
== sys mode ==


<!-- If you edit the following, please coordinate with Developer_Documentation#Configuring_your_system.  Note that these two sections are not exact duplicates. -->
This is a [[Install to disk|traditional hard-disk install]] (see link for details). <!-- includes [[Installing Alpine on HDD overwriting everything]] --> Both the boot system and your modifications are written to the hard disk in a standard Linux hierarchy. {{Note| The <code>[[setup-alpine]]</code> script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "sys". By default, it will create three partions on your disk for {{Path|/boot}}, {{Path|/}}, and {{Path|swap}}; however you can also [[Setting up disks manually|partition your disk manually]].
* [[Installing Alpine Linux in a chroot]]
}} This mode may be used for [[Desktops|desktops]], development boxes, and virtual servers.
* [[Install Alpine on LXC]]
    <!-- [[Native Harddisk Install 1.6]] Obsolete -->
* [[Install Alpine on LXD|Install Alpine on Ubuntu with LXD]]
* Install Alpine on [[Install Alpine on VirtualBox|VirtualBox]], [[Install Alpine on VMware|VMware]], [[Install Alpine on coLinux|coLinux]], [[Qemu]], <!-- includes [[Install Alpine in Qemu]], [[Running Alpine in Qemu Live mode]], [[Running Alpine Linux As a QEMU networked Guest]], --> [[Install Alpine on Amazon EC2|Amazon EC2]], or [[Install Alpine on Rackspace|RackSpace]]


* [[Xen Dom0]] ''(Setting up Alpine as a dom0 for Xen hypervisor)''
= Further Documentation =
* [[Xen Dom0 on USB or SD]]
* [[Create Alpine Linux PV DomU]]
* [[Xen LiveCD]]


* [[Setting up a basic vserver]]
=== Post-Install ===
* [[Setting up the build environment on HDD]]
* [[Setting up a compile vserver]] for official or for [[Setting up a compile vserver for third party packages|third party]] packages
<!-- [[Create an Alpine 1.9 vserver template]] -->


=== Post-Install ===
<!-- If you edit this, please coordinate with and Tutorials_and_Howtos#Post-Install and Developer_Documentation#Package_management. Note that these three sections are not exact duplicates. -->
<!-- If you edit this, please coordinate with and Tutorials_and_Howtos#Post-Install and Developer_Documentation#Package_management. Note that these three sections are not exact duplicates. -->


Line 112: Line 98:


=== Further Help and Information ===
=== Further Help and Information ===
* [[FAQ|FAQs]]
* [[FAQ|FAQs]]
* [[Tutorials and Howtos]]
* [[Tutorials and Howtos]]
* [[Contribute|How to Contribute]]
* [[Contribute|How to Contribute]]
* [[Developer Documentation]]
* [[Developer Documentation]]
= See Also =
# [[Newbie_Alpine_Ecosystem]]
# [[Alpine newbie install manual]]


[[Category:Installation]]
[[Category:Installation]]

Revision as of 23:28, 13 August 2019

The following information will assist you with the installation of Alpine Linux.


Installation Quick-Start in 3 Easy Steps

1st

Download one of the latest stable-release ISOs. Then compare the image's checksum to the one in the corresponding checksum file (*.sha256) and verify its GPG signature.


2nd

If you have a CD drive from which you can boot, then burn the ISO onto a blank CD using your favorite CD burning software. Else create a bootable USB drive.


3rd

Boot from the CD or USB drive, login as root with no password, and voilà! Enjoy Alpine Linux!


One of the first commands you might want to use is setup-alpine.

Installation Handbook

Alpine can be booted or not, just use it. Alpine Linux installation process are so flexible that indeed can just boot up inside other broken Linux. You believe that every system needs a DVD disc, or a USB to install it?, but Alpine may not even need it, so much so that it can even boot from its phone memory. Obviously the more exquisite the more complicated method.

A proper setup of your system are need, but if you deploy all of an ecosystems in your own home and job.. in your only machine... you will need a proper guide to setup your main system (or maybe a parallel system?).

As any Linux installation, Alpine start process by booting from an external device (CD/DVD, USB Drive, etc...).

As Alpine uses Linux kernel, start step of collecting information to initialize a minimum system, the setup-alpine will copy files. This minimun system started before proceed to property install are a diskless mode started from the orig medium.

The post installation step provides the way to choose the root password, and eventually boot up the new installed system.

Overview of run modes for Alpine system

Alpine can be used in any of three modes respected the install process:

diskless mode

You'll boot from a read-only medium such as the installation CD, a USB drive, or a Compact Flash card.

Tip: To prepare either a USB or Compact Flash card, you can use the setup-bootable script; see the pages linked above for details.

When you use Alpine in this mode, you need to use Alpine Local Backup (lbu) to save your modifications between reboots. That requires some writable medium, usually removable. If your boot medium is, for example, a USB drive, you can save modifications there; you don't need a separate partition or drive. See also Local APK cache.

Note: When the setup-alpine script asks for a disk, say "none". It will then prompt whether you'd like to preserve modifications on any writable medium.

data mode

As in diskless mode, your OS is run from a read-only medium. However, here a writable partition (usually on a hard disk) is used to store the data in /var. That partition is accessed directly, rather than copied into a tmpfs; so this is better-suited to uses where large amounts of data need to be preserved between reboots.

Note: The setup-alpine script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "data".

This mode may be used for mailspools, database and log servers, and so on.

sys mode

This is a traditional hard-disk install (see link for details). Both the boot system and your modifications are written to the hard disk in a standard Linux hierarchy.

Note: The setup-alpine script handles installing Alpine in this mode, too, when you supply a writable partition instead of "none", and request mode "sys". By default, it will create three partions on your disk for /boot, /, and swap; however you can also partition your disk manually.

This mode may be used for desktops, development boxes, and virtual servers.

Further Documentation

Post-Install

Further Help and Information

See Also

  1. Newbie_Alpine_Ecosystem
  2. Alpine newbie install manual