diff options
| author | Pete Johanson <peter@peterjohanson.com> | 2020-05-20 11:09:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-20 08:09:13 -0700 |
| commit | 3ad2be52a7098c269d741f8d59a424afdbd7302d (patch) | |
| tree | 815e12fb6d1cf2c3c0900b036cf8fcdd8524c005 /docs/newbs_getting_started.md | |
| parent | 0fbcb41c8509279751b8676211b8686b1b866508 (diff) | |
| download | qmk_firmware-3ad2be52a7098c269d741f8d59a424afdbd7302d.tar.gz qmk_firmware-3ad2be52a7098c269d741f8d59a424afdbd7302d.zip | |
CLI: Improve experience when running `qmk setup` on FreeBSD. (#8798)
* CLI: Improve experience when running `qmk setup` on FreeBSD.
* Install the `avrdude` package as well.
* Switch to installing python packages w/ `--user` flag.
* Basic getting started sections for FreeBSD.
* Update `util/freebsd_install.sh` for root/non-root branches.
* Add ID to doc section.
Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com>
* Add ID to another docs section.
Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com>
* Use `; then` in script for consistency.
Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com>
* Updated to use sudo in one shot if available.
* Apply suggestions from code review
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Style fixes for latest version in master.
* Apply suggestions from code review
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: skullydazed <skullydazed@users.noreply.github.com>
Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'docs/newbs_getting_started.md')
| -rw-r--r-- | docs/newbs_getting_started.md | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/docs/newbs_getting_started.md b/docs/newbs_getting_started.md index 13b25bf86..83df2f305 100644 --- a/docs/newbs_getting_started.md +++ b/docs/newbs_getting_started.md | |||
| @@ -69,10 +69,21 @@ You will need to install Git and Python. It's very likely that you already have | |||
| 69 | * Fedora / Red Hat / CentOS: `sudo yum install git python3 python3-pip` | 69 | * Fedora / Red Hat / CentOS: `sudo yum install git python3 python3-pip` |
| 70 | * Arch / Manjaro: `sudo pacman -S git python python-pip python-setuptools libffi` | 70 | * Arch / Manjaro: `sudo pacman -S git python python-pip python-setuptools libffi` |
| 71 | 71 | ||
| 72 | |||
| 73 | Install the global CLI to bootstrap your system: | 72 | Install the global CLI to bootstrap your system: |
| 74 | 73 | ||
| 75 | `python3 -m pip install --user qmk` (on Arch-based distros you can also try the `qmk` package from AUR (**note**: it's maintained by a community member): `yay -S qmk`) | 74 | `python3 -m pip install --user qmk` (on Arch-based distros you can also try the `qmk` package from AUR (**note**: it's maintained by a community member): `yay -S qmk`) |
| 75 | |||
| 76 | ### FreeBSD | ||
| 77 | |||
| 78 | You will need to install Git and Python. It's possible that you already have both, but if not, run the following commands to install them: | ||
| 79 | |||
| 80 | pkg install git python3 | ||
| 81 | |||
| 82 | Make sure that `$HOME/.local/bin` is added to your `$PATH` so that locally install Python packages are available. | ||
| 83 | |||
| 84 | Once installed, you can install QMK CLI: | ||
| 85 | |||
| 86 | python3 -m pip install --user qmk | ||
| 76 | 87 | ||
| 77 | ## 3. Run QMK Setup :id=set-up-qmk | 88 | ## 3. Run QMK Setup :id=set-up-qmk |
| 78 | 89 | ||
| @@ -88,6 +99,12 @@ This is due to a [bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839155) | |||
| 88 | Sadly, Ubuntu reitroduced this bug and is [yet to fix it](https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562). | 99 | Sadly, Ubuntu reitroduced this bug and is [yet to fix it](https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1588562). |
| 89 | Luckily, the fix is easy. Run this as your user: `echo "PATH=$HOME/.local/bin:$PATH" >> $HOME/.bashrc && source $HOME/.bashrc` | 100 | Luckily, the fix is easy. Run this as your user: `echo "PATH=$HOME/.local/bin:$PATH" >> $HOME/.bashrc && source $HOME/.bashrc` |
| 90 | 101 | ||
| 102 | ?>**Note on FreeBSD**: | ||
| 103 | It is suggested to run `qmk setup` as a non-`root` user to start with, but this will likely identify packages that need to be installed to your | ||
| 104 | base system using `pkg`. However the installation will probably fail when run as an unprivileged user. | ||
| 105 | To manually install the base dependencies, run `./util/qmk_install.sh` either as `root`, or with `sudo`. | ||
| 106 | Once that completes, re-run `qmk setup` to complete the setup and checks. | ||
| 107 | |||
| 91 | ?> If you already know [how to use GitHub](getting_started_github.md), we recommend that you create your own fork and use `qmk setup <github_username>/qmk_firmware` to clone your personal fork. If you don't know what that means you can safely ignore this message. | 108 | ?> If you already know [how to use GitHub](getting_started_github.md), we recommend that you create your own fork and use `qmk setup <github_username>/qmk_firmware` to clone your personal fork. If you don't know what that means you can safely ignore this message. |
| 92 | 109 | ||
| 93 | ## 4. Test Your Build Environment | 110 | ## 4. Test Your Build Environment |
