Skip to content

Instantly share code, notes, and snippets.

View rvido's full-sized avatar

Richard Vidal-Dorsch rvido

  • Aura Identity Protection
  • Costa Mesa, CA
  • 05:32 (UTC -12:00)
View GitHub Profile
@rvido
rvido / setup-xrdp-ubuntu.sh
Last active February 25, 2023 14:34
A shell script to setup Remote Desktop Ubuntu 16.04
#!/bin/bash
#------------------------------------------------
# Setup Ubuntu 16.04 with xRDP via MATE-Desktop
#------------------------------------------------
#
sudo apt update
sudo apt install xrdp
sudo apt install mate-core mate-desktop-environment mate-notification-daemon
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
@rvido
rvido / test-led.sh
Created July 8, 2016 17:49
A shell script for testing (iManager) GPIO-LED
#!/bin/bash
################################################################################
# test-led.sh - Shell script to test GPIOs through sysfs
#
# Copyright (c) 2016 Richard Vidal-Dorsch
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
@rvido
rvido / setup-xrdp.sh
Last active August 16, 2016 16:13
A shell script to setup Remote Desktop in Fedora 23/24
#!/bin/bash
#------------------------------------------------
# Setup Fedora 23/24 with xRDP via XFCE4
#------------------------------------------------
# Original version at https://goo.gl/VL4mzQ
#
# Install XFCE4 desktop
sudo dnf -y --refresh groupinstall xfce-desktop
@rvido
rvido / htpdate.sh
Last active September 14, 2017 17:16
Time synchonization
#!/bin/bash
# This is a simple shell script to synchonize a computer's time with a webserver
# as reference time source.
# Make sure command 'curl' is installed or use 'wget' instead
# Use any server URL such as www.yahoo.com, www.ebay.com, www.ibm.com,
# www.microsoft.com, etc.
URL="http://www.google.com"
CURL=$(which curl)