File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Copyright (C) 2025 Thien Tran
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+ # use this file except in compliance with the License. You may obtain a copy of
7+ # the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+ # License for the specific language governing permissions and limitations under
15+ # the License.
16+
17+ # You need to add either the non-subscription repo or the testing repo from the Proxmox WebUI after running this script.
18+
19+ output (){
20+ printf ' \e[1;34m%-6s\e[m\n' " ${@ } "
21+ }
22+
23+ unpriv (){
24+ sudo -u nobody " $@ "
25+ }
26+
27+ # Setup NTS
28+ unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/refs/heads/main/etc/chrony/conf.d/10-custom.conf | tee /etc/chrony/conf.d/10-custom.conf > /dev/null
29+ systemctl restart chronyd
30+
31+ # Configure sysctl
32+ unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | tee /etc/sysctl.d/tuneables.conf > /dev/null
33+ sysctl -p
You can’t perform that action at this time.
0 commit comments