Compare commits

...

78 Commits

Author SHA1 Message Date
Jeffrey Paul a179f412e5 Add 'custompkg/root/etc/skel/Library/user-setup/010.install-cli-tools.sh' 2023-12-22 03:49:08 +00:00
Jeffrey Paul f576c09404 Update 'custompkg/root/etc/skel/Library/user-setup/040.install-homebrew.sh' 2023-12-22 03:48:30 +00:00
Jeffrey Paul 964e6b714a Update 'custompkg/root/etc/skel/Library/user-setup/040.install-homebrew.sh' 2023-12-22 03:48:06 +00:00
Jeffrey Paul 05c7ca20e3 Update 'custompkg/root/etc/skel/Library/user-setup/050.link-rubygems-dir.sh' 2023-12-22 03:47:51 +00:00
Jeffrey Paul b99bf6fa40 Update 'custompkg/root/etc/skel/Library/user-setup/050.set-user-preferences.sh' 2023-12-22 03:47:35 +00:00
Jeffrey Paul d03c1e4b86 Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh'
fix bug with cask app dir install path
2021-11-23 02:21:10 +00:00
Jeffrey Paul e43128be70 Update 'README.md' 2021-11-02 01:06:10 +00:00
Jeffrey Paul 559d0ed93b update pip first before installing packages 2021-09-12 05:24:38 +00:00
Jeffrey Paul c9c42cbec7 gpg-agent comes with gnupg>2 2021-09-12 05:09:54 +00:00
Jeffrey Paul 8c9fc1e828 Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2021-09-12 05:08:40 +00:00
Jeffrey Paul 40e9661f33 eloston chromium (ungoogled) instead of google chrome 2021-09-11 02:42:27 +00:00
Jeffrey Paul 4dc78f5a84 load desktop pictures from the repo 2021-09-11 02:41:10 +00:00
Jeffrey Paul f672bb4ce8 add homebrew path to bashrc.d 2021-09-11 02:34:25 +00:00
Jeffrey Paul f3b239f28a Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2021-09-11 00:34:29 +00:00
Jeffrey Paul c798cc2063 Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2021-09-11 00:29:59 +00:00
Jeffrey Paul 2d76033a1e install apps in home directory 2021-09-10 22:49:10 +00:00
Jeffrey Paul d969f2dd99 099.git-config.sh 2021-09-10 22:45:57 +00:00
Jeffrey Paul 269986ae8b caskroom no longer uses a subcommand 2021-09-10 22:43:35 +00:00
Jeffrey Paul 68406c599a Update 'README.md' 2021-09-10 22:39:02 +00:00
Jeffrey Paul 07ba7eacb6 Update 'README.md' 2021-09-10 22:38:43 +00:00
Jeffrey Paul b285f38663 Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2021-09-10 22:37:34 +00:00
Jeffrey Paul 9fa18464a1 Update 'README.md' 2021-09-10 22:35:45 +00:00
Jeffrey Paul 5c49c3494b make sure homebrew path is set when installing 2021-09-10 22:33:42 +00:00
Jeffrey Paul bbb0814360 make sure homebrew path is set when installing 2021-09-10 22:33:24 +00:00
Jeffrey Paul abfc7dd910 use pip3 instead of pip because it's 2021 already 2021-09-10 22:30:35 +00:00
Jeffrey Paul 9005f09844 Update 'install.sh' 2021-09-10 22:29:29 +00:00
Jeffrey Paul 0d53d60bec Update 'install.sh' 2021-09-10 22:28:29 +00:00
Jeffrey Paul effff83698 Update 'install.sh' 2021-09-10 22:25:54 +00:00
Jeffrey Paul fe430b04b6 Update 'install.sh'
update downloaded repo for iterative development
2021-09-10 22:20:59 +00:00
Jeffrey Paul fbf6534f41 Update 'install.sh'
little bit of housekeeping in network install script
2021-09-10 22:18:13 +00:00
Jeffrey Paul fd2eb9f84b Update 'install.sh'
make sure we pick up updated path after each run
2021-09-10 22:16:21 +00:00
Jeffrey Paul 14ca9e8697 Add 'custompkg/root/etc/skel/Library/bashrc.d/000.nix.sh' 2020-06-07 18:36:57 +00:00
Jeffrey Paul 2725748e47 Delete 'custompkg/root/etc/skel/Library/bashrc.d/100.homebrew-paths.sh' 2020-06-07 18:36:10 +00:00
Jeffrey Paul 9eb7da018e Delete 'custompkg/root/etc/skel/Library/bashrc.d/100.caskroom-dest.sh' 2020-06-07 18:35:55 +00:00
Jeffrey Paul 7ee336145b Delete 'custompkg/root/etc/skel/Library/bashrc.d/200.google-cloud-sdk.sh' 2020-06-07 18:35:45 +00:00
Jeffrey Paul 8bb822e4ba Delete 'custompkg/root/etc/skel/Library/bashrc.d/150.ldflags.sh' 2020-06-07 18:35:28 +00:00
Jeffrey Paul 9fb45b2621 only use brew if brew is installed 2020-06-07 18:34:16 +00:00
Jeffrey Paul 80ae2bea99 Update 'custompkg/root/etc/skel/Library/profile.d/900.gpg-agent.sh'
look to nix for pinentry not homebrew
2020-06-07 18:33:44 +00:00
Jeffrey Paul c17f016d68 Update 'custompkg/root/etc/skel/Library/bashrc.d/100.disable-spyware.sh'
remove gcloud spyware optout on each and every shell invocation (moved it to install-time)
2020-05-08 17:50:33 +00:00
Jeffrey Paul 3eee519599 add 999.disable-gcloud-spyware.sh 2020-05-08 17:49:51 +00:00
Jeffrey Paul 6184ab9ed9 Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2020-05-06 21:57:44 +00:00
Jeffrey Paul 3e572538aa revert change 2020-05-06 21:54:22 +00:00
Jeffrey Paul cdee7c1bbd Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2020-05-06 21:00:05 +00:00
Jeffrey Paul 9d4d3eddc9 remove some packages 2020-05-06 20:49:26 +00:00
Jeffrey Paul cab46cb713 remove some packages 2020-05-06 20:47:19 +00:00
Jeffrey Paul b5f6af389a add rename and cksfv 2020-03-22 18:15:43 +00:00
Jeffrey Paul c12f7f51cf Update 'custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh' 2020-02-25 12:48:33 +00:00
Jeffrey Paul 82d0208136 Update 'README.md' 2020-02-19 23:24:56 +00:00
Jeffrey Paul 0dd7b1a516 Update 'install.sh' 2020-02-19 23:24:40 +00:00
Jeffrey Paul e74145c18c
add evernote to caskroom apps 2019-11-30 02:11:06 -08:00
Jeffrey Paul 4b6f5281cb
Update 000.install-homebrew.sh 2019-11-28 09:28:55 -08:00
Jeffrey Paul b7f49d9c0f
Update 100.install-homebrew-apps.sh 2019-11-28 09:27:58 -08:00
Jeffrey Paul 0094c63145
add comment about homebrew spyware 2019-11-28 09:27:18 -08:00
Jeffrey Paul 06bb74ebd9
add istat-menus 2019-11-28 09:26:52 -08:00
Jeffrey Paul 092364df23
revert addition of `borg`, wrong program - stupid homebrew 2019-11-27 09:35:42 -08:00
Jeffrey Paul d36541baad
Update 100.install-homebrew-apps.sh 2019-11-27 09:33:26 -08:00
Jeffrey Paul 4ad2ee9e71 clean caches first 2019-11-26 20:45:16 -08:00
Jeffrey Paul 844e233c90 Merge branch 'master' of github.com:sneak/osximage 2019-11-26 20:38:29 -08:00
Jeffrey Paul 61f72b9944 Merge branch 'master' of github.com:sneak/osximage 2019-11-26 20:38:13 -08:00
Jeffrey Paul 9e656b775f Merge branch 'master' of github.com:sneak/osximage 2019-11-26 20:29:28 -08:00
Jeffrey Paul df79a49e87
Update 100.install-caskroom-apps.sh 2019-11-18 07:31:00 -08:00
Jeffrey Paul 6e0149adc5
Update 100.install-caskroom-apps.sh 2019-11-18 07:19:06 -08:00
Jeffrey Paul 6ca8acfdd2
Update 100.install-caskroom-apps.sh 2019-11-18 05:14:17 -08:00
Jeffrey Paul e4be87da13
Update and rename 100.homebrew-no-spyware.sh to 100.disable-spyware.sh 2019-11-18 04:38:59 -08:00
Jeffrey Paul b331f675a7
Update 000.install-homebrew.sh 2019-11-18 04:38:00 -08:00
Jeffrey Paul b59eda1058
Update 100.install-homebrew-apps.sh 2019-11-18 04:37:05 -08:00
Jeffrey Paul dfbb150332
Rename 200.install-npm-packages.sh to 200.install-yarn-packages.sh 2019-11-18 04:36:45 -08:00
Jeffrey Paul b11899c17a
Update 200.install-npm-packages.sh 2019-11-18 04:36:29 -08:00
Jeffrey Paul d287946335
Delete 900.link-googledrive.sh 2019-11-18 04:35:44 -08:00
Jeffrey Paul 4e603fb312
Update 100.install-homebrew-apps.sh 2019-11-18 04:35:21 -08:00
Jeffrey Paul c3315b88b9
Update 100.install-caskroom-apps.sh 2019-11-18 04:30:08 -08:00
Jeffrey Paul bf698eb2b9
Update 100.install-caskroom-apps.sh 2019-11-18 04:29:02 -08:00
Jeffrey Paul 2d1b600b8d
Update 100.install-caskroom-apps.sh 2019-11-18 04:28:15 -08:00
Jeffrey Paul 66dee78df1
wrap python path adder in if statement to prevent error 2019-11-18 04:22:36 -08:00
Jeffrey Paul 77018df61d
Update 100.install-caskroom-apps.sh 2019-11-18 04:19:44 -08:00
Jeffrey Paul 94fac4b6ec
Update 100.install-caskroom-apps.sh 2019-11-18 04:18:05 -08:00
Jeffrey Paul ad660d4518
Update 100.install-caskroom-apps.sh 2019-11-18 04:17:42 -08:00
Jeffrey Paul bb0e350297
Create 000.disable-catalina-nag.sh 2019-11-18 04:13:22 -08:00
26 changed files with 145 additions and 97 deletions

23
README.md Executable file → Normal file
View File

@ -1,15 +1,28 @@
# osximage
# osx
New deal for Catalina: Imaging is dead. Install a fresh install
New deal for Catalina/Big Sur: Imaging is dead. Install a fresh install
manually, then do the following.
# Manual Steps
# Manual Prerequisite Steps
Open System Preferences.
* Sharing > Set Hostname
* Security and Privacy > FileVault > Enable
Open a terminal and run the following:
* `sudo xcodebuild -license accept`
* `bash <(curl -s https://github.com/sneak/osximage/FIXME)`
* `chsh -s /bin/bash` and enter password
* `sudo xcodebuild -license accept` and click ok/install on developer tools
installer popup window
* `sudo xcode-select --install`
# The Install
```bash
bash <(curl -s https://git.eeqj.de/sneak/osx/raw/branch/master/install.sh)
```
# Uninstall (not 100%, only for dev)
```bash
rm -rfv ~/.profile ~/.bashrc ~/Library/Homebrew ~/Library/bashrc.d ~/Library/profile.d ~/Library/user-setup $TMPDIR/osx
```

View File

@ -0,0 +1 @@
export BASH_SILENCE_DEPRECATION_WARNING=1

View File

@ -0,0 +1,3 @@
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
. $HOME/.nix-profile/etc/profile.d/nix.sh;
fi

View File

@ -0,0 +1,4 @@
if [[ -d $HOME/Library/Homebrew ]]; then
export PATH="$PATH:$HOME/Library/Homebrew/bin"
fi

View File

@ -1 +0,0 @@
export HOMEBREW_CASK_OPTS="--appdir=$HOME/Applications"

View File

@ -0,0 +1,10 @@
export DO_NOT_TRACK=1
# the rest
export HOMEBREW_NO_ANALYTICS=1
export GATSBY_TELEMETRY_DISABLED=1
export STNOUPGRADE=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export SAM_CLI_TELEMETRY=0
export AZURE_CORE_COLLECT_TELEMETRY=0

View File

@ -1 +0,0 @@
export HOMEBREW_NO_ANALYTICS=1

View File

@ -1,2 +0,0 @@
export PATH="$HOME/Library/Homebrew/sbin:$PATH"
export PATH="$HOME/Library/Homebrew/bin:$PATH"

View File

@ -1 +0,0 @@
export LDFLAGS="$LDFLAGS -I$(brew --prefix)/opt/openssl/include -L$(brew --prefix)/opt/openssl/lib"

View File

@ -1,4 +0,0 @@
if [[ -e "$HOME/Library/Homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk" ]]; then
source "$HOME/Library/Homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
source "$HOME/Library/Homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"
fi

View File

@ -13,7 +13,7 @@ if [[ ! -e $HOME/.gpg-agent-info ]]; then
gpg-agent \
--enable-ssh-support \
--daemon \
--pinentry-program $(brew --prefix)/bin/pinentry-mac \
--pinentry-program $HOME/.nix-profile/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac \
2> /dev/null > $HOME/.gpg-agent-info
fi
fi

View File

@ -1,3 +1,5 @@
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
if which brew 2>&1 >/dev/null ; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
source $(brew --prefix)/etc/bash_completion
fi
fi

View File

@ -0,0 +1,5 @@
#!/bin/sh
xcode-select --license accept
xcode-select --install
xcode-select --license accept

View File

@ -1,8 +1,15 @@
#!/bin/bash
############################################# install homebrew under homedir
# reminder: homebrew is *spyware*. using it in the default configuration is
# *unsafe*. other scripts elsewhere set HOMEBREW_NO_ANALYTICS to disable
# its spying; do not use this file in isolation.
if [[ ! -d ~/Library/Homebrew ]]; then
mkdir -p ~/Library/Homebrew
cd ~/Library/Homebrew
curl -fsSL https://github.com/Homebrew/brew/tarball/master | \
tar --strip-components 1 -xvf -
fi
~/Library/Homebrew/bin/brew analytics off

View File

@ -1,4 +1,6 @@
# adds homebrew python packages dir to python paths
if [[ -d "$HOME/Library/Python/2.7/lib/python/site-packages/" ]]; then
echo "import site; site.addsitedir(\"$HOME/Library/Homebrew/lib/python2.7/site-packages\")" >> \
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
fi

View File

@ -0,0 +1,4 @@
#!/bin/bash
# a small vote for the status quo, or perhaps just a vote against the cost of change vs the zero benefit
git config --global init.defaultBranch master

View File

@ -1,7 +1,12 @@
#!/bin/bash
# set up paths and whatnot
# set up paths and whatnot and ensure homebrew's spyware is disabled
source $HOME/.profile
export HOMEBREW_NO_ANALYTICS=1
# this shouldn't be needed but it is
export PATH="$PATH:$HOME/Library/Homebrew/bin"
# per default settings apps are installed in homedir
if [[ ! -d ~/Applications ]]; then
@ -9,49 +14,36 @@ if [[ ! -d ~/Applications ]]; then
fi
# install caskroom
brew tap caskroom/cask
brew tap homebrew/cask
# the following is required for fetching some of the fonts
brew install --build-from-source svn
# no google-drive-file-stream because it requires admin privs and installs to /Applications systemwide
CASKS="
1password
1password-cli
ableton-live-suite
anki
alacritty
atom
dashlane
bitwarden
deluge
disk-inventory-x
expandrive
google-chrome
google-cloud-sdk
handbrake
eloston-chromium
homebrew/cask/handbrake
iterm2
keepassx
keybase
lastpass
little-snitch
minikube
openscad
sketch
slack
spotify
sublime-text
syncthing-app
signal
homebrew/cask/syncthing
tor-browser
vcv-rack
vlc
wasabi-wallet
xscreensaver
"
for CASK in $CASKS ; do
brew cask install $CASK
brew install --appdir="$HOME/Applications" $CASK
done
brew tap caskroom/fonts
brew tap homebrew/cask-fonts
FONTS="
font-anonymice-powerline
font-consolas-for-powerline
font-dejavu-sans-mono-for-powerline
font-droid-sans-mono-for-powerline
@ -70,5 +62,5 @@ FONTS="
"
for FONT in $FONTS ; do
brew cask install $FONT
brew install $FONT
done

View File

@ -1,19 +1,32 @@
#!/bin/bash
# set up paths and whatnot
source $HOME/.profile
# reminder: homebrew is *spyware*. if you don't do this, it won't
# set HOMEBREW_NO_ANALYTICS and it will silently spy on you when you use it.
# this should happen in the .profile but let's do it again here to be certain:
source $HOME/.bashrc
export HOMEBREW_NO_ANALYTICS=1
# this shouldn't be needed but it is
export PATH="$PATH:$HOME/Library/Homebrew/bin"
# Homebrew's package database is on GitHub. The hashes to verify the
# authenticity of the source archive downloads are in the package database.
# Microsoft, a large US military contractor with long ties to illegal NSA spying
# programs, bought GitHub and can exercise control over them.
# What this means is that a large US military contractor has control over the
# precise software that gets installed on your computer when you
# type "brew install x". Cool, huh?
HOMEBREW_PKGS="
asciinema
autoconf
automake
bash-completion
bash-git-prompt
bonnie++
bwm-ng
byobu
cksfv
cmake
corelocationcli
coreutils
curl
daemontools
@ -30,9 +43,6 @@ HOMEBREW_PKGS="
gnupg
gnupg2
go
gpg-agent
graphviz
heroku
homebrew/dupes/rsync
httpie
httrack
@ -45,25 +55,21 @@ HOMEBREW_PKGS="
mutt
neovim
nmap
node
offlineimap
p7zip
par2
pbzip2
pgpdump
pinentry-mac
postgres
protobuf
pv
pwgen
python3
rust
rename
socat
sox
speedtest_cli
syncthing
tcptraceroute
terraform
tor
torsocks
trash
@ -76,5 +82,5 @@ HOMEBREW_PKGS="
"
for PKG in $HOMEBREW_PKGS ; do
brew install $PKG
brew install --build-from-source $PKG
done

View File

@ -6,6 +6,11 @@ PYTHON_PKGS="
virtualenv
"
# first, upgrade pip:
/usr/bin/pip3 install --upgrade --user pip
for PKG in $PYTHON_PKGS ; do
/usr/local/bin/pip install --user $PKG
/usr/bin/pip3 install --user $PKG
done

View File

@ -1,23 +0,0 @@
#!/bin/bash
# set up paths and whatnot
source $HOME/.profile
NPM_PKGS="
coffee-script
yarn
"
for PKG in $NPM_PKGS ; do
# -g is okay because "global" prefix is where homebrew
# installed npm, i.e. in ~/Library/Homebrew, not actually systemwide
npm install -g $PKG
done
YARN_PKGS="
now
"
for PKG in $YARN_PKGS ; do
yarn global add $PKG
done

View File

@ -0,0 +1,13 @@
#!/bin/bash
# set up paths and whatnot
source $HOME/.profile
YARN_PKGS="
now
prettier
"
for PKG in $YARN_PKGS ; do
yarn global add $PKG
done

View File

@ -1,5 +0,0 @@
#!/bin/bash
# setup google drive as synceddir in ~/.paths
if [[ ! -e ~/.paths/synceddir ]]; then
ln -s ~/Google\ Drive\ File\ Stream/My\ Drive ~/.paths/synceddir
fi

View File

@ -0,0 +1,5 @@
#!/bin/bash
if command -v gcloud >/dev/null 2>&1 >/dev/null ; then
gcloud config set disable_usage_reporting true >/dev/null 2>&1
fi

View File

@ -2,26 +2,39 @@
function run_install {
sudo pmset -g
sudo pmset -a disablesleep 1
mkdir -p $HOME/Library/Caches/Homebrew
rm -rf $HOME/Library/Caches/Homebrew/*
REPO="https://github.com/sneak/osximage.git"
DEST="$TMPDIR/osximage"
REPO="https://git.eeqj.de/sneak/osx.git"
DEST="$TMPDIR/osx"
if [[ ! -d "$DEST" ]]; then
git clone "$REPO" "$DEST"
else
cd "$DEST" && git pull && cd -
fi
rsync -avP "$DEST/custompkg/root/etc/skel/" "$HOME/"
mkdir -p $HOME/Library/bashrc.d
mkdir -p $HOME/Library/profile.d
touch $HOME/Library/bashrc.d/000keep.sh
touch $HOME/Library/profile.d/000keep.sh
# FIXME move this into the modular setup scripts
mkdir -p "$HOME/Library/Desktop Pictures"
rsync -avP $TMPDIR/osx/custompkg/root/Library/Desktop?Pictures/ $HOME/Library/Desktop?Pictures/
defaults write \
~/Library/Preferences/com.apple.systempreferences DSKDesktopPrefPane \
'<dict><key>UserFolderPaths</key><array><string>/Users/user/Library/Desktop Pictures</string></array></dict>'
# run modular setup scripts
for FN in $HOME/Library/user-setup/*.sh ; do
echo "new-user-setup: starting $(basename $FN)..."
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
for FN in "$HOME/Library/user-setup/"*.sh ; do
echo "new-user-setup: starting $(basename "$FN")..."
# we used to run these in a subshell but not we don't because we want the environment to persist between
source "$FN"
rm "$FN"
echo "new-user-setup: removed $(basename $FN)..."
done
sudo pmset -a disablesleep 0
}
run_install