Raspberry Pi task checklist:
- install pi from noobs
- connect HDMI, keyboard and mouse
- insert SD card
- connect power
- select Raspian install, click install
- once install is finished, in raspi-config, choose third line (startup options)
- select login to gui automatically
- tab to save, restart
- login with pi/raspberry
- configure IP address with /etc/network/interfaces
- open terminal app (LX terminal)
- cd to /etc/network
- ls to verify you are in the right place
- sudo nano interfaces
- change dhcp to static on the first interface (eth0), which is the ethernet
- insert the following lines below static:
- address 10.14.88.x (your teacher will give you your number)
- netmask 255.255.0.0
- gateway 10.14.0.1
- control-o to overwrite
- return
- control x to exit
- return
- sudo shutdown -r now
- ssh into from local mac
- from another machine, ping the address of your Rπ box
- note the response time
- ssh into the unit with: ssh pi@10.14.88.x
- use the normal password
- test your connection with who, last and man
- man ps
- note ps ax (no flags) and other options
- apt-get update
- from either your ssh connection (terminal) or the LX terminal, run sudo apt-get update
- sudo shutdown -r now
- install apache2
- sudo apt-get install apache2 -y
- after install, restart
- navigate to the apache configuration files in /etc/apache2/sites-enabled/
- sudo nano 000-default
- change the lines /var/www to /home/pi/www (both times)
- restart
- install netatalk
- sudo apt-get install netatalk
- after install, restart
- scp index.html from /var/www/
- ssh into the unit from your mac
- using the scp commands, copy the index.html page from the web directory of your Rπ box:
- scp pi@10.14.88.x:/var/www/index.html /Users/yourname/Desktop
- open the index.html page with textwrangler, note the html structure
- change a few words, then drag the changed file onto the safari icon to view your changes
- mkdir www in /home/pi/
- ssh into the unit and navigate to /home/pi:
- cd /home/pi
- mkdir www
- chmod 777 www
- still in the /home/pi directory, change mod:
- chmod 777 www
- this will enable you to add pages to your apache web server
- scp new index.html into /home/pi/www
- copy your new index.html file into the /home/pi/www directory:
- scp /Users/admin/Desktop/index.html pi@10.14.88.x:/home/pi/www/
- test using your browser: http://10.14.88.x
- mount using afp://x.y.z.a
- on your mac, hit command-k and login to your Rπ box
- check to see if your index.html file is in the www folder
- copy jpg into www, change index.html into index2.html
- using the mounted directory on your mac, insert a jpg file
- change the name of index.html to index2.html
- view the site in a browser-what changed?
- open the index2.html file and the jpg file in a browser
- demonstrate directory listing
- add a few more items to your directory
- check to see if the directory is listed
- go on to html5 task list
Comments