Skip to content

Commit b4dd4c1

Browse files
committed
Start at HavocAI
1 parent 9fa766f commit b4dd4c1

File tree

8 files changed

+209
-122
lines changed

8 files changed

+209
-122
lines changed

home/dot-exports

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ if [[ "$unamestr" == 'Darwin' ]]; then
1818
fi
1919

2020
path+=($HOME/.local/bin $HOME/.npm-global/bin $HOME/.rvm/bin $path)
21+
[ $(which go) != "" ] && path+=$(go env GOPATH)/bin
22+
[ -d $HOME/.local/balena ] && path+=$HOME/.local/balena/bin
2123
export PATH
2224
export ROS_DOMAIN_ID="3"
2325
export GPG_TTY=$(tty)

home/dot-gitconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[user]
22
name = Erich L Foster
33
4-
# signingkey = 08A7E764EC1713A9
4+
signingkey = 08A7E764EC1713A9
5+
[includeIf "gitdir:~/workspace/HavocAI/"] # job needs, like workspace/* so all included projects
6+
path = .gitconfig-havoc
57
[core]
68
editor = nvim
79
autocrlf = input

home/dot-gitconfig-havoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[user]
2+
name = Erich L Foster
3+
4+
signingkey = 0541CB2AB0E97F1D
5+
[core]
6+
sshCommand = ssh -i ~/.ssh/id_ed25519-havoc
7+

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ case "$kernel" in
1616
./scripts/main.sh
1717
fi
1818
;;
19-
*"MANJARO"* )
19+
*"generic"* )
2020
if [[ $DEV_WORKSPACE != "" ]]; then
2121
./scripts/devcontainer.sh
2222
else

scripts/base_install.sh

Lines changed: 66 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,74 @@
11
function base_install() {
2-
echo "Setting up yay..."
3-
[ ! -d /tmp/yay ] && git clone https://aur.archlinux.org/yay.git /tmp/yay
4-
cd /tmp/yay
5-
makepkg -si --noconfirm
6-
cd -
7-
8-
echo "Setting up shell..."
9-
pac_install \
2+
local system="$1"
3+
4+
if [[ "$system" == "arch" ]]; then
5+
INFO "Setting up an arch based system"
6+
if [ $(which yay) == "" ]; then
7+
INFO "Setting up yay..."
8+
[ ! -d /tmp/yay ] && git clone https://aur.archlinux.org/yay.git /tmp/yay
9+
cd /tmp/yay
10+
makepkg -si --noconfirm
11+
cd -
12+
else
13+
INFO "yay already installed"
14+
fi
15+
16+
pkg_install="pac_install"
17+
alt_install="yay_install"
18+
NEOVIM="neovim"
19+
GO="go"
20+
else
21+
INFO "Setting up an ubuntu based system"
22+
23+
pkg_install="apt_install"
24+
alt_install="snap_install"
25+
NEOVIM="nvim --classic"
26+
GO="go --classic"
27+
fi
28+
29+
INFO "Setting up shell..."
30+
$pkg_install \
1031
btop \
1132
curl \
1233
fzf \
1334
iftop \
1435
pass \
15-
python \
16-
python-pip \
36+
python3 \
37+
python3-pip \
1738
tmux \
1839
wget
1940

41+
# install fonts
42+
mkdir -p "$HOME/.local/bin"
43+
curl -fsSL https://raw.githubusercontent.com/getnf/getnf/main/install.sh | bash
44+
"$HOME/.local/bin/getnf" -i DejaVuSansMono,DroidSansMono,Hack,Recursive,RobotoMono | true # don't fail on fonts
45+
2046
zsh_extras
2147

2248
starship_install
2349

2450
lazygit_install
2551

26-
echo "Setting up networking..."
27-
pac_install \
28-
openssh
29-
30-
echo "Installing developer tools..."
52+
INFO "Installing developer tools..."
3153
if [ ! -d "$HOME/workspace" ]; then
3254
mkdir -p "$HOME/workspace"
3355
fi
3456

35-
pac_install \
57+
$pkg_install \
3658
cmake \
3759
gcc \
3860
llvm \
39-
python-setuptools
40-
41-
yay_install \
42-
dust \
43-
git-completion \
44-
lazydocker
45-
46-
echo "Installing NEOVIM..."
47-
pac_install \
48-
chafa \
49-
git-lfs \
50-
go \
51-
neovim \
61+
python3-setuptools
62+
63+
INFO "Installing NEOVIM..."
64+
rust_install
65+
$alt_install $GO
66+
$alt_install $NEOVIM
67+
68+
$pkg_install \
5269
nodejs \
5370
npm \
54-
python-debugpy \
55-
python-gitpython \
56-
python-pynvim \
57-
python-ply \
58-
python-ruff \
59-
python-virtualenv \
60-
python-yaml \
61-
rust \
71+
python3-virtualenv \
6272
xclip
6373

6474
mkdir -p "$HOME/.npm-global"
@@ -68,13 +78,27 @@ function base_install() {
6878

6979
npm install -g @devcontainers/cli
7080

71-
echo "Setting up docker..."
72-
pac_install \
81+
INFO "Setting up docker..."
82+
$pkg_install \
7383
ca-certificates \
74-
containerd \
75-
docker \
76-
docker-compose \
7784
gnupg
85+
if [ $system == "arch" ]; then
86+
DOCKER_PACKAGES="containerd docker docker-compose"
87+
else
88+
$pkg_install \
89+
apt-transport-https \
90+
ca-certificates \
91+
curl \
92+
software-properties-common
93+
94+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
95+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
96+
97+
apt_update
98+
DOCKER_PACKAGES="containerd.io docker-ce docker-ce-cli docker-buildx-plugin docker-compose-plugin"
99+
fi
100+
101+
$pkg_install $DOCKER_PACKAGES
78102

79103
sudo usermod -a -G docker "$USER"
80104
if [ ! "$CI" ]; then

0 commit comments

Comments
 (0)