0% found this document useful (0 votes)
256 views

Linux Assignment

The document provides instructions for Assignment 1 which consists of 3 questions related to system administration tasks. Question 1 involves setting up a Subversion repository with an init script to start/stop the svnserve daemon. Question 2 involves creating an encrypted filesystem on a flash drive using cryptmount. Question 3 is about explaining the core components of the X Window System like the X server, clients, display manager and window manager.

Uploaded by

amr_salah944
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
256 views

Linux Assignment

The document provides instructions for Assignment 1 which consists of 3 questions related to system administration tasks. Question 1 involves setting up a Subversion repository with an init script to start/stop the svnserve daemon. Question 2 involves creating an encrypted filesystem on a flash drive using cryptmount. Question 3 is about explaining the core components of the X Window System like the X server, clients, display manager and window manager.

Uploaded by

amr_salah944
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

csc3412 Assignment 1

Semester 1, 2013 Due Date: Midnight 25 March 2013, AEST

This assignment consists of 3 questions each of equal value. They consist of common tasks required of a system administratortasks I have had to do at some time in the past. Clear Layout It is vitally important that your assignment is clearly laid out with questions and parts of questions clearly dened. It must be a straight forward matter for the examiner to determine that you have completed each exercise satisfactorily. We want quality not quantity. Poorly organised submissions will be rejected or receive a poor mark.
A A text le or PDF/A document typeset using vanilla L TEX are preferred over a document produced by a word-processor. If you must use Microsoft Word please export your document as PDF/A1 not PDF.

Command Output When answering these questions you will have to run commands under Linuxwhenever a command is run you will need to: a. explain in your own words the purpose of the command in the context of the assignment question. (Please do not just copy the Description section from the man page!) Also, you need to explain in your own words all terminology usedas if you were explaining to an average user! (Please show you understand what you are doing!) b. show that the command workedeither from its output or the output from another command. For example
prompt> dd if=/dev/zero of=Crypt.fs bs=1M count=32 32+0 records in
1

PDF/A is an archival format of PDF that embeds all fonts used in the document within the PDF le. To ensure PDF/A format in Word check ISO19005-compliant (PDF/A) under Options when saving a le as PDF.

32+0 records out 33554432 bytes (34 MB) copied, 0.109063 s, 308 MB/s prompt> ls -l Crypt.fs -rw-r--r-- 1 user user 33554432 2013-02-25 10:18 Crypt.fs

c. To capture text output from programs you will have to redirect the output to a le or use the command script. If you are using the command script turn o the tty escape sequences that change the colour of console textthe escape sequences will appear in output le and make it impossible to read.

Question 1 (marks 20)


You have been asked to install an SVN repository on a server. The SVN will be remotely accessed using the svnserve dmon that is supplied with SVN (please note that this is not the most secure way to access an SVN repository) Install the distributed revision control system subversion from the Debian package of the same name. After installation you will need to congure subversion to be usable. Tasks that will need to be done: a. Install the subversion package. b. (4 marks) Write and install an init.d script to automatically start and stop svnserve (the subversion server) at boot/shut-down (in dmon mode do not use inetd mode, do not use an ssh encrypted tunnel). (Hint: Use the example init script /etc/init.d/skeleton and remember to explain your changes.) c. Create an SVN repository at /usr/local/svn/ d. (4 marks) Congure the repository and dene the repository usernames and passwords. e. (4 marks) Implement conguration and runtime options that increase securityexplaining why your choices increase security. f. (4 marks) Test your conguration, repository and running server by creating a project in the repository. Show that you can check in and check out documents from the repository. (Note: this is supposed to be a remote repository so all tests must be done via the svn server.) g. (4 marks) Document and explain in your own words the steps required to get the subversion system working. Include an explanation of every command you use (plus any command line options) and any les you modify or create. Notes: a. Explain in your own words each operation you needed to perform to get the Subversion system working. Your descriptions of each operation need to show you understand the purpose of the operation. b. Access to the repository must be via the server. This means that the URL must begin svn://localhost/. The SVN client can access the repository directly from the le-system but that does not demonstrate that the server is up and running and is useless for distributed revision control.

c. Do not explain how you installed packages! d. List all resources used in answering the question.

Question 2 (marks 20)


A user comes to you and explains that she needs some form of encrypted le system to store sensitive information on a Flash drive. The Flash drive will be used to transport the sensitive data between work and home and she is worried about loosing the drive and having the data stolen. Both machines, the one at home and the one at work, use the same Linux OS. She has the following requirements: She does not want to encrypt individual les as she has to deal with a large number of les. She wants it to be as transparent as possible. She thinks she will only need about 64MB at most. She wants to also use the ash disk for transporting unencrypted les. Files that can be read on machines apart from her work and home machines. A 64MB le on the Flash drive that contains an encrypted le system would be ideal a. (7 marks) Setup a 64MB encrypted le system in a le on a Flash drive so that it can be used with the cryptmount command. Document and explain in your own words every command you use (plus any command line options) and any conguration les you modify or create. Your descriptions of each operation need to show you understand the purpose of the operation. (If you are uncertain why a particular command or command line option is requiredask! There is at least one step and command line option that you cannot understand from the information in the man page alone! It will require some research!) b. Things you must also address and explain: (3 marks) how to ensure that the Flash drive has exactly the same mount point each time it is used on dierent machines. If it does not have the same mount point then how do you congure paths? (Hint: Experiment with labelled le-systems (see e2label) or UUIDs) (3 marks) how to manage the le-system encryption keys. c. (7 marks) Write an instruction sheet for the user so that she can make the modications to her home machine so that she can access the le on the ash drive containing the encrypted le system. Also explain how she would use the lesystem in her day-to-day work. 5

You may assume that she has root access to be able to congure her home machine to mount an encrypted le-system. Notes: a. Do not use the tool cryptmount-setup or the tool installed by the package cryptsetup. b. Manually create les and conguration les. c. Follow the steps outlined in the cryptmount man page explaining the purpose of every step! d. List all resources used in answering the question. e. Do not explain how you installed the cryptmount package it should already be installed on the Virtual Debian.

Question 3 (marks 20)


In about a page, explain in your own words the X-Windows System. Your explanation should answer the following questions: (4 marks) What is the X-server? What is its job? (5 marks) The X-server normally does not have a conguration leit attempts to auto-detect the hardware when it starts. But a Conguration le is required when hotplug devices are employed or auto-detection fails. How do you ask the server to construct a conguration le based on what it can detect? What is the structure of the X-servers conguration le. What are the major sections and how do they relate to each other? (3 marks) What is an X-client? (4 marks) What is the Display Manager? What is its job? (4 marks) What is a Window Manager? What is its job? Notes: a. List all resources used in answering this question. b. Please do not cut and paste slabs of text from a Wikipedia article. c. Please do not fall into the trap of answering a questions by using unexplained technical termsyou must explain all technical terms used especially if they have not been used anywhere in the course. 6

You might also like