initial commit of bin scripts into git

This commit is contained in:
2023-11-08 13:38:19 +11:00
commit 3735eea3c6
113 changed files with 11631 additions and 0 deletions

15
force_users_in_lightdm Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
for i in 1000 1001 1002 1003 ;do
user=`getent passwd $i | cut -f1 -d:`
if [ ! -f /var/lib/AccountsService/users/$user ]; then
echo "
[User]
XSession=cinnamon
SystemAccount=false
" | sudo tee /var/lib/AccountsService/users/$user
else
echo "seems /var/lib/AccountsService/users/$user exists as a file"
fi
done