earnestly / home Goto Github PK
View Code? Open in Web Editor NEWGeneral system configuration
General system configuration
On my system runit's runsvdir
has to be explicitly run after login as I've not managed to use systemd to start this as a per-user system service and would prefer to avoid adding this kind of logic to my shell's profile.
However if I cannot convince systemd to run this as a system service with User=%i
instantiation I'll have to probably involve the login shell with something like:
if hash runsvdir 2> /dev/null && ! pgrep -U "$UID" -x runsvdir; then
runsvdir "$LOCALDIR"/service &
fi
There's also the potential to use pam's pam_exec
but that might involve even more wrappers.
So Xorg has two modes of operation: privileged and non-privileged.
Unfortunately we can't use -logfile
when the server is running in privileged mode, for example, when using the nvidia display drivers.
The problem comes when trying to detect if the Xorg server is going to need privilege. By default /etc/Xwrapper.config
uses needs_root_rights = auto
meaning that while Xorg can auto-detect, we can't use this file to do our own detection. This is irrelevant anyway as /etc/Xwrapper.config
need not exist, and usually doesn't.
Another possible solution is to check for the presence of nvidia on our system and simply assume we're in privileged mode and not adding -logfile
to the command-line. This is obviously a terrible idea as it hardwires assumptions about the relationship between nvidia and Xorg along with denying use cases such like Optimus or PRIME without even more heuristics based fudging.
A simple, but inelegant solution to this might be simply offering a command-line flag which explicitly indicates which mode we're going to run in; e.g. sx -p
. This will require some command-line juggling, unfortunately.
Starting runsvdir
for my services will bring up all services even if I had previously set their state to down.
I'm not sure if this is due to systemd ungracefully SIGKILL
ing my user's session scope or an issue with runit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.