Skip to content

Instantly share code, notes, and snippets.

@mattia72
Last active February 21, 2021 08:13
Show Gist options
  • Save mattia72/3138318d03d5516513807e67a6bb7358 to your computer and use it in GitHub Desktop.
Save mattia72/3138318d03d5516513807e67a6bb7358 to your computer and use it in GitHub Desktop.
Raspi Lite Setup

Setup raspi lite

download

https://www.raspberrypi.org/software/operating-systems/

ssh

Enable:

touch /media/.../boot/ssh

login

ssh pi@....
pw:raspberry
ssh-copy-id -i ~/.ssh/id_rsa.pub <ipaddr>

or

cat ~/.ssh/id_rsa.pub | ssh pi@<IP-ADDRESS> 'cat >> .ssh/authorized_keys'

raspi-config

raspi-config
  • pw,
  • ssh,
  • ?

wifi

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
    ssid="ssid"
    psk="pw"
}
sudo reboot

usb

sudo apt-get install usbmount ntfs-3g

Configure usbmount to mount specified filesystems by opening the usbmount file:

    $ sudo nano /etc/usbmount/usbmount.conf.
    FILESYSTEMS="vfat ntfs fuseblk ext2 ext3 ext4 hfsplus"
    FS_MOUNTOPTIONS="-fstype=ntfs-3g,nls=utf8,umask=007,gid=46 -fstype=fuseblk,nls=utf8,umask=007,gid=46 -fstype=vfat,gid=1000,uid=1000,umask=007"
    sudo vi /etc/udev/rules.d/usbmount.rules

http://raspberrypi.stackexchange.com/questions/41959/automount-various-usb-stick-file-systems-on-jessie-lite

usb fix

sudo setfacl -Rdm g:pi:rwx /mnt/usbstorage
sudo setfacl -Rm g:pi:rwx /mnt/usbstorage
sudo mount -o uid=pi,gid=pi /dev/sda1 /mnt/usbstorage

so:

/dev/sda1 on /mnt/usbstorage type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment