Skip to content

Instantly share code, notes, and snippets.

@bmweiner
Last active November 16, 2018 00:30
Show Gist options
  • Save bmweiner/a9849938803a7af138663da84c117cac to your computer and use it in GitHub Desktop.
Save bmweiner/a9849938803a7af138663da84c117cac to your computer and use it in GitHub Desktop.
Raspberry Pi system administration.

Raspberry Pi Setup

Installation

  1. Download raspbian

  2. Install to SD Card

    diskutil list
    diskutil unmountDisk /dev/disk<#>
    sudo dd bs=1m if=<image.img> of=/dev/rdisk<#> conv=sync
    sudo diskutil eject /dev/rdisk<#>
    
  3. Enable SSH on SD

    touch ssh /boot
    

Software Update

  • rpi-update
  • apt-get full-upgrade
  • apt install vim # fixes vi mapping issue

Keyboard

  • vi /etc/default/keyboard - add XKBLAYOUT="us"

Filesystem

  • fdsik - partition
  • mkfs - make
  • mount - mount, use /mnt for temp
  • umount - unmount
  • vi /etc/fstab - make mount permanent

Permissions

  • chmod - modes set rwx for ugo
  • chown - owner [user]:[group]

NFS Setup

  • sudo apt install nfs-kernel-server
  • Add config to /etc/exports - /mnt/shared *(rw,no_subtree_check,async,insecure)
  • sudo systemctl restart nfs-kernel-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment