Skip to content

Add Rustdesk module #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

BenraouaneSoufiane
Copy link

@BenraouaneSoufiane BenraouaneSoufiane commented Jul 30, 2025

Closes #79

Description

This PR add new module, install minimal desktop environment (xfce), virtual display, ,rustdesk package from deb file, init new screen, export DISPLAY environment variable with last created virtual screen, start new xfce session & execute the rustdesk cli, generate new password, change the default password, then log the ID & password to be used within rustdesk client to connect to the host

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Overview/test video: live demo that launch rustdesk with GUI in a docker container https://youtu.be/_rR-l7nARN4
Screenshots:
image
image
image
image

Path: registry/BenraouaneSoufiane/modules/rustdesk
New version: v1.0.0
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

Related Issues

/claim #79 (remain asset 150$)

@BenraouaneSoufiane
Copy link
Author

@matifali can you release the pending asset (150$)?

@DevelopmentCats
Copy link
Contributor

@matifali can you release the pending asset (150$)?

This is released automatically once the PR is merged and closed

@BenraouaneSoufiane
Copy link
Author

@matifali can you release the pending asset (150$)?

This is released automatically once the PR is merged and closed

No comment! But why I'm being delayed as this PR resolve the issue?

@DevelopmentCats
Copy link
Contributor

@matifali can you release the pending asset (150$)?

This is released automatically once the PR is merged and closed

No comment! But why I'm being delayed as this PR resolve the issue?

There is no intentional delay, as Algora releases the bounty once the PR is approved, and merged.

This is outlined in the Coder Bounty Issue #213

Comment on lines +13 to +15
# A built-in icon like "/icon/code.svg" or a full URL of icon
icon_url = "https://upload.wikimedia.org/wikipedia/commons/9/96/Rustdesk.svg"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we have this if you have the rustdesk svg in the icons dir?

```
Also add this within resource "docker_container" "workspace":

```hcl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be tf instead of hcl

RUSTDESK_DEB="rustdesk-$RUSTDESK_VERSION-x86_64.deb"

echo "Downloading RustDesk $RUSTDESK_VERSION..."
wget "https://github.com/rustdesk/rustdesk/releases/download/$RUSTDESK_VERSION/$RUSTDESK_DEB"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RustDesk offers options for various different architectures. Can you set this up to work with more than just debian based systems?

# Start perform other necessary actions perform other necessary actions
echo "Starting Rustdesk..."
# Start virtual display
Xvfb :99 -screen 0 1024x768x16 &
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the resolution should be a variable, so that it can be changed by the user if they don't want the display to be stuck in this resolution.

@@ -0,0 +1,2 @@
[security]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary?

You could also make the password something that is set by the user or default in a variable, so that the user can control this and they wouldn't have to go digging for the password or set it themselves after install

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These deb's should not be included in the PR and are likely left over from testing the module. You might also want to ensure that your cleanup is properly catching these since generally they should have been removed automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustdesk module
2 participants