update readme

This commit is contained in:
Alexey Avramov 2020-04-12 20:45:36 +09:00
parent aea454b75b
commit ccc0afecb5

View File

@ -125,15 +125,14 @@ $ sudo systemctl enable --now nohang
#### To install on Debian and Ubuntu-based systems please make a deb package with latest git snapshot and install it: #### To install on Debian and Ubuntu-based systems please make a deb package with latest git snapshot and install it:
```bash ```bash
$ git clone https://github.com/hakavlad/nohang.git $ git clone https://github.com/hakavlad/nohang.git && cd nohang && mkdir deb/package
$ cd nohang
$ mkdir deb/package && cp -r deb/DEBIAN deb/package/
$ make install DESTDIR=deb/package BINDIR=/usr/bin SYSTEMDUNITDIR=/lib/systemd/system $ make install DESTDIR=deb/package BINDIR=/usr/bin SYSTEMDUNITDIR=/lib/systemd/system
$ cd deb && fakeroot dpkg-deb --build package $ cd deb && cp -r DEBIAN package/
$ fakeroot dpkg-deb --build package
$ sudo dpkg -i package.deb $ sudo dpkg -i package.deb
``` ```
`make`, `fakeroot` and `gettext` required to build a package. Start and enable `nohang.service` or `nohang-desktop.service` after installing the package: `make`, `fakeroot` and `gettext` are required to build a package. Start and enable `nohang.service` or `nohang-desktop.service` after installing the package:
``` ```
$ sudo systemctl enable nohang-desktop $ sudo systemctl enable nohang-desktop
$ sudo systemctl start nohang-desktop $ sudo systemctl start nohang-desktop
@ -141,8 +140,7 @@ $ sudo systemctl start nohang-desktop
#### To install the latest version on any distro: #### To install the latest version on any distro:
```bash ```bash
$ git clone https://github.com/hakavlad/nohang.git $ git clone https://github.com/hakavlad/nohang.git && cd nohang
$ cd nohang
$ sudo make install $ sudo make install
``` ```