(Fix): replaced hardcoded C.__uint32_t / C.__int32_t casts with a C helper function (auth/utmpx_time.h) that lets the compiler handle type conversion.
This commit is contained in:
23
README.md
23
README.md
@@ -44,31 +44,18 @@ This project is a work in progress. here's what you should know:
|
||||
|
||||
### from source
|
||||
|
||||
you need go 1.22 or later and `libpam-dev` (or your distro's equivalent).
|
||||
you need go 1.22 or later, `libpam0g-dev` (debian/ubuntu) or `pam-devel` (rhel/fedora) or `pam` (arch), and a c compiler (`build-essential`).
|
||||
|
||||
```bash
|
||||
# clone and build
|
||||
cd src
|
||||
go build -ldflags="-s -w" -o latchd .
|
||||
sudo cp latchd /usr/bin/
|
||||
|
||||
# set up config and session directories
|
||||
sudo mkdir -p /etc/latchd/wms /etc/latchd/wayland /var/log /var/cache
|
||||
sudo cp ../extra/config.toml /etc/latchd/config.toml
|
||||
sudo cp ../extra/xsetup.sh /etc/latchd/xsetup.sh
|
||||
sudo cp ../extra/lemurs.pam /etc/pam.d/latchd
|
||||
sudo cp ../extra/lemurs.service /etc/systemd/system/latchd.service
|
||||
|
||||
# enable the service
|
||||
make deps # install system dependencies
|
||||
sudo make install # build, install binary + configs + systemd unit
|
||||
sudo systemctl enable latchd
|
||||
```
|
||||
|
||||
you can also use the makefile:
|
||||
to test without rebooting:
|
||||
|
||||
```bash
|
||||
make build # compile to build/latchd
|
||||
sudo make install # install to /usr/bin and set up systemd
|
||||
make run-preview # test the login screen in your current terminal
|
||||
make run-preview
|
||||
```
|
||||
|
||||
### arch
|
||||
|
||||
Reference in New Issue
Block a user