Lab 1 consists of two sections. The first section is to get
yourself familiar with some basic Linux operating system command (40%), and the
second section is to get familiar and use the pre-installed system packages to
modify the configurations and behaviors of the system (60%).
Section 1 (40%): Take the screenshot of every subtask and
then send them as a lab report to the TA.
Note: whey you type command line in the terminal, please do not include “<>” these two signs.
1.
Please use cd
command to navigate file system through terminal. Please at least list seven
directories and briefly explain what is to store in each directory
a) For
instance: /etc: system management and configuration file
2.
Please get familiar with ls
command to see files under current directory while navigating file system
3.
Please try to use cat
command in way of creating new file, showing file and merging two files.
a) cat
<filename>
b) cat
> <filename>
c) cat
<filename 1> <filename2> <merged filename>
4.
Please try command more,
less
a) more
<filename>
b) less
<filename>
5.
Please try command apt-get
update and apt-get upgrade
and explain the difference.
6.
Please use apt-get
install <software name> command to install a text editor
(nano or vim) if there is no built-in text editor.
7.
Please try pwd
commad to see the path to your current directory.
8.
Please try whoami/who
command to see your current user of login
9.
Please try mkdir,
rmdir, cp rm for making new directory, remove directory, copying
file or directory, removing file or directory and understand when to use each
command.
a) mkdir
<directory name>
b) rmdir
<directory name>
c) cp
<finename1> <filename2>
d) rm
<filename>
10. Please
use ifconfig to see your IP Address
11. Please
try ping command to test your network
12. Please
use man <command name> if you
don’t know how to use command, or <command
name> --help.
13. Please
try which <command name> to see
if command exist.
14. Please
try find <path> -name <filename>
to find your file. (put “/” in the <path>
meaning to find your file through whole file system)
Section 2 (60%): Demo to the TA on or before the due dates
1. Please
try to get one screenshot for your Raspberry Pi desktop.
(Hint: you may need to install
scrot package)
2. Please
try to display “Hello, I am using Raspberry Pi now and I really enjoy
it” to terminal. You can use shell script, java, c, python or other
language at your preference.
3. Please
try to change resolution of your desktop in Raspberry Pi.
(Hint: try sudo
raspi-config command to change resolution)
4. Please
try to play sound through Raspberry Pi
(Hint: please try omxplayer command)
5. Please
try to change the wallpaper of Raspberry Pi Desktop