Working With Cloned Module

(Difference between revisions)
Jump to: navigation, search
(33 intermediate revisions by 7 users not shown)
Line 2: Line 2:
 
{| border="1"
 
{| border="1"
 
|-  
 
|-  
|'''Title''' || name of the activity
+
|'''Title''' ||Work with a Cloned Module (Build and Execute gnome-photos module)
 +
|-   
 +
|'''Overview''' ||Building is the process of converting the source code into an executable by compiling and linking. In this document, we will build and execute an open source module cloned using git.
 
|-
 
|-
|'''Overview''' || description of what the student will do
+
|'''Prerequisite Knowledge''' ||Cloning a Module
|-
+
|'''Prerequisite Knowledge''' || what topics and tools does the student need to know prior to beginning this activity?
+
 
|-
 
|-
|'''Learning Objectives''' || what should the student learn from this activity?
+
|'''Learning Objectives''' ||1. Build a previously cloned module 2. Execute the cloned module.
 
|}
 
|}
  
 
=== Background: ===
 
=== Background: ===
Is there background reading material?
+
For this lab, we will be using previously cloned module gnome-photos to demonstrate building and executing.
Are there other activities the student should have done first?
+
What is the rational for this activity?
+
  
 
=== Directions: ===
 
=== Directions: ===
What should the student do?
+
'''1. Before Starting:'''
 +
 
 +
Before running any of the command below, make sure that you are a sudo user. If not type the command $ su and then enter the root password when prompted.
 +
Also, make sure you are in the cloned directory using cd command.
 +
 
 +
'''2. Start the Build:''' Type the following command in the terminal to start building:
 +
  dnf builddep gnome-photos
 +
 
 +
Note: To build a module, make sure that you have all the build dependencies available. Some modules depend on external libraries.
 +
 
 +
Accept the dependency downloads whenever prompted. Wait till the process completes.
 +
 
 +
'''3. Finish the Build:'''
 +
 
 +
Once the process completes, create a new directory under /opt directory as /opt/gnome-photos
 +
 
 +
mkdir /opt/gnome-photos
 +
 
 +
Now execute the autogen.sh file under the cloned directory to build the module to newly created directory.
 +
 
 +
./autogen.sh – -prefix =/opt/gnome-photos
 +
 
 +
'''4. Install the Module:'''
 +
 
 +
Once completed, just install the program using make command as shown below:
 +
  make install
 +
 
 +
 
 +
''5. Documentation:'''
 +
 
 +
Create a file in your favorite editor. Add all your screenshots and then answer the following questions in the next section in your file.
 +
Also, review the following rubric for generating and submitting your work.  Once you are satisfied that your lab is complete, create a pdf file and name it FossGnomePhotoCloned_yourlastnamefirstinitial.pdf. Upload to your course management system.
  
 
=== Deliverables: ===
 
=== Deliverables: ===
What will the student hand in?
+
Create a word document and include screenshots of different stages of installations in it. In addition, answer the questions.
 +
 
 +
 
 +
'''Lab Rubric (100 points)'''
 +
 
 +
Screenshots (50 points) Start the Build (10 points); Accept (10 points); Finish the Build (10 points); Create Directory and autogen (10 points); Install Module (10 points)
 +
 
 +
Lab Questions (50 points)
 +
 
 +
• Compare dnf and yum with each other. Discuss on the similarities as well as differences. (10 points)
 +
What is dnf builddep Plugin? (10 points) )
 +
• What does the autogen.sh do? (10 points)
 +
• Name two disadvantages of using a virtual machine. (10 points)
 +
• Grammar, Spelling and Neatness (5 points) – named file correctly and uploaded properly on time. (5 points)
 +
 
  
=== Assessment: ===
 
How will the activity be graded?
 
What learning can be measured?
 
  
=== Comments: ===
 
What should the teacher know before using this?
 
Potential hiccups?
 
  
 
=== Additional Information: ===
 
=== Additional Information: ===
 
{| border="1"
 
{| border="1"
 
|-  
 
|-  
|'''Knowledge Area/Knowledge Unit''' ||  what ACM Computing Curricula 2013 https://www.acm.org/education/CS2013-final-report.pdf knowledge area and units does this activity cover?
+
|'''Knowledge Area/Knowledge Unit''' ||  SE - Software Engineering
 
|-
 
|-
|'''Topic''' ||   
+
|'''Topic''' ||  Cloning, Build/Execute
 
|-
 
|-
|'''Level of Difficulty''' ||
+
|'''Level of Difficulty''' || Easy
 
|-
 
|-
|'''Estimated Time to Completion''' ||
+
|'''Estimated Time to Completion''' ||1 hour
 
|-
 
|-
|'''Materials/Environment''' ||
+
|'''Materials/Environment''' || Fedora, gnome-photos
 
|-
 
|-
|'''Author''' ||   
+
|'''Author''' ||  Mohsen Dorodchi
 
|-
 
|-
 
|'''Source''' ||
 
|'''Source''' ||
Line 50: Line 87:
 
|}
 
|}
  
 
=== Suggestions for the Open Source Project: ===
 
  
 
--------------------
 
--------------------
This work is licensed under a
 
[http://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International License]
 
  
[[File:CC_license.png]]
 
  
 
[[Category: Learning_Activity]]
 
[[Category: Learning_Activity]]
[[Category: LEARNING_ACTIVITY_SUBCATEGORY]]
+
[[Category: Minimal Sketch]]

Revision as of 18:53, 8 March 2017

Title Work with a Cloned Module (Build and Execute gnome-photos module)
Overview Building is the process of converting the source code into an executable by compiling and linking. In this document, we will build and execute an open source module cloned using git.
Prerequisite Knowledge Cloning a Module
Learning Objectives 1. Build a previously cloned module 2. Execute the cloned module.

Background:

For this lab, we will be using previously cloned module gnome-photos to demonstrate building and executing.

Directions:

1. Before Starting:

Before running any of the command below, make sure that you are a sudo user. If not type the command $ su and then enter the root password when prompted. Also, make sure you are in the cloned directory using cd command.

2. Start the Build: Type the following command in the terminal to start building:

 dnf builddep gnome-photos

Note: To build a module, make sure that you have all the build dependencies available. Some modules depend on external libraries.

Accept the dependency downloads whenever prompted. Wait till the process completes.

3. Finish the Build:

Once the process completes, create a new directory under /opt directory as /opt/gnome-photos

mkdir /opt/gnome-photos

Now execute the autogen.sh file under the cloned directory to build the module to newly created directory.

./autogen.sh – -prefix =/opt/gnome-photos

4. Install the Module:

Once completed, just install the program using make command as shown below:

 make install


5. Documentation:'

Create a file in your favorite editor. Add all your screenshots and then answer the following questions in the next section in your file. Also, review the following rubric for generating and submitting your work. Once you are satisfied that your lab is complete, create a pdf file and name it FossGnomePhotoCloned_yourlastnamefirstinitial.pdf. Upload to your course management system.

Deliverables:

Create a word document and include screenshots of different stages of installations in it. In addition, answer the questions.


Lab Rubric (100 points)

Screenshots (50 points) Start the Build (10 points); Accept (10 points); Finish the Build (10 points); Create Directory and autogen (10 points); Install Module (10 points)

Lab Questions (50 points)

•	Compare dnf and yum with each other. Discuss on the similarities as well as differences. (10 points)
•	What is dnf builddep Plugin? (10 points) ) 
•	What does the autogen.sh do? (10 points) 
•	Name two disadvantages of using a virtual machine. (10 points)
•	Grammar, Spelling and Neatness (5 points) – named file correctly and uploaded properly on time. (5 points)



Additional Information:

Knowledge Area/Knowledge Unit SE - Software Engineering
Topic Cloning, Build/Execute
Level of Difficulty Easy
Estimated Time to Completion 1 hour
Materials/Environment Fedora, gnome-photos
Author Mohsen Dorodchi
Source
License



Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox