Bag - 0

Episodes

view

Google Search Shortcuts

This is a compilation of different Google shortcuts for the Google search engine that you can use so that you can make the make the most out of your Google searches.

Step 1

Gather The Parts

01_still

There really isn’t much you need to do this project, and aside from the Raspberry Pi, you probably already have everything you need.

  1. Raspberry Pi = $35.00
  2. SD Card = $5.00
  3. 1 TB External Hard Drive = $60.00

Here are some other parts and tools that you you will probably find around the house (as I did):

  1. Keyboard and Mouse
  2. Ethernet Cable
  3. Monitor

Step 2

Installing The Software

04_still

Download Raspbian

The first thing you want to do is download the Raspbian image using the link above. This is a stripped down version of Debian linux, so what I’m doing should also work on other Debian based distros, such as Ubuntu.

You then want to burn this one to an SD card using either Win32diskImager on Windows or the dd command for linux or Mac. Then plug the SD card into your Pi with video, mouse, keyboard, internet, power, and your external storage.

Step 3

Setting Up The NAS

05_still

 

Once your pi boots up, you can login using “pi” and “raspberry” and then follow these steps to set it up as a NAS:

  1. Update apt-get and install NTFS-3g
    • sudo apt-get update
    • sudo apt-get install ntfs-3g
  2. Find out what path your external drive is located at (ex. /dev/sda1).
    • sudo apt-get update
  3. Mount the external drive to the media folder and then make a shared folder within it.
    • sudo mkdir /media/NASDrive
    • sudo mount -t auto /dev/sda1 /media/NASDrive
    • sudo mkdir /media/NASDrive/shared
  4. Install the Samba software.
    • sudo apt-get install samba-common-bin
  5. Edit the Samba config file.
    • sudo nano /etc/samba/smb.conf
    • Under the “Authentication” header, remove the hash (#) before
      security = user
    • Under the “Share Definitions” header, change
      read only = yes

      to

      read only = yes
    • At the bottom of the page add:
      [Shared]
      comment = Shared Folder
      path = /media/NASDrive/shared
      valid users = @users
      force group = users
      create mask = 0660
      directory mask = 0771
      read only = no
      
  6. Restart Samba
    • sudo /etc/init.d/samba restart
  7. Add a new user to linux
    • sudo useradd [enter new user here] -m -G
    • Create a new password:
      sudo passwd [enter new users name]
  8. Add new user to Samba
    • sudo smbpasswd -a [enter new users name]

Step 4

Final Steps

06_still
 

Now on a different computer, if you browse the network you should see your raspberry pi. Trying to access it will prompt you for your username and password, and you can just enter the user and password we just created. Then start storing stuff to it!

If you want to access it from mobile devices you can use apps like Samba for Android or File Explorer for iOS to access network shares.

Alternative Method

Using Open Media Vault

03_still

 
Download OpenMediaVault

Before we dive into the nerdy method of setting up a NAS on a Raspberry Pi, a super simple alternative is to use Open Media Vault. Open Media Vault is a distribution intended to make it super simple to set up and manage your own NAS.

If you want to give it a try yourself, here are the dead easy steps for setting it up:

      1. Download the most recent OpenMediaVault Raspberry Pi Image (using the button above)
      2. Burn it to an SD card (you can use this guide if you don’t know how)
      3. Plug it into your Raspberry Pi along with a monitor, network cable and power.
      4. When it boots up, the screen will give you your IP Address along with instructions on how to log in.
      5. On a separate computer, open up a browser and type in your Pi’s IP address. On the resulting page, login using the provided credentials (default should be admin and openmediavault).
      6. Use the options provided to set up your networking share and add and manage users!