ICT3631
EXAM
PACK 2023
QUESTIONS
WITH ANSWERS
, lOMoARcPSD|24668432
ICT 3631 MEMORANDUM ASSIGNMENT 2
Question 1
1.1 Name the systemd initialisation types. (5)
✓ automount
✓ device
✓ mount
✓ path
✓ service
✓ snapshot
✓ socket
✓ target
1.2 Configuration files in systemd are used to specify options. What is contained in each of the
Description, After, Execstart and Wantedby in such a configuration file? (8)
Description freeform comment of the service. ✓✓
After configures ordering, states what units should be activated before this
service starts. ✓✓
Execstart the command used to start this service. ✓✓
Wantedby identifies the target unit this service belongs to. ✓✓
1.3 Discuss how restart works bearing in mind that you already stopped the cups service. (3)
✓ The restart command first stops a service
✓ which in this case will generate a FAILED status as the service is not running.
✓ After stopping a service restart will start the service normally.
, lOMoARcPSD|24668432
1.4 You issued an lpc status command. The result is shown below. Write down all the
information you can derive from the output. (5)
oki
printer is on device 8/dev/null9
queuing is enabled
printing is disabled
✓ There is an active oki printer
✓ It is a network printer
✓ on device null
✓ The printer is currently disabled
✓ but the queue is enabled so jobs can be sent to the printer.
1.5 Name and discuss the two main services that are associated with a Samba server. (9)
✓ smb service
✓ controls the smbd daemon
✓ which provides the file
✓ and print sharing services
✓ that can be accessed by Windows clients.
✓ nmb service
✓ controls the nmbd daemon
✓ provides NetBIOS name to
✓ IP address resolution.
1.6 Discuss how the hosts in the /etc/exports file may be identified as individual hosts. Include
an example for each. (6)
hostname eg. maple ✓✓
, lOMoARcPSD|24668432
host.domain eg. unisa.ac.za ✓✓
IP eg. 196.1.2.100 ✓✓
Note: The examples must be matched with the specific identifier. Giving examples and
identifiers separately get half the marks.
[36]
Question 2
2.1 Installing new packages or upgrading an entire system you produce error messages
Regarding dependencies. Discuss the actions you would take to avoid the dependency
problem and what you would do should they occur anyway. (8)
Actions
✓ use recent well tested repositories
✓ consistently update your system
✓ occasionally upgrade your system to a new release
What do in case of errors
✓ use stable repositories
✓ use third party applications and repositories only if necessary
✓ solve kernel related dependencies
✓ exclude some packages from update
✓ test pre upgrade for upgrades
2.2 How would you respond to a out of memory condition in the short term? (3)
✓ Kill a process.
✓ Drop page caches.
✓ Kill an out-of-memory process.
EXAM
PACK 2023
QUESTIONS
WITH ANSWERS
, lOMoARcPSD|24668432
ICT 3631 MEMORANDUM ASSIGNMENT 2
Question 1
1.1 Name the systemd initialisation types. (5)
✓ automount
✓ device
✓ mount
✓ path
✓ service
✓ snapshot
✓ socket
✓ target
1.2 Configuration files in systemd are used to specify options. What is contained in each of the
Description, After, Execstart and Wantedby in such a configuration file? (8)
Description freeform comment of the service. ✓✓
After configures ordering, states what units should be activated before this
service starts. ✓✓
Execstart the command used to start this service. ✓✓
Wantedby identifies the target unit this service belongs to. ✓✓
1.3 Discuss how restart works bearing in mind that you already stopped the cups service. (3)
✓ The restart command first stops a service
✓ which in this case will generate a FAILED status as the service is not running.
✓ After stopping a service restart will start the service normally.
, lOMoARcPSD|24668432
1.4 You issued an lpc status command. The result is shown below. Write down all the
information you can derive from the output. (5)
oki
printer is on device 8/dev/null9
queuing is enabled
printing is disabled
✓ There is an active oki printer
✓ It is a network printer
✓ on device null
✓ The printer is currently disabled
✓ but the queue is enabled so jobs can be sent to the printer.
1.5 Name and discuss the two main services that are associated with a Samba server. (9)
✓ smb service
✓ controls the smbd daemon
✓ which provides the file
✓ and print sharing services
✓ that can be accessed by Windows clients.
✓ nmb service
✓ controls the nmbd daemon
✓ provides NetBIOS name to
✓ IP address resolution.
1.6 Discuss how the hosts in the /etc/exports file may be identified as individual hosts. Include
an example for each. (6)
hostname eg. maple ✓✓
, lOMoARcPSD|24668432
host.domain eg. unisa.ac.za ✓✓
IP eg. 196.1.2.100 ✓✓
Note: The examples must be matched with the specific identifier. Giving examples and
identifiers separately get half the marks.
[36]
Question 2
2.1 Installing new packages or upgrading an entire system you produce error messages
Regarding dependencies. Discuss the actions you would take to avoid the dependency
problem and what you would do should they occur anyway. (8)
Actions
✓ use recent well tested repositories
✓ consistently update your system
✓ occasionally upgrade your system to a new release
What do in case of errors
✓ use stable repositories
✓ use third party applications and repositories only if necessary
✓ solve kernel related dependencies
✓ exclude some packages from update
✓ test pre upgrade for upgrades
2.2 How would you respond to a out of memory condition in the short term? (3)
✓ Kill a process.
✓ Drop page caches.
✓ Kill an out-of-memory process.