Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ To get a local copy up and running follow these simple example steps.
```
* Ubuntu Install
```sh
Ubuntu 20.04 LTS
Ubuntu 24.04 LTS
```
* Putty 64bit for Windows User
```sh
Expand Down Expand Up @@ -144,7 +144,7 @@ To get a local copy up and running follow these simple example steps.
1. Verify GIT and Net Tools is installed
=
```sh
sudo apt update && install git net-tools
sudo apt update && apt install git net-tools
```
2. Change directory to OPT for installation script (Advance User do what you wish)
=
Expand Down
28 changes: 14 additions & 14 deletions njordmenu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
ExecStart=${valheimInstallPath}/${worldname}/start_valheim_${worldname}.sh
ExecReload=/bin/kill -s HUP \$MAINPID
KillSignal=SIGINT
Expand Down Expand Up @@ -657,15 +657,15 @@ function linux_server_update() {
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
sleep 1

# Install additional packages
# Install additional packages (non-i386 first)
tput setaf 1; echo "$INSTALL_ADDITIONAL_FILES"; tput setaf 9;
if command -v apt-get >/dev/null; then
sudo apt install -y lib32gcc1 libsdl2-2.0-0 libsdl2-2.0-0:i386 git mlocate net-tools unzip curl isof
sudo apt install -y lib32gcc-s1 git plocate net-tools unzip curl lsof
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
sudo dnf install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl isof
sudo dnf install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl lsof
elif [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "7" ]]; then
sudo yum install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl isof
sudo yum install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl lsof
else
echo "Unsupported version for yum/dnf."
fi
Expand Down Expand Up @@ -725,10 +725,10 @@ function linux_server_update() {
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
sleep 1

# Update system again
# Update system and install i386 packages (after adding i386 architecture)
tput setaf 1; echo "$CHECK_FOR_UPDATES_AGAIN"; tput setaf 9;
if command -v apt-get >/dev/null; then
sudo apt update && sudo apt install -y libpulse-dev libatomic1 libc6
sudo apt update && sudo apt install -y libpulse-dev libatomic1 libc6 libsdl2-2.0-0 libsdl2-2.0-0:i386
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
sudo dnf update -y
Expand All @@ -754,7 +754,7 @@ function Install_steamcmd_client() {
if command -v apt-get >/dev/null; then
echo steam steam/license note '' | sudo debconf-set-selections
echo steam steam/question select 'I AGREE' | sudo debconf-set-selections
sudo apt install -y steamcmd libsdl2-2.0-0 libsdl2-2.0-0:i386
sudo apt install -y steamcmd
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
Expand Down Expand Up @@ -970,8 +970,8 @@ function nocheck_valheim_update_install() {
tput setaf 1; echo "$INSTALL_BUILD_DOWNLOAD_INSTALL_STEAM_VALHEIM"; tput setaf 9;
sleep 1

# Execute the steamcmd command to install/update Valheim
$steamexe +login anonymous +force_install_dir "${valheimInstallPath}/${worldname}" +app_update 896660 validate +exit
# Execute the steamcmd command to install/update Valheim (as steam user)
sudo -u steam $steamexe +force_install_dir "${valheimInstallPath}/${worldname}" +login anonymous +app_update 896660 validate +exit

tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
}
Expand All @@ -998,7 +998,7 @@ $(ColorRed "$DRAW60")"
# If 'y', then continue, else cancel
if [ "$confirmOfficialUpdates" == "y" ]; then
tput setaf 2; echo "$FUNCTION_INSTALL_VALHEIM_UPDATE_APPLY_INFO"; tput setaf 9;
$steamexe +login anonymous +force_install_dir "${valheimInstallPath}/${worldname}" +app_update 896660 validate +exit
sudo -u steam $steamexe +force_install_dir "${valheimInstallPath}/${worldname}" +login anonymous +app_update 896660 validate +exit
chown -R steam:steam "${valheimInstallPath}/${worldname}"
echo ""
else
Expand Down Expand Up @@ -2095,7 +2095,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
EOF

if [ "$valheimVanilla" == "1" ]; then
Expand Down Expand Up @@ -2533,7 +2533,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
EOF

if [ "$valheimVanilla" == "1" ]; then
Expand Down Expand Up @@ -2912,7 +2912,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
ExecStart=${valheimInstallPath}/${worldname}/start_valheim_${worldname}.sh
ExecReload=/bin/kill -s HUP \$MAINPID
KillSignal=SIGINT
Expand Down
2 changes: 1 addition & 1 deletion playground/njord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ check_for_valheim_updates() {
# Function to apply updates
apply_valheim_updates() {
echo "Applying updates to Valheim server..."
if /home/steam/steamcmd +login anonymous +force_install_dir "${valheimInstallPath}" +app_update 896660 validate +quit; then
if /home/steam/steamcmd +force_install_dir "${valheimInstallPath}" +login anonymous +app_update 896660 validate +quit; then
echo "Valheim server updated successfully."
log_action "Valheim server updated to latest version."
else
Expand Down
10 changes: 5 additions & 5 deletions playground/njordrebirth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ EOF
tput setaf 9
echo steam steam/question select "I AGREE" | sudo debconf-set-selections
echo steam steam/license note '' | sudo debconf-set-selections
apt install steamcmd libsdl2-2.0-0 libsdl2-2.0-0:i386 -y
apt install steamcmd -y
tput setaf 2
echo "Done"
tput setaf 9
Expand Down Expand Up @@ -522,7 +522,7 @@ EOF
echo "Downloading and installing Valheim from Steam"
tput setaf 9
sleep 1
/home/steam/steamcmd +login anonymous +force_install_dir ${valheimInstallPath} +app_update 896660 validate +exit
/home/steam/steamcmd +force_install_dir ${valheimInstallPath} +login anonymous +app_update 896660 validate +exit
tput setaf 2
echo "Done"
tput setaf 9
Expand Down Expand Up @@ -598,7 +598,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=/home/steam/steamcmd +login anonymous +force_install_dir ${valheimInstallPath} +app_update 896660 validate +exit
ExecStartPre=/home/steam/steamcmd +force_install_dir ${valheimInstallPath} +login anonymous +app_update 896660 validate +exit
ExecStart=${valheimInstallPath}/start_valheim.sh
ExecReload=/bin/kill -s HUP \$MAINPID
KillSignal=SIGINT
Expand Down Expand Up @@ -861,7 +861,7 @@ $(ColorRed '------------------------------------------------------------')"
tput setaf 2
echo "Using Thor's Hammer to apply Official Updates!"
tput setaf 9
/home/steam/steamcmd +login anonymous +force_install_dir ${valheimInstallPath} +app_update 896660 validate +exit
/home/steam/steamcmd +force_install_dir ${valheimInstallPath} +login anonymous +app_update 896660 validate +exit
chown -R steam:steam ${valheimInstallPath}
echo ""
else
Expand Down Expand Up @@ -896,7 +896,7 @@ function check_apply_server_updates_beta() {
echo ""
echo "Downloading Official Valheim Repo Log Data for comparison only"
[ ! -d /opt/valheimtemp ] && mkdir -p /opt/valheimtemp
/home/steam/steamcmd +login anonymous +force_install_dir /opt/valheimtemp +app_update 896660 validate +exit
/home/steam/steamcmd +force_install_dir /opt/valheimtemp +login anonymous +app_update 896660 validate +exit
sed -e 's/[\t ]//g;/^$/d' /opt/valheimtemp/steamapps/appmanifest_896660.acf >appmanirepo.log
repoValheim=$(sed -n '11p' appmanirepo.log)
echo "Official Valheim-: $repoValheim"
Expand Down
4 changes: 2 additions & 2 deletions rebirth/lib/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function display_system_info() {
# Display network information
function display_network_info() {
echo ""
sudo netstat -atunp | grep valheim
ss -atunp | grep valheim
echo ""
echo "Returning to menu in 5 Seconds"
sleep 5
Expand Down Expand Up @@ -254,7 +254,7 @@ function validateUsedValheimPorts() {
local port_in_use

for (( i=$starting_port; i<=$ending_port; i++ )); do
port_in_use=$(sudo netstat -plnt | grep ":$i")
port_in_use=$(ss -plnt | grep ":$i")
if [[ -z "$port_in_use" ]]; then
echo "$i not in use, Recommend choosing this one"
return
Expand Down
24 changes: 12 additions & 12 deletions rebirth/lib/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Install_steamcmd_client() {
if command -v apt-get >/dev/null; then
echo steam steam/license note '' | sudo debconf-set-selections
echo steam steam/question select 'I AGREE' | sudo debconf-set-selections
sudo apt install -y steamcmd libsdl2-2.0-0 libsdl2-2.0-0:i386
sudo apt install -y steamcmd
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
Expand Down Expand Up @@ -175,15 +175,15 @@ function linux_server_update() {
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
sleep 1

# Install additional packages
# Install additional packages (non-i386 first)
tput setaf 1; echo "$INSTALL_ADDITIONAL_FILES"; tput setaf 9;
if command -v apt-get >/dev/null; then
sudo apt install -y lib32gcc1 libsdl2-2.0-0 libsdl2-2.0-0:i386 git mlocate net-tools unzip curl isof
sudo apt install -y lib32gcc-s1 git plocate net-tools unzip curl lsof
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
sudo dnf install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl isof
sudo dnf install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl lsof
elif [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "7" ]]; then
sudo yum install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl isof
sudo yum install -y glibc.i686 libstdc++.i686 git mlocate net-tools unzip curl lsof
else
echo "Unsupported version for yum/dnf."
fi
Expand Down Expand Up @@ -243,10 +243,10 @@ function linux_server_update() {
tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
sleep 1

# Update system again
# Update system and install i386 packages (after adding i386 architecture)
tput setaf 1; echo "$CHECK_FOR_UPDATES_AGAIN"; tput setaf 9;
if command -v apt-get >/dev/null; then
sudo apt update && sudo apt install -y libpulse-dev libatomic1 libc6
sudo apt update && sudo apt install -y libpulse-dev libatomic1 libc6 libsdl2-2.0-0 libsdl2-2.0-0:i386
elif command -v yum >/dev/null; then
if [[ "$ID" == "fedora" ]] || [[ "$ID" =~ ^(centos|ol|rhel)$ && "${VERSION:0:1}" == "8" ]]; then
sudo dnf update -y
Expand All @@ -267,8 +267,8 @@ function nocheck_valheim_update_install() {
tput setaf 1; echo "$INSTALL_BUILD_DOWNLOAD_INSTALL_STEAM_VALHEIM"; tput setaf 9;
sleep 1

# Execute the steamcmd command to install/update Valheim
$steamexe +login anonymous +force_install_dir "${valheimInstallPath}/${worldname}" +app_update 896660 validate +exit
# Execute the steamcmd command to install/update Valheim (as steam user)
sudo -u steam $steamexe +force_install_dir "${valheimInstallPath}/${worldname}" +login anonymous +app_update 896660 validate +exit

tput setaf 2; echo "$ECHO_DONE"; tput setaf 9;
}
Expand Down Expand Up @@ -568,7 +568,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
ExecStart=${valheimInstallPath}/${worldname}/start_valheim_${worldname}.sh
ExecReload=/bin/kill -s HUP \$MAINPID
KillSignal=SIGINT
Expand Down Expand Up @@ -1033,7 +1033,7 @@ $(ColorRed "$DRAW60")"
# If 'y', then continue, else cancel
if [ "$confirmOfficialUpdates" == "y" ]; then
tput setaf 2; echo "$FUNCTION_INSTALL_VALHEIM_UPDATE_APPLY_INFO"; tput setaf 9;
$steamexe +login anonymous +force_install_dir "${valheimInstallPath}/${worldname}" +app_update 896660 validate +exit
sudo -u steam $steamexe +force_install_dir "${valheimInstallPath}/${worldname}" +login anonymous +app_update 896660 validate +exit
chown -R steam:steam "${valheimInstallPath}/${worldname}"
echo ""
else
Expand Down Expand Up @@ -1212,7 +1212,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
ExecStart=${valheimInstallPath}/${worldname}/start_valheim_${worldname}.sh
ExecReload=/bin/kill -s HUP \$MAINPID
KillSignal=SIGINT
Expand Down
2 changes: 1 addition & 1 deletion rebirth/lib/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $(ColorRed "$DRAW60")"
# If 'y', then continue, else cancel
if [ "$confirmOfficialUpdates" == "y" ]; then
tput setaf 2; echo "$FUNCTION_INSTALL_VALHEIM_UPDATE_APPLY_INFO"; tput setaf 9;
$steamexe +login anonymous +force_install_dir "${valheimInstallPath}/${worldname}" +app_update 896660 validate +exit
sudo -u steam $steamexe +force_install_dir "${valheimInstallPath}/${worldname}" +login anonymous +app_update 896660 validate +exit
chown -R steam:steam "${valheimInstallPath}/${worldname}"
echo ""
else
Expand Down
2 changes: 1 addition & 1 deletion rebirth/mods/bepinex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
EOF

if [ "$valheimVanilla" == "1" ]; then
Expand Down
2 changes: 1 addition & 1 deletion rebirth/mods/valheimplus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ StartLimitInterval=60s
StartLimitBurst=3
User=steam
Group=steam
ExecStartPre=$steamexe +login anonymous +force_install_dir ${valheimInstallPath}/${worldname} +app_update 896660 validate +exit
ExecStartPre=$steamexe +force_install_dir ${valheimInstallPath}/${worldname} +login anonymous +app_update 896660 validate +exit
EOF

if [ "$valheimVanilla" == "1" ]; then
Expand Down