-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdump.sh
More file actions
65 lines (51 loc) · 1.72 KB
/
dump.sh
File metadata and controls
65 lines (51 loc) · 1.72 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
59
60
61
62
63
64
65
#!/usr/bin/env bash
clear
echo "INSTALLING TOOLS AND PACKAGES FOR EPITECH'S DUMP"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
cat /etc/issue | ( grep "Ubuntu 24.04" ) > /dev/null
if [[ $? -ne 0 ]]; then
echo "This script must be run onto an Ubuntu 24.04";
exit 1
fi
###################
## Cache usage only for PXE
## Install netcat to prepare cache usage
#apt update
#apt install -y netcat-openbsd
#
## Install proxy detection
#echo '#!/bin/bash
#proxy=192.168.42.1
#nc -zw1 $proxy 3142 && echo http://$proxy:3142/ || echo DIRECT
#' > /etc/apt/detect_proxy.sh
#
#chmod +x /etc/apt/detect_proxy.sh
#
#echo 'Acquire::http::Proxy-Auto-Detect "/etc/apt/detect_proxy.sh";' > "/etc/apt/apt.conf.d/01acng"
#
##################
# Add epitech ppa repository
add-apt-repository -y -s ppa:epitech/ppa
# Enable universe
add-apt-repository -y -s universe
# Reload package cache
apt update
# Install
echo "postfix postfix/mailname string epitech.eu" | debconf-set-selections
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
export DEBIAN_FRONTEND=noninteractive
## clang-20
apt install -y wget
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/llvm.asc
echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/llvm.asc] https://apt.llvm.org/noble/ llvm-toolchain-noble-20 main" | tee /etc/apt/sources.list.d/llvm.list
apt update
apt install -y clang-20
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-20 100 && update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-20 100
apt install -y epitech-cpool
apt install -y epitech-emacs
apt install -y epitech-vim
apt purge -y postfix
snap install teams-for-linux