1
This commit is contained in:
Evan Pratten 2023-10-11 11:04:59 -04:00
parent 7c77672226
commit 78be1a31eb
4 changed files with 52 additions and 27 deletions

View File

@ -0,0 +1,5 @@
#! /bin/sh
set -e
usdview $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

View File

@ -1,11 +0,0 @@
#! /bin/bash
set -e
# Make the keys dir
KEYS_DIR=~/.config/gnome-remote-desktop/keys
mkdir -p $KEYS_DIR
# Generate keys
openssl genrsa -out $KEYS_DIR/tls.key 4096
openssl req -new -key $KEYS_DIR/tls.key -out $KEYS_DIR/tls.csr
openssl x509 -req -days 36500 -signkey $KEYS_DIR/tls.key -in $KEYS_DIR/tls.csr -out $KEYS_DIR/tls.crt

View File

@ -2,7 +2,7 @@
link: link:
relink: true relink: true
- clean: ['~'] - clean: ["~"]
- create: - create:
# Common organizational dirs # Common organizational dirs
@ -53,6 +53,9 @@
~/.local/share/nautilus/scripts/Open in Video Trimmer: ~/.local/share/nautilus/scripts/Open in Video Trimmer:
path: configs/nautilus/scripts/Open in Video Trimmer path: configs/nautilus/scripts/Open in Video Trimmer
mode: 755 mode: 755
~/.local/share/nautilus/scripts/USDView:
path: configs/nautilus/scripts/USDView
mode: 755
~/bin/run-logid: ~/bin/run-logid:
path: configs/scripts/run-logid path: configs/scripts/run-logid
mode: 755 mode: 755
@ -76,6 +79,7 @@
~/.config/user-tmpfiles.d/discord-rpc.conf: configs/user-tmpfiles.d/discord-rpc.conf ~/.config/user-tmpfiles.d/discord-rpc.conf: configs/user-tmpfiles.d/discord-rpc.conf
~/.config/logid/logid.cfg: configs/logid/logid.cfg ~/.config/logid/logid.cfg: configs/logid/logid.cfg
~/houdini19.5/scripts: configs/houdini19.5/scripts ~/houdini19.5/scripts: configs/houdini19.5/scripts
~/sln: solutions
- shell: - shell:
# Make sure we have our git modules # Make sure we have our git modules
@ -85,9 +89,13 @@
# Ensure that all downloaded scripts are executable # Ensure that all downloaded scripts are executable
- [chmod +x configs/scripts/*, Making bin scripts executable] - [chmod +x configs/scripts/*, Making bin scripts executable]
- [chmod +x configs/nautilus/scripts/*, Making nautilus scripts executable] - [chmod +x configs/nautilus/scripts/*, Making nautilus scripts executable]
- [chmod +x solutions/*, Making solution scripts executable]
# Configure GNOME # Configure GNOME
- [sh ./helpers/configure-gnome.sh, Configuring GNOME] - [sh ./helpers/configure-gnome.sh, Configuring GNOME]
# Configure Termux if on Android # Configure Termux if on Android
- [termux-reload-settings || true, Trying to reload Termux] - [termux-reload-settings || true, Trying to reload Termux]
# Configure Git # Configure Git
- [bash ./helpers/git-config-features.sh, Setting up optional git-config features] - [
bash ./helpers/git-config-features.sh,
Setting up optional git-config features,
]

View File

@ -0,0 +1,23 @@
#! /bin/bash
# This script will do the work needed to configure Gnome Remote Desktop headlessly.
# Useful if you need RDP access to a remote machine and forgot to configure it before-hand
set -e
# Make the keys dir
KEYS_DIR=~/.config/gnome-remote-desktop/keys
mkdir -p $KEYS_DIR
# Generate keys
openssl genrsa -out $KEYS_DIR/tls.key 4096
openssl req -new -key $KEYS_DIR/tls.key -out $KEYS_DIR/tls.csr
openssl x509 -req -days 36500 -signkey $KEYS_DIR/tls.key -in $KEYS_DIR/tls.csr -out $KEYS_DIR/tls.crt
# Set the certificates
grdctl rdp set-tls-cert $KEYS_DIR/tls.crt
grdctl rdp set-tls-key $KEYS_DIR/tls.key
grdctl rdp disable-view-only
# Inform of that to run next
echo "To finish GRD RDP setup, run:\
\n\tgrdctl rdp set-credentials <username> <password>\
\n\tgrdctl rdp enable"