Compare commits
78 Commits
Author | SHA1 | Date |
---|---|---|
|
a179f412e5 | |
|
f576c09404 | |
|
964e6b714a | |
|
05c7ca20e3 | |
|
b99bf6fa40 | |
|
d03c1e4b86 | |
|
e43128be70 | |
|
559d0ed93b | |
|
c9c42cbec7 | |
|
8c9fc1e828 | |
|
40e9661f33 | |
|
4dc78f5a84 | |
|
f672bb4ce8 | |
|
f3b239f28a | |
|
c798cc2063 | |
|
2d76033a1e | |
|
d969f2dd99 | |
|
269986ae8b | |
|
68406c599a | |
|
07ba7eacb6 | |
|
b285f38663 | |
|
9fa18464a1 | |
|
5c49c3494b | |
|
bbb0814360 | |
|
abfc7dd910 | |
|
9005f09844 | |
|
0d53d60bec | |
|
effff83698 | |
|
fe430b04b6 | |
|
fbf6534f41 | |
|
fd2eb9f84b | |
|
14ca9e8697 | |
|
2725748e47 | |
|
9eb7da018e | |
|
7ee336145b | |
|
8bb822e4ba | |
|
9fb45b2621 | |
|
80ae2bea99 | |
|
c17f016d68 | |
|
3eee519599 | |
|
6184ab9ed9 | |
|
3e572538aa | |
|
cdee7c1bbd | |
|
9d4d3eddc9 | |
|
cab46cb713 | |
|
b5f6af389a | |
|
c12f7f51cf | |
|
82d0208136 | |
|
0dd7b1a516 | |
|
e74145c18c | |
|
4b6f5281cb | |
|
b7f49d9c0f | |
|
0094c63145 | |
|
06bb74ebd9 | |
|
092364df23 | |
|
d36541baad | |
|
4ad2ee9e71 | |
|
844e233c90 | |
|
61f72b9944 | |
|
9e656b775f | |
|
df79a49e87 | |
|
6e0149adc5 | |
|
6ca8acfdd2 | |
|
e4be87da13 | |
|
b331f675a7 | |
|
b59eda1058 | |
|
dfbb150332 | |
|
b11899c17a | |
|
d287946335 | |
|
4e603fb312 | |
|
c3315b88b9 | |
|
bf698eb2b9 | |
|
2d1b600b8d | |
|
66dee78df1 | |
|
77018df61d | |
|
94fac4b6ec | |
|
ad660d4518 | |
|
bb0e350297 |
|
@ -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.
|
manually, then do the following.
|
||||||
|
|
||||||
# Manual Steps
|
# Manual Prerequisite Steps
|
||||||
|
|
||||||
Open System Preferences.
|
Open System Preferences.
|
||||||
|
|
||||||
* Sharing > Set Hostname
|
* Sharing > Set Hostname
|
||||||
|
* Security and Privacy > FileVault > Enable
|
||||||
|
|
||||||
Open a terminal and run the following:
|
Open a terminal and run the following:
|
||||||
|
|
||||||
* `sudo xcodebuild -license accept`
|
* `chsh -s /bin/bash` and enter password
|
||||||
* `bash <(curl -s https://github.com/sneak/osximage/FIXME)`
|
* `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
|
||||||
|
```
|
|
@ -0,0 +1 @@
|
||||||
|
export BASH_SILENCE_DEPRECATION_WARNING=1
|
|
@ -0,0 +1,3 @@
|
||||||
|
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||||
|
. $HOME/.nix-profile/etc/profile.d/nix.sh;
|
||||||
|
fi
|
|
@ -0,0 +1,4 @@
|
||||||
|
if [[ -d $HOME/Library/Homebrew ]]; then
|
||||||
|
export PATH="$PATH:$HOME/Library/Homebrew/bin"
|
||||||
|
fi
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
export HOMEBREW_CASK_OPTS="--appdir=$HOME/Applications"
|
|
|
@ -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
|
|
@ -1 +0,0 @@
|
||||||
export HOMEBREW_NO_ANALYTICS=1
|
|
|
@ -1,2 +0,0 @@
|
||||||
export PATH="$HOME/Library/Homebrew/sbin:$PATH"
|
|
||||||
export PATH="$HOME/Library/Homebrew/bin:$PATH"
|
|
|
@ -1 +0,0 @@
|
||||||
export LDFLAGS="$LDFLAGS -I$(brew --prefix)/opt/openssl/include -L$(brew --prefix)/opt/openssl/lib"
|
|
|
@ -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
|
|
|
@ -13,7 +13,7 @@ if [[ ! -e $HOME/.gpg-agent-info ]]; then
|
||||||
gpg-agent \
|
gpg-agent \
|
||||||
--enable-ssh-support \
|
--enable-ssh-support \
|
||||||
--daemon \
|
--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
|
2> /dev/null > $HOME/.gpg-agent-info
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
if which brew 2>&1 >/dev/null ; then
|
||||||
if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
||||||
source $(brew --prefix)/etc/bash_completion
|
source $(brew --prefix)/etc/bash_completion
|
||||||
fi
|
fi
|
||||||
|
fi
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
xcode-select --license accept
|
||||||
|
xcode-select --install
|
||||||
|
xcode-select --license accept
|
|
@ -1,8 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
############################################# install homebrew under homedir
|
############################################# 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
|
if [[ ! -d ~/Library/Homebrew ]]; then
|
||||||
mkdir -p ~/Library/Homebrew
|
mkdir -p ~/Library/Homebrew
|
||||||
cd ~/Library/Homebrew
|
cd ~/Library/Homebrew
|
||||||
curl -fsSL https://github.com/Homebrew/brew/tarball/master | \
|
curl -fsSL https://github.com/Homebrew/brew/tarball/master | \
|
||||||
tar --strip-components 1 -xvf -
|
tar --strip-components 1 -xvf -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
~/Library/Homebrew/bin/brew analytics off
|
|
@ -1,4 +1,6 @@
|
||||||
# adds homebrew python packages dir to python paths
|
# 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\")" >> \
|
echo "import site; site.addsitedir(\"$HOME/Library/Homebrew/lib/python2.7/site-packages\")" >> \
|
||||||
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
$HOME/Library/Python/2.7/lib/python/site-packages/homebrew.pth
|
||||||
|
fi
|
||||||
|
|
|
@ -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
|
46
custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh
Executable file → Normal file
46
custompkg/root/etc/skel/Library/user-setup/100.install-caskroom-apps.sh
Executable file → Normal file
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# set up paths and whatnot
|
# set up paths and whatnot and ensure homebrew's spyware is disabled
|
||||||
source $HOME/.profile
|
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
|
# per default settings apps are installed in homedir
|
||||||
if [[ ! -d ~/Applications ]]; then
|
if [[ ! -d ~/Applications ]]; then
|
||||||
|
@ -9,49 +14,36 @@ if [[ ! -d ~/Applications ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install caskroom
|
# 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
|
# no google-drive-file-stream because it requires admin privs and installs to /Applications systemwide
|
||||||
CASKS="
|
CASKS="
|
||||||
1password
|
alacritty
|
||||||
1password-cli
|
|
||||||
ableton-live-suite
|
|
||||||
anki
|
|
||||||
atom
|
atom
|
||||||
dashlane
|
bitwarden
|
||||||
deluge
|
deluge
|
||||||
disk-inventory-x
|
disk-inventory-x
|
||||||
expandrive
|
eloston-chromium
|
||||||
google-chrome
|
homebrew/cask/handbrake
|
||||||
google-cloud-sdk
|
|
||||||
handbrake
|
|
||||||
iterm2
|
iterm2
|
||||||
keepassx
|
signal
|
||||||
keybase
|
homebrew/cask/syncthing
|
||||||
lastpass
|
|
||||||
little-snitch
|
|
||||||
minikube
|
|
||||||
openscad
|
|
||||||
sketch
|
|
||||||
slack
|
|
||||||
spotify
|
|
||||||
sublime-text
|
|
||||||
syncthing-app
|
|
||||||
tor-browser
|
tor-browser
|
||||||
vcv-rack
|
|
||||||
vlc
|
vlc
|
||||||
wasabi-wallet
|
wasabi-wallet
|
||||||
xscreensaver
|
xscreensaver
|
||||||
"
|
"
|
||||||
|
|
||||||
for CASK in $CASKS ; do
|
for CASK in $CASKS ; do
|
||||||
brew cask install $CASK
|
brew install --appdir="$HOME/Applications" $CASK
|
||||||
done
|
done
|
||||||
|
|
||||||
brew tap caskroom/fonts
|
brew tap homebrew/cask-fonts
|
||||||
|
|
||||||
FONTS="
|
FONTS="
|
||||||
font-anonymice-powerline
|
|
||||||
font-consolas-for-powerline
|
font-consolas-for-powerline
|
||||||
font-dejavu-sans-mono-for-powerline
|
font-dejavu-sans-mono-for-powerline
|
||||||
font-droid-sans-mono-for-powerline
|
font-droid-sans-mono-for-powerline
|
||||||
|
@ -70,5 +62,5 @@ FONTS="
|
||||||
"
|
"
|
||||||
|
|
||||||
for FONT in $FONTS ; do
|
for FONT in $FONTS ; do
|
||||||
brew cask install $FONT
|
brew install $FONT
|
||||||
done
|
done
|
||||||
|
|
34
custompkg/root/etc/skel/Library/user-setup/100.install-homebrew-apps.sh
Executable file → Normal file
34
custompkg/root/etc/skel/Library/user-setup/100.install-homebrew-apps.sh
Executable file → Normal file
|
@ -1,19 +1,32 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# set up paths and whatnot
|
# reminder: homebrew is *spyware*. if you don't do this, it won't
|
||||||
source $HOME/.profile
|
# 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="
|
HOMEBREW_PKGS="
|
||||||
asciinema
|
asciinema
|
||||||
autoconf
|
autoconf
|
||||||
automake
|
automake
|
||||||
bash-completion
|
|
||||||
bash-git-prompt
|
|
||||||
bonnie++
|
bonnie++
|
||||||
bwm-ng
|
bwm-ng
|
||||||
byobu
|
byobu
|
||||||
|
cksfv
|
||||||
cmake
|
cmake
|
||||||
corelocationcli
|
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
daemontools
|
daemontools
|
||||||
|
@ -30,9 +43,6 @@ HOMEBREW_PKGS="
|
||||||
gnupg
|
gnupg
|
||||||
gnupg2
|
gnupg2
|
||||||
go
|
go
|
||||||
gpg-agent
|
|
||||||
graphviz
|
|
||||||
heroku
|
|
||||||
homebrew/dupes/rsync
|
homebrew/dupes/rsync
|
||||||
httpie
|
httpie
|
||||||
httrack
|
httrack
|
||||||
|
@ -45,25 +55,21 @@ HOMEBREW_PKGS="
|
||||||
mutt
|
mutt
|
||||||
neovim
|
neovim
|
||||||
nmap
|
nmap
|
||||||
node
|
|
||||||
offlineimap
|
offlineimap
|
||||||
p7zip
|
p7zip
|
||||||
par2
|
par2
|
||||||
pbzip2
|
pbzip2
|
||||||
pgpdump
|
pgpdump
|
||||||
pinentry-mac
|
pinentry-mac
|
||||||
postgres
|
|
||||||
protobuf
|
protobuf
|
||||||
pv
|
pv
|
||||||
pwgen
|
pwgen
|
||||||
python3
|
python3
|
||||||
rust
|
rename
|
||||||
socat
|
socat
|
||||||
sox
|
sox
|
||||||
speedtest_cli
|
speedtest_cli
|
||||||
syncthing
|
|
||||||
tcptraceroute
|
tcptraceroute
|
||||||
terraform
|
|
||||||
tor
|
tor
|
||||||
torsocks
|
torsocks
|
||||||
trash
|
trash
|
||||||
|
@ -76,5 +82,5 @@ HOMEBREW_PKGS="
|
||||||
"
|
"
|
||||||
|
|
||||||
for PKG in $HOMEBREW_PKGS ; do
|
for PKG in $HOMEBREW_PKGS ; do
|
||||||
brew install $PKG
|
brew install --build-from-source $PKG
|
||||||
done
|
done
|
||||||
|
|
|
@ -6,6 +6,11 @@ PYTHON_PKGS="
|
||||||
virtualenv
|
virtualenv
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
|
# first, upgrade pip:
|
||||||
|
|
||||||
|
/usr/bin/pip3 install --upgrade --user pip
|
||||||
|
|
||||||
for PKG in $PYTHON_PKGS ; do
|
for PKG in $PYTHON_PKGS ; do
|
||||||
/usr/local/bin/pip install --user $PKG
|
/usr/bin/pip3 install --user $PKG
|
||||||
done
|
done
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
@ -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
|
|
|
@ -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
|
29
install.sh
29
install.sh
|
@ -2,26 +2,39 @@
|
||||||
|
|
||||||
function run_install {
|
function run_install {
|
||||||
|
|
||||||
sudo pmset -g
|
mkdir -p $HOME/Library/Caches/Homebrew
|
||||||
sudo pmset -a disablesleep 1
|
rm -rf $HOME/Library/Caches/Homebrew/*
|
||||||
|
|
||||||
REPO="https://github.com/sneak/osximage.git"
|
REPO="https://git.eeqj.de/sneak/osx.git"
|
||||||
DEST="$TMPDIR/osximage"
|
DEST="$TMPDIR/osx"
|
||||||
|
|
||||||
if [[ ! -d "$DEST" ]]; then
|
if [[ ! -d "$DEST" ]]; then
|
||||||
git clone "$REPO" "$DEST"
|
git clone "$REPO" "$DEST"
|
||||||
|
else
|
||||||
|
cd "$DEST" && git pull && cd -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rsync -avP "$DEST/custompkg/root/etc/skel/" "$HOME/"
|
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
|
# run modular setup scripts
|
||||||
for FN in $HOME/Library/user-setup/*.sh ; do
|
for FN in "$HOME/Library/user-setup/"*.sh ; do
|
||||||
echo "new-user-setup: starting $(basename $FN)..."
|
echo "new-user-setup: starting $(basename "$FN")..."
|
||||||
bash "$FN" 2>&1 | tee -a $HOME/Library/Logs/user-setup.log
|
# 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"
|
rm "$FN"
|
||||||
echo "new-user-setup: removed $(basename $FN)..."
|
echo "new-user-setup: removed $(basename $FN)..."
|
||||||
done
|
done
|
||||||
sudo pmset -a disablesleep 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_install
|
run_install
|
||||||
|
|
Loading…
Reference in New Issue