Projects STRLCPY pikvm Commits 5b8401ec
🤬
  • Update building_os.md (#971)

    1. Add command for random password generation
    2. Fix typo
    3. State that CARD is irrelevant if make image is used.
    4. Compression has changed from bzip2 to xz (XZ Utils)
  • Loading...
  • etkaar committed with GitHub 1 year ago
    5b8401ec
    1 parent 2ec5484a
  • ■ ■ ■ ■ ■
    docs/building_os.md
    skipped 39 lines
    40 40   
    41 41  4. Create the config file `config.mk` for the target system. You must specify the path to the SD card on your local computer (this will be used to format and install the system) and the version of your Raspberry Pi and platform. You can change other parameters as you wish. Please note: if your password contains the # character, you must escape it using a backslash like `ROOT_PASSWD = pass\#word`.
    42 42   
     43 +!!! warning "In any case, do **not** use the default passwords. In order to generate a random password just use following command:
     44 +```printf '%s\n' $(head /dev/urandom | LC_ALL=C tr -dc A-Za-z0-9 | head -c16)```"
     45 + 
    43 46   ```Makefile
    44 47   [user@localhost os]$ cat config.mk
    45 48   # rpi4 for Raspberry Pi 4; rpi3 for Raspberry Pi 3; rpi2 for the version 2, zero2w for Zero2W
    skipped 21 lines
    67 70   IPMI_ADMIN_PASSWD = admin
    68 71  
    69 72   # SD card device
     73 + # (Used for burning the image with `make install`. Irrelevant if you only use `make image`.)
    70 74   CARD = /dev/mmcblk0
    71 75   ```
    72 76   
    skipped 2 lines
    75 79   ```shell
    76 80   [user@localhost os]$ make os
    77 81   ```
    78  -!!! warning "If you get an error about failing to retriving a file, please edit the Makefile and remove "de3." from the repo path"
     82 +!!! warning "If you get an error about failing to retrieving a file, please edit the Makefile and remove "de3." from the repo path"
    79 83  
    80 84  5. One of two actions:
    81 85   * Put SD card into card reader and install OS (**you should disable automounting beforehand**: `systemctl stop udisk2` or something like that):
    skipped 8 lines
    90 94   [user@localhost os]$ make image
    91 95   ```
    92 96   
    93  - Image is then available as a bziped file in `images/`.
     97 + Image is then available as [xz](https://linux.die.net/man/1/xz) compressed file in `images/`.
    94 98  
    95 99  !!! note "On a system where `sudo` is unavailable, you can use `make SUDO= image`."
    96 100   
Please wait...
Page is in error, reload to recover