Latest fixes
This commit is contained in:
parent
6f08d24dde
commit
7734e2f9af
6 changed files with 39 additions and 11 deletions
|
@ -240,4 +240,8 @@ The following items have been reviewed but need to be revisited due to complexit
|
|||
|
||||
* This might not be easily achievable since macOS encourages user input during setup but it would be nice to come up with a script that updates macOS from version 13 to 14 if an update is available (or 14 to 15 etc.). Normally, `softwareupdate` CLI command can handle 13.5 to 13.7 etc. but not major versions.
|
||||
* Configure firewall on macOS with `m firewall` on non-corp laptop
|
||||
* Link to CUPS printers (http://localhost:631/printers)
|
||||
* Link to CUPS printers (http://localhost:631/printers)
|
||||
* https://github.com/boochtek/mac_config/blob/master/os/quicklook.sh
|
||||
* open "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles" --- opens to grant full disk access
|
||||
* "Terminal.app" would like to administer your computer. Administration can include modifying passwords, networking, and system settings.
|
||||
* Press ENTER vim +PlugInstall
|
|
@ -792,6 +792,7 @@ softwareGroups:
|
|||
- pock
|
||||
- polybar
|
||||
- pretzel
|
||||
- privileges
|
||||
- qlplugins
|
||||
- remote-desktop
|
||||
- remmina
|
||||
|
@ -1006,6 +1007,7 @@ softwareGroups:
|
|||
- ipmitool
|
||||
- iproute2mac
|
||||
- masscan
|
||||
- prefsniff
|
||||
- pulumi
|
||||
- sysbench
|
||||
- sysdig
|
||||
|
@ -1016,6 +1018,7 @@ softwareGroups:
|
|||
Sys-Admin-Desktop: &Sys-Admin-Desktop
|
||||
- chef-workstation
|
||||
- networkmanager
|
||||
- pppc-utility
|
||||
- quasar
|
||||
- recuva
|
||||
- sloth
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
# Note: If a shutdown is required and the `softwareupdate` command restart command does not work then `m shutdown -f` might be useful or `m restart -f`
|
||||
# Do you want to terminate running processes in this window?
|
||||
# Closing this window will terminate the running processes: softwareupdate, sudo
|
||||
# Running sudo softwareupdate -i -a -R --agree-to-license reboots just not in the script due to the running processes perhaps
|
||||
# Check for pending reboot by checking
|
||||
if [ -d /Applications ] && [ -d /Library ] && [ -z "$NO_RESTART" ]; then
|
||||
if [ ! -f "$HOME/.zshrc" ] || ! cat "$HOME/.zshrc" | grep '# TEMPORARY FOR INSTALL DOCTOR MACOS' > /dev/null; then
|
||||
echo 'bash <(curl -sSL https://install.doctor/start) # TEMPORARY FOR INSTALL DOCTOR MACOS' >> "$HOME/.zshrc"
|
||||
|
|
|
@ -21,22 +21,25 @@ elif [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/sdkman" ]; then
|
|||
export SDKMAN_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/sdkman"
|
||||
. "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||
else
|
||||
logg warn 'Unable to find SDKMAN instance'
|
||||
logg logg 'Unable to find SDKMAN instance'
|
||||
fi
|
||||
|
||||
### Ensure SDKMan is installed (https://sdkman.io/)
|
||||
if [ ! -d "$SDKMAN_DIR" ]; then
|
||||
logg info 'Installing SDKMan via curl -s "https://get.sdkman.io?rcupdate=false'
|
||||
logg info 'Installing SDKMan via curl -s https://get.sdkman.io?rcupdate=false'
|
||||
logg info "Install directory: $SDKMAN_DIR"
|
||||
curl -s "https://get.sdkman.io?rcupdate=false" | bash
|
||||
logg info 'Re-sourcing ~/.bashrc' && source ~/.bashrc
|
||||
logg info 'Running sdk install java with bash -c'
|
||||
bash -c 'sdk install java'
|
||||
if [ -f "$SDKMAN_DIR/bin/sdkman-init.sh" ]; then
|
||||
. "$SDKMAN_DIR/bin/sdkman-init.sh"
|
||||
logg info 'Running sdk install java' && sdk install java
|
||||
else
|
||||
logg warn 'SDKMAN_DIR/bin/sdkman-init.sh is missing'
|
||||
fi
|
||||
else
|
||||
logg info 'SDKMan appears to already be installed.'
|
||||
logg info 'Running source ~/.bashrc && sdk update'
|
||||
logg info 'Running sdk update'
|
||||
if command -v sdk > /dev/null; then
|
||||
source ~/.bashrc && sdk update
|
||||
sdk update
|
||||
else
|
||||
logg warn 'Unable to run sdk update because the sdk command is unavailable'
|
||||
fi
|
||||
|
|
|
@ -39,7 +39,7 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then
|
|||
if [ -d /Applications ] && [ -d /System ]; then
|
||||
# macOS
|
||||
logg info 'Running sudo systemsetup -setremotelogin on' && sudo systemsetup -setremotelogin on
|
||||
logg info 'Running sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
||||
logg info 'Running sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist' && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist 2> /dev/null
|
||||
logg info 'Running sudo launchctl stop com.openssh.sshd' && sudo launchctl stop com.openssh.sshd
|
||||
logg info 'Running sudo launchctl start com.openssh.sshd' && sudo launchctl start com.openssh.sshd && logg success 'Successfully ran launchctl start com.openssh.sshd'
|
||||
else
|
||||
|
|
20
software.yml
20
software.yml
|
@ -7115,9 +7115,8 @@ softwarePackages:
|
|||
_github: null
|
||||
_home: https://www.parallels.com/
|
||||
_name: Parallels
|
||||
_notes: On macOS, full disk access is required for Terminal.
|
||||
_notes: On macOS, full disk access is required for Terminal. For Homebrew Cask, this requires the terminal to have full disk access
|
||||
_when: '! test -d "/Applications/Parallels Desktop.app" && ! test -d "$HOME/Applications/Parallels Desktop.app"'
|
||||
_notes: For Homebrew Cask, this requires the terminal to have full disk access
|
||||
ansible:darwin: professormanhattan.parallels
|
||||
cask: parallels
|
||||
mas: 1085114709
|
||||
|
@ -7790,6 +7789,11 @@ softwarePackages:
|
|||
_name: QLColorCode
|
||||
_when:cask: '! test -d "$HOME/Library/QuickLook/QLColorCode.qlgenerator"'
|
||||
cask: qlcolorcode
|
||||
prefsniff:
|
||||
_bin: prefsniff
|
||||
_name: PrefSniff
|
||||
_github: https://github.com/zcutlip/prefsniff
|
||||
pipx: prefsniff
|
||||
qlmarkdown:
|
||||
_github: https://github.com/toland/qlmarkdown
|
||||
_name: QLMarkdown
|
||||
|
@ -8720,6 +8724,18 @@ softwarePackages:
|
|||
flatpak: com.slack.Slack
|
||||
snap: slack
|
||||
mas: 803453959
|
||||
pppc-utility:
|
||||
_bin: pppc-utility
|
||||
_github: https://github.com/jamf/PPPC-Utility
|
||||
_name: Privacy Preferences Policy Control (PPPC) Utility
|
||||
_when:cask:
|
||||
cask: pppc-utility
|
||||
privileges:
|
||||
_bin: privileges
|
||||
_github: https://github.com/SAP/macOS-enterprise-privileges
|
||||
_name: Privileges
|
||||
_when:cask: '! test -d /Applications/Privileges.app && ! test -d $HOME/Applications/Privileges.app'
|
||||
cask: privileges
|
||||
slack-term:
|
||||
_bin: slack-term
|
||||
_desc: '[slack-term](https://github.com/erroneousboat/slack-term) features a colorful interface as well as keyboard shortcuts. It is one of, if not the, most well-received [Slack](https://slack.com/) client available on GitHub.'
|
||||
|
|
Loading…
Reference in a new issue