Commit Graph

210 Commits

Author SHA1 Message Date
Anthony Wang 9e24489a4f
Add lastplot script that parses last, graphs reboots over time 2024-03-01 00:42:24 +00:00
Anthony Wang b2a0acfdcd
Don't reuse UIDs, use max(uids)+1 in adduser 2024-02-26 18:01:28 +00:00
Anthony Wang 9acc13c1cb
wall announcements at beginning/end of upgrade script 2024-02-23 21:04:52 +00:00
Anthony Wang cab5728a63
Make adduser script save SSH key 2024-01-26 07:03:56 +00:00
Anthony Wang d6df69b701
Change upgrade script shebang from fish to bash
The actual script is compatible with both, but it's an unnecessary fish dependency
2024-01-05 19:13:28 +00:00
Anthony Wang 898bf87450
Add documentation for all scripts, move Nix store cleanup to minimize amount of time between upgrade and reboot 2024-01-05 19:05:32 +00:00
Anthony Wang a31be33f56
Replace paru -cc with paru -occ
This was a breaking change in paru 2.0, where paru -cc doesn't remove optional dependencies, so paru -occ is now what we want
2023-12-16 03:47:39 +00:00
Anthony Wang 8d5f4c940c
Remove symlinks from scripts repo 2023-07-22 16:14:38 +00:00
Anthony Wang 01665179eb
Make style consistent across *user scripts 2023-07-13 20:09:48 +00:00
Anthony Wang eac3f38a6c
Write script which will be used by porkbun-dynamic-dns-python that adds the public IPv4 address to NetworkManager 2023-07-06 21:20:10 +00:00
Anthony Wang 266bfec24d Autodetect user for moduser script 2023-06-16 16:37:18 +00:00
Anthony Wang f66983313f
Pass LDAP password filename instead of password itself in *user scripts
This ensures the LDAP password doesn't show up in process table. I was an idiot when I wrote the original code.
2023-06-14 18:57:02 +00:00
Anthony Wang 8934c273ba
Update description for upgrade script 2023-06-07 15:42:20 +00:00
Anthony Wang 5bebd74248
Use $* instead of $@ in mastosearch so bash puts all args in a single string 2023-06-07 15:04:19 +00:00
Anthony Wang 2247d396c9
Use ilike instead of like for case insensitive search 2023-06-06 22:09:24 +00:00
Anthony Wang 541599d73f
Remove old useless scripts and add mastosearch script 2023-06-06 22:06:40 +00:00
Anthony Wang 57336c16d0
Move fortune script to fotd package 2023-06-02 19:17:46 +00:00
Anthony Wang a0e1f9cc87
Add fun fortune script (which is really just shuf -n 1 /etc/fortune) 2023-06-02 03:55:28 +00:00
Anthony Wang a03e2b4a34
Use fstrings to simplify setid 2023-05-29 00:09:16 +00:00
Anthony Wang 6b4e580c40
Add a comment about password hashing in adduser 2023-05-29 00:04:50 +00:00
Anthony Wang 97e60b232d
Save password to temporary file instead of passing to subprocess in adduser
This prevents an attacker from monitoring the running processes and capturing passwords
2023-05-29 00:03:38 +00:00
Anthony Wang 57813cba9e
Upgrade Nextcloud in script instead of with pacman hook 2023-05-28 03:29:53 +00:00
Anthony Wang f0e758b997
Use openssl passwd -6 instead of Python crypt.crypt since crypt is deprecated and getting removed in Python 3.13
(And some sweet code cleanup too!)
2023-05-06 21:20:14 +00:00
Anthony Wang de812ce3bd
Make sure fullname is set 2023-04-23 17:42:18 +00:00
Anthony Wang 4d29a3db1c
Avoid duplicating name in adduser when user's first and last name are the same 2023-04-22 16:30:47 +00:00
Anthony Wang b111dcfdac
Make UIDs smaller for subuid and subgid 2023-01-13 16:48:43 +00:00
Anthony Wang c666bbe689
Fix UID mismatch bug by directly querying ldapsearch 2023-01-11 16:21:01 +00:00
Anthony Wang 660e75bff2
Simplify adduser script, manually set KDE_SESSION_VERSION for xdg-settings 2023-01-10 04:19:16 +00:00
Anthony Wang 4eaef3e931 Symlink vi to vim and nano to micro 2023-01-07 20:37:57 +00:00
Anthony Wang c2460134b0
Check unused groups in sysusers script too 2022-12-29 17:17:23 +00:00
Anthony Wang ecf9c4d160
Clean up Nix store on upgrade 2022-09-23 17:44:57 +00:00
Anthony Wang 68bafe32d4
Fix #2: Run Flatpak with sh -c to avoid sudo error 2022-09-06 10:55:46 -05:00
Anthony Wang 8f93ac0203
Fix typo of pacdiff -sf to pacdiff -s -f 2022-08-17 21:34:11 -05:00
Anthony Wang 2827c994b5
Clean up pacdiff commands 2022-08-17 21:16:21 -05:00
Anthony Wang f08783a66d
Add comment in upgrade that Nextcloud is upgraded by pacman hook 2022-08-17 14:55:08 -05:00
Anthony Wang 485b63476b
Use nvim -d for pacdiff DIFFPROG 2022-08-16 23:12:09 -05:00
Anthony Wang e088a1b5da
Delete old bup backup script 2022-08-03 13:41:22 -05:00
Anthony Wang 91c393b3c7
Delete 'README.md' 2022-07-21 14:50:03 -05:00
Anthony Wang e4524713e9
Fix backup script typo 2022-07-03 22:26:03 -05:00
Anthony Wang 61a47aa3c2
Don't backup systemd-nspawn containers 2022-07-03 22:06:14 -05:00
Anthony Wang cd2d189761
Make backup script actually fish-compatible 2022-06-27 15:01:06 -05:00
Anthony Wang db11a370de
Make moduser filter out unnecessary entries and use micro editor by default 2022-06-27 14:49:16 -05:00
Anthony Wang fd52a5c175
Use /etc/passwd instead of getent passwd for sysusers script to filter out LDAP users 2022-06-25 21:25:35 -05:00
Anthony Wang 6504f796fa
Run autopep8 on all Python scripts 2022-06-25 19:23:12 -05:00
Anthony Wang d619b166be
Generate temporary password in adduser 2022-06-25 19:22:04 -05:00
Anthony Wang ee81994947
Move documentation from README to individual scripts 2022-06-25 19:13:57 -05:00
Anthony Wang 1eadc49cf0
Discontinue the API 2022-06-25 18:34:57 -05:00
Anthony Wang 33647c34a0
Rewrite and clean up scripts 2022-06-25 18:08:57 -05:00
Anthony Wang a2c999a1cc
Remove setid script 2022-06-25 15:59:51 -05:00
Anthony Wang 06f4eddd04
Use pacman hook to update Nextcloud instead of script 2022-06-23 12:30:30 -05:00