Friday, February 24

2017's Pi Setup ( Raspberrry Pi not Included )


Raspberry Pi - Initial Setup
  1. create new sd card from minbian
  2. copy setup.sh & smb.conf to sd card
  3. boot raspberry pi with sd card
  4. ssh into raspberry pi
  5. login
    1. username: root
    2. password: raspberry
  6. create users
    1. adduser pi
    2. adduser node
  7. make users super users
    1. usermod -G sudo pi
    2. usermod -G sudo node
  8. run setup - part 1
  9. download and run expandfs script
    1. https://drive.google.com/open?id=0BxzF_ZhOO8dlRmJYN0szd3ZFNlE
  10. reboot
  11. run setup - part 2



Setup - Part 1

apt-get update && apt-get upgrade && apt-get -y dist-upgrade
apt-get clean
apt-get install -y sudo parted nano
wget https://drive.google.com/file/d/0BxzF_ZhOO8dlVDhPLVZlVDhGOXc/view?usp=sharing




Setup - Part 2

apt-get install -y apt-utils curl sudo samba samba-common-bin

#nodejs 6.x
curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -y nodejs node-gyp make

#utils
apt-get install -y tmux mc i2c-tools

#samba-setup


cp /boot/smb.conf /etc/samba/conf




smb.conf

[global]
    workgroup = WORKGROUP
    server string = Raspberry PI file server
    netbios name = pi2b
    security = USER
    map to guest = Bad User
    syslog = 0
    log file = /var/log/samba/log.%m
    log level = 2
    max log size = 100
    dns proxy = No
    usershare allow guests = Yes
    panic action = /usr/share/samba/panic-action %d
    idmap config * : backend = tdb
    load printers = No
    disable spoolss = Yes
    wins support = yes

[PI Shares]
    comment = Share access
    path = /home/pi/shares
    read only = No
    guest ok = Yes
    create mask=0777
    directory mask=0777
    public = yes
    force user = pi

[Node]
    comment = Share access
    path = /home/node
    read only = No
    guest ok = Yes
    create mask=0777
    directory mask=0777
    public = yes
    force user = node

[boot]
    comment = Share access
    path = /boot
    read only = No
    guest ok = Yes
    create mask=0777
    directory mask=0777
    public = yes
    force user = root

0 comments :

Post a Comment