-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTips
More file actions
90 lines (71 loc) · 2.22 KB
/
Copy pathTips
File metadata and controls
90 lines (71 loc) · 2.22 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
86
87
88
89
90
# Docker compose update images
docker compose pull
docker compose up -d --remove-orphans
docker image prune
docker compose --env-file ../global.env up -d
systemctl stop docker
touch /etc/docker/daemon.json
nano /etc/docker/daemon.json
{
"data-root": "/mnt/new"
}
systemctl start docker
###
#
hostname -I
ncdu
apt install nano
apt install network-manager
# Disable CTRL+ALT+SUPPR reboot
sudo systemctl mask ctrl-alt-del.target
sudo systemctl daemon-reload
#1 - install ubuntu
apt update
apt upgrade
apt autoremove
#2 - remove cloud-init
apt purge cloud-init -y
rm -rf /etc/cloud && sudo rm -rf /var/lib/cloud/
reboot now
#3 - install cockpit
apt install cockpit
#4 - systemctl enable NetworkManager --now
#5 - systemctl disable systemd-networkd.socket --now
#6 - systemctl disable systemd-networkd --now
#7 - nano /etc/netplan/*.yaml
network:
version: 2
renderer: NetworkManager
netplan generate
netplan apply
systemctl enable NetworkManager.service
systemctl restart NetworkManager.service
# Cockipt Navigator plugin
https://github.com/45Drives/cockpit-navigator#manually
# Cockpit Docker plugin
sudo apt install -y nodejs gettext make
wget https://github.com/chabad360/cockpit-docker/releases/download/16/cockpit-docker-16.tar.xz
tar xvf cockpit-docker-16.tar.xz
cd cockpit-docker
export NODE_ENV=production
sudo make install PREFIX="/usr"
sudo systemctl restart cockpit.{socket,service}
# Cockpit.conf
[WebService]
LoginTitle=Benjy Home Server
LoginTo=false
AllowUnencrypted=true
[Session]
IdleTimeout=0
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
# SWAP
Turn off all running swap processes: swapoff -a
Resize swap fallocate -l 1G /swapfile (change 1G to the gigabyte size you want it to be)
CHMOD swap: chmod 600 /swapfile
Make file usable as swap mkswap /swapfile
Active the swap file swapon /swapfile
free -m
#Certificate local
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout smtp.key -out smtp.crt -subj "/CN=smtp" -addext "subjectAltName=DNS:smtp,DNS:localhost"
ppenssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout ldap.key -out ldap.crt -subj "/CN=ldap" -addext "subjectAltName=IP:192.168.1.17,DNS:ldap,DNS:localhost" -addext "extendedKeyUsage=serverAuth" -addext "keyUsage=critical,keyCertSign"