new-install

Notes on OS intalls
git clone https://git.bracken.jp/new-install.git
Log | Files | Refs | LICENSE

alpine_install.md (2434B)


      1 Alpine Linux
      2 ============
      3 
      4 Installation
      5 ------------
      6 
      7 To log in to the installer, use username 'root' with a blank password.
      8 
      9 For initial setup, run:
     10 
     11     setup-alpine
     12 
     13 Create a user:
     14 
     15     adduser chris
     16     addgroup chris chris
     17     addgroup chris wheel
     18     addgroup chris video  # If building a desktop machine.
     19     addgroup chris input  # If building a desktop machine.
     20 
     21 Install sudo:
     22 
     23     apk update
     24     apk upgrade
     25     apk add man man-pages
     26     apk add sudo sudo-doc
     27     apk add coreutils coreutils-doc
     28 
     29 Edit `/etc/sudoers` to allow all members of group wheel to execute any command:
     30 
     31     %wheel ALL=(ALL) ALL
     32 
     33 Enable the community repository by editing `/etc/apk/repositories`, and
     34 enabling:
     35 
     36     http://dl-cdn.alpinelinux.org/alpine/v3.10/community
     37 
     38 We now have a fully-working base install.  Log out then log back in as a user
     39 in the _wheel_ group and verify that they can issue `sudo` commands. Once this
     40 has been verified, we can lock down the root account to prevent password-based
     41 login and force all admin work to be performed via `sudo`.
     42 
     43     passwd -l root
     44 
     45 If we ever need to re-enable the root account, we can use the following command
     46 to unlock it:
     47 
     48     sudo passwd -u root
     49 
     50 
     51 Installing additional components
     52 --------------------------------
     53 
     54 Additional components can be installed via sudo by any user in the wheel group.
     55 
     56 ### zsh
     57 
     58     apk add zsh zsh-doc
     59 
     60 You can then /etc/passwd and change the user's shell to /bin/zsh.
     61 
     62 
     63 ### Terminal utilities
     64 
     65     apk add tmux tmux-doc tmux-zsh-completion
     66 
     67 
     68 ### Development tools
     69 
     70     # nm, ld, strip, etc.
     71     apk add binutils binutils-doc
     72 
     73     # compilers, debuggers
     74     apk add clang clang-doc
     75     apk add lldb lldb-doc
     76     apk add nasm nasm-doc
     77 
     78     # source control
     79     apk add git git-doc git-zsh-completion
     80     apk add tig tig-doc
     81 
     82 
     83 ### Sway window manager
     84 
     85 This requires some form of session management to set `XDG_RUNTIME_DIR`, etc.
     86 given that Alpine does not use systemd.
     87 
     88     apk install eudev eudev-doc
     89     apk install sway sway-doc
     90 
     91     apk add                           \ # Install optional dependencies:
     92         xorg-server-xwayland          \ # strongly reccommended for compatibility reasons
     93         rxvt-unicode rxvt-unicode-doc \ # default terminal emulator
     94         dmenu dmenu-doc               \ # default application launcher
     95         swaylock swaylock-doc         \ # lockscreen tool
     96         swayidle swayidle-doc           # idle management (DPMS) daemon