Skip to content

Instantly share code, notes, and snippets.

View maditnerd's full-sized avatar

Rémi Sarrailh maditnerd

View GitHub Profile
@jgarber
jgarber / gist:5893179
Last active December 19, 2015 03:49
Setting up motion with a raspberry pi camera
ssh-copy-id pi@192.168.X.X
# on the pi
sudo su -
cat <<EOF >> /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Your SSID Here"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
@maditnerd
maditnerd / menu
Last active December 15, 2015 11:18
menu
#!/bin/bash
MENU=$(whiptail --menu "Install Wizard By Sarrailh Remi" 0 0 0 \
"unsecure_samba" "Unsecure access to your PI" \
"lighttpd" "Install LigHTTPd and SQLite" \
"lighttpd_error" "Display PHP Errors" \
"wiringpi" "Install wiringPI" \
"gitsetup" "Setup username and email in git" \
"rootsetup" "Activate Root account" \
"yana" "Install yana (home automation)" \
@maditnerd
maditnerd / vnc
Created December 20, 2012 22:03
Installe un serveur VNC cd /tmp wget smarturl.it/vnc chmod +x /tmp/vnc ./vnc
#/bin/bash
if [ $(id -u) -ne 0 ]; then
printf "Script must be run as root. Try 'sudo bash'\n"
exit 1
fi
echo "Installation d'un serveur VNC sur la machine"
apt-get install tightvncserver