-
Notifications
You must be signed in to change notification settings - Fork 6
/
Complete Setup Rust Server on Linux.txt
74 lines (60 loc) · 2.67 KB
/
Complete Setup Rust Server on Linux.txt
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
1- First Run Following Command
sudo apt-get install lib32gcc1
2-Make Directroy in Downloads to install SteamCMD & Create Server in same Folder.
cd ~/Downloads && mkdir ~/SteamCMD && cd ~/SteamCMD && mkdir ~/rustserver
3-Download SteamCMD for Linux (download curl with "sudo apt install curl" if curl doesn't work)
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
4-Download tool for Easy Server Management
sudo apt-get install tmux screen -y;
5-Run Steamcmd (make sure you are in SteamCMD Directory that you created in setp 2)
./steamcmd.sh
6-To install Rust Server. Run There commands One by One
force_install_dir /home/*your-username*/Downloads/SteamCMD/rustserver/
login anonymous
app_update 258550 (this command will start downloading Rust Dedicated Server in rustserver directory)
7- Create Your Own Script File in server and copy paste following Code
touch startrust.sh
8- Step 7 will create a file then open that startrust.sh file in nodepad
copy paste following code in file without these long lines
=====================================================================
#!/bin/sh
clear while : do
exec ./RustDedicated -batchmode -nographics \
-server.ip IPAddressHere \
-server.port 28015 \
-rcon.ip IPAddressHere \
-rcon.port 28016 \
-rcon.password "rcon password here" \
-server.maxplayers 75 \
-server.hostname "Server Name" \
-server.identity "my_server_identity" \
-server.level "Procedural Map" \
-server.seed 12345 \
-server.worldsize 3000 \
-server.saveinterval 300 \-server.globalchat true \
-server.description "Description Here" \
-server.headerimage "512x256px JPG/PNG headerimage link here" \
-server.url "Website Here"
echo "\nRestarting server...\n" done
=====================================================================
9- Now change permissions for the file to
chmod +x startrust.sh
8- Now Run your server
export 'TERM=roxterm' && ./startrust.sh
*******************************************************************************
- Make Sure VM Ware is running in Bridge Mode
- Make sure your Server Port is same as your Local Bridge Port or 0.0.0.0
- Allow both ports (server & rcon) in ufw one by one
($sudo ufw allow *ports*)
- Make sure you have Static IP from ISP.
=============================================
* Run your VMWorkstation in Bridge Mode
* DMZ Host to Your Windows Local IP (If Linux, use Linux Local IP. Check with ifconfig)
* Port Forwording
- Internal host 192.168.100.3
- UDP *server port only*
- TCP *rcon port only*
=============================================
Use Following Commands to check Port Status e.g 23016 if it is active
on Local bridge IP.
$sudo netstat -tupln | grep 23016