You are not logged in.

#1 2017-05-11 08:40:43

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

[Solved] slock (suckless tool) not starting

Hello there,

I have been using some suckless programs now for quite a while (dwm, dmenu)
and created a system with them.
Now I have come to establish some kind of screen lock using slock.
This is what I have done:

git clone [url]http://git.suckless.org/slock[/url]
sudo make install
slock -v
slock-1.4

however running slock with no arguements gives me

slock
slock: getgrnam nogroup: group entry not found

I have no idea in which direction I have to investigate.

greets, ohm

Last edited by ohm (2017-05-12 08:19:46)

Offline

#2 2017-05-11 08:47:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] slock (suckless tool) not starting

slock is in [community], why aren't you installing it with makepkg/pacman?


And if you read the PKGBUILD, you will see what has to change: https://git.archlinux.org/svntogit/comm … ages/slock


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-05-11 19:51:47

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: [Solved] slock (suckless tool) not starting

I customized dwm by editing config.h a lot, so I wanted to have config.h at hand in dmenu and slock as well.
Maybe slock will just run fine enough without changes. I think I also have to read more about PKGBUILD to understand better.
Sorry for my kraut english smile

Offline

#4 2017-05-11 20:36:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] slock (suckless tool) not starting

get https://git.archlinux.org/svntogit/comm … ages/slock, edit the prepare section and then use makepkg
Your current problem is that there's no "nogroup" in arches /etc/group but "nobody", so to go with the stock config.def.h, you'll have to add such group (while the stock package just alters the group slock uses)

Online

#5 2017-05-11 22:15:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [Solved] slock (suckless tool) not starting

ohm wrote:

Maybe slock will just run fine enough without changes.

You say this despite clear evidence to the contrary.  The revision in the PKGBUILD addressess the specific issue you are facing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2017-05-12 06:41:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,891

Re: [Solved] slock (suckless tool) not starting

From the context I'm pretty sure he meant "without personal changes to the config.def.h" (so he can just use the repo build and be happy) - slock has no user configuration feature beyond editing the config.def.h source, that is in this case: choose the used colors.

Online

#7 2017-05-12 07:45:24

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: [Solved] slock (suckless tool) not starting

seth is right, the only thing I marked for future customization is the "turn display red" feature on keystrokes.
I have now installed it via pacman and there is no error message. For now it runs just fine enough.
Before I go back to change things in config.h I will have to go deeper into reading documentation like PKGBUILD / user,group administration etc. This problem shows that I am a newbie for sure smile
Thanks for the hints into the right directions to all of you.

Offline

#8 2017-05-12 08:00:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] slock (suckless tool) not starting

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2017-05-12 08:21:56

ohm
Member
From: Germany
Registered: 2016-08-29
Posts: 19

Re: [Solved] slock (suckless tool) not starting

jasonwryan wrote:

[...]mark your thread as [Solved][...]

done and one step taken deeper into the rabbit hole

Offline

#10 2017-05-12 10:01:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [Solved] slock (suckless tool) not starting

Oops - sorry for misunderstanding.  Note I also build my own slock as I want to change a few things - but using the PKGBUILD is still the right way of doing this.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB