### Example v2.0.0 Configuration File Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md A complete example of the new configuration format including global settings and server definitions. ```toml [global] show_client_ip = true branding = false [server.main] listen = ":5900" image = "desktop.png" ``` -------------------------------- ### Execute FictusVNC binary Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Start the VNC server by pointing the executable to the desired configuration file. ```bash ./fictusvnc-linux-amd64 --config config.toml ``` -------------------------------- ### Client Information Banner Example Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md An example of the text displayed in the translucent banner when client information flags are enabled. ```text IP: 198.51.100.42 Host: bot.internet-census.example.org Time: 2026-08-03 21:53:12 UTC ``` -------------------------------- ### Example JSON Connection Log Record Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md A single structured log event emitted upon connection termination, containing session metadata and client fingerprinting information. ```json {"time":"2026-08-03T22:11:41.986Z","level":"INFO","msg":"connection", "server":"Reception","listen":"127.0.0.1:5900", "peer_ip":"198.51.100.42","peer_port":48280, "handshake":true,"outcome":"client_eof","duration_ms":1049,"bytes_sent":6407, "client_version":"RFB 003.008","security_type":1, "image":"default.png","updates":1,"pixel_bpp":32,"pixel_depth":24, "encodings":[16,0,-239],"encoding_used":"zrle"} ``` -------------------------------- ### Migrate Command Line Execution Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Demonstrates the transition from multiple CLI flags to a single configuration file approach. ```bash ./fictusvnc --servers servers.toml --show-ip --no-brand ``` ```bash ./fictusvnc --config config.toml ``` -------------------------------- ### Basic TOML configuration Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Define a single server instance with minimal settings. ```toml # Minimal setup - single image, no global options [server.my_server] listen = "0.0.0.0:5900" name = "Test Server" image = "desktop.png" ``` -------------------------------- ### TOML Configuration for Global and Server Overrides Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Demonstrates how to define global defaults and override them for specific server instances using TOML syntax. ```toml [global] show_client_ip = true # default for every server [server.watched] listen = "0.0.0.0:5900" image = "desktop.png" show_rdns = true # this one also resolves the client name [server.clean] listen = "0.0.0.0:5901" image = "desktop.png" show_client_ip = false # no banner here at all ``` -------------------------------- ### Build all release targets Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Generates binaries for all supported platforms and architectures into the build directory. ```bash ./build.sh ``` -------------------------------- ### Global options configuration Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Include global settings such as server name and client IP visibility. ```toml [global] name = "My VNC Server" show_client_ip = true [server.my_server] listen = "0.0.0.0:5900" name = "Test Server" image = "desktop.png" ``` -------------------------------- ### Compare Server Configuration Formats Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Shows the structural change in server configuration between v1.x and v2.0.0. ```toml [[server]] listen = ":5900" image = "desktop.png" ``` ```toml [server.desktop] listen = ":5900" image = "desktop.png" ``` -------------------------------- ### Run FictusVNC with flags Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Execute the application using a specific configuration file path. ```bash go run . --config config.toml ``` -------------------------------- ### Build single binary Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Compiles the project into a single binary for the current platform. ```bash go build -o fictusvnc . ``` -------------------------------- ### Validate Configuration File Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Use the --check flag to parse the configuration, verify image availability, and identify potential issues without binding any ports. ```bash $ fictusvnc --config config.toml --check config: config.toml warning: unknown key "global.show_clientip" — check the spelling, it is being ignored warning: server "a" has rotation_mode = "randam", expected "random" or "sequential"; using random servers: [a] Reception listen: 0.0.0.0:5900 images: 2 (random) desktop_work.png 1920x1080 weight 70 desktop_idle.png 1920x1080 weight 30 banner: client ip, time listeners: 1 max_connections: 512 logging: json/info -> stdout config is usable, with 2 warning(s) ``` -------------------------------- ### Configure FictusVNC with config.toml Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Define global settings and server instances, including static image paths and rotation logic, in a TOML configuration file. ```toml [global] name = "FictusVNC" branding = true show_client_ip = false # Simple single-image setup (no rotation) [server.desktop] listen = ":5900" image = "default.png" name = "My Desktop" # Example with rotation [server.office] listen = "127.0.0.1:5901" name = "Office Computer" rotation_mode = "random" images = [ {path = "desktop_work.png", weight = 70}, {path = "desktop_idle.png", weight = 25}, {path = "desktop_error.png", weight = 5} ] ``` -------------------------------- ### Multi-port server configuration Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Define a server that listens across a range of ports. ```toml [server.multi_port] listen = "0.0.0.0" start_port = 5900 end_port = 5905 name = "Multi-Port Server" image = "desktop.png" ``` -------------------------------- ### Advanced configuration with image rotation Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Configure multiple servers with different rotation modes including random weighting and sequential ordering. ```toml [global] name = "FictusVNC" branding = true show_client_ip = true # Server with rotation enabled [server.random_rotation] listen = "0.0.0.0:5900" name = "Random Server" rotation_mode = "random" images = [ {path = "normal_desktop.png", weight = 60}, {path = "busy_desktop.png", weight = 30}, {path = "error_screen.png", weight = 10} ] # Server with sequential rotation [server.sequential_boot] listen = "0.0.0.0:5901" name = "Boot Sequence" rotation_mode = "sequential" images = [ {path = "boot_bios.png"}, {path = "boot_loading.png"}, {path = "login_screen.png"}, {path = "desktop_ready.png"} ] # Simple server without rotation (default mode) [server.static] listen = "0.0.0.0:5902" name = "Static Server" image = "desktop.png" ``` -------------------------------- ### Configure Image Object Structure Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Defines how to set up static images or rotating image arrays with optional weights in the TOML configuration. ```toml # DEFAULT MODE: Single static image (no rotation) image = "desktop.png" # OPTIONAL ROTATION MODE: Use images array images = [ # For weighted random rotation - specify weights {path = "normal_desktop.png", weight = 50}, {path = "busy_desktop.png", weight = 30}, {path = "error_screen.png", weight = 20} ] # OR for equal weight distribution (weight = 1 by default) images = [ {path = "desktop1.png"}, {path = "desktop2.png"}, {path = "desktop3.png"} ] # OR for sequential rotation (weights ignored anyway) images = [ {path = "boot_bios.png"}, {path = "boot_loading.png"}, {path = "desktop_ready.png"} ] ``` -------------------------------- ### Preview release changelog Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Generates a list of commit messages between a specific tag and the current HEAD. ```bash ./changelog.sh v2.1.0..HEAD ``` -------------------------------- ### Logrotate Configuration for FictusVNC Source: https://github.com/ayebrian/fictusvnc/blob/main/README.md Standard logrotate configuration to handle file rotation and signal the server to reopen log files via SIGHUP. ```text /var/log/fictusvnc/*.log { daily rotate 14 compress missingok postrotate systemctl kill -s HUP fictusvnc.service endscript } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.