-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
134 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Generate certificates for rdesktop services | ||
Before=kasnvncservice.service | ||
Before=kclient.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/bash -c 'if [ ! -f /opt/rdesktop/certificate.pem ]; then /etc/rdesktop/generate-certs.sh ; fi' | ||
|
||
[Install] | ||
WantedBy=kasmvncserver.service | ||
WantedBy=kclient.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
openssl req -new -x509 -days 3650 -nodes \ | ||
-out /etc/rdesktop/certificate.pem \ | ||
-keyout /etc/rdesktop/privatekey.key \ | ||
-subj "/C=NL/ST=none/L=none/O=SpotSnel/OU=RDesktop/CN=*" | ||
|
||
chown :users /etc/rdesktop/certificate.pem /etc/rdesktop/privatekey.key | ||
chmod g+r /etc/rdesktop/certificate.pem /etc/rdesktop/privatekey.key | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
network: | ||
protocol: http | ||
interface: 0.0.0.0 | ||
websocket_port: 8445 | ||
use_ipv4: true | ||
use_ipv6: true | ||
udp: | ||
public_ip: auto | ||
port: auto | ||
stun_server: auto | ||
ssl: | ||
pem_certificate: /etc/rdesktop/certificate.pem | ||
pem_key: /etc/rdesktop/privatekey.key | ||
require_ssl: false | ||
|
||
logging: | ||
log_writer_name: all | ||
log_dest: logfile | ||
level: 1 | ||
|
||
command_line: | ||
prompt: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=kclient wrapper | ||
|
||
[Service] | ||
Type=simple | ||
User=gbraad | ||
ExecStart=/usr/bin/env node /opt/kclient/index.js | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=PulseAudio system server | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[rdesktop] | ||
title = "KasmVNC Client" | ||
exec = "" | ||
fmhome = "/" | ||
subfolder = "/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
CONFIG="/etc/rdesktop/rdesktop.ini" | ||
alias rdesktopini="git config -f $CONFIG" | ||
|
||
eval $(rdesktopini --get rdesktop.exec) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters