Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tutorials/automation/sickrage.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Simple configuration, turn your raspberry pi in a Torrent Box
# Best tutorial: http://www.dennisjanssen.be/tutorials/raspberry-pi-media-center/
7 changes: 7 additions & 0 deletions tutorials/backup/sdcardbackup.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Backups:

sudo dd bs=4m if=/dev/rdisk2 | gzip > ~/Desktop/BackupName.img.gz

#Using backup image
gzip -dc ~/Desktop/pi.gz | sudo dd of=/dev/rdisk1 bs=1m

14 changes: 14 additions & 0 deletions tutorials/default-configuration/changedefaultuser.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#Step 1: Remove pi user and create your own
#Makes it more secure

sudo su

adduser felipe sudo
sudo useradd -m felipe -G sudo


sudo passwd felipe

sudo passwd visudo

sudo deluser -remove-home pi
5 changes: 5 additions & 0 deletions tutorials/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Simple Tutorials

Not everything is easy, sometimes we need to search a lot to find an answer.

Put here your tutorials which took some time to figure it out but when you did a facepalm moment happened.
16 changes: 16 additions & 0 deletions tutorials/remote-access/noip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#CONFIGURE NO-IP

mkdir /home/pi/noip
cd /home/pi/noip
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
tar vzxf noip-duc-linux.tar.gz
cd noip-2.1.9-1

sudo make
sudo make install
sudo /usr/local/bin/noip2
sudo nano /etc/rc.local

/usr/local/bin/noip2 #add this after fi and before exit 0

sudo /usr/local/bin/noip2 -S #check to see if works
66 changes: 66 additions & 0 deletions tutorials/security/googleauth.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#Google-AUTH

sudo su

sudo apt-get install libpam-google-authenticator

exit #log into the account you want to get authentication


google-authenticator

#I answered all 'y'

sudo nano etc/pam.d/sshd

#copy this right after @include common-account
auth required pam_google_authenticator.so


sudo nano /etc/ssh/sshd_config
#search Challenge... and change from 'no' to 'yes'
ChallengeResponseAuthentication yes

#In another terminal, check if it is working
sudo service ssh restart

#OPTIONAL: Don't require code when in LAN




sudo nano /etc/pam.d/sshd


# use Google Authenticator
# The ‘nullok’ option tells PAM whenever no config for 2-factor authentication is found,
# it should just ignore it. This will prevent you from being locked out.
auth [success=1 default=ignore] pam_access.so accessfile=/etc/security/access.conf
auth required pam_google_authenticator.so nullok

sudo nano /etc/security/access.conf

# skip one-time password if logging in from the local network
# only allow from local IP range
+ : ALL : 192.168.1.0/24
+ : ALL : LOCAL
- : ALL : ALL


sudo service ssh restart

#Check in another terminal if it worked



#@include common_account..
#comment above line :X


#ON JESSIE:

On Jessie have a look at /etc/systemd/system/autologin@.service you will need to change the line:-

ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM