Update readme

This commit is contained in:
Alexey Avramov 2019-09-20 19:56:03 +09:00
parent 286ed840e5
commit cf4a19d00d

View File

@ -65,8 +65,8 @@ Of course, you can also [download more RAM](https://downloadmoreram.com/), tune
## Requirements ## Requirements
For basic usage: For basic usage:
- `Linux` 3.14+ (since `MemAvailable` appeared in `/proc/meminfo`) - `Linux` >= 3.14 (since `MemAvailable` appeared in `/proc/meminfo`)
- `Python` 3.3+ - `Python` >= 3.3
To show GUI notifications: To show GUI notifications:
- [notification server](https://wiki.archlinux.org/index.php/Desktop_notifications#Notification_servers) (most of desktop environments use their own implementations) - [notification server](https://wiki.archlinux.org/index.php/Desktop_notifications#Notification_servers) (most of desktop environments use their own implementations)
@ -74,7 +74,7 @@ To show GUI notifications:
- `sudo` if nohang started with UID=0 - `sudo` if nohang started with UID=0
To use `PSI`: To use `PSI`:
- `Linux` 4.20+ - `Linux` >= 4.20
## Memory and CPU usage ## Memory and CPU usage
@ -83,29 +83,6 @@ To use `PSI`:
## How to install ## How to install
To install the latest version:
```bash
$ git clone https://github.com/hakavlad/nohang.git
$ cd nohang
$ sudo make install # `sudo make install-desktop` to enable GUI notifications by default
```
To enable and start on systems with systemd:
```bash
$ sudo make systemd
```
To uninstall:
```bash
$ sudo make uninstall
```
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
```
For RPM-based Linux distributions (Fedora, RHEL, openSUSE) there's a [Copr package](https://copr.fedorainfracloud.org/coprs/atim/nohang/). For RPM-based Linux distributions (Fedora, RHEL, openSUSE) there's a [Copr package](https://copr.fedorainfracloud.org/coprs/atim/nohang/).
To install on Fedora 30+: To install on Fedora 30+:
@ -124,6 +101,33 @@ $ sudo systemctl enable nohang
$ sudo systemctl start nohang $ sudo systemctl start nohang
``` ```
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
```
To install on Debian and Ubuntu please make a deb package.
To install the latest version on any distro:
```bash
$ git clone https://github.com/hakavlad/nohang.git
$ cd nohang
$ sudo make install # `sudo make install-desktop` to enable GUI notifications by default
```
To enable and start on systems with systemd:
```bash
$ sudo make systemd
```
To enable and start on systems without systemd please make a PR to fix Makefile.
To uninstall:
```bash
$ sudo make uninstall
```
## Command line options ## Command line options
``` ```