software:rust:server
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| software:rust:server [2025/09/18 01:43] – created rodolico | software:rust:server [2025/09/18 16:39] (current) – rodolico | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== RustDesk Server Setup (free) ====== | ====== RustDesk Server Setup (free) ====== | ||
| + | |||
| + | <WRAP center round alert 60%> | ||
| + | These are just notes. They are not usable. Ignore this page | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | The RustDesk Server must be accessible from any connecting clients on ports 21115-21119, | ||
| + | </ | ||
| + | |||
| + | |||
| ===== Configuration Files ===== | ===== Configuration Files ===== | ||
| Line 85: | Line 95: | ||
| cert_file = "/ | cert_file = "/ | ||
| key_file = "/ | key_file = "/ | ||
| + | </ | ||
| + | |||
| + | ===== SysVInit ===== | ||
| + | |||
| + | ==== Startup script ==== | ||
| + | |||
| + | This is not very good, but it works, so I'm including it. Running this requires you create the / | ||
| + | |||
| + | <code bash startRust> | ||
| + | #! / | ||
| + | |||
| + | # go into correct directory so we can find the key file | ||
| + | cd / | ||
| + | |||
| + | # start signal server | ||
| + | / | ||
| + | |||
| + | # start relay server | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | **Do Not Use, work in progress** | ||
| + | <code bash hbbs> | ||
| + | #!/bin/sh | ||
| + | ### BEGIN INIT INFO | ||
| + | # Provides: | ||
| + | # Required-Start: | ||
| + | # Required-Stop: | ||
| + | # Default-Start: | ||
| + | # Default-Stop: | ||
| + | # Short-Description: | ||
| + | ### END INIT INFO | ||
| + | |||
| + | # Path to the executable | ||
| + | DAEMON=/ | ||
| + | DAEMON_NAME=hbbs | ||
| + | PIDFILE=/ | ||
| + | |||
| + | start() { | ||
| + | echo " | ||
| + | if [ -f $PIDFILE ]; then | ||
| + | echo " | ||
| + | return 1 | ||
| + | fi | ||
| + | $DAEMON & | ||
| + | echo $! > $PIDFILE | ||
| + | echo " | ||
| + | } | ||
| + | |||
| + | stop() { | ||
| + | echo " | ||
| + | if [ ! -f $PIDFILE ]; then | ||
| + | echo " | ||
| + | return 1 | ||
| + | fi | ||
| + | kill $(cat $PIDFILE) | ||
| + | rm -f $PIDFILE | ||
| + | echo " | ||
| + | } | ||
| + | |||
| + | status() { | ||
| + | if [ -f $PIDFILE ]; then | ||
| + | echo " | ||
| + | else | ||
| + | echo " | ||
| + | fi | ||
| + | } | ||
| + | |||
| + | case " | ||
| + | start) | ||
| + | start | ||
| + | ;; | ||
| + | stop) | ||
| + | stop | ||
| + | ;; | ||
| + | status) | ||
| + | status | ||
| + | ;; | ||
| + | restart) | ||
| + | stop | ||
| + | start | ||
| + | ;; | ||
| + | *) | ||
| + | echo " | ||
| + | exit 1 | ||
| + | ;; | ||
| + | esac | ||
| + | |||
| + | exit 0 | ||
| </ | </ | ||
software/rust/server.1758177828.txt.gz · Last modified: 2025/09/18 01:43 by rodolico
