Difference between revisions of "Alpine newbie install manual"

From Alpine Linux
Jump to: navigation, search
(added link tutorial series)
(overall of install newbie page)
Line 1: Line 1:
All the users have different targets.. for many Linux and/or Unix-like users most common are the actual work of developing your application to respond appropriately in each environment, you may also face issues with tracking down dependencies, scaling your application, and updating individual components without affecting the entire system.
+
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?).
  
For all of this a proper setup of your system are need, but if you deploy all of that ecosystems in your own home and works.. in your only machine... you will need a proper guide to setup your main system (or maybe a parallel system?.
+
'''Alpine is the Linux that has the most ways to install''', the fastest and most flexible ways, that if not the easiest to understand for newbies, but the easiest for a Linux user looking for efficiency and performance.
  
The following information will assist you with the installation of [http://alpinelinux.org/about Alpine Linux].
+
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'''.
[[Image:hdd_mount.png|left|link=]] in a variety of ways.. as main OS in your disk.. as alternate system, as read-only in a usbstick or maybe none of them! '''You will said: what? that's is possible? o hell yeah with Alpine all it's possible'''
 
  
<br />
+
= Ways to install Alpine into machines or virtuals =
  
== Installation Quick-Start in 3 Easy Steps ==
+
{{Note| You can choose one of the following methods, but we recommend finish reading this document, so you can understand a little more of the Alpine Install ecosystem for user.}}
<div style="float:left; font-size:30px; font-weight:bold;">
 
1st
 
</div>
 
<div style="margin-left:65px; background-color:#EDF2F2; border-style:solid; border-color:#6F7C91; border-width:0px; border-left-width:5px; min-height:55px; padding:5px;">
 
[http://alpinelinux.org/downloads Download] one of the latest stable-release ISOs. Then compare the image's checksum to the one in the corresponding checksum file (<code>*.sha256</code>) and verify its GPG signature.
 
</div>
 
  
 +
The following wiki pages list the easiest of the already diverse modes (which are more than those listed here obviously), the numbers are to reflects the most likely way for you and the most common cases to the less common case, but for sure depends on your choice and your needs of course.
  
<div style="float:left; font-size:30px; font-weight:bold;">
+
# [[Alpine Install: from a disc to a virtualbox machine single only]], install Alpine into VirtualBox virtual machine, use if you have a '''VirtualBox virtual machine and only wants to take a shoot into it'''.
2nd
+
# [[Alpine Install: from a disc to a new computer single only boot]], install Alpine into real modern machine by burning a CD/DVD disc that will boot if you have a '''UEFI or newer hardware and will be only Alpine into it'''.
</div>
+
# [[Alpine Install: from a disc to a old computer single only boot]], install Alpine into real most common machine by burning a CD/DVD disc that will boot if you have '''common older hardware and will be only Alpine into it'''.
<div style="margin-left:65px; background-color:#E0E9E9; border-style:solid; border-color:#606A82; border-width:0px; border-left-width:5px; min-height:55px; padding:5px;">
+
# [[Alpine Install: from a usb to a new computer single only boot]], install Alpine into real modern machine by creating USB drive unit that will boot if you have a '''UEFI or newer hardware and will be only Alpine into it'''.
If you have a CD drive from which you can boot, then [[Burning ISOs|burn the ISO onto a blank CD]] using your favorite CD burning software. Else [[Create a Bootable USB|create a bootable USB drive]].
+
# [[Alpine Install: from a usb to a old computer dual boot linux Debian]], install Alpine into most common machine by creating USB drive unit that will boot if you have '''common older hardware and will be other Linux as main OS'''.
</div>
+
# [[Alpine Install: from a usb to a old computer dual boot linux Alpine]], install Alpine into most common machine by creating USB drive unit that will boot if you have '''common older hardware and will be Alpine as main OS'''.
  
 +
= Ways to use Alpine Linux without install =
  
<div style="float:left; font-size:30px; font-weight:bold;">
+
Alpine generated ISO's are a [https://en.wikipedia.org/wiki/Hybrid_disc hybridISO], ISO 9660 filesystems as described in the [https://wiki.syslinux.org/wiki/index.php?title=ISOLINUX ISOLINUX] article will boot via BIOS firmware, but only from optical media like CD, DVD, or BD.
3rd
 
</div>
 
<div style="margin-left:65px; background-color:#9faecc; border-style:solid; border-color:#324065; border-width:0px; border-left-width:5px; min-height:55px; padding:5px;">
 
Boot from the CD or USB drive, login as root with no password, and voilà! Enjoy Alpine Linux!
 
</div>
 
  
{{Clear}}
+
The isohybrid feature enhances such filesystems by a [[Master Boot Record]] (MBR) for booting via BIOS from any storage Flash Drive like (such as USBFlash disc Drives or MM).
One of the [[Installation#Post-Install|first commands you might want to use]] is <code>[[setup-alpine]]</code>.
 
  
== Installation Handbook ==
+
# [[Alpine Install: from a usb disc to a machine single only]], dump Alpine into usb/mmc card and later use it at your machine without modify any of your already installed files or operating system.
=== Basics ===
+
 
Alpine can be used in any of three modes:
+
= A general overview of the install =
<dl>
+
 
<dt>diskless mode
+
As any Linux installation, Alpine start process by booting from an external device (CD/DVD, USB Drive, etc...).
<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 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.
 +
 
 +
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.
+
=== data mode ===
<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]].
+
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.
 +
 
 +
=== sys mode ===
 +
 
 +
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.
 
}} This mode may be used for [[Desktops|desktops]], development boxes, and virtual servers.
 
     <!-- [[Native Harddisk Install 1.6]] Obsolete -->
 
     <!-- [[Native Harddisk Install 1.6]] Obsolete -->
</dl>
 
  
= Tutorial series =
+
= Documents series =
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 56: Line 57:
 
! Previous required  !! What's next to read
 
! Previous required  !! What's next to read
 
|-
 
|-
| [[Alpine newbie]] || [[Alpine newbie apk packages]]
+
| [[Alpine newbie]] || [[Alpine Install: from a disc to a virtualbox machine single only]]
 
|}
 
|}
  

Revision as of 19:27, 11 August 2019

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?).

Alpine is the Linux that has the most ways to install, the fastest and most flexible ways, that if not the easiest to understand for newbies, but the easiest for a Linux user looking for efficiency and performance.

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.

Ways to install Alpine into machines or virtuals

Note: You can choose one of the following methods, but we recommend finish reading this document, so you can understand a little more of the Alpine Install ecosystem for user.

The following wiki pages list the easiest of the already diverse modes (which are more than those listed here obviously), the numbers are to reflects the most likely way for you and the most common cases to the less common case, but for sure depends on your choice and your needs of course.

  1. Alpine Install: from a disc to a virtualbox machine single only, install Alpine into VirtualBox virtual machine, use if you have a VirtualBox virtual machine and only wants to take a shoot into it.
  2. Alpine Install: from a disc to a new computer single only boot, install Alpine into real modern machine by burning a CD/DVD disc that will boot if you have a UEFI or newer hardware and will be only Alpine into it.
  3. Alpine Install: from a disc to a old computer single only boot, install Alpine into real most common machine by burning a CD/DVD disc that will boot if you have common older hardware and will be only Alpine into it.
  4. Alpine Install: from a usb to a new computer single only boot, install Alpine into real modern machine by creating USB drive unit that will boot if you have a UEFI or newer hardware and will be only Alpine into it.
  5. Alpine Install: from a usb to a old computer dual boot linux Debian, install Alpine into most common machine by creating USB drive unit that will boot if you have common older hardware and will be other Linux as main OS.
  6. Alpine Install: from a usb to a old computer dual boot linux Alpine, install Alpine into most common machine by creating USB drive unit that will boot if you have common older hardware and will be Alpine as main OS.

Ways to use Alpine Linux without install

Alpine generated ISO's are a hybridISO, ISO 9660 filesystems as described in the ISOLINUX article will boot via BIOS firmware, but only from optical media like CD, DVD, or BD.

The isohybrid feature enhances such filesystems by a Master Boot Record (MBR) for booting via BIOS from any storage Flash Drive like (such as USBFlash disc Drives or MM).

  1. Alpine Install: from a usb disc to a machine single only, dump Alpine into usb/mmc card and later use it at your machine without modify any of your already installed files or operating system.

A general overview of the install

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.

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.

Documents series

Previous required What's next to read
Alpine newbie Alpine Install: from a disc to a virtualbox machine single only

See Also

  1. Newbie_Alpine_Ecosystem
  2. Alpine newbie apk packages
  3. Alpine newbie desktops
  4. Alpine newbie developer
  5. Alpine newbie lammers