diff --git a/tutorials/automation/sickrage.txt b/tutorials/automation/sickrage.txt new file mode 100644 index 0000000..8bf7a67 --- /dev/null +++ b/tutorials/automation/sickrage.txt @@ -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/ diff --git a/tutorials/backup/sdcardbackup.txt b/tutorials/backup/sdcardbackup.txt new file mode 100644 index 0000000..103da56 --- /dev/null +++ b/tutorials/backup/sdcardbackup.txt @@ -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 + diff --git a/tutorials/default-configuration/changedefaultuser.txt b/tutorials/default-configuration/changedefaultuser.txt new file mode 100644 index 0000000..419b1e7 --- /dev/null +++ b/tutorials/default-configuration/changedefaultuser.txt @@ -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 diff --git a/tutorials/readme.md b/tutorials/readme.md new file mode 100644 index 0000000..ea677ae --- /dev/null +++ b/tutorials/readme.md @@ -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. diff --git a/tutorials/remote-access/noip.txt b/tutorials/remote-access/noip.txt new file mode 100644 index 0000000..02a3e42 --- /dev/null +++ b/tutorials/remote-access/noip.txt @@ -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 diff --git a/tutorials/security/googleauth.txt b/tutorials/security/googleauth.txt new file mode 100644 index 0000000..2a3b2b0 --- /dev/null +++ b/tutorials/security/googleauth.txt @@ -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 + +