User talk:Txnintn: Difference between revisions

From Alpine Linux
(Install Alpine Linux on a Raspberry PI 4 in Diskless Mode.)
 
mNo edit summary
Line 1: Line 1:
Title
Title<br>
Install Alpine Linux on a Raspberry PI 4 in Diskless Mode.


Discussion:
Install Alpine Linux on a Raspberry PI 4 in Diskless Mode.<br>


 
Discussion:<br>
 
<br>
Preparation
<br>
The Raspberry Pi requires fat 16 / 32 boot partition with boot and LBA flags enabled.  The Raspberry PI will boot from either a USB or a Micro SD port.
Preparation:<br>
Prepare a USB or Micro SD drive 1st partition fat 32 partition type 0c with boot and LBA flags.  
The Raspberry Pi requires fat 16 / 32 boot partition with boot and LBA flags enabled.  The Raspberry PI will boot from either a USB or a Micro SD port.<br>
Use the rest of the drive in the second partition Ext4 partition type 83.
Prepare a USB or Micro SD drive 1st partition fat 32 partition type 0c with boot and LBA flags. <br>
Extract the contents of alpine-rpi-3.x.x-aarch.tar.gz to the first partition.
Use the rest of the drive in the second partition Ext4 partition type 83. <br>
 
Extract the contents of alpine-rpi-3.x.x-aarch.tar.gz to the first partition.<br>
To start the install,  
<br>
TYPE:  setup-alpine and PRESS:  enter.
To start the install, <br>
 
TYPE:  setup-alpine and PRESS:  enter<br>
 
<br>
At, Select keyboard layout: [none], prompt.
<br>
TYPE:  us and PRESS:  enter.
At, Select keyboard layout: [none], prompt.<br>
At, Select variant (or 'abort'):, prompt.  
TYPE:  us and PRESS:  enter<br>
TYPE:  us and PRESS:  enter.
At, Select variant (or 'abort'):, prompt.<br>
 
TYPE:  us and PRESS:  enter<br>
 
<br>
At, Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost] prompt.
<br>
PRESS: enter, to use the default localhost.
At, Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost] prompt.<br>
 
PRESS: enter, to use the default localhost.<br>
 
<br>
At, Enter '?' for help on bridges, bonding and vlans.
<br>
Which one do you want to initialize? (or '?' or 'done' [eth0], prompt.  
At, Enter '?' for help on bridges, bonding and vlans.<br>
PRESS: enter, to use the default, ethernet0 connection.
Which one do you want to initialize? (or '?' or 'done' [eth0], prompt.<br>
 
PRESS: enter, to use the default, ethernet0 connection.<br>
Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp], prompt.  
<br>
PRESS:  enter to use the default, dhcp.
Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp], prompt.<br>
 
PRESS:  enter to use the default, dhcp.<br>
At the second,  Enter '?' for help on bridges, bonding and vlans.
<br>
Which one do you want to initialize? (or '?' or 'done' [wlan0], prompt.
At the second,  Enter '?' for help on bridges, bonding and vlans.<br>
TYPE: done and PRESS: enter.
Which one do you want to initialize? (or '?' or 'done' [wlan0], prompt.<br>
 
TYPE: done and PRESS: enter.<br>
Then at, Do you want to do and manual network configuration? (y/n) [n], prompt.
<br>
PRESS enter for the default, [n], for no.
Then at, Do you want to do and manual network configuration? (y/n) [n], prompt.<br>
 
PRESS enter for the default, [n], for no.<br>
 
<br>
At, Change password for root, prompt.
<br>
TYPE: the root password, and PRESS:  enter.
At, Change password for root, prompt.<br>
At, Retype password, prompt.
TYPE: the root password, and PRESS:  enter<br>
TYPE: the root password and PRESS:  enter.
At, Retype password, prompt.<br>
 
TYPE: the root password and PRESS:  enter<br>
 
<br>
At, Which timezone are you in? ('?' for a list) [UTC]. prompt.
<br>
TYPE:  America, with a capital A, and press enter.
At, Which timezone are you in? ('?' for a list) [UTC]. prompt.<br>
 
TYPE:  America, with a capital A, and press enter.<br>
At, What sub-timezone of 'America' are you in? ('?' for list), prompt.
<br>
TYPE:  Chicago, with a capital C, and press enter.  
At, What sub-timezone of 'America' are you in? ('?' for list), prompt.<br>
 
TYPE:  Chicago, with a capital C, and press enter.<br>
 
<br>
At, HTTP/FTP proxy URL? (e.g. /http://proxy:8000', or 'none') [none], prompt.
<br>
PRESS:  enter for the default, none.
At, HTTP/FTP proxy URL? (e.g. /http://proxy:8000', or 'none') [none], prompt.<br>
 
PRESS:  enter for the default, none.<br>
 
<br>
At, Which NTP Client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony], prompt.
<br>
PRESS:  enter for the default, chrony.
At, Which NTP Client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony], prompt.<br>
 
PRESS:  enter for the default, chrony.<br>
 
<br>
When the list of mirrors stop and at --More--, prompt
<br>
PRESS: the letter "r".
When the list of mirrors stop and at --More--, prompt<br>
 
PRESS: the letter "r".<br>
r) Add random from the above list
<br>
f) Detect and add the fastest mirror from above list
r) Add random from the above list<br>
e) Edit /etc/apk/repositories with text editor
f) Detect and add the fastest mirror from above list<br>
 
e) Edit /etc/apk/repositories with text editor<br>
At, Enter mirror number (1-72) or URL to add (or r/f/e/done) [1], prompt.
<br>
PRESS:  enter for the default number 1.
At, Enter mirror number (1-72) or URL to add (or r/f/e/done) [1], prompt.<br>
 
PRESS:  enter for the default number 1.<br>
 
<br>
At, Setup a user? (enter a lower-case loginname, or 'no') [no], prompt.
<br>
PRESS: enter for the default no.
At, Setup a user? (enter a lower-case loginname, or 'no') [no], prompt.<br>
 
PRESS: enter for the default no.<br>
 
<br>
At, which ssh server? ('openssh', 'dropbear' or 'none'), prompt.
<br>
TYPE: none and PRESS:  enter to continue.
At, which ssh server? ('openssh', 'dropbear' or 'none'), prompt.<br>
 
TYPE: none and PRESS:  enter to continue.<br>
 
<br>
No disks available.  Try boot media /media/sda1? (y/n) [n]
<br>
       
No disks available.  Try boot media /media/sda1? (y/n) [n]<br>
 
<br>       
Enter where to store configs ('floppy', 'sda1', 'usb', or 'none') [sda1]  
<br>
TYPE: none and press enter to continue.
Enter where to store configs ('floppy', 'sda1', 'usb', or 'none') [sda1]<br>
 
TYPE: none and PRESS: enter to continue.<br>
Enter apk cache directory (or '?' or 'none') [/media/usb/cache]  
<br>
TYPE: none and press enter to continue.
<br>
 
Enter apk cache directory (or '?' or 'none') [/media/usb/cache]<br>
 
TYPE: none and press enter to continue.<br>
The install is complete.
<br>
 
<br>
Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.
The install is complete.<br>
 
<br>
https://wiki.alpinelinux.org/wiki/Alpine_local_backup
Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.<br>
Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.
<br>
However, lbu include enables modifying that set of included files, and can be used to specify additional files or folders.
https://wiki.alpinelinux.org/wiki/Alpine_local_backup<br>
 
Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.<br>
 
However, lbu include enables modifying that set of included files, and can be used to specify additional files or folders.<br>
Create the apk cache file location and a LBU backup directory.
<br>
At the command prompt,  TYPE:  mkdir /root/config-backups and then PRESS: enter.
<br>
At the command prompt,  TYPE:  mkdir /etc/apk/cache and then PRESS: enter
Create the apk cache file location and a LBU backup directory.<br>
At the command prompt,  TYPE: vi /etc/lbu/lbu.conf and then PRESS: enter
At the command prompt,  TYPE:  mkdir /root/config-backups and then PRESS: enter<br>
 
At the command prompt,  TYPE:  mkdir /etc/apk/cache and then PRESS: enter<br>
PRESS: the ESC key and press i to change to insert mode.
At the command prompt,  TYPE: vi /etc/lbu/lbu.conf and then PRESS: enter<br>
Remove the pound sign at LBU_BACKUPDIR=/root/config-backups
<br>
Remove the pound sign at BACKUP_LIMIT=3
<br>
PRESS the ESC key and TYPE : followed by wq and PRESS enter.
PRESS: the ESC key and press i to change to insert mode.<br>
PRESS lbu ci
Remove the pound sign at LBU_BACKUPDIR=/root/config-backups<br>
PRESS lbu commit -d
Remove the pound sign at BACKUP_LIMIT=3<br>
PRESS the ESC key and TYPE : followed by wq and PRESS enter.<br>
PRESS lbu ci<br>
PRESS lbu commit -d<br>

Revision as of 19:13, 4 July 2023

Title

Install Alpine Linux on a Raspberry PI 4 in Diskless Mode.

Discussion:


Preparation:
The Raspberry Pi requires fat 16 / 32 boot partition with boot and LBA flags enabled. The Raspberry PI will boot from either a USB or a Micro SD port.
Prepare a USB or Micro SD drive 1st partition fat 32 partition type 0c with boot and LBA flags.
Use the rest of the drive in the second partition Ext4 partition type 83.
Extract the contents of alpine-rpi-3.x.x-aarch.tar.gz to the first partition.

To start the install,
TYPE: setup-alpine and PRESS: enter


At, Select keyboard layout: [none], prompt.
TYPE: us and PRESS: enter
At, Select variant (or 'abort'):, prompt.
TYPE: us and PRESS: enter


At, Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost] prompt.
PRESS: enter, to use the default localhost.


At, Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done' [eth0], prompt.
PRESS: enter, to use the default, ethernet0 connection.

Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp], prompt.
PRESS: enter to use the default, dhcp.

At the second, Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done' [wlan0], prompt.
TYPE: done and PRESS: enter.

Then at, Do you want to do and manual network configuration? (y/n) [n], prompt.
PRESS enter for the default, [n], for no.


At, Change password for root, prompt.
TYPE: the root password, and PRESS: enter
At, Retype password, prompt.
TYPE: the root password and PRESS: enter


At, Which timezone are you in? ('?' for a list) [UTC]. prompt.
TYPE: America, with a capital A, and press enter.

At, What sub-timezone of 'America' are you in? ('?' for list), prompt.
TYPE: Chicago, with a capital C, and press enter.


At, HTTP/FTP proxy URL? (e.g. /http://proxy:8000', or 'none') [none], prompt.
PRESS: enter for the default, none.


At, Which NTP Client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony], prompt.
PRESS: enter for the default, chrony.


When the list of mirrors stop and at --More--, prompt
PRESS: the letter "r".

r) Add random from the above list
f) Detect and add the fastest mirror from above list
e) Edit /etc/apk/repositories with text editor

At, Enter mirror number (1-72) or URL to add (or r/f/e/done) [1], prompt.
PRESS: enter for the default number 1.


At, Setup a user? (enter a lower-case loginname, or 'no') [no], prompt.
PRESS: enter for the default no.


At, which ssh server? ('openssh', 'dropbear' or 'none'), prompt.
TYPE: none and PRESS: enter to continue.


No disks available. Try boot media /media/sda1? (y/n) [n]


Enter where to store configs ('floppy', 'sda1', 'usb', or 'none') [sda1]
TYPE: none and PRESS: enter to continue.


Enter apk cache directory (or '?' or 'none') [/media/usb/cache]
TYPE: none and press enter to continue.


The install is complete.

Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.

https://wiki.alpinelinux.org/wiki/Alpine_local_backup
Warning: By default, an lbu commit only stores modifications below /etc, with the exception of the /etc/init.d/ directory.
However, lbu include enables modifying that set of included files, and can be used to specify additional files or folders.


Create the apk cache file location and a LBU backup directory.
At the command prompt, TYPE: mkdir /root/config-backups and then PRESS: enter
At the command prompt, TYPE: mkdir /etc/apk/cache and then PRESS: enter
At the command prompt, TYPE: vi /etc/lbu/lbu.conf and then PRESS: enter


PRESS: the ESC key and press i to change to insert mode.
Remove the pound sign at LBU_BACKUPDIR=/root/config-backups
Remove the pound sign at BACKUP_LIMIT=3
PRESS the ESC key and TYPE : followed by wq and PRESS enter.
PRESS lbu ci
PRESS lbu commit -d