source: https://forums.raspberrypi.com/viewtopic.php?t=178405
# Download the script as executable
$> sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
$> sudo chmod +x /usr/bin/install-wifi
source: https://forums.raspberrypi.com/viewtopic.php?t=178405
# Download the script as executable
$> sudo wget http://www.fars-robotics.net/install-wifi -O /usr/bin/install-wifi
$> sudo chmod +x /usr/bin/install-wifi
#!/usr/bin/env bash | |
clear | |
wget --version >/dev/null 2>&1 || { echo >&2 "I require Bash Shell but it's not installed. ¯\_(ツ)_/¯ Aborting."; exit 1; } | |
cd | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
chmod +x Miniconda3-latest-Linux-x86_64.sh |
#!/bin/bash | |
# Put 644 to files & 755 for directories | |
find ./project \( -type f -execdir chmod 644 {} \; \) -o \( -type d -execdir chmod 755 {} \; \) | |
# Make bash scripts executable | |
chmod +x ./**/*.sh | |
# Based on https://gist.github.com/gfguthrie/9f9e3908745694c81330c01111a9d642#gistcomment-3143229 | |
(...) | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
DEFAULT_NODE_VER='default'; | |
while [ -s "$NVM_DIR/alias/$DEFAULT_NODE_VER" ]; do |
#!/usr/bin/env bash | |
# Obtained from: https://github.com/haikieu/shell-progressbar | |
#################################### DEMO ###################################### | |
# This is a simple demostration | |
# Important notice: below code is not necessary in your code, remember to remove before using | |
################################################################################ |
# https://tech.cccp.io/post/8_linux_boinc_install/ | |
# ------------------------------------------------ | |
# Update SSOO | |
yum update -y | |
# Update Engine | |
yum install -y \ | |
epel-release \ | |
boinc-client \ |
ssh pi@<ip> | |
# Change default user password | |
passwd | |
# Install DevOps | |
sudo su - | |
apt-get update && apt-get -y dist-upgrade && apt-get install raspberrypi-ui-mods | |
apt-get install --no-install-recommends xinit | |
apt-get install --no-install-recommends xserver-xorg |
#!/usr/bin/env bash | |
# A base script to copy & paste typical bash script actions | |
# You can also use some better like: https://devhints.io/bash | |
# DO WHAT THE F*CK YOU WANT TO PUBLIC LICENSE # | |
# Version 2, December 2004 # | |
# # | |
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> # | |
# # |
#!/bin/bash | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "Must run as root!" | |
exit 1 | |
fi | |
AGENT_UNINSTALL_SCRIPT="/opt/jc/bin/removeAgent" | |
if [[ -f $AGENT_UNINSTALL_SCRIPT ]]; then | |
chmod 0700 $AGENT_UNINSTALL_SCRIPT |
#!/usr/bin/env bash | |
# Thanks to: | |
# https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/ | |
# https://pydeeplearning.com/opencv/install-opencv3-with-anaconda-python3-6-on-ubuntu-18-04/` | |
python --version >/dev/null 2>&1 || { echo >&2 "I require python@3 environment but it's not installed. ¯\_(ツ)_/¯ Aborting."; exit 1; } | |
conda --version >/dev/null 2>&1 || { echo >&2 "I require conda utility but it's not installed. ¯\_(ツ)_/¯ Aborting."; exit 1; } | |
pip --version >/dev/null 2>&1 || { echo >&2 "I require pip packagem amaner but it's not installed. ¯\_(ツ)_/¯ Aborting."; exit 1; } |