Need help using vlock to secure startx console. reddit / freebsd ---------------------------------------------------------------------- adidoadido · 2022-07-18 16:00 [SOLVED] I've read this post https://forums.freebsd.org/threads/how- do-i-lock-my-screen-13-0-release-p7-xfce.84166/ and reply #6 mentions using vlock to secure the virtual console before locking the screen, just not exactly sure how to properly implement this advice. Use vlock -t, set a time, then startx? Open a terminal and vlock --all before locking the screen? ---------------------------------------------------------------------- thesleepyadmin · 2022-07-18 19:20 Instead of vlock you could try `exec startx` – this will replace your shell process with the startx command and when it ends (successfully or unsuccessfully) the shell will end with it and you will get logged out. That way if anything happens to your X session, your console is still secure. ---------------------------------------------------------------------- adidoadido · 2022-07-19 07:55 Thank you! It works! I also noticed there is no difference between having 'exec /use/local/bin/startxfce4 --with-ck-launch' or '. /usr/local/etc/xdg/xfce4/xinitrc' in .xinitrc. I thought the former would have the same result as 'exec startx' without needing the 'exec' part. ---------------------------------------------------------------------- thesleepyadmin · 2022-07-19 17:14 Not quite, although having exec for your final DE/WM process in xinitrc is good practice. When you run startx it will start a new shell for loading the xinitrc. It’s this new shell that is replaced by the exec in the xinitrc file. So you still want exec startx because you ultimately want your **login** shell to be the one that is replaced, not the new one that processes xinitrc. It’s a bit convoluted, because there are so many layers, but I hope that makes sense. ---------------------------------------------------------------------- adidoadido · 2022-07-19 17:37 I need to read it a few more times to grasp it, but it helps a lot. Thanks much! ---------------------------------------------------------------------- grahamperrin · 2022-07-23 15:35 > … It works! … If you like, mark your post: [answered](https://i.imgur.com/pTA9UeG.png) ---------------------------------------------------------------------- adidoadido · 2022-07-24 09:07 I've edited the post. Seems that from the client I'm using I cannot edit flairs or anything else aside from the post text itself. ---------------------------------------------------------------------- grahamperrin · 2022-07-24 19:01 Thanks, I changed the flair for you. I'm curious, which client? ---------------------------------------------------------------------- adidoadido · 2022-07-24 19:23 Thanks. RedReader