Question 1You have been asked to install an SVN repository on a server. TheSVN will be remotely accessed using the svnserve daemon that issupplied with SVN (please note that this is not the most...

1 answer below »


Question 1You have been asked to install an SVN repository on a server. TheSVN will be remotely accessed using the svnserve daemon that issupplied with SVN (please note that this is not the most secureway to access an SVN repository)Install the distributed revision control system subversion fromthe Debian package of the same name. After installation you willneed to configure 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) atboot/shut-down (in daemon modedo not use inetd mode,do not use an ssh encrypted tunnel). (Hint: Use the ex-ample init script /etc/init.d/skeleton and remember toexplain your changes.)c. Create an SVN repository at /usr/local/svn/d. (4 marks) configurethe repository and define the repositoryusernames and passwords.e. (4 marks) Implement configuration and runtime options thatincrease security,explainingwhy your choices increase security?f. (4 marks) Test your configuration, repository and runningserver by creating a project in the repository. Show that youcan check in and check out documents from the repository.(Note: this is supposed to be a remote repository so all testsmust be done via the svn server.)g. (4 marks) Document and explain in your own words the stepsrequired to get the subversion system working. Include anexplanation of every command you use (Plusany commandline options) and any files you modify or create.Notes:a. Explain in your own words each operation you needed to perform to get the Subversion system working. Your descriptionsof each operation need to show you understand the purposeof the operation.b. Access to the repository must be via the server. This meansthat the URL must begin svn://localhost/. The SVNclient can access the repository directly from the file systemButthat does not demonstrate that the server is up and running and is uselessfor distributed revision control.c. Do not explain how you installed packages!d. List all resources used in answering the question.
Question 2 A user comes to you and explainsthat she needs some form of encrypted file 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 driveand having the data stolen. Both machines, the one at home andthe one at work, use the same Linux OS.She has the following requirements:a.She does not want to encrypt individual files as she has todeal with a large number of files.b.She wants it to be as transparent as possible.c.She thinks she will only need about 64MB at most.d.She wants to also use theash disk for transporting unencrypted files. Files that can be read on machines apart fromher work and home machines.A 64MB file on the Flash drive that contains an encrypted filesystem would be ideala. (7 marks) Setup a 64MB encrypted file system in a file ona Flash drive so that it can be used with the cryptmountcommand.Document and explain in your own words every commandyou use (plus any command line options) and any configuration files you modify or create. Your descriptions of eachOperationneed to show you understand the purpose of theoperation. (If you are uncertain why a particular commandor command line option is required ask! There is at leastone step and command line option that you cannot understand from the information in the man page alone! It willrequire some research!)b. Things you must also address and explain:1.(3 marks) how to ensure that the Flash drive has exactlythe same mount point each time it is used on differentmachines.If it does not have the same mount point thenhow do you configure paths? (Hint: Experiment with“labelled"file systems (see e2label) or UUIDs)2. (3 marks) how to manage the file system encryptionkeys.c. (7 marks) Write an instruction sheet for the user so that shecan make the modifications to her home machine so that shecan access the file on the flash drive containing the encryptedfile system. Alsoexplain how she would use the filesystem inher day-to-day work.You may assume that she has root access to be able to configure her homemachine to mount an encrypted file system.Notes:a. Do not use the tool cryptmount-setup or the tool installedby the package cryptsetup.b. Manually create files and configuration files.c. Follow the steps outlined in the cryptmount man pageexplaining the purpose of every step.d. List all resources used in answering the question.e. Do not explain how you installed the cryptmount packageit should already be installed on the Virtual Debian.
s
Answered Same DayDec 22, 2021

Answer To: Question 1You have been asked to install an SVN repository on a server. TheSVN will be remotely...

David answered on Dec 22 2021
117 Votes
Question 1
Install Sub version
To install subversion we use the following command on Linux platform:
sudo apt-get install subversion
After typing in the root password for your system, svn will be installed on your system.
The snapshot of the same is as follows
:
Init.d script
To start and shut down the svn server on system startup/shut-down, we need to write a script
say svnserve, for the svn. The structure of this file is taken from a sample file i.e.
/etc/init.d/skeleton script.
We can copy the contents of skeleton script into a new script file “svnserve” and need to make
a few changes for some attributes to set it up for svn.
The file is modified to incorporate few changes as shown below:
The Name is the name of the server installed on your system. DESC is the description of the
service you are trying to initiate. Daemon_Args contains the path of the svn repository set by
using the command svn create /usr/local/svn/demorepo.
Create an SVN repository
To create a repository on your system, we need to first crate a folder on the desired path of your
system where you want to install the svn.
To create folder in /usr/local – type sudo mkdir /usr/local/svn
To create a repository you need to go to that folder and create your repository by entering a
command - sudo svnadmin create /home/svn/myproject

To configure the svn repository create as mentioned above, we first need to check out the
repository to make sure that the repository we want is the current repository in use. The
repository is checked out by using command:
svn co file:///home/svn/myproject
The usernames and passwords are then added to the repository to allow access to certain users.
We can add the users in group and then assign passwords to each user in collection or we can
also add the user one-by-one adding password along with the username.
The syntax for adding the username is as below, after this command the user is asked to enter
the password and confirm it.
sudo htpasswd -c /etc/subversion/passwd user_name
Example creation of user is as follows:
sudo htpasswd -c /etc/subversion/passwd andy
A snapshot of the same is as follows:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="svnserve"
NAME=svnserve
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="-d -r /usr/local/svn "
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
Runtime Options to increase security:
To increase the security of your svn repository first of all the permissions must be assigned to
the relevant users only and the read write permissions access must be done in planned manner.

For instance - sudo chmod -R g+rws myproject

The repository is then...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here