Compare commits
18 Commits
ad6601f17e
...
dev
Author | SHA1 | Date | |
---|---|---|---|
411f203024 | |||
9f22385040 | |||
103a79a7ee | |||
602376df5f | |||
95c87448c8 | |||
df5421defe | |||
1e7e11ed91 | |||
07dc365410 | |||
c248a3c048 | |||
16466fb0c8 | |||
86e3f40d36 | |||
8038e10364 | |||
295f29dece | |||
8181ee0848 | |||
c87c4468b3 | |||
e19902074a | |||
c12b54d0dc | |||
a5023b2ef7 |
@@ -27,9 +27,13 @@
|
|||||||
cron: cron
|
cron: cron
|
||||||
encfs: encfs
|
encfs: encfs
|
||||||
dig: dnsutils
|
dig: dnsutils
|
||||||
neofetch: fastfetch
|
|
||||||
when: ansible_pkg_mgr == "apt"
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
|
- name: General | Facts | Package | apt | Debian Trixie
|
||||||
|
set_fact:
|
||||||
|
neofetch: fastfetch
|
||||||
|
when: ansible_pkg_mgr == "apt" and ansible_distribution_release == "trixie"
|
||||||
|
|
||||||
- name: General | Facts | Package | pacman
|
- name: General | Facts | Package | pacman
|
||||||
set_fact:
|
set_fact:
|
||||||
locate: mlocate
|
locate: mlocate
|
||||||
@@ -105,7 +109,7 @@
|
|||||||
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
echo -e "\n*** Clean ***" &&
|
echo -e "\n*** Clean ***" &&
|
||||||
sudo apt clean {{ update_accept_var }} &&
|
sudo apt clean {{ update_accept_var }} &&
|
||||||
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
||||||
@@ -120,7 +124,7 @@
|
|||||||
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
parrot_mirrors_suck=true &&
|
parrot_mirrors_suck=true &&
|
||||||
while [[ $parrot_mirrors_suck ]]; do
|
while [[ $parrot_mirrors_suck ]]; do
|
||||||
unset parrot_mirrors_suck
|
unset parrot_mirrors_suck
|
||||||
|
@@ -409,6 +409,10 @@
|
|||||||
fi
|
fi
|
||||||
done | sort -n
|
done | sort -n
|
||||||
}
|
}
|
||||||
|
alias flatpak-info="flatpak-usage"
|
||||||
|
alias flatpak-space="flatpak-usage"
|
||||||
|
alias flatpak-size="flatpak-usage"
|
||||||
|
alias flatpak-sizes="flatpak-usage"
|
||||||
function_flatpak_purge: |
|
function_flatpak_purge: |
|
||||||
function flatpak-purge() {
|
function flatpak-purge() {
|
||||||
flatpak remove --all --delete-data &&
|
flatpak remove --all --delete-data &&
|
||||||
@@ -585,6 +589,7 @@
|
|||||||
android-45-minute-rule dev
|
android-45-minute-rule dev
|
||||||
android-tictactoe dev
|
android-tictactoe dev
|
||||||
hugo-jackanope dev
|
hugo-jackanope dev
|
||||||
|
hugo-website dev
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
function code-reseed {
|
function code-reseed {
|
||||||
@@ -741,6 +746,101 @@
|
|||||||
alias progs='ps -ef'
|
alias progs='ps -ef'
|
||||||
alias_nethogs: |
|
alias_nethogs: |
|
||||||
alias nethogs='sudo nethogs'
|
alias nethogs='sudo nethogs'
|
||||||
|
alias_ansible_facts: |
|
||||||
|
alias ansible-facts='ansible localhost -m setup --connection=local'
|
||||||
|
function_now: |
|
||||||
|
function now {
|
||||||
|
date "+%Y%m%d_%H%M%S"
|
||||||
|
}
|
||||||
|
function_backup: |
|
||||||
|
function backup {
|
||||||
|
EXTRA="$1"
|
||||||
|
BACKUP_DIR="/tmp"
|
||||||
|
BACKUP_FILENAME="Backup-`now`.zip"
|
||||||
|
BACKUP="$BACKUP_DIR/$BACKUP_FILENAME"
|
||||||
|
echo "*** Creating backup at '$BACKUP' ***"
|
||||||
|
sudo zip -rv "$BACKUP" \
|
||||||
|
/etc /var/{log,mail,spool} /srv /boot \
|
||||||
|
/usr/local/etc $EXTRA
|
||||||
|
status="$?"
|
||||||
|
if [[ "$status" != 0 ]]; then
|
||||||
|
echo "*** ERROR: Failed to create '$BACKUP', file may be incorrect. ***"
|
||||||
|
fi
|
||||||
|
if [[ -e "$BACKUP" ]]; then
|
||||||
|
ls -alh "$BACKUP"
|
||||||
|
echo "*** '$BACKUP' created successfully! ***"
|
||||||
|
else
|
||||||
|
echo "*** '$BACKUP' not found! ***"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
function_debian_upgrade: |
|
||||||
|
function debian-upgrade {
|
||||||
|
typeset -l OLD NEW
|
||||||
|
OLD="$1"
|
||||||
|
NEW="$2"
|
||||||
|
echo "*** Upgrading from '$OLD' to '$NEW' ***"
|
||||||
|
if [[ -z "$OLD" || -z "$NEW" ]]; then
|
||||||
|
echo -n "ERROR: Please pass the OLD and NEW version names"
|
||||||
|
echo ", such as 'debian-upgrade bookworm trixie'. "
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "*** Running 'backup' before starting upgrade. ***"
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
backup
|
||||||
|
|
||||||
|
echo "*** Listing the current apt listing for '$OLD' ***"
|
||||||
|
sudo grep "$OLD" /etc/apt/sources.list /etc/apt/sources.list.d/*
|
||||||
|
|
||||||
|
echo -en "\nAre these the entries you'd like changed to '$NEW'? (y/N) "
|
||||||
|
typeset -u confirm_change
|
||||||
|
read confirm_change
|
||||||
|
|
||||||
|
if [[ -z "$confirm_change" || "$confirm_change" == "N"* ]]; then
|
||||||
|
echo "*** Aborting upgrade, change rejected. ***"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
unset confirm_change
|
||||||
|
|
||||||
|
echo "*** Continuing with upgrade. ***"
|
||||||
|
sudo sed -i "s/$OLD/$NEW/g" /etc/apt/sources.list
|
||||||
|
find /etc/apt/sources.list.d -name "*.list" \
|
||||||
|
-exec sudo sed -i "s/$OLD/$NEW/g" {} \;
|
||||||
|
|
||||||
|
sudo grep $OLD /etc/apt/sources.list /etc/apt/sources.list.d/*
|
||||||
|
sudo grep $NEW /etc/apt/sources.list /etc/apt/sources.list.d/*
|
||||||
|
|
||||||
|
echo -en "\nDo the source files look correct? (y/N) "
|
||||||
|
typeset -u confirm_correct
|
||||||
|
read confirm_correct
|
||||||
|
|
||||||
|
if [[ -z "$confirm_correct" || "$confirm_correct" == "N"* ]]; then
|
||||||
|
echo "*** Aborting upgrade, confirmation rejected. ***"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
unset confirm_correct
|
||||||
|
|
||||||
|
echo "*** Starting the upgrade. ***"
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt upgrade --without-new-pkgs
|
||||||
|
|
||||||
|
echo "*** Upgrades complete, now add new packages. ***"
|
||||||
|
sleep 1
|
||||||
|
sudo apt full-upgrade
|
||||||
|
|
||||||
|
echo "*** New packages complete, clean apt files. ***"
|
||||||
|
sleep 1
|
||||||
|
sudo apt autoremove --purge
|
||||||
|
sudo apt clean
|
||||||
|
|
||||||
|
echo "*** All done! '$OLD' is now '$NEW'. Please reboot. ***"
|
||||||
|
sleep 1
|
||||||
|
unset OLD NEW
|
||||||
|
}
|
||||||
|
alias upgrade-debian="debian-upgrade"
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | Common Variable
|
- name: General | Account Management | Users | Files | Common Variable
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -808,6 +908,10 @@
|
|||||||
{{ alias_ls }}
|
{{ alias_ls }}
|
||||||
{{ alias_progs }}
|
{{ alias_progs }}
|
||||||
{{ alias_nethogs }}
|
{{ alias_nethogs }}
|
||||||
|
{{ alias_ansible_facts }}
|
||||||
|
{{ function_now }}
|
||||||
|
{{ function_backup }}
|
||||||
|
{{ function_debian_upgrade }}
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | .bashrc
|
- name: General | Account Management | Users | Files | .bashrc
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
@@ -9,6 +9,11 @@
|
|||||||
pattern: "{{ crond_pattern }}"
|
pattern: "{{ crond_pattern }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: ansible_virtualization_type != 'docker'
|
||||||
|
register: cron_status
|
||||||
|
until: cron_status.state == "started"
|
||||||
|
retries: 3
|
||||||
|
delay: 3
|
||||||
|
|
||||||
|
|
||||||
## CUPS ##
|
## CUPS ##
|
||||||
@@ -76,6 +81,11 @@
|
|||||||
pattern: "{{ sshd_pattern }}"
|
pattern: "{{ sshd_pattern }}"
|
||||||
state: reloaded
|
state: reloaded
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: ansible_virtualization_type != 'docker'
|
||||||
|
register: sshd_status
|
||||||
|
until: sshd_status.state == "started"
|
||||||
|
retries: 3
|
||||||
|
delay: 3
|
||||||
|
|
||||||
|
|
||||||
## JournalCTL ##
|
## JournalCTL ##
|
||||||
@@ -105,3 +115,8 @@
|
|||||||
pattern: "{{ ntp_server }}"
|
pattern: "{{ ntp_server }}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
when: ansible_virtualization_type != 'docker'
|
||||||
|
register: ntp_status
|
||||||
|
until: ntp_status.state == "started"
|
||||||
|
retries: 3
|
||||||
|
delay: 3
|
||||||
|
@@ -121,7 +121,7 @@
|
|||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
- name: Miner | Driver | AMDGPU | Update + Clean System
|
- name: Miner | Driver | AMDGPU | Update + Clean System
|
||||||
shell: "apt update; apt dist-upgrade -y; apt autoremove -y"
|
shell: "apt update; apt dist-upgrade -y; apt autoremove --purge -y"
|
||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||||
|
@@ -34,19 +34,20 @@
|
|||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Arrays
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Arrays
|
||||||
set_fact:
|
set_fact:
|
||||||
flatpaks_generic:
|
flatpaks_generic:
|
||||||
- { app: "org.libreoffice.LibreOffice", name: "office", extra: "" }
|
|
||||||
- { app: "io.gitlab.librewolf-community", name: "librewolf", extra: "" }
|
|
||||||
- { app: "org.signal.Signal", name: "signal", extra: "" }
|
|
||||||
- { app: "org.mozilla.firefox", name: "firefox-flatpak", extra: "" }
|
- { app: "org.mozilla.firefox", name: "firefox-flatpak", extra: "" }
|
||||||
- { app: "com.transmissionbt.Transmission", name: "transmission", extra: "" }
|
- { app: "io.gitlab.librewolf-community", name: "librewolf", extra: "" }
|
||||||
- { app: "org.gimp.GIMP", name: "gimp", extra: "" }
|
- { app: "chat.simplex.simplex", name: "simplex", extra: "" }
|
||||||
|
- { app: "org.signal.Signal", name: "signal", extra: "" }
|
||||||
|
- { app: "im.riot.Riot", name: "element", extra: "" }
|
||||||
- { app: "org.telegram.desktop", name: "telegram", extra: "" }
|
- { app: "org.telegram.desktop", name: "telegram", extra: "" }
|
||||||
|
- { app: "org.gimp.GIMP", name: "gimp", extra: "" }
|
||||||
|
- { app: "org.libreoffice.LibreOffice", name: "office", extra: "" }
|
||||||
|
- { app: "com.transmissionbt.Transmission", name: "transmission", extra: "" }
|
||||||
flatpaks_coding:
|
flatpaks_coding:
|
||||||
- { app: "com.vscodium.codium", name: "codium-flatpak", extra: "" }
|
- { app: "com.vscodium.codium", name: "codium-flatpak", extra: "" }
|
||||||
- { app: "com.google.AndroidStudio", name: "android-studio", extra: "" }
|
- { app: "com.google.AndroidStudio", name: "android-studio", extra: "" }
|
||||||
- { app: "io.dbeaver.DBeaverCommunity", name: "dbeaver", extra: "" }
|
- { app: "io.dbeaver.DBeaverCommunity", name: "dbeaver", extra: "" }
|
||||||
- { app: "org.godotengine.Godot", name: "godot", extra: "" }
|
- { app: "com.visualstudio.code-oss", name: "code-flatpak", extra: "" }
|
||||||
- { app: "com.visualstudio.code-oss", name: "code", extra: "" }
|
|
||||||
flatpaks_editing_video:
|
flatpaks_editing_video:
|
||||||
- { app: "org.shotcut.Shotcut", name: "shotcut", extra: "" }
|
- { app: "org.shotcut.Shotcut", name: "shotcut", extra: "" }
|
||||||
- { app: "com.obsproject.Studio", name: "obs", extra: "" }
|
- { app: "com.obsproject.Studio", name: "obs", extra: "" }
|
||||||
@@ -68,13 +69,13 @@
|
|||||||
- { app: "org.audacityteam.Audacity", name: "audacity", extra: "" } # Say "no thanks" to spyware.
|
- { app: "org.audacityteam.Audacity", name: "audacity", extra: "" } # Say "no thanks" to spyware.
|
||||||
- { app: "com.discordapp.Discord", name: "discord", extra: "" } # Stopped working, just spins and says Starting.
|
- { app: "com.discordapp.Discord", name: "discord", extra: "" } # Stopped working, just spins and says Starting.
|
||||||
# 2022-11-20 No longer using any of these and they're taking up a lot of space. #
|
# 2022-11-20 No longer using any of these and they're taking up a lot of space. #
|
||||||
- { app: "im.riot.Riot", name: "element", extra: "" }
|
|
||||||
- { app: "com.jetbrains.PyCharm-Community", name: "pycharm", extra: "" }
|
- { app: "com.jetbrains.PyCharm-Community", name: "pycharm", extra: "" }
|
||||||
# End 2022-11-20 #
|
# End 2022-11-20 #
|
||||||
- { app: "io.lbry.lbry-app", name: "lbry", extra: "dbus-launch" } # No longer supported, noticed 2023-09-01.
|
- { app: "io.lbry.lbry-app", name: "lbry", extra: "dbus-launch" } # No longer supported, noticed 2023-09-01.
|
||||||
- { app: "chat.delta.desktop", name: "deltachat", extra: "" } # No longer used, removed 2023-12-18.
|
- { app: "chat.delta.desktop", name: "deltachat", extra: "" } # No longer used, removed 2023-12-18.
|
||||||
- { app: "org.gnome.Geary", name: "geary", extra: "" } # No longer used, removed 2024-12-15
|
- { app: "org.gnome.Geary", name: "geary", extra: "" } # No longer used, removed 2024-12-15
|
||||||
- { app: "org.rncbc.qsynth", name: "qsynth", extra: "" } # 2024-12-15, Not worth the setup, use LMMS or VMPK.
|
- { app: "org.rncbc.qsynth", name: "qsynth", extra: "" } # 2024-12-15, Not worth the setup, use LMMS or VMPK.
|
||||||
|
- { app: "org.godotengine.Godot", name: "godot", extra: "" } # 20250831 Stopped playing with this months / years ago.
|
||||||
|
|
||||||
# Generic #
|
# Generic #
|
||||||
|
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
, 'io.gitlab.librewolf-community.desktop', 'librewolf.desktop'
|
, 'io.gitlab.librewolf-community.desktop', 'librewolf.desktop'
|
||||||
, 'org.mozilla.firefox.desktop', 'firefox.desktop'
|
, 'org.mozilla.firefox.desktop', 'firefox.desktop'
|
||||||
, 'org.signal.Signal.desktop', 'signal-desktop.desktop'
|
, 'org.signal.Signal.desktop', 'signal-desktop.desktop'
|
||||||
, 'im.riot.Riot.desktop'
|
|
||||||
, 'org.telegram.desktop.desktop'
|
, 'org.telegram.desktop.desktop'
|
||||||
, 'com.discordapp.Discord.desktop'
|
, 'com.discordapp.Discord.desktop'
|
||||||
, 'com.vscodium.codium.desktop'
|
, 'com.vscodium.codium.desktop'
|
||||||
@@ -39,6 +38,9 @@
|
|||||||
#, 'com.visualstudio.code-oss.desktop', 'code-oss.desktop'
|
#, 'com.visualstudio.code-oss.desktop', 'code-oss.desktop'
|
||||||
# 2025-03-21 Not really using Android Studio now that Flutter is working.
|
# 2025-03-21 Not really using Android Studio now that Flutter is working.
|
||||||
#, 'com.google.AndroidStudio.desktop'
|
#, 'com.google.AndroidStudio.desktop'
|
||||||
|
# 2025-08-31 Not used a whole lot, installed again just to explore.
|
||||||
|
#, 'im.riot.Riot.desktop'
|
||||||
|
#, 'chat.simplex.simplex.desktop'
|
||||||
|
|
||||||
- name: Workstation | Account Management | GNOME | Facts (NixOS)
|
- name: Workstation | Account Management | GNOME | Facts (NixOS)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Reference in New Issue
Block a user