Skip to content

Commit

Permalink
Remove $ prefix from all install commands to make copying work
Browse files Browse the repository at this point in the history
All the install commands have a `$` prefixed to them and it makes copying not work because it includes the `$`. It would be easier to install without the `$`.
  • Loading branch information
ElijahLynn authored Feb 10, 2023
1 parent d822dff commit b5facbf
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,28 +125,28 @@ Orphaned for 6+ weeks, not available.

nohang is avaliable in [EPEL repos](https://fedoraproject.org/wiki/EPEL).
```bash
$ sudo yum install nohang
$ sudo systemctl enable nohang.service
$ sudo systemctl start nohang.service
sudo yum install nohang
sudo systemctl enable nohang.service
sudo systemctl start nohang.service
```
To enable PSI on RHEL 8 pass `psi=1` to kernel boot cmdline.

#### For Arch Linux there's an [AUR package](https://aur.archlinux.org/packages/nohang-git/)

Use your favorite [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers). For example,
```bash
$ yay -S nohang-git
$ sudo systemctl enable --now nohang-desktop.service
yay -S nohang-git
sudo systemctl enable --now nohang-desktop.service
```

#### To install on Ubuntu 20.04/20.10

To install from [PPA](https://launchpad.net/~oibaf/+archive/ubuntu/test/):
```bash
$ sudo add-apt-repository ppa:oibaf/test
$ sudo apt update
$ sudo apt install nohang
$ sudo systemctl enable --now nohang-desktop.service
sudo add-apt-repository ppa:oibaf/test
sudo apt update
sudo apt install nohang
sudo systemctl enable --now nohang-desktop.service
```

#### To install on Debian and Ubuntu-based systems:
Expand All @@ -155,23 +155,23 @@ Outdated and buggy nohang v0.1 release was packaged for [Debian 11](https://pack

It's easy to build a deb package with the latest git snapshot. Install build dependencies:
```bash
$ sudo apt install make fakeroot
sudo apt install make fakeroot
```

Clone the latest git snapshot and run the build script to build the package:
```bash
$ git clone https://github.com/hakavlad/nohang.git && cd nohang
$ deb/build.sh
git clone https://github.com/hakavlad/nohang.git && cd nohang
deb/build.sh
```

Install the package:
```bash
$ sudo apt install --reinstall ./deb/package.deb
sudo apt install --reinstall ./deb/package.deb
```

Start and enable `nohang.service` or `nohang-desktop.service` after installing the package:
```bash
$ sudo systemctl enable --now nohang-desktop.service
sudo systemctl enable --now nohang-desktop.service
```

#### To install on Gentoo and derivatives (e.g. Funtoo):
Expand All @@ -180,53 +180,53 @@ Add the [eph kit](https://git.sr.ht/~happy_shredder/eph_kit) overlay, for exampl
Then update your repos:

```bash
$ sudo layman -S # if added via layman
$ sudo emerge --sync # local repo on Gentoo
$ sudo ego sync # local repo on Funtoo
sudo layman -S # if added via layman
sudo emerge --sync # local repo on Gentoo
sudo ego sync # local repo on Funtoo
```

Install:

```bash
$ sudo emerge -a nohang
sudo emerge -a nohang
```

Start the service:

```bash
$ sudo rc-service nohang-desktop start
sudo rc-service nohang-desktop start
```

Optionally add to startup:

```bash
$ sudo rc-update add nohang-desktop default
sudo rc-update add nohang-desktop default
```

#### To install the latest version on any distro:
```bash
$ git clone https://github.com/hakavlad/nohang.git && cd nohang
$ sudo make install
git clone https://github.com/hakavlad/nohang.git && cd nohang
sudo make install
```

Config files will be located in `/usr/local/etc/nohang/`. To enable and start unit without GUI notifications:
```bash
$ sudo systemctl enable --now nohang.service
sudo systemctl enable --now nohang.service
```

To enable and start unit with GUI notifications:
```bash
$ sudo systemctl enable --now nohang-desktop.service
sudo systemctl enable --now nohang-desktop.service
```

On systems with OpenRC:
```bash
$ sudo make install-openrc
sudo make install-openrc
```

To uninstall:
```bash
$ sudo make uninstall
sudo make uninstall
```

## Command line options
Expand Down Expand Up @@ -406,11 +406,11 @@ Process with highest badness (found in 55 ms):

To view the latest entries in the log (for systemd users):
```bash
$ sudo journalctl -eu nohang.service
sudo journalctl -eu nohang.service

#### or

$ sudo journalctl -eu nohang-desktop.service
sudo journalctl -eu nohang-desktop.service
```

You can also enable `separate_log` in the config to logging in `/var/log/nohang/nohang.log`.
Expand All @@ -422,7 +422,7 @@ You can also enable `separate_log` in the config to logging in `/var/log/nohang/
Usage:

```bash
$ oom-sort
oom-sort
```

<details>
Expand Down

0 comments on commit b5facbf

Please sign in to comment.