Skip to content

Commit b76b89b

Browse files
authored
Add TrueNAS 25.04
1 parent 19dd613 commit b76b89b

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

TrueNAS-25.04.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)