Week 1
Activities.
- Tell us about yourself. Why are you here? Are you just keen to learn anything or are you here to get the skills to do a project. If so what is the project. What are your previous experiences with programming and electronics.
- Noel will tell you about himself.
- Connect Laptop to Pi (Almost everyone has done these steps)
Raspberry Pi has a new tool called Raspberry Pi connect. - Allow Raspberry Pi Connect on install or from config
- Get a Raspberry Pi Id (on the client browser)
- Get a verification code on the console
rpi-connect signin - That should return
https://connect.raspberrypi.com/verify/XXXX-XXXX
Visit that on the client browser - Uniquely name the connection
- Sign in
Details at https://www.raspberrypi.com/documentation/services/connect.html - Config Pi to allow SPI
- Download code for course from github using git.
- Practice some useful linux commands
- Find out which directory you are in.
- pwd
- list things in the directory
- ls
- telling directories from files
- colour in console
- blue: directories
- green: executable files
- red: compressed files
- cyan: symbolic links
- yellow: device files
- magenta: image files
- white: regular files
- long listings to see permissions (and to tell directories from files)
- ls -l
- listing all
- ls -a
- ls -la lists long for all files
- changing into a directory
- cd
- changing up a directory
- cd ..
- challenge changing into a directory above
- cd ../<directory>
- cat
- more
- Output to text file
- > Output overwrite, >>Output append
- ls ~ (~ symbol takes you to the uses home directory)
- sudo raspi-config
sudo allows you to elevate your privileges. Say you wanted to allow anyone to read a certain file. You would use for example
chmod ugo=rxw <file> in your own user directory as you have the right to change permissions of your own files. However if you wanted to change the permissions for a file above your user directory you would need to do....
sudo chmod ugo=rxw <file>
Use sudo carefully as it is there to protect you from yourself. - Using nano
Comments
Post a Comment