### Sentry Installer Output Example Source: https://github.com/scaleway/docs-content/blob/main/tutorials/sentry-error-tracking/index.mdx An example output from the Sentry installer, showing database migrations, internal project creation, user account setup, and GeoIP integration status. ```text [...] Applying sites.0002_alter_domain_unique... OK Applying social_auth.0001_initial... OK Created internal Sentry project (slug=internal, id=1) Would you like to create a user account now? [Y/n]: <- Press **Y** Email: me@myemail.org <- Enter your e-mail address Password: Repeat for confirmation: User created: me@myemail.org Added to organization: sentry Creating missing DSNs Correcting Group.num_comments counter ▶ Setting up GeoIP integration ... Setting up IP address geolocation ... Installing (empty) IP address geolocation database ... done. IP address geolocation is not configured for updates. See https://develop.sentry.dev/self-hosted/geolocation/ for instructions. ----------------------------------------------------------------- You're all done! Run the following command to get Sentry running: docker compose up -d ----------------------------------------------------------------- ``` -------------------------------- ### Install Magento Source: https://github.com/scaleway/docs-content/blob/main/tutorials/magento-ubuntu/index.mdx Install Magento by running the setup:install command. Replace placeholder values with your specific configuration details. ```bash sudo bin/magento setup:install --base-url=http://example.com/ --db-host=localhost --db-name=magento --db-user=magento_db --db-password=your_secret_password --admin-firstname=Admin --admin-lastname=User --admin-email=admin@example.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=EUR --timezone=Europe/Paris --use-rewrites=1 ``` -------------------------------- ### Install Strapi and Create Project Source: https://github.com/scaleway/docs-content/blob/main/tutorials/strapi/index.mdx Install Strapi in the created directory and initialize a new project with quickstart. ```bash cd strapi-projects npx create-strapi-app@latest --quickstart strapi-projects ``` -------------------------------- ### Example PostGIS Version Output Source: https://github.com/scaleway/docs-content/blob/main/tutorials/postgis-managed-databases/index.mdx This is an example output confirming the successful installation and version of the PostGIS extension. ```text townssurvey=> SELECT PostGIS_version(); postgis_version --------------------------------------- 3.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1 (1 row) ``` -------------------------------- ### Install and Enable GlusterFS Server Source: https://github.com/scaleway/docs-content/blob/main/tutorials/glusterfs/index.mdx Install the GlusterFS server package, start the glusterd service, and enable it to start automatically on boot. Verify the service status and version. ```bash apt install glusterfs-server -y ``` ```bash systemctl start glusterd.service systemctl enable glusterd.service ``` ```bash systemctl status glusterd.service glusterfs --version ``` -------------------------------- ### Example pgLoader Version Output Source: https://github.com/scaleway/docs-content/blob/main/tutorials/migrate-mysql-databases-postgresql-pgloader/index.mdx This is an example output confirming the successful installation of pgLoader, showing its version and compilation details. ```text pgloader version "3.6.3~devel" compiled with SBCL 2.1.11.debian ``` -------------------------------- ### Run OpenProject Installer Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-openproject-database-postgresql/index.mdx Execute this command to start the OpenProject configuration wizard. ```bash openproject configure ``` -------------------------------- ### Install Docker Source: https://github.com/scaleway/docs-content/blob/main/tutorials/pushing-metrics-logs-from-scw-instance/index.mdx Install Docker on your Instance, which is required to run the 'docker-compose.yaml' configuration file for the monitoring setup. ```bash apt install docker.io ``` -------------------------------- ### Install necessary libraries Source: https://github.com/scaleway/docs-content/blob/main/pages/generative-apis/how-to/use-structured-outputs.mdx Before using the code examples, ensure you have the 'openai' and 'pydantic' Python libraries installed. This is a prerequisite for interacting with the API and handling structured data. ```bash pip install openai pydantic ``` -------------------------------- ### Start QGA Service Source: https://github.com/scaleway/docs-content/blob/main/pages/instances/reference-content/understanding-qemu-guest-agent.mdx Start the QEMU Guest Agent service on your instance. This command is used after installation or if the service has been stopped. ```bash # systemctl start qemu-guest-agent.service ``` -------------------------------- ### Run Discourse Setup Script Source: https://github.com/scaleway/docs-content/blob/main/tutorials/discourse-forum/index.mdx Execute the Discourse setup script to begin the installation process. This script will prompt for configuration details. ```bash ./discourse-setup ``` -------------------------------- ### Initialize Next.js Blog Project Source: https://github.com/scaleway/docs-content/blob/main/tutorials/nextjs-app-serverless-functions-sqldb/index.mdx Initialize a new Next.js project using the 'blog-starter' example. This command downloads the starter template and installs its dependencies. ```bash npx create-next-app --example blog-starter my-nextjs-blog ``` -------------------------------- ### Get Example Data with DVC Source: https://github.com/scaleway/docs-content/blob/main/tutorials/configure-dvc-with-object-storage/index.mdx Download an example data file using DVC and place it into the 'data/' directory of your repository. ```bash dvc get https://github.com/iterative/dataset-registry \ get-started/data.xml -o data/data.xml ``` -------------------------------- ### Strapi Project Initialization Output Source: https://github.com/scaleway/docs-content/blob/main/tutorials/strapi/index.mdx Example output indicating successful Strapi installation and the URL to access the administration panel. ```text Create your first administrator 💻 by going to the administration panel at: ┌─────────────────────────────┐ │ http://localhost:1337/admin │ └─────────────────────────────┘ [2020-12-02T09:20:59.034Z] debug HEAD /admin (14 ms) 200 [2020-12-02T09:20:59.038Z] info ⏳ Opening the admin panel... ``` -------------------------------- ### Start Gitea for First Time Source: https://github.com/scaleway/docs-content/blob/main/tutorials/self-hosted-repository-gitea/index.mdx Command to run Gitea for the initial setup and configuration via the web interface. ```bash GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini ``` -------------------------------- ### Minecraft Server Startup Output Source: https://github.com/scaleway/docs-content/blob/main/tutorials/setup-minecraft/index.mdx Example output indicating the Minecraft server has started successfully and is ready for connections. ```text ... [14:53:38] [Server thread/INFO]: Starting minecraft server version 1.14.4 [14:53:38] [Server thread/INFO]: Loading properties [14:53:38] [Server thread/INFO]: Default game type: SURVIVAL [14:53:38] [Server thread/INFO]: Generating keypair [14:53:38] [Server thread/INFO]: Starting Minecraft server on *:25565 [14:53:39] [Server thread/INFO]: Using epoll channel type [14:53:39] [Server thread/INFO]: Preparing level "world" [14:53:39] [Server thread/INFO]: Reloading ResourceManager: Default ... [14:54:18] [Server thread/INFO]: Preparing spawn area: 83% [14:54:19] [Server-Worker-2/INFO]: Preparing spawn area: 85% [14:54:19] [Server thread/INFO]: Preparing spawn area: 88% [14:54:20] [Server-Worker-2/INFO]: Preparing spawn area: 90% [14:54:20] [Server-Worker-2/INFO]: Preparing spawn area: 95% [14:54:21] [Server thread/INFO]: Preparing spawn area: 97% [14:54:21] [Server thread/INFO]: Time elapsed: 14775 ms [14:54:21] [Server thread/INFO]: Done (42.088s)! For help, type "help" ``` -------------------------------- ### Reconfigure OpenProject Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-openproject-database-postgresql/index.mdx Re-launch the OpenProject installer to apply new configurations, including SSL/TLS settings. This command starts the interactive setup wizard. ```bash openproject reconfigure ``` -------------------------------- ### Copy Example Configuration Source: https://github.com/scaleway/docs-content/blob/main/tutorials/configure-netbox-managed-postgresql-database/index.mdx Create the main configuration file by copying the example configuration. ```bash cp configuration_example.py configuration.py ``` -------------------------------- ### Dockerfile for NodeJS Application Source: https://github.com/scaleway/docs-content/blob/main/pages/serverless-containers/how-to/build-push-container-image.mdx Example Dockerfile for a NodeJS application using Express. It sets up the application directory, installs dependencies, and starts the server on port 8080. ```dockerfile # Use the official Node.js slim image FROM node:22-slim # Create app directory WORKDIR /usr/src/app # Create package.json and simple Express app directly in Dockerfile RUN echo '{"name":"scaleway-serverless","version":"1.0.0","description":"","main":"server.js","scripts":{"start":"node server.js"},"dependencies":{"express":"^5"}}' > package.json && \ npm install && \ echo "const express = require('express');\nconst app = express();\nconst port = process.env.PORT || 8080;\n\napp.get('/', (req, res) => {\n res.send('

Hello from Scaleway Serverless!

');\n});\n\napp.listen(port, () => {\n console.log(`Server running on port ${port}`);\n});" > server.js # Start the application CMD ["npm", "start"] ``` -------------------------------- ### SSH into your Instance Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-nextcloud-s3/index.mdx Connect to your server via SSH to begin the installation process. ```bash ssh root@ ``` -------------------------------- ### Verify Docker Installation Source: https://github.com/scaleway/docs-content/blob/main/tutorials/overleaf/index.mdx Check if Docker is installed on your instance by verifying its version. If not installed, follow the Docker Installation Guide. ```bash docker --version ``` -------------------------------- ### Remove PrestaShop Installation Directory Source: https://github.com/scaleway/docs-content/blob/main/tutorials/prestashop-dedibox/index.mdx After completing the PrestaShop installation, remove the installation directory to finalize the setup. ```bash rm -rf /var/www/html/eshop/install ``` -------------------------------- ### Create project folder and initialize npm Source: https://github.com/scaleway/docs-content/blob/main/tutorials/socket-io/index.mdx Set up a new project directory and initialize it with npm for managing dependencies. ```bash mkdir myapp cd myapp ``` ```bash npm init -y ``` -------------------------------- ### Start New Website Source: https://github.com/scaleway/docs-content/blob/main/tutorials/web-deploy-windows-instance/index.mdx Starts the newly created 'MyApplication' website in IIS. This action makes the website live and ready to serve content. ```powershell Start-Website -Name "MyApplication" ``` -------------------------------- ### Start Instance (CLI) Source: https://github.com/scaleway/docs-content/blob/main/pages/instances/api-cli/migrating-instances.mdx Powers on the Instance after its commercial type has been updated. Replace `` with your Instance's ID and `` with its Availability Zone. ```APIDOC ## Start Instance ### Description Powers on the specified Instance. ### Method POST ### Endpoint `/instance/v1/zones/{zone}/servers/{server_id}/action` ### Parameters #### Path Parameters - **zone** (string) - Required - The Availability Zone of the Instance. - **server_id** (string) - Required - The ID of the Instance to start. #### Request Body - **action** (string) - Required - Must be set to `poweron`. ### Request Example ```bash scw instance server start zone= ``` ``` -------------------------------- ### SSH into your Instance Source: https://github.com/scaleway/docs-content/blob/main/tutorials/overleaf/index.mdx Connect to your Ubuntu instance via SSH to begin the installation process. Replace with your instance's public IP address. ```bash ssh root@ ``` -------------------------------- ### Remove Roundcube Installer Directory Source: https://github.com/scaleway/docs-content/blob/main/tutorials/setup-postfix-ubuntu-bionic/index.mdx Removes the Roundcube installer directory after the web-based setup is complete for security reasons. ```bash rm -rf /var/www/webmail/installer ``` -------------------------------- ### Create Superuser Prompt Example Source: https://github.com/scaleway/docs-content/blob/main/tutorials/django-ubuntu-focal-fossa/index.mdx Example of the prompts and successful creation of a superuser within a virtual environment. ```bash (my_env) root@Django:~/my-django# python manage.py createsuperuser Username (leave blank to use 'root'): scaleway Email address: usertest@example.com Password: Password (again): Superuser created successfully. ``` -------------------------------- ### Install scaleway-vmagent on RHEL-based Distributions Source: https://github.com/scaleway/docs-content/blob/main/pages/instances/troubleshooting/filling-memory-and-gpu-metrics-on-the-cockpit-dashboard.mdx Install the `scaleway-vmagent` package on RHEL-based distributions. Make sure the Scaleway COPR repository is enabled prior to installation. Note that services are not automatically started after installation on RHEL. ```bash dnf copr enable @scaleway/instance dnf install scaleway-vmagent ``` -------------------------------- ### Replica Set Initiation Output Example Source: https://github.com/scaleway/docs-content/blob/main/tutorials/mutli-node-rocket-chat-community-private-network/index.mdx Example output showing a successful replica set initiation. Ensure the 'ok' value is 1. ```json { "info2" : "no configuration specified. Using a default configuration for the set", "me" : "192.168.1.2:27017", "ok" : 1, "$clusterTime" : { "clusterTime" : Timestamp(1603283232, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } }, "operationTime" : Timestamp(1603283232, 1) } ``` -------------------------------- ### Initialize Easy-RSA PKI Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-openvpn/index.mdx Prepare the Easy-RSA directory and initialize the Public Key Infrastructure (PKI) by copying Easy-RSA scripts and running the init-pki command. ```bash mkdir -p ~/openvpn-ca cd ~/openvpn-ca cp -r /usr/share/easy-rsa/* /etc/openvpn/easy-rsa/ cd /etc/openvpn/easy-rsa/ ./easyrsa init-pki ``` -------------------------------- ### HestiaCP Installation Prompts Source: https://github.com/scaleway/docs-content/blob/main/tutorials/hestiacp/index.mdx Example of interactive prompts during HestiaCP installation, requiring confirmation, admin email, and FQDN hostname. ```bash _ _ _ _ ____ ____ | | | | ___ ___| |_(_) __ _ / ___| _ \ | |_| |/ _ \/ __| __| |/ _` | | | |_) | | _ | __/\[__ \ |_| | (_| | |___| __/ |_| |_|\___||___/\__|_|\__,_|\[____|_| Hestia Control Panel v1.9.3 ==================================================================== The following server components will be installed on your system: - NGINX Web / Proxy Server - Apache Web Server (as backend) - PHP-FPM Application Server - Bind DNS Server - Exim Mail Server + ClamAV + SpamAssassin - Dovecot POP3/IMAP Server - MariaDB Database Server - Vsftpd FTP Server - Firewall (Iptables) + Fail2Ban Access Monitor ==================================================================== Would you like to continue with the installation? [Y/N]: # Type y or Y to confirm the installation Please enter admin email address: myemail@example.com # Enter your email address Please enter FQDN hostname [scw-tender-sinoussi]: hestiacp.example.com # Enter the domain name for your HestiaCP instance ``` -------------------------------- ### Access LibreNMS Web Installer Source: https://github.com/scaleway/docs-content/blob/main/tutorials/librenms-monitoring/index.mdx Navigates to the LibreNMS web installer in a browser. This is the first step in the web-based setup process. ```bash https://librenms.example.com/install.php ``` -------------------------------- ### Set Up Virtual Environment and Install Dependencies (Windows) Source: https://github.com/scaleway/docs-content/blob/main/tutorials/hosting-django-webapp-serverless-containers/index.mdx Sets up a Python virtual environment and installs Django and Gunicorn for your project on Windows. ```bash python -m venv venv virtualenv\Scripts\activate pip install django gunicorn ``` -------------------------------- ### Install Go Serverless Functions Package Source: https://github.com/scaleway/docs-content/blob/main/pages/serverless-functions/reference-content/local-testing.mdx Install the Scaleway Serverless Functions package for Go using go get. ```bash go get github.com/scaleway/serverless-functions-go ``` -------------------------------- ### Add Node.js Repositories and Install Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-medusa/index.mdx Prepare your system by adding the Node.js 23.x repositories and installing Node.js and git. ```bash apt update apt install -y ca-certificates curl gnupg curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh sudo -E bash nodesource_setup.sh apt update && apt install nodejs git ``` -------------------------------- ### Example LoadBalancer Output Source: https://github.com/scaleway/docs-content/blob/main/pages/kubernetes/reference-content/lb-ingress-controller.mdx This is an example output from `kubectl get svc` showing the ingress controller's details, including the EXTERNAL-IP. ```text NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ingress-nginx-controller LoadBalancer 10.100.0.1 195.154.72.226 80/TCP,443/TCP 5m ``` -------------------------------- ### Migrated Simple Command and Arguments Source: https://github.com/scaleway/docs-content/blob/main/pages/serverless-jobs/how-to/migrate-command-to-startup-command.mdx This shows the equivalent `startup_command` and `args` for a simple legacy command. ```yaml startup_command: [sleep] args: [60s] ``` -------------------------------- ### Install PostgreSQL Client for Admin Console Access Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-pgbouncer/index.mdx Installs the PostgreSQL client package required to connect to the PgBouncer admin console. This example installs version 14, which was the latest at the time of writing. ```bash apt install postgresql-client-14 ``` -------------------------------- ### Install Rclone on macOS using Homebrew Source: https://github.com/scaleway/docs-content/blob/main/tutorials/encrypt-s3-data-rclone/index.mdx Use the brew package manager to install Rclone on macOS. This is a straightforward command for quick setup. ```bash brew install rclone ``` -------------------------------- ### Add PostgreSQL APT Mirror and Install Packages Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-postgresql/index.mdx Installs curl and ca-certificates, adds the PostgreSQL APT mirror, updates the package cache, and installs PostgreSQL 16 with contrib packages. This is the initial setup step for installing PostgreSQL from its official repository. ```bash sudo apt install curl ca-certificates sudo install -d /usr/share/postgresql-common/pgdg sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' sudo apt update apt install postgresql-16 postgresql-contrib ``` -------------------------------- ### Copy Environment File Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-librechat-with-generative-apis/index.mdx Create a .env file by copying the example configuration. ```bash cp .env.example .env ``` -------------------------------- ### Start Local PostgREST Instance Source: https://github.com/scaleway/docs-content/blob/main/pages/serverless-sql-databases/api-cli/postgrest-row-level-security.mdx Run PostgREST locally using the configuration file. Ensure you are in the directory containing your tutorial.conf file. ```bash postgrest tutorial.conf ``` -------------------------------- ### Run Waypoint Setup Script Source: https://github.com/scaleway/docs-content/blob/main/tutorials/waypoint-plugin-scaleway/index.mdx Execute the setup script to install a Waypoint server and configure the Waypoint HCL file with your container namespace information. ```bash ./setup.sh ``` -------------------------------- ### Example Node Information Output Source: https://github.com/scaleway/docs-content/blob/main/pages/kubernetes/reference-content/wildcard-dns.mdx Example output from `kubectl get nodes -o wide`, showing node status, roles, and IP addresses. ```text NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP node-1 Ready 1h v1.32.3 172.16.28.3 195.154.111.100 node-2 Ready 1h v1.32.3 172.16.28.4 195.154.111.101 ``` -------------------------------- ### Start Grafana Alloy Service Source: https://github.com/scaleway/docs-content/blob/main/pages/cockpit/how-to/send-metrics-with-grafana-alloy.mdx This command starts the Grafana Alloy service using Homebrew. Ensure Grafana Alloy is installed and configured before running this command. ```bash brew services start alloy ``` -------------------------------- ### Create a Fully Configured WordPress Instance Source: https://github.com/scaleway/docs-content/blob/main/tutorials/create-wordpress-instances-cli/index.mdx Use this command to create a new WordPress instance with additional configurations like blog title, language, and weak password allowance. ```bash scw instance server create type=PLAY2-NANO zone=fr-par-2 image=wordpress root-volume=b:20G name=wordpress-instance ip=new tags.0="weblog_title=My Scaleway Blog" tags.1="admin_user_name=myuser" tags.2="admin_email=me@example.com" tags.3="language=en_EN" tags.4="use_weak=on" ``` -------------------------------- ### Create a Basic Backend Source: https://github.com/scaleway/docs-content/blob/main/pages/load-balancer/quickstart.mdx Configure the essential settings for a backend, including its name and the protocol used for communication with backend servers. ```bash scw lb backend create --lb-id --name --backend-protocol http --forward-protocol http ``` -------------------------------- ### Nomad Setup Script Output (Token Exists) Source: https://github.com/scaleway/docs-content/blob/main/tutorials/setup-nomad-cluster/index.mdx This output indicates that the 'nomad.token' file already exists. You may need to delete it if you are starting a new setup. ```shell *** The nomad.token file already exists - not overwriting. If this is a new run, delete it first. *** ``` -------------------------------- ### Install Nvidia Driver for FFmpeg in Docker Source: https://github.com/scaleway/docs-content/blob/main/pages/gpu/troubleshooting/fix-driver-issues.mdx Install the `libnvidia-encode` library for `ffmpeg` usage within Docker containers. The version number should correspond to the driver installed on your instance. This example uses version 525, common with GPU OS12. ```bash apt install -y libnvidia-encode-525 ``` -------------------------------- ### Create a new WordPress Instance Source: https://github.com/scaleway/docs-content/blob/main/tutorials/create-wordpress-instances-cli/index.mdx Use this command to provision a new WordPress instance with specified type, zone, image, root volume size, name, and IP address. The output will include the Instance's IP address for accessing the WordPress setup. ```bash scw instance server create type=PLAY2-NANO zone=fr-par-2 image=wordpress root-volume=b:20G name=wordpress-instance ip=new ``` -------------------------------- ### Retrieve Server Installation Status Source: https://github.com/scaleway/docs-content/blob/main/pages/elastic-metal/api-cli/elastic-metal-with-api.mdx After creating a server, use a `GET` request to the `/baremetal/v1/zones/{zone}/servers/{server_id}` endpoint to check its current status and installation progress. ```bash curl https://api.scaleway.com/baremetal/v1/zones/fr-par-2/servers/{server_id} -H "X-Auth-Token: $SCW_SECRET_KEY" | jq . ``` -------------------------------- ### Start Virtual Machine with Console Access Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-kvm-elastic-metal/index.mdx Starts the virtual machine and attaches to its console, allowing immediate interaction after boot. ```bash virsh start ubuntu1804 --console ``` -------------------------------- ### Install and Enable Fail2Ban Source: https://github.com/scaleway/docs-content/blob/main/tutorials/pihole-vpn/index.mdx Install Fail2Ban to protect your server from brute-force attacks by monitoring log files and banning suspicious IP addresses. Enable and start the service immediately. ```bash apt install fail2ban -y systemctl enable fail2ban --now ``` -------------------------------- ### Initialize Go Module and Install Tink Dependencies Source: https://github.com/scaleway/docs-content/blob/main/pages/key-manager/api-cli/configuring-tink.mdx Navigate to your project directory, initialize a Go module, and install the Tink library along with the Scaleway Tink Provider for Go. Run `go mod tidy` to update your go.mod file. ```bash cd go mod init # Install Tink for Go go get -u github.com/tink-crypto/tink-go/v2 # Install the Scaleway Tink extension go get -u github.com/scaleway/tink-go-scwkms go mod tidy ``` -------------------------------- ### Connect to HTTP Services in Go (GET Request) Source: https://github.com/scaleway/docs-content/blob/main/pages/serverless-functions/reference-content/code-examples.mdx Example of making a GET request to an external HTTP service in Go using `net/http`. It reads and returns the response body. ```go package myfunc import ( "io" "net/http" ) func Handle(w http.ResponseWriter, r *http.Request) { req, err := http.Get("https://jsonplaceholder.typicode.com/posts") if err != nil { w.WriteHeader(http.StatusInternalServerError) return } body, err := io.ReadAll(r.Body) if err != nil { w.WriteHeader(http.StatusInternalServerError) return } w.Write([]byte(body)) } ``` -------------------------------- ### Create VulsRepo Configuration File Source: https://github.com/scaleway/docs-content/blob/main/tutorials/vuls-security-scanner/index.mdx Copy the sample configuration file to create a new configuration file for VulsRepo. ```bash cp vulsrepo-config.toml.sample vulsrepo-config.toml ``` -------------------------------- ### Install XRDP and UFW Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-remote-desktop-ubuntu-2204/index.mdx Install the xRDP server for remote desktop access and UFW (Uncomplicated Firewall) to secure your instance. The xRDP service is configured to start automatically on system reboot. ```bash apt install xrdp ufw ``` -------------------------------- ### Install Desktop Environment Packages Source: https://github.com/scaleway/docs-content/blob/main/tutorials/deploy-remote-desktop-ubuntu-2204/index.mdx Install the Xfce desktop environment and related packages required for a remote desktop setup. This includes the X server, Xfce core components, and utilities. ```bash apt install xorg xfce4 xfce4-goodies dbus-x11 x11-xserver-utils ``` -------------------------------- ### Create Backup Script Files and Directories Source: https://github.com/scaleway/docs-content/blob/main/tutorials/migrate-dedibox-to-elastic-metal/index.mdx Sets up the necessary files and directories for the backup script, including the script itself, configuration file, and log directories. ```bash touch scw-backup.sh .scw-configrc chmod 700 scw-backup.sh chmod 600 .scw-configrc mkdir -p /var/log/duplicity touch /var/log/duplicity/logfile{.log,-recent.log} ``` -------------------------------- ### Install Python 3.13 and Create Virtual Environment Source: https://github.com/scaleway/docs-content/blob/main/pages/apache-spark/how-to/use-private-networks.mdx Installs Python version 3.13 using pyenv and creates a dedicated virtual environment named 'jupyter-spark-3.13' for your Spark and Jupyter setup. ```bash pyenv install 3.13.0 pyenv virtualenv 3.13.0 jupyter-spark-3.13 pyenv activate jupyter-spark-3.13 ``` -------------------------------- ### Download Node.js Setup Script Source: https://github.com/scaleway/docs-content/blob/main/tutorials/run-messaging-platform-with-rocketchat/index.mdx Downloads the Node.js setup script for version 22.x. ```bash sudo apt -y update && curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh ``` -------------------------------- ### Install Scaleway CLI Source: https://github.com/scaleway/docs-content/blob/main/tutorials/migrating-from-another-managed-kubernetes-service-to-scaleway-kapsule/index.mdx Install the Scaleway CLI using a script and initialize it with your account credentials for managing Scaleway resources. ```bash curl -s | sh scw init ``` -------------------------------- ### Start Python 3 Interpreter Source: https://github.com/scaleway/docs-content/blob/main/tutorials/flask/index.mdx Verifies that Python 3 is installed and accessible from the command line. ```bash python3 ``` -------------------------------- ### Set Up Virtual Environment and Install Dependencies (Linux/macOS) Source: https://github.com/scaleway/docs-content/blob/main/tutorials/hosting-django-webapp-serverless-containers/index.mdx Sets up a Python virtual environment and installs Django and Gunicorn for your project on Linux or macOS. ```bash python3 -m venv venv source venv/bin/activate pip install django gunicorn ``` -------------------------------- ### Download Composer Installer Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-php-composer/index.mdx Download the Composer setup script to the current directory using PHP. ```bash php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ``` -------------------------------- ### Node.js Version Output Source: https://github.com/scaleway/docs-content/blob/main/tutorials/install-parse-server/index.mdx Example output showing the installed Node.js version after running `node -v`. ```text v18.16.0 ```