forked from GreengageDB/greengage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Ubuntu.bash
More file actions
executable file
·85 lines (79 loc) · 1.38 KB
/
README.Ubuntu.bash
File metadata and controls
executable file
·85 lines (79 loc) · 1.38 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y \
bison \
ccache \
clang \
cmake \
curl \
fakeroot \
flex \
g++ \
gcc \
git-core \
inetutils-ping \
iproute2 \
krb5-admin-server \
krb5-kdc \
libapr1-dev \
libbz2-dev \
libcurl4-gnutls-dev \
libevent-dev \
libipc-run-perl \
libkrb5-dev \
libldap-common \
libldap-dev \
libpam-dev \
libperl-dev \
libreadline-dev \
libssl-dev \
libuv1-dev \
libxerces-c-dev \
libxml2-dev \
libyaml-dev \
libzstd-dev \
llvm \
locales \
lsof \
net-tools \
ninja-build \
openssh-client \
openssh-server \
openssl \
pkg-config \
protobuf-compiler \
python3.11 \
python3.11-dev \
python3-dev \
python3-pip \
python3-psutil \
python3-psycopg2 \
python3-yaml \
rsync \
sudo \
zlib1g-dev
tee -a /etc/sysctl.conf << EOF
kernel.shmmax = 5000000000000
kernel.shmmni = 32768
kernel.shmall = 40000000000
kernel.sem = 1000 32768000 1000 32768
kernel.msgmnb = 1048576
kernel.msgmax = 1048576
kernel.msgmni = 32768
net.core.netdev_max_backlog = 80000
net.core.rmem_default = 2097152
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
vm.overcommit_memory = 2
vm.overcommit_ratio = 95
EOF
sysctl -p
mkdir -p /etc/security/limits.d
tee -a /etc/security/limits.d/90-greengage.conf << EOF
* soft nofile 1048576
* hard nofile 1048576
* soft nproc 1048576
* hard nproc 1048576
EOF
ulimit -n 65536 65536