-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-shared.sh
More file actions
58 lines (44 loc) · 1.28 KB
/
build-shared.sh
File metadata and controls
58 lines (44 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
set -ouex pipefail
RELEASE="$(rpm -E %fedora)"
dnf5 install \
--enable-repo="copr:copr.fedorainfracloud.org:ublue-os:packages" -y \
ublue-setup-services
# Install docker
dnf5 -y install docker-ce \
docker-ce-cli \
docker-buildx-plugin \
docker-compose-plugin \
containerd.io
# Install zsh and utilites for it
dnf5 -y install zsh \
zsh-autosuggestions
# Install flatpak builder
dnf5 -y install flatpak-builder
# Install Inter font
dnf5 -y install rsms-inter-fonts
# Install goverlay
dnf5 -y install goverlay
# Install VS Code
dnf5 -y install code
# Install useful CLI tools
dnf5 -y install telnet
# Install darkly and klassy
dnf5 -y install darkly klassy
# Enable services
systemctl enable docker.socket
systemctl enable podman.socket
systemctl enable ublue-system-setup.service
systemctl --global enable ublue-user-setup.service
# Install ZSH configuration
cd /usr/share
git clone https://github.com/fat0troll/zsh-config.git
cd zsh-config
git checkout hdkv/ublue-hdkv
# Load iptable_nat module for docker-in-docker.
# See:
# - https://github.com/ublue-os/bluefin/issues/2365
# - https://github.com/devcontainers/features/issues/1235
mkdir -p /etc/modules-load.d && cat >>/etc/modules-load.d/ip_tables.conf <<EOF
iptable_nat
EOF