Reference:
- https://forums.kleientertainment.com/forums/topic/64441-dedicated-server-quick-setup-guide-linux/
- https://nodecraft.com/support/games/dont-starve-together/adding-mods-to-your-dont-starve-together-server
64-bit machine
| #!python | |
| import urllib.request | |
| import json | |
| def cal_pass(enc_pass: str, map_str: str): | |
| map_dict = dict() | |
| for line in map_str.splitlines(): | |
| if line == "": |
| #!/bin/zsh | |
| # Reference: https://www.youtube.com/watch?v=CF1tMjvHDRA | |
| install_brew() { | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| } | |
| setup_brew() { | |
| (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/shank/.zprofile |
| #!/bin/bash | |
| # save this file to /usr/local/bin/clash-start | |
| # save pid file | |
| echo $$ > ${HOME}/.config/clash/clash.pid | |
| CLASH_URL="your subscribe address" # NEED EDIT! | |
| CLASH_REMOTE_CFG="${HOME}/.config/clash/config-remote.yaml" | |
| CLASH_LOCAL_CFG="${HOME}/.config/clash/config-local.yaml" | |
| CLASH_TMP_CFG="/tmp/clash-config.yaml" |
| #!/usr/bin/env bash | |
| hostip=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }') | |
| wslip=$(hostname -I | awk '{print $1}') | |
| port=7890 | |
| PROXY_HTTP="http://${hostip}:${port}" | |
| proxy_set(){ | |
| export http_proxy="${PROXY_HTTP}" |
| # https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs#windows-11-wsl2-instructions | |
| # install conda (if not already done) | |
| wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh | |
| chmod +x Anaconda3-2022.05-Linux-x86_64.sh | |
| ./Anaconda3-2022.05-Linux-x86_64.sh | |
| # Clone webui repo | |
| git clone -b v1.4.1 https://github.com/AUTOMATIC1111/stable-diffusion-webui.git | |
| cd stable-diffusion-webui |
| PROJPATH := . | |
| PROJECTNAME := demo | |
| PROJECTVER := 0.0.1 | |
| FILES := README.md CHANGELOG.md | |
| GO_ENV := CGO_ENABLED=0 GOPROXY=https://goproxy.io | |
| GO_EXTRA_BUILD_ARGS := -trimpath |
| CMDPKGURL := "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | |
| CMDPATH := steamcmd | |
| CMDFILE := steamcmd.sh | |
| GAMEPATH := "Steam/steamapps/common/Don't Starve Together Dedicated Server/bin" | |
| GAMEFILE := dontstarve_dedicated_server_nullrenderer | |
| DATAPATH := $(PWD)/.klei | |
| SAVEFILE := DoNotStarveServer | |
| SAVEFILECAVE := DoNotStarveCaves |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |