# get drive info (sans uuid)
lsblk
# unmount drive if already mounted by os
# `fuser -m <mount point>` to see what's using it
sudo umount <mount point>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell | |
| # this will overwrite all the settings it touches | |
| # the name of the user to run these commands as | |
| TARGET_USER=jane | |
| # we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| beautifulsoup4==4.12.2 | |
| requests==2.31.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ETC | |
| **/certs/* | |
| # INCLUDE | |
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[ -s ~/.bashrc ]] && source ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # SOURCES | |
| # https://www.makeuseof.com/install-and-use-yay-arch-linux/ | |
| # https://github.com/ChimeraOS/chimeraos/wiki/Development#unlocking-the-filesystem | |
| # https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck | |
| # shellcheck disable=all | |
| cat << 'DESCRIPTION' >/dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/dnf/automatic.conf | |
| # SOURCE: https://www.ctrl.blog/entry/how-to-dnf-automatic.html | |
| [commands] | |
| # What kind of upgrade to perform: | |
| # default = all available upgrades | |
| # security = only the security upgrades | |
| upgrade_type = security | |
| random_sleep = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cloud-config | |
| output: {all: '| tee -a /var/log/cloud-init.log'} # store logs inside vm | |
| timezone: "America/Chicago" | |
| hostname: ubuntu | |
| package_update: true | |
| package_upgrade: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -x # activate debugging (execution shown) | |
| set -o pipefail # capture error from pipes | |
| set -eu # exit immediately, undefined vars are errors | |
| # $USER | |
| [[ -n $(logname >/dev/null 2>&1) ]] && logged_in_user=$(logname) || logged_in_user=$(whoami) | |
| # $UID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # SOURCE: https://discussion.fedoraproject.org/t/78971/7 | |
| sudo dnf -y install gnome-remote-desktop | |
| read -s -p "VNC Password: " VNC_PASSWD | |
| grdctl vnc enable | |
| grdctl vnc disable-view-only | |
| grdctl vnc set-auth-method password | |
| grdctl vnc set-password "${VNC_PASSWD::8}" |