Raspberry PI 2

First time setting up:

  1. Setting up raspbian
    1. You will need USB wifi adaptors – 802.11N
    2. Wireless keyboard and mouses
    3. Download latest raspbian
      1. https://www.raspberrypi.org/
      2. Noobs/Raspbian
      3. Download torrent to the micro sd/ sd burner (on your local computer)
    4. Setting up the sd card: (on your local computer)
      1. format the sd card – use the formatting tools on sd association (https://www.sdcard.org/downloads/formatter_4/eula_windows/index.html)
      2. even if the card is bigger – the sd card burner will setup the size for the os
      3. copy all the downloaded zip files to sd card
      4. When this is done put the sd card into the raspberry pi 2
    5. keyboard, mouse, wifi and sd card adapters all needs to be on raspberry
    6. put the power up – micro usb
    7. connect hdmi to screen
    8. select the raspbian option on the start up screen and start installing
    9. when the installation done – set the boot path (follow the video guide)
    10. Setting up wifi:
      1. on initial screen – go to wifi config and follow the setu process
    11. Power supply:
      1. any micro usb charger with 5volts power supply at 1A current or more
      2. i’m using Samsung galaxy tab’s charger


Buying wifi adapter from anything below:

  1. http://au.rs-online.com/web/p/wireless-adapters/8920012/
  2. http://www.ebay.com.au/itm/150-Mbps-USB-Wifi-Adapter-W-Antenna-Raspberry-Pi-Mac-OSX-Windows-Linux-/281704710784?hash=item4196e8c280:g:PS4AAOSwx-9WzACc
  3. http://www.ebay.com.au/itm/150Mbps-Mini-USB-WiFi-Wireless-Adapter-Network-LAN-Card-802-1n-g-b-Ralink-RT5370-/182304215506?hash=item2a722d91d2:g:r10AAOSwMtxXq-u-
  4. http://www.ebay.com.au/itm/New-Wireless-USB-Adapter-LAN-Wifi-Dongle-f-Raspberry-Pi-802-11b-g-n-150Mbps-AU-/111838168586?hash=item1a0a13060a:g:GzwAAOSwgyxWXUNj

Installing windows 10:


Installing raspbian with pixel (full desktop version):


Shutting down raspberry pi:

  1. Shutdown like windows from the menu bar
    1. green light (next to the red light) which indicates activity stops blinking when the pi shuts down
    2. wait for a few seconds and then unplug the power
    3. Done

WinSCP – Public key authentication

  • Generate public & private key with a passphrase using PuttyGen
  • Send public key to the UNIX admins to attach it to the login
  • Attach the private key stored on the computer to the login parameters
  • Use the passphrase for the private key to login


Removing /public from URL

There are couple of ways for doing this:

  1. htaccess method:
    • move the htaccess file from public folder to the root folder
    • rename server.php to index.php
    • that’s it really!
    • The biggest flaw using this way is that .env file becomes accessible to web.
  2. Using Content Moving:
  3. Changing the document root on the server



Find this out: