- ollieparanoid / busybox-extras-install.txt
- Ryanb58 / install.md
- This comment has been minimized.
- jeeshofone commented Aug 8, 2018
- This comment has been minimized.
- woodcockjosh commented Aug 17, 2019
- This comment has been minimized.
- nddipiazza commented Sep 5, 2019
- This comment has been minimized.
- yuchen commented Dec 1, 2019
- This comment has been minimized.
- strahinjanis commented Dec 19, 2019
- This comment has been minimized.
- jcebidanes commented Feb 24, 2020
- This comment has been minimized.
- AbhinayGupta741 commented Jun 9, 2020
- This comment has been minimized.
- TechLinF commented Jun 18, 2020
- This comment has been minimized.
- balugiduturi commented Jun 19, 2020
- This comment has been minimized.
- bragadennis commented Jul 27, 2020
- This comment has been minimized.
- codersofthedark commented Jul 27, 2020
- This comment has been minimized.
- Sam1370 commented Jul 27, 2020
- This comment has been minimized.
- M4rcus3000 commented Sep 1, 2020
- This comment has been minimized.
- pastorduran commented Sep 1, 2020
- This comment has been minimized.
- krishnaarava commented Sep 10, 2020
- This comment has been minimized.
- Tagliatti commented Sep 14, 2020
- This comment has been minimized.
- kumaran85 commented Sep 24, 2020
- This comment has been minimized.
- d0zingcat commented Sep 24, 2020
- This comment has been minimized.
- markpanado commented Oct 27, 2020
- This comment has been minimized.
- mkbhanda commented Nov 6, 2020
- This comment has been minimized.
- sprasad09 commented Nov 10, 2020
- This comment has been minimized.
- montaro commented Dec 22, 2020
- This comment has been minimized.
- nrobayo-stratio commented Feb 4, 2021
- This comment has been minimized.
- scheinem commented Apr 1, 2021
- This comment has been minimized.
- DouglasPioStudiare commented Apr 27, 2021
- This comment has been minimized.
- EnsleyEC commented Apr 30, 2021
- This comment has been minimized.
- aj-jwair commented May 3, 2021
- This comment has been minimized.
- PrudhvirajTirumanisetti commented May 12, 2021
- This comment has been minimized.
- drrainlab commented Jun 4, 2021
- This comment has been minimized.
- kenkl commented Jun 10, 2021
- This comment has been minimized.
- LoesterFranco commented Jul 6, 2021
- This comment has been minimized.
- ebidrey commented Jul 15, 2021
- This comment has been minimized.
- jbaris commented Jul 28, 2021
- This comment has been minimized.
- tshen-dev commented Aug 13, 2021
- This comment has been minimized.
- hsadeghinejad commented Sep 8, 2021
- This comment has been minimized.
- sebPomme commented Sep 14, 2021
- Alpine setup scripts
- Contents
- setup-alpine
- setup-hostname
- setup-interfaces
- setup-dns
- setup-timezone
- setup-proxy
- setup-sshd
- setup-apkrepos
- setup-disk
- Partitioning
- setup-lbu
- setup-apkcache
- setup-bootable
- setup-xorg-base
- Video packages (optional)
- Input packages
- Configure xorg-server (optional)
- Keyboard Layout (optional)
- Documentation needed
- setup-xen-dom0
- setup-gparted-desktop
- setup-mta
- setup-acf
ollieparanoid / busybox-extras-install.txt
Related to this pull-request: |
https://github.com/alpinelinux/aports/pull/1092 |
Steps: |
1. upgrade busybox to the one, which has busybox-extras |
2. telnet does not exist anymore |
3. add busybox-extras |
4. telnet exists |
5. uninstall busybox-extras and re-install busybox |
6. telnet does not exist anymore |
7. repeat step 3 and 4 |
/ # apk add -u busybox |
(1/1) Upgrading busybox (1.26.2-r2 -> 1.26.2-r3) |
Executing busybox-1.26.2-r3.post-upgrade |
-> ftpget is now in busybox-extras |
-> ftpput is now in busybox-extras |
-> telnet is now in busybox-extras |
-> tftp is now in busybox-extras |
-> ftpd is now in busybox-extras |
-> httpd is now in busybox-extras |
Executing busybox-1.26.2-r3.trigger |
OK: 6 MiB in 16 packages |
/ # which telnet |
/ # apk add busybox-extras |
(1/2) Purging busybox (1.26.2-r3) |
(2/2) Installing busybox-extras (1.26.2-r3) |
Executing busybox-extras-1.26.2-r3.post-install |
-> NOTE: To uninstall busybox-extras properly, do this: |
# apk del busybox-extras |
# apk add /var/cache/apk/busybox-1.26.2-r3. apk # pick latest |
# apk add busybox |
Executing busybox-extras-1.26.2-r3.trigger |
OK: 6 MiB in 16 packages |
/ # which telnet |
/usr/bin/telnet |
/ # apk del busybox-extras |
World updated, but the following packages are not removed due to: |
busybox-extras: busybox-initscripts alpine-base alpine-conf busybox-suid |
openrc alpine-baselayout |
OK: 6 MiB in 16 packages |
/ # apk add (. )/busybox-1.26.2-r3.apk |
(1/2) Installing busybox (1.26.2-r3) |
Executing busybox-1.26.2-r3.post-install |
(2/2) Purging busybox-extras (1.26.2-r3) |
Executing busybox-1.26.2-r3.trigger |
OK: 6 MiB in 16 packages |
/ # apk add busybox |
OK: 6 MiB in 16 packages |
/ # which telnet |
/ # apk add busybox-extras |
(1/2) Purging busybox (1.26.2-r3) |
(2/2) Installing busybox-extras (1.26.2-r3) |
Executing busybox-extras-1.26.2-r3.post-install |
-> NOTE: To uninstall busybox-extras properly, do this: |
# apk del busybox-extras |
# apk add /var/cache/apk/busybox-1.26.2-r3. apk # pick latest |
# apk add busybox |
Executing busybox-extras-1.26.2-r3.trigger |
OK: 6 MiB in 16 packages |
/ # which telnet |
/usr/bin/telnet |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Ryanb58 / install.md
This comment has been minimized.
Copy link Quote reply
jeeshofone commented Aug 8, 2018
This comment has been minimized.
Copy link Quote reply
woodcockjosh commented Aug 17, 2019
This comment has been minimized.
Copy link Quote reply
nddipiazza commented Sep 5, 2019
This comment has been minimized.
Copy link Quote reply
yuchen commented Dec 1, 2019
This comment has been minimized.
Copy link Quote reply
strahinjanis commented Dec 19, 2019
This comment has been minimized.
Copy link Quote reply
jcebidanes commented Feb 24, 2020
This comment has been minimized.
Copy link Quote reply
AbhinayGupta741 commented Jun 9, 2020
This comment has been minimized.
Copy link Quote reply
TechLinF commented Jun 18, 2020
This comment has been minimized.
Copy link Quote reply
balugiduturi commented Jun 19, 2020
This comment has been minimized.
Copy link Quote reply
bragadennis commented Jul 27, 2020
This comment has been minimized.
Copy link Quote reply
codersofthedark commented Jul 27, 2020
This comment has been minimized.
Copy link Quote reply
Sam1370 commented Jul 27, 2020
This comment has been minimized.
Copy link Quote reply
M4rcus3000 commented Sep 1, 2020
This comment has been minimized.
Copy link Quote reply
pastorduran commented Sep 1, 2020
This comment has been minimized.
Copy link Quote reply
krishnaarava commented Sep 10, 2020
This comment has been minimized.
Copy link Quote reply
Tagliatti commented Sep 14, 2020
apk —update —no-cache add busybox-extras
This comment has been minimized.
Copy link Quote reply
kumaran85 commented Sep 24, 2020
This comment has been minimized.
Copy link Quote reply
d0zingcat commented Sep 24, 2020
apk —update —no-cache add busybox-extras
This comment has been minimized.
Copy link Quote reply
markpanado commented Oct 27, 2020
Thank you! Installed this just to run again telnet towel.blinkenlights.nl on iSH Shell on my iPad Pro
This comment has been minimized.
Copy link Quote reply
mkbhanda commented Nov 6, 2020
This comment has been minimized.
Copy link Quote reply
sprasad09 commented Nov 10, 2020
This comment has been minimized.
Copy link Quote reply
montaro commented Dec 22, 2020
This comment has been minimized.
Copy link Quote reply
nrobayo-stratio commented Feb 4, 2021
This comment has been minimized.
Copy link Quote reply
scheinem commented Apr 1, 2021
This comment has been minimized.
Copy link Quote reply
DouglasPioStudiare commented Apr 27, 2021
This comment has been minimized.
Copy link Quote reply
EnsleyEC commented Apr 30, 2021
This comment has been minimized.
Copy link Quote reply
aj-jwair commented May 3, 2021
This comment has been minimized.
Copy link Quote reply
PrudhvirajTirumanisetti commented May 12, 2021
This comment has been minimized.
Copy link Quote reply
drrainlab commented Jun 4, 2021
This comment has been minimized.
Copy link Quote reply
kenkl commented Jun 10, 2021
This comment has been minimized.
Copy link Quote reply
LoesterFranco commented Jul 6, 2021
This comment has been minimized.
Copy link Quote reply
ebidrey commented Jul 15, 2021
This comment has been minimized.
Copy link Quote reply
jbaris commented Jul 28, 2021
This comment has been minimized.
Copy link Quote reply
tshen-dev commented Aug 13, 2021
This comment has been minimized.
Copy link Quote reply
hsadeghinejad commented Sep 8, 2021
This comment has been minimized.
Copy link Quote reply
sebPomme commented Sep 14, 2021
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Alpine setup scripts
Feature descriptions for available Alpine Linux setup scripts ( /sbin/setup-* ).
These scripts can be installed from alpine-conf package using apk.
(Some particular example usages can be seen at Alpine for new users install manuals.)
Contents
setup-alpine
This is the main Alpine configuration and installation script.
The script interactively walks the user through executing several auxiliary setup-* scripts, in the order shown below.
The bracketed options represent example configuration choices, formatted as they may be supplied when manually calling the auxiliary setup scripts, or using a setup-alpine «answerfile» (see below).
- setup-keymap [us us]
- setup-hostname [-n alpine-test]
- setup-interfaces [-i /etc/init.d/networking —quiet start &
- if none of the networking interfaces were configured using dhcp, then: setup-dns [-d example.com -n «192.168.0.1 [. ]»]
- set the root password
- if not in quick mode, then: setup-timezone [-z UTC | -z America/New_York | -p EST+5]
- enable the new hostname ( /etc/init.d/hostname —quiet restart )
- add networking and urandom to the boot rc level, and acpid and cron to the default rc level, and start the boot and default rc services
- extract the fully-qualified domain name and hostname from /etc/resolv.conf and hostname , and update /etc/hosts
- setup-proxy [-q «http://webproxy:8080»], and activate proxy if it was configured
- setup-apkrepos [-r (to select a mirror randomly)]
- if not in quick mode, then: setup-sshd [-c openssh | dropbear | none]
- if not in quick mode, then: setup-ntp [-c chrony | openntpd | busybox | none]
- if not in quick mode, then: DEFAULT_DISK=none setup-disk -q [-m data /dev/sda] (see Installation#Installation_Overview about the disk modes)
- if installation mode selected during setup-disk was «data» instead of «sys», then: setup-lbu [/media/sdb1]
- if installation mode selected during setup-disk was «data» instead of «sys», then: setup-apkcache [/media/sdb1/cache | none]
setup-alpine itself accepts the following command-line switches
-h Shows the up-to-date usage help message.
-a Create an overlay file: this creates a temporary directory and saves its location in ROOT; however, the script doesn’t export this variable so I think this feature isn’t currently functional.
-c answerfile Create a new «answerfile», with default choices. You can edit the file and then invoke setup-alpine -f answerfile . -f answerfile Use an existing «answerfile», which may override some or all of the interactive prompts.
-q Run in «quick mode».
setup-hostname
-n Specify hostname
This script allows quick and easy setup of the system hostname by writing it to /etc/hostname . The script prevents you from writing an invalid hostname (such as one that used invalid characters or starts with a ‘-‘ or is too long). The script can be invoked manually or is called as part of the setup-alpine script.
setup-interfaces
setup-interfaces [-i interfaces-file ]
Note that the contents of interfaces-file has to be supplied as stdin, rather than naming the file as an additional argument. The contents should have the format of /etc/network/interfaces , such as:
setup-dns
-d specify search domain name
-n name server IP
The setup-dns script is stored in /sbin/setup-dns and allows quick and simple setup of DNS servers (and a DNS search domain if required). Simply running setup-dns will allow interactive use of the script, or the options can be specified.
The information fed to this script is written to /etc/resolv.conf
Example usage (with 192.168.0.1 being the local router/dns-forwarder):
setup-dns -d example.org -n 192.168.0.1
It can be run manually but is also invoked in the setup-alpine script unless interfaces are configured for DHCP.
setup-timezone
Can pre-select the timezone using either of these switches:
-z subfolder of /usr/share/zoneinfo
-p POSIX TZ format
setup-proxy
-q Quiet mode prevents changes from taking effect until after reboot
This script requests the system proxy to use in the form http://
To set no system proxy use none . This script exports the following environmental variables:
where $proxyurl is the value input. If none was chosen then the value it is set to a blank value (and so no proxy is used).
setup-sshd
-c SSH daemon where SSH daemon can be one of the following:
openssh install the openSSH daemon
dropbear install the dropbear daemon
none Do not install an SSH daemon
setup-sshd -c dropbear
The setup-sshd script is stored in /sbin/setup-sshd and allows quick and simple setup of either the OpenSSH or Dropbear SSH daemon & client. It can be run manually but is also invoked in the setup-alpine script.
setup-apkrepos
Setup apk repositories.
-f Detect and add fastest mirror
-r Add a random mirror and do not prompt
-1 Add first mirror on the list (normally a CDN)
This is run as part of the setup-alpine script.
setup-disk
In «sys» mode, it’s an installer, it permanently installs Alpine on the disk, in «data» mode, it provides a larger and persistent /var volume.
This script accepts the following command-line switches:
-k kernel flavor -o apkovl file Restore system from apkovl file -m data | sys Don’t prompt for installation mode. With -m data, the supplied devices are formatted to use as a /var volume.
-r Use RAID1 with a single disk (degraded mode)
-L Create and use volumes in a LVM group
-s swap size in MB Use 0 to disable swap
-q Exit quietly if no disks are found
The script also honors the following environment variables:
Size of the boot partition in MB; defaults to 100. Only used if -m sys is specified or interactively selected.
Size of the swap volume in MB; set to 0 to disable swap. If not specified, will default to twice RAM, up to 4096, but won’t be more than 1/3 the size of the smallest disk, and if less than 64 will just be 0. Only used if -m sys is specified or interactively selected.
Filesystem to use for the / volume; defaults to ext4. Only used if -m sys is specified or interactively selected. Supported filesystems are: ext2 ext3 ext4 btrfs xfs.
Filesystem to use for the /boot volume; defaults to ext4. Only used if -m sys is specified or interactively selected. Supported filesystems are: ext2 ext3 ext4 btrfs xfs.
Filesystem to use for the /var volume; defaults to ext4. Only used if -m data is specified or interactively selected. Supported filesystems are: ext2 ext3 ext4 btrfs xfs.
Mountpoint to use when creating volumes and doing traditional disk install (-m sys). Defaults to /mnt .
Path of MBR binary code, defaults to /usr/share/syslinux/mbr.bin .
Bootloader to use, defaults to syslinux. Supported bootloaders are: grub syslinux zipl.
Disklabel to use, defaults to dos. Supported disklabels are: dos gpt eckd.
Partitioning
If you have complex partitioning needs, that go beyond above alpine-disk options, you can partition, format, and mount your volumes manually, and then just supply the root mountpoint to setup-disk . Doing so implicitly behaves as though -m sys had also been specified.
setup-disk will automatically build a RAID array if you supply the -r switch, or if you specify more than one device. The array will always be RAID1 (and —metadata=0.90) for the /boot volumes, but will be RAID5 (and —metadata=1.2 for non-boot volumes when 3 or more devices are supplied.
If you instead want to build your RAID array manually, see Setting up a software RAID array. Then format and mount the disks, and supply the root mountpoint to setup-disk .
setup-disk will automatically build and use volumes in a LVM group if you supply the -L switch. The group and volumes created by the script will have the following names:
- volume group: vg0
- swap volume: lv_swap (only created when swap size > 0)
- root volume: lv_root (only created when -m sys is specified or interactively selected)
- var volume: lv_var (only created when -m data is specified or interactively selected)
The lv_var or lv_root volumes are created to occupy all remaining space in the volume group.
If you need to change any of these settings, you can use vgrename , lvrename , lvreduce or lvresize .
If you instead want to build your LVM system manually, see Setting up Logical Volumes with LVM. Then format and mount the disks, and supply the root mountpoint to setup-disk .
setup-lbu
This script will only be invoked for by setup-alpine when installing data installation types (ramdisk)
It configures where lbu commit will store the .apkovl backup. See Alpine local backup for more information.
When started, setup-lbu will prompt where to store your data. The options it will prompt for will be taken from the directories found in /media (except for cdrom ). [not sure how these are mounted: are they automatically mounted by setup-lbu? Does the user have to manually mount using another tty?]
setup-apkcache
This script will only be invoked for by setup-alpine when installing data installation types (ramdisk)
It configures where to save the apk package files. The apkcache is where apk stores downloaded packages, such that the system does not need to download them again on each reboot, and doesn’t have to depend on the network. See Local APK cache for a detailed explanation.
You should be able to use a partition that you set up in the previous steps.
setup-bootable
This is a standalone script; it’s not invoked by setup-alpine but must be run manually.
It allows to create boot media that boots the system running from RAM memory (diskless) like the installation images, but using a writable (i.e. not iso9660) filesystem. So that it can also serve to store local customizations (e.g. apkovl files and cached packages).
First, the script copies files from an ISO image (as file on a CD/DVD/USB etc.) onto a USB-Stick/CompactFlash/SDCard etc., or harddisk partition. And then, it installs the syslinux bootloader to make the device bootable.
However, its current syslinux installation seems to fail on non-FAT32 partitions. So in these cases, you may start over with a FAT32 filesystem, or rather with the desired filesystem and using setup-bootable only with the -u option, to skip the syslinux install, and then refer to the manual method to fix the problem, or use one of the other bootloader options, instead.
The setup-bootable script accepts the following arguments and command-line switches (you can run setup-bootable -h to see a usage message).
setup-bootable source [ dest ]
The argument source can be a directory or an ISO (will be mounted to MNT or /mnt ) or a URL (will be downloaded with WGET or wget ). The argument dest can be a directory mountpoint, or will default to /media/usb if not supplied.
-k Keep alpine_dev in syslinux.cfg ; otherwise, replace with UUID.
-u Upgrade mode: keep existing syslinux.cfg and don’t run syslinux
-f Overwrite syslinux.cfg even if -u was specified.
-s Force the running of syslinux even if -u was specified.
The script will ensure that source and dest are available; will copy the contents of source to dest , ensuring first that there’s enough space; and unless -u was specified, will make dest bootable.
Suppose the target device is /dev/sdXY, then this partition can be prepared for booting with
# setup-bootable -v /media/ /dev/sdXY
For the manual way to set up boot media see Manually_copying_Alpine_files.
setup-xorg-base
This is a standalone script; it’s not invoked by setup-alpine but must be run manually.
It configures a graphical environment, installing basic Xorg packages and udev (replacing mdev), and is also required for Wayland sessions.
The script installs, among other packages, e.g.: xorg-server xf86-input-libinput xinit udev .
Additional packages to install may be supplied as arguments.
setup-xorg-base [additional package(s) to install]
Video packages (optional)
You may install specific xf86 xorg driver packages for your video card’s chipset, as they may support specific features, effects and acceleration modes, and avoid error messages during X initialization.
However, the most basic X features should work fine with just using the default kernel video-modesetting drivers.
Info about the particular video cards that are installed in the computer may be found in the list of PCI devices:
# apk add pciutils $ lspci
To see available video driver packages run:
$ apk search xf86-video
- For an Sis video chipset install ‘xf86-video-sis’.
# apk add xf86-video-sis
- For Intel video chipsets install ‘xf86-video-intel’ and see Intel Video.
- For AMD Radeon Video see Radeon_Video
- For Alix1D use xf86-video-geode.
- In KVM/Qemu guests see Xorg within KVM/Qemu
- In Virtualbox guests use xf86-video-vboxvideo, and install the VirtualBox guest additions as well. They contain important parts for the driver.
- In VMware guests use xf86-video-vmware
- In Hyper-V guests use xf86-video-fbdev and install the Hyper-V guest services as well.
Input packages
If the Numlock settings are not working, or getting ‘setleds not found’ errors:
If some input device is not working at all, the available xf86-input drivers can be listed with:
$ apk search xf86-input
Typical legacy drivers:
# apk add xf86-input-mouse xf86-input-keyboard
And for touchpad tapping support on many laptops, also:
# apk add xf86-input-synaptics
Configure xorg-server (optional)
On most systems, xorg should be able to autodetect all devices. However you can still configure xorg-server by hand by launching:
This will create a `/root/xorg.conf.new` file. You can modify this file to fit your needs.
(When finished modifying and testing the above configuration file, move it to `/etc/X11/xorg.conf` for normal usage.)
Keyboard Layout (optional)
If you use a keyboard layout different than «us», and you are using a window manager or desktop environment that does not support to configure the keyboard layout itself, then you need to
and install setxkbmap:
# apk add setxkbmap
In order to make it persistent add this section to /etc/X11/xorg.conf:
Section «InputClass» Identifier «Keyboard Default» MatchIsKeyboard «yes» Option «XkbLayout» » » EndSection
Another way to change the keymap when logging into X is to use
/.xinitrc. The following example loads a British keymap, simply add this line to the beginning of the file: setxkbmap gb &
If you need to create the
/.xinitrc file, you may also want to add a second line like exec openbox-session to still start the window manager with startx or xinit .
Documentation needed
setup-xen-dom0
setup-gparted-desktop
This is a standalone script; it’s not invoked by setup-alpine but must be run manually.
setup-mta
This is a standalone script; it’s not invoked by setup-alpine but must be run manually.
setup-acf
This is a standalone script; it’s not invoked by setup-alpine but must be run manually.
This script was named setup-webconf before Alpine 1.9 beta 4.
Источник