Raspberry Pi

Submitted by admin on

Raspberry Pi

Notes on my experiments with a Raspberry Pi.

Development and Remote Access

Network

  • Use a static IP address although perhaps could use DNS on \\RASPBERRYPI somehow

SSH

  • Enable SSH via RaspiConfig or system enable ssh
  • Use PuTTy and save session
  • To setup a NEW rpi with existing keys
    • Use WinSCP or PuttySCP to copy public key back to pi, or just paste into .ssh/authorized_keys
  •  

X Windows

XMing

  • Install an X Server on Windows
  • Run in one of two ways:
  1. Native windows in Windows:
    1. Use Putty with rsa keys and X11 forwarding (localhost:0)
  2. Whole-screen login
    1. Use Xming to login graphically. Not as good as you need password (?)

Samba - Share a drive with Windows

Was a bit tricky with permissions etc. There are many guides under rpi samba share

  • apt-get install libcups2 samba samba-common cups
  • edit /etc/samba/samba.conf
  • I added the following although just using [home] might also work
			
wins support=yes			
[pihome]			
   comment= Pi Home			
   path=/home/pi			
   browseable=Yes			
   writeable=Yes			
   read only=no			
   only guest=no			
   public=no			
   create mask=0755			
   directory mask=0755			
			
  • Add Samba users (independent from linux users) with
			
smbpasswd -a samba-pi-user
  • Check samba users with
			
pdbedit -L

Daemons and Services

Now (2018) uses SystemD. Much easier - see instruction here. Use instruction here to view logs