Skip to content

Commit

Permalink
Update README and documents
Browse files Browse the repository at this point in the history
  • Loading branch information
thdaemon committed Oct 12, 2017
1 parent 0ad533a commit af52850
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
34 changes: 18 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ make
sudo make install
```

On FreeBSD, you need use `gmake` instead of `make`. And if you do not want to install gcc, you can use FreeBSD clang compiler
- On FreeBSD, you need use `gmake` instead of `make`. And if you do not want to install gcc, you can use FreeBSD clang compiler

```
gmake CC="cc -I/usr/local/include" LDFLAGS="-lX11 -L/usr/local/lib"
```
```
gmake CC="cc -I/usr/local/include" LDFLAGS="-lX11 -L/usr/local/lib"
```

To build a debug version, you can use
- To build a debug version, you can use

```
DEBUG=1 make
```
```
DEBUG=1 make
```

- `./mkconfig.sh --enable-xsec` can be replaced by `make defconfig` now.

### Binary Release

Expand Down Expand Up @@ -60,20 +62,20 @@ Add server options
You can add the additional options to X server. e.g. -depth x, like this

```
# mydm -d :0 -v vt7 -c startxfce4 -u foo -n -- -depth 24
mydm -d :0 -v vt7 -c startxfce4 -u foo -n -- -depth 24
```

For more usages, please run `mydm -h`

### Register mydm to a system service and auto start
### Register mydm as a system service and auto start

For a init system which supports LSB, you can run it to let mydm to a system service
For an LSB-supported initialization system, you can register mydm as a system service directly using the following command (as root)

```
# mydm-service-install --target linux-lsb --default
mydm-service-install --target linux-lsb --default
```

### XSecurity
For the specific usage of the mydm-service-install utility, go to [this Wiki](doc/service.md)

### About XSecurity

1. Not Authority

Expand Down Expand Up @@ -124,4 +126,4 @@ If you do not set it, default X client will be set to 'xterm'
When you compile mydm, libx11-dev may be needed because mydm use some headers of Xlib's. But after compiling mydm, libx11-dev is not needed anymore.

So, if you don't want install to libx11-dev in compiling time, you can see [this Wiki](doc/own-libx11dev.md)
And if you don't want install to libx11-dev in compiling time, you can see [this Wiki](doc/own-libx11dev.md)
26 changes: 26 additions & 0 deletions doc/service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Register mydm as a system service

Making mydm a system service is often useful. Before this feature is developed, if a user want to let mydm boot automatically start, he had to mydm complete start command written in such a file like `/etc/rc.local`

Now, the good news comes, mydm can be installed as a system service. The mydm suite now comes with a script called `mydm-service-install` that allows users to automate installation services on their own systems.

> mydm-service-install now only used in a LSB-supported initialization system. Development of other initialization systems is under way.
```
mydm-service-install --target linux-lsb --default
```

install for LSB target, all options are filled in by default

```
mydm-service-install --target linux-lsb
```

install for LSB target, the script queries each installation option in an interactive manner, leaving it blank by default.

```
mydm-service-install --target linux-lsb --uninstall
```

uninstall for LSB target.

0 comments on commit af52850

Please sign in to comment.