COMP 3000 Lab 2 2012: Difference between revisions
No edit summary |
|||
Line 23: | Line 23: | ||
# [2] Install the <tt>openssh-server</tt> package in your virtual machine from the command line. What command(s) did you use? | # [2] Install the <tt>openssh-server</tt> package in your virtual machine from the command line. What command(s) did you use? | ||
# [2] Note that <tt>sshd</tt> has separate entries in <tt>/etc/init</tt> and <tt>/etc/init.d</tt> differ. Why do both exist (when most services have either one or the other)? | # [2] Note that <tt>sshd</tt> has separate entries in <tt>/etc/init</tt> and <tt>/etc/init.d</tt> differ. Why do both exist (when most services have either one or the other)? | ||
# | # Log messages for the system are stored in <tt>/var/log</tt>. | ||
Revision as of 16:28, 24 September 2012
LAB IS NOT YET FINALIZED
In this lab you will examine how Ubuntu Linux initializes itself.
You will need to do this assignment on an Ubuntu 12.04 machine that you have root access to. Generally this will be a virtual machine. In the labs, you can access pre-made Ubuntu virtual machines in VirtualBox. Note that these are for other courses; we, however, can use them as well as we just need a standard Ubuntu install.
You should turn in Lab 2 by 10 PM on Friday, September 28 via cuLearn. Your answers should be in plain text (the true UNIX file format) or PDF. No other formats are acceptable (and will result in a zero grade until re-submitted in the correct format). Note the lab has ?? points in total.
You should expect to complete Part A in tutorial. You should submit the answers to both Part A and Part B, however, on Friday.
Resources: The Upstart cookbook covers most aspects of Upstart, the SystemV init script replacement used by Ubuntu. Also, you may want to look at the following commands: ps, top, gnome-system-monitor, service, kill, pstree, dpkg, apt-get
Part A
- [2] How can you get a list of all of the processes running on the system from the command line? Please give the command and required arguments, if any.
- [10] What are five processes that are running on your system as non-regular users (i.e., as users other than the one you logged in as)? What does each do, briefly? Note: please exclude all processes enclosed in [], as those are built in to the kernel.
- [1] How can I restart the graphical login screen on Ubuntu? (Hint: use virtual terminals and Ctrl-Alt-F? combinations to access a terminal that is independent of the GUI.)
- [2] What happens when you send a kill -9 signal to one of the getty processes that are running by default? Why?
Part B
- [2] What starts the upstart daemon? When is it started?
- [2] How would you "change the system runlevel" to reboot? Shut down?
- [2] Look at the output of ls -l /etc/init/. You will note -> for many of the entries. This arrow shows that those entries are symbolic links. Where do most of these symbolic links point to? Why?
- [2] Install the openssh-server package in your virtual machine from the command line. What command(s) did you use?
- [2] Note that sshd has separate entries in /etc/init and /etc/init.d differ. Why do both exist (when most services have either one or the other)?
- Log messages for the system are stored in /var/log.