Rust linux no servers

Rustafied

On The Pulse of Rust

How to host a Rust server in Linux

Ever wondered how to make your own server but couldn’t due to the OS restriction to Windows? Well fear no more! This section of the guide will focus on the realm of Linux but more particularly on the Debian 8 x64 distribution. Rather than solely being focused on vanilla Rust I will also branch into Oxide and security of your server itself.

Initial Setup

This bit will be the longest part of the guide but will serve you well in terms of the security of your server. This will be mainly focused on people who aren’t familiar in terms of security or Debian in general.

Login to your server through SSH (PuTTY is recommended).

Head over to a PasswordGenerator site and generate a random password with a length of 50+ and copy it. Then type “passwd root” and then right click twice in the terminal.

Now your root password is secure you need to update the software by doing “apt-get update -y && apt-get upgrade -y” then “apt-get install fail2ban nano -y”.

Now download PuTTYgen then generate the key. Now type all of these individually on a per line basis in PuTTY:

Now head back to PuTTYgen then right click inside the box with lots of characters and press select all then copy. Now head back to PuTTY where you left off at the nano editor and right click to paste your public key in then do ctrl+o -> enter -> ctrl+x.

Now type “nano /etc/ssh/sshd_config” then ctrl+w then “PasswordAuth” then enter. Now remove the hash and change the yes at the end to a no. Now page down to the bottom and change UsePAM to no. Now ctrl+w and do type PermitRootLogin and simply change it to “without-password”. Now press ctrl+p (save) and ctrl+x (exit) and then finally type “service ssh reload”

Now you just need to open PuTTYgen back open and save the public and private key in a folder somewhere safe. Now close PuTTY and reopen it then simply on the left side goto Connection -> SSH -> Authentication then browse and select your private key file that you just saved. Once you’ve done that head back to Session then click Default Settings then Save then open for a passwordless login.

SteamCMD

Valve have their own documentation for setting up SteamCMD you can find this here. Once your at app_update section you type “app_update 258550”.

Vanilla

Once you’ve done the above with SteamCMD it is now smooth sailing you now do “cd directorysetwithsteamcmd” and then nano startrust.sh and paste this:

#!/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

Читайте также:  Драйвера usb для linux mint

You will need to fill in your own values such as world seed etc. Now do “chmod u+x startrust.sh” then “./startrust.sh” which will start your server. If there is no hitches within just a few minutes you will be able to connect through RCON. Then ingame through the server list or “connect ipaddresshere:28015”. Once ingame you can refer to our Console System Guide to setup your admin status.

Oxide

This modded version of Rust is very popular so here is how to set it up. First things first you need to do “wget https://github.com/OxideMod/Snapshots/raw/master/Oxide-Rust_Linux.zip”. Then if you haven’t already install unzip “apt-get install unzip -y” then “unzip Oxide-Rust_Linux.zip” while your in the main rust directory set by SteamCMD then accept any override prompts. Then you do “chmod u+x CSharpCompiler” to ensure cs plugins being able to work such as the Kits plugin. Now you have a fully working Oxide Server. You can refer to here for aspects such as Permissions and making yourself aware of current Rust and Oxide issues.

Updating

This is just as easy. You simply need to redo the SteamCMD steps and if you’ve using Oxide you redownload it after updating rust through SteamCMD using link above then unzip it and potentially chmod the CSharpCompiler again.

Firewall (advanced users)

For extra security, you can change the firewall settings. Warning: This is for advanced users and could block access to other services on your box (like teamspeak).

Type “nano iptables.sh” then copy/paste this:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -A INPUT -m conntrack —ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp —dport 22 -j ACCEPT
iptables -A INPUT -p tcp —dport 28016 -j ACCEPT
iptables -A INPUT -p udp —dport 28015 -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -j DROP
apt-get install iptables-persistent -y
invoke-rc.d iptables-persistent save

Then type “chmod u+ux iptables.sh” then type “./iptables.sh”. This will then execute a bunch of commands which will ultimately just allow the standard ssh port (22) and then the two standard rust ports for later.

Knowledge

If you would like to know more about IPTables and SSH Keys you can refer to these two links:

Источник

Rust linux no servers

1,399 уникальных посетителей
6 добавили в избранное

Lutris is a graphical tool that can be used to launch games using wine. You can follow the installation instructions for your distro here [lutris.net]

This game doesn’t work well with OpenGL on Linux, so is better to run the game with Vulkan and the new DXVK (See the Requirements [github.com] ). In order to complete our lutris installation you need to install:

    Graphics Drivers and Vulkan support
    Check this page [github.com] to know how to install graphics drivers and vulkan for your distro.
  • Wine Dependencies
    Check this page [github.com] to know how to get wine and dependencies for your distro (the staging version of wine is the more updated).
  • Читайте также:  Основные технологии обмена данными windows буфер обмена

    You can check your Vulkan installation with the command vulkaninfo or vkcube. If there are no errors everything should work

    Start lutris and install the Wine Steam runner.

    To show the Manage Runners window click near «Runners», then scroll down and install the Wine Steam runner:

    After the installation of the runner select «Configure Runner» and make sure the option «Enable DXVK/VKD3D» is enabled

    The steam interface with wine is very glitchy, you can optionally show only the mini version of the library of steam by clicking «Show advanced options» and adding the following text inside the «Arguments» field:

    (Thank you TermNCR for the tip!)

    Click the Save button and close the window.

    Inside the main window of Lutris, click the Wine Steam Tab and select the Add Game option

    Insert a Name and select the runner «Wine Steam», then move to the «Game options» tab and insert the Application ID of Rust: 252490
    Enable the option «Do not launch game, only open Steam» if you want to show the Steam interface and don’t start the game directly (after the installation you can uncheck this for a faster startup of the game)

    You can now click the Save button

    If you have already downloaded Rust with Proton on Steam for Linux, you can copy the Rust game folder from the proton installation to the lutris/wine installation.

    From your home directory, press on the keyboard CTRL+H to show hidden files, then go to the directory

    and copy the Rust folder.

    Paste the Rust folder inside your steam lutris/wine installation usually located from your home directory to

    (Create steamapps and common folders if they don’t exist)

    When you will start the installation of Rust, Steam will first check existing files and then download the missing ones.

    Select Rust from Lutris and press Play.
    Login into steam and search Rust from your library to install the game (if you are using the mini library mode of steam, use the View menu to see the Download progress). After the installation you can start the game from the steam interface.

    You can also explore servers without EAC using the steam server browser from the View -> Server Menu.

    • Use Borderless window mode, Exclusive mode can give you problems

    To reset the game options, if the game doesn’t start, you can try deleting the file client.cfg inside the Rust/cfg game folder

    With AMD graphics you can use «Enable ACO shader compiler» option of Lutris to get a more smooth experience

  • If you have a notebook/laptop with a nvidia graphics card and the optimus technology you can try the «Enable NVIDIA Prime render offload» option of Lutris
  • Источник

    Deploy Rust Game Servers

    LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

    Rust will run on popular distros as long as the minimum requirements are met.

    For consistant uptime it is recomended you host a server in a data center. If you dont already have a server, you can rent a dedicated or vitual server from one of our sponsored providers, OVHCloud, Linode, Vultr.

    Читайте также:  Linux зачем разбивать диск

    If the command-line isnt for your you can use GameServerApp web-based game server management service.

    • Ubuntu 16.04 LTS
    • Debian 9
    • CentOS 7

    Only 32-Bit game server binary is available.

    SteamCMD by Valve is used to install and update this game server.

    SteamDB

    Steam uses appid 258550.
    Update history is available from SteamDB.

    Before installing, you must ensure you have all the dependencies required to run rustserver.

    Ubuntu 64-bit

    Debian 64-bit

    EPEL is required to install some dependencies needed for using LinuxGSM on CentOS.

    CentOS 64-bit

    user with sudo access

    root user

    From the command-line do the following. Ensuring you have also installed the required dependencies.

    1. Create a user and login.

    For security best practice, ensure you set a strong password. Random password:

    All Commands

    Running

    start

    restart

    console

    To exit the console press CTRL+b d . Pressing CTRL+c will terminate the server.

    Updating

    update

    validate

    Debugging

    Details

    You can get all important and useful details about the server such as passwords, ports, config files etc.

    Debug

    Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

    Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

    Backup

    Backup will allow you to create a complete tar bzip2 archive of the whole server.

    Monitor

    LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

    Configure LinuxGSM

    For details on how to alter LinuxGSM settings visit LinuxGSM Config Files page.

    Documentation

    For detailed documentation visit the LinuxGSM docs.

    Cronjobs

    To automate LinuxGSM you can set scheduled tasks using cronjobs, to run any command at any given time. You can edit the crontab using the following.

    Below are the recommended cron tasks.

    Configure LinuxGSM

    For details on how to alter LinuxGSM settings visit LinuxGSM Config Files page.

    Documentation

    For detailed documentation visit the LinuxGSM docs.

    Instantly deploy your own Rust game server with GameServerApp web-based game server management service.

    Either bring your own dedicated server from top providers such as OVH or have GameServerApp provide one for you.

    GameServerApp is a LinuxGSM partner that offer features that compliment existing LinuxGSM game servers.

    Using Rcon; control, monitor and automate your Rust LinuxGSM game servers from a web browser.

    • Easily setup automated RCON actions using the drag-and-drop editor.
    • Talk to in-game players or run RCON commands from Discord.
    • Track player stats, see online players and when they play.
    • Manage players, allowing you to kick and ban or send an in-game items.
    • Give other people in your community rcon access.

    Add your first 2 LinuxGSM servers for free.

    Источник

    Оцените статью