Skip to content

Instantly share code, notes, and snippets.

@advayDev1
Last active July 12, 2018 04:21
Show Gist options
  • Save advayDev1/5d85c09657359403a156bdcf7b2615c3 to your computer and use it in GitHub Desktop.
Save advayDev1/5d85c09657359403a156bdcf7b2615c3 to your computer and use it in GitHub Desktop.
raspberry pi setup

Cloning an existing one

  • Copy sd card
  • Mount new card and edit these on the NEW card (NOT original card paths!!)
    • nano /etc/hostname - unique name
    • nano /etc/dhcpcd.conf - edit the ip address and mac address
    • rm /etc/ssh/ssh_host_* - so ssh host keys get regenerated
    • rm /home/dev/.vnc/*.log ; rm /home/dev/.vnc/*.pid ; rm /home/dev/.vnc/private.key - so vnc sessions are regenerated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment