Difference between revisions of "COMP 3000 2011 Report: Dream Studio"

From Soma-notes
Jump to navigation Jump to search
Line 1: Line 1:
<h1>Part II</h1>
<h1>Part I</h1>
<h2>Background</h2>
<h2>Background</h2>
<h1>Part II</h1>
<h1>Part II</h1>
<h2>Software  Packaging </h2>
<p>Dream Studio uses Ubuntu&rsquo;s  package management utilities to package and distribute software. Software is  distributed in package files with a .deb extension to software repositories, and  Dream Studio can download and install the software from these software  repositories using a package management utility. Since Ubuntu uses Debian&rsquo;s  package management utilities, the base package management utility of Dream  Studio is dpkg. Dream Studio has the following package management utilities:</p>
<ul>
  <li><strong>dpkg: </strong>dpkg is the base software of Dream  Studio&rsquo;s package management system. It is a low-level package management  utility that can be used to create, install and remove packages. dpkg cannot  get packages from remote repositories or manage complex package dependencies,  therefore it is recommended that a higher level utility such as APT be used to  install, update and remove packages in Dream Studio.<strong></strong></li>
  <li><strong>APT (Advanced Packaging Tool): </strong>APT is a  command line based front-end for dpkg. It allows users to install, update and  remove packages on the system and, unlike dkpg it can download packages from  remote repositories and manage package dependencies. APT can be accessed in  Dream Studio by using the command line utility apt-get.<strong></strong></li>
  <li><strong>Aptitude: </strong>Aptitude is a command line  text-based menu front-end for APT. It can be used to install, update and remove  packages on the system. Aptitude can be accessed in Dream Studio by using the  command line utility aptitude.<strong></strong></li>
  <li><strong>Ubuntu Software Center: </strong>Ubuntu  Software Center is the graphical (GUI) front-end for APT and can be used to browse,  install, update and remove packages. It is the most simple application in Dream  Studio to install packages but it can ignore certain packages (i.e. packages  that don&rsquo;t contain programs), and therefore the Synaptic Package Manager should  be used to install complex packages or packages that cannot be installed using  the Ubuntu Software Center.<strong></strong></li>
  <li><strong>Synaptic Package Manager: </strong>The Synaptic  Package Manager provides an advanced GUI front-end for APT. It can be used to  browse, install, update and remove any package on the system. It is similar to  the Ubuntu Software Center, but provides more information and complete control  over the packages installed on the system.<strong></strong></li>
</ul>
<h3>  Listing Installed Software</h3>
<p>A listing of all the software installed in Dream Studio can be obtained by  using the package management utilities below:</p>
<ul>
  <li><strong>dpkg:</strong> A list of installed packages  (software) can be obtained by using the following dpkg command in the terminal:<strong> </strong>dpkg –l<strong> </strong></li>
  <li><strong>Aptitude: </strong>The following steps  describe how to obtain a list of installed software using Aptitude:</li>
  <ul>
    <li>Type aptitude in the command line</li>
    <li>Select the option &ldquo;Installed Packages&rdquo; from the menu</li>
  </ul>
  <li><strong>Ubuntu Software Center: </strong>The  following steps describe how to obtain a list of installed software using  Ubuntu Software Center:<strong></strong></li>
  <ul>
    <li>Select &ldquo;Ubuntu Software Center&rdquo; from the Applications menu in the  top menu bar</li>
    <li>Select the option &ldquo;Installed Software&rdquo; from the left pane in  Ubuntu Software Center. List of installed software will be displayed in the  right pane.</li>
  </ul>
  <li><strong>Synaptic Package Manager: </strong>The  following steps describe how to obtain a list of installed software using the  Synaptic Package Manager:<strong></strong></li>
  <ul>
    <li>Open the Synaptic Package Manager by selecting it from the  menu  System &gt; Administration in the  top menu bar </li>
    <li>Select the &ldquo;Status&rdquo; button from the Synaptic Packager Manager</li>
    <li>Select &ldquo;Installed&rdquo; from the menu located at the top of the buttons</li>
  </ul>
</ul>
<h3>Adding and Removing  Packages</h3>
<p>Packages can be installed or  removed in Dream Studio by using any of the package management utilities listed  below: (note: dpkg is excluded from this list because it is not recommended to  directly install/remove packages using this utility)<strong></strong></p>
<ul>
  <li><strong>APT: </strong>Search for a package by typing the  following command in the terminal: apt-cache search &lt;search term&gt;.  Example: To search for a graphics program/package type the following command in  the terminal: apt-cache search &lt;graphics program&gt;. Select the package  name from the search results and then use the commands below to install or remove  the package if is already installed:<strong></strong></li>
  <ul>
    <li>Installing  a package: Type the following command in the terminal to install a given package:  apt-get install &lt;package_name&gt;. Example: Use the command apt-get install graphicsprorgram  to install the package named grapicsprogram.</li>
    <li>Removing  a package: Type the following command in the terminal to remove a given package:  apt-get remove &lt;package_name&gt;. Example: Use the command apt-get remove graphicsprorgram  to remove the package named grapicsprogram. The command apt-get purge  &lt;package_name&gt; can be used to remove a package and its configuration  files. </li>
  </ul>
  <li><strong>Aptitude: </strong>Open aptitude by the  typing the command aptitude in the terminal<strong></strong></li>
  <ul>
    <li><strong>Installing a package:</strong> The  steps below describe how to select and install a package using aptitude: </li>
    <ul>
      <li>Select the &ldquo;Not Installed Packages&rdquo; from the menu at the top</li>
      <li>Select a category from the displayed list</li>
      <li>Select a package repository from the displayed list</li>
      <li>Browse the displayed list of available packages and mark a package  to be installed by pressing the &ldquo;+&rdquo; key</li>
      <li>Press the &ldquo;g&rdquo; key twice to install the selected package</li>
    </ul>
    <li><strong>Removing a package: </strong>The steps  below describe how to select and remove a package using aptitude:<strong></strong>
      <ol>
        <li>Select the &ldquo;Installed Packages&rdquo; from the menu at the top</li>
        <li>Select a category from the displayed list</li>
        <li>Select a package repository from the displayed list</li>
        <li> Browse the displayed list  of available packages and mark a package to be removed by pressing the &ldquo;-&rdquo; key</li>
        <li>Press the &ldquo;g&rdquo; key twice to remove the selected package</li>
      </ol>
    </li>
  </ul>
  <li><strong>Ubuntu Software Center: </strong>Open  Ubuntu Software Center by selecting it from the menu at the top: Applications  &gt; Ubuntu Software Center<strong></strong></li>
  <ul>
    <li><strong>Installing a package: </strong>The steps  below describe how to install a package using the Ubuntu Software Center:<strong></strong>
      <ol>
        <li>Find the package to be installed by selecting it from the  categories listed under the &lsquo;Get Software&rdquo; menu in the left-pane or searching  for it using the &ldquo;Search&rdquo; box in the top right corner.</li>
        <li>Select the package to be installed from the results displayed in  the right-pane</li>
        <li>Select the &ldquo;Install&rdquo; option to install the selected package</li>
      </ol>
    </li>
    <li><strong>Removing a package: </strong>The steps  below describe how to remove a package using the Ubuntu Software Center:<strong></strong>
      <ol>
        <li>Select the &ldquo;Installed Software&rdquo; option from the left-pane</li>
        <li>Select a category from the options displayed under &ldquo;Installed  Software&rdquo; in the left-pane </li>
        <li>Select the package to be removed from the results displayed in the  right pane </li>
        <li>Select the &ldquo;Remove&rdquo; option to remove the selected package</li>
      </ol>
    </li>
  </ul>
  <li><strong>Synaptic Package Manager: </strong>Open Synaptic  Package Manager by selecting it from the menu at the top: System &gt;  Administration &gt; Ubuntu Software Center<strong></strong></li>
  <ul>
    <li><strong>Installing a package:</strong> The  steps below describe how to install a package using the Synaptic Package  Manager:
      <ol>
        <li>Select the &ldquo;Status&rdquo; button from the Synaptic Packager Manager</li>
        <li>Select the &ldquo;Not Installed&rdquo; option from the menu located at the top  of the buttons</li>
        <li>Select the package to be installed from the list displayed in the  right-pane</li>
        <li>Right-click on the package and select the &ldquo;Mark for Installation&rdquo;  option from the pop-up menu</li>
        <li>Select the &ldquo;Apply&rdquo; option from the toolbar at the top</li>
      </ol>
    </li>
    <li><strong>Removing a package:</strong> The  steps below describe how to remove a package using the Synaptic Package  Manager:
      <ol>
        <li>Select the &ldquo;Status&rdquo; button from the Synaptic Packager Manager</li>
        <li>Select &ldquo;Installed&rdquo; from the menu at the top of the buttons</li>
        <li>Select the package to be removed from the list displayed in the  right-pane</li>
        <li>Right-click on the package and select the &ldquo;Mark for Removal&rdquo;  option from pop-up menu</li>
        <li>Select the option &ldquo;Apply&rdquo; from the toolbar at the top</li>
      </ol>
    </li>
  </ul>
</ul>
<h3>Software Catalog</h3>
<p>Dream Studio has 2141 packages  installed when it is installed. These packages are more than enough for regular  users, as they provide all the basic software that a regular user will need. This  includes a web browser (firefox), an email client/address book (Evolution),  Image editor (GIMP), Office Suite (Open Office), Audio/Video playback software.  In addition to the basic software, it provides a sufficient amount of multimedia  software to meet its design goals.</p>
<h2><strong>Major package versions </strong></h2>
<table border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td width="213" valign="top"><p><strong>Package Name</strong></p></td>
    <td width="213" valign="top"><p><strong>Version</strong></p></td>
    <td width="213" valign="top"><p><strong>Upstream source</strong></p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><ul>
      <li>linux-image-3.0.0-9-lowlatency</li>
      <li>linux-lowlatency </li>
    </ul>
      <p>&nbsp;</p></td>
    <td width="213" valign="top"><ul>
      <li>3.0.0-9.13ppa1~natty1</li>
      <li>3.0.0.9.10ppa1~natty1</li>
    </ul></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Libc6</p></td>
    <td width="213" valign="top"><p>2.13-0ubuntu13</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>xserver-xorg-video-qxl</p></td>
    <td width="213" valign="top"><p>0.0.12-1ubuntu4</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><ul>
      <li>gtkdialog: </li>
      <li>gtk2-engines-pixbuf</li>
      <li>libqt4-core </li>
      <li>tk8.5: 8.5.9-2</li>
    </ul></td>
    <td width="213" valign="top"><ul>
      <li>2:0.7.20-4</li>
      <li>2.24.4-0ubuntu2 </li>
      <li>4:4.7.2-0ubuntu6.2<strong> </strong></li>
      <li>8.5.9-2</li>
    </ul></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Shells:</p>
      <ul>
        <li>Bash</li>
        <li>Dash</li>
        <li>Mono-csharp-shell</li>
      </ul></td>
    <td width="213" valign="top"><ul>
      <li>4.2-0ubuntu3</li>
      <li>0.5.5.1-7.2ubuntu1</li>
      <li>2.6.7-5ubuntu3</li>
    </ul>
      <p>&nbsp;</p></td>
    <td width="213" valign="top"><p>ftp://ftp.gnu.org/pub/gnu/bash</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Busybox-static</p></td>
    <td width="213" valign="top"><p>1:1.17.1-10ubuntu1</p>
      <p>&nbsp;</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Software    packaging (rpm, dpkg, etc.)</p>
      <ul>
        <li>dpkg</li>
        <li>aptitude</li>
        <li>apt</li>
        <li>synaptic</li>
        <li>software-center</li>
      </ul></td>
    <td width="213" valign="top"><ul>
      <li>dpkg:    1.16.0~ubuntu7</li>
      <li>0.6.3-3.2ubuntu1</li>
      <li>0.18.13.2ubuntu4.1</li>
      <li>0.75.1lubuntu2</li>
      <li>4.0.4</li>
    </ul></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Firefox</p></td>
    <td width="213" valign="top"><p>6.0+build1+nobinonly-0ubuntu0.11.04.1</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Evolution</p></td>
    <td width="213" valign="top"><p>2.32.2-0ubuntu7</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Inkscape</p></td>
    <td width="213" valign="top"><p>0.48.1-2ubuntu2</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Gimp</p></td>
    <td width="213" valign="top"><p>2.6.11-1ubuntu6.1</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="213" valign="top"><p>Imagemagick</p></td>
    <td width="213" valign="top"><p>7:6.6.2.6-1ubuntu4</p></td>
    <td width="213" valign="top"><p>&nbsp;</p></td>
  </tr>
</table>
<h3>Package Information and  Comparisons</h3>
<ul>
  <li><strong>Bash: </strong>Vintage:,  Current:  Latest Stable release: ,  Modifications from the distro author: , why was it chosen for this distro:    </li>
  <li><strong>Firefox:</strong></li>
  <li><strong>dpkg:</strong></li>
  <li><strong>libc6:</strong></li>
  <li><strong>apt:</strong></li>
  <li><strong>synaptic:</strong></li>
  <li><strong>software-center:</strong>  </li>
  <li><strong>evolution:</strong></li>
  <li><strong>linux  kernel:</strong></li>
  <li><strong>dash:</strong>  The latest stable release of dash is 0.5.5.1-7.2ubuntu1  and it was released in November 2010, therefore dash is using the latest stable  release. As stated by Dream Studio&rsquo;s author, Dream Studio is using the main  packages of Ubuntu without modification; this was done to allow seamless  updates to the underlying software. Therefore dash has not been modified by the  author. Dash is a default shell that comes installed with Ubuntu and that is  why it was installed in this distribution.</li>
</ul>
<h2>Initialization </h2>
<p>Dream Studio uses the same  processes as Ubuntu to initialize the system. Specifically it uses a  combination of System V init scripts and Upstart jobs to fully initialize the  system. Below is an outline of the programs and their order during system  initialization: </p>
<ul>
  <li>&nbsp;</li>
</ul>
<p>This information was found in the init.d script and the init folder  under:</p>

Revision as of 00:28, 17 November 2011

Part I

Background

Part II

Software Packaging

Dream Studio uses Ubuntu’s package management utilities to package and distribute software. Software is distributed in package files with a .deb extension to software repositories, and Dream Studio can download and install the software from these software repositories using a package management utility. Since Ubuntu uses Debian’s package management utilities, the base package management utility of Dream Studio is dpkg. Dream Studio has the following package management utilities:

  • dpkg: dpkg is the base software of Dream Studio’s package management system. It is a low-level package management utility that can be used to create, install and remove packages. dpkg cannot get packages from remote repositories or manage complex package dependencies, therefore it is recommended that a higher level utility such as APT be used to install, update and remove packages in Dream Studio.
  • APT (Advanced Packaging Tool): APT is a command line based front-end for dpkg. It allows users to install, update and remove packages on the system and, unlike dkpg it can download packages from remote repositories and manage package dependencies. APT can be accessed in Dream Studio by using the command line utility apt-get.
  • Aptitude: Aptitude is a command line text-based menu front-end for APT. It can be used to install, update and remove packages on the system. Aptitude can be accessed in Dream Studio by using the command line utility aptitude.
  • Ubuntu Software Center: Ubuntu Software Center is the graphical (GUI) front-end for APT and can be used to browse, install, update and remove packages. It is the most simple application in Dream Studio to install packages but it can ignore certain packages (i.e. packages that don’t contain programs), and therefore the Synaptic Package Manager should be used to install complex packages or packages that cannot be installed using the Ubuntu Software Center.
  • Synaptic Package Manager: The Synaptic Package Manager provides an advanced GUI front-end for APT. It can be used to browse, install, update and remove any package on the system. It is similar to the Ubuntu Software Center, but provides more information and complete control over the packages installed on the system.

Listing Installed Software

A listing of all the software installed in Dream Studio can be obtained by using the package management utilities below:

  • dpkg: A list of installed packages (software) can be obtained by using the following dpkg command in the terminal: dpkg –l
  • Aptitude: The following steps describe how to obtain a list of installed software using Aptitude:
    • Type aptitude in the command line
    • Select the option “Installed Packages” from the menu
  • Ubuntu Software Center: The following steps describe how to obtain a list of installed software using Ubuntu Software Center:
    • Select “Ubuntu Software Center” from the Applications menu in the top menu bar
    • Select the option “Installed Software” from the left pane in Ubuntu Software Center. List of installed software will be displayed in the right pane.
  • Synaptic Package Manager: The following steps describe how to obtain a list of installed software using the Synaptic Package Manager:
    • Open the Synaptic Package Manager by selecting it from the menu  System > Administration in the top menu bar
    • Select the “Status” button from the Synaptic Packager Manager
    • Select “Installed” from the menu located at the top of the buttons

Adding and Removing Packages

Packages can be installed or removed in Dream Studio by using any of the package management utilities listed below: (note: dpkg is excluded from this list because it is not recommended to directly install/remove packages using this utility)

  • APT: Search for a package by typing the following command in the terminal: apt-cache search <search term>. Example: To search for a graphics program/package type the following command in the terminal: apt-cache search <graphics program>. Select the package name from the search results and then use the commands below to install or remove the package if is already installed:
    • Installing a package: Type the following command in the terminal to install a given package: apt-get install <package_name>. Example: Use the command apt-get install graphicsprorgram to install the package named grapicsprogram.
    • Removing a package: Type the following command in the terminal to remove a given package: apt-get remove <package_name>. Example: Use the command apt-get remove graphicsprorgram to remove the package named grapicsprogram. The command apt-get purge <package_name> can be used to remove a package and its configuration files.
  • Aptitude: Open aptitude by the typing the command aptitude in the terminal
    • Installing a package: The steps below describe how to select and install a package using aptitude:
      • Select the “Not Installed Packages” from the menu at the top
      • Select a category from the displayed list
      • Select a package repository from the displayed list
      • Browse the displayed list of available packages and mark a package to be installed by pressing the “+” key
      • Press the “g” key twice to install the selected package
    • Removing a package: The steps below describe how to select and remove a package using aptitude:
      1. Select the “Installed Packages” from the menu at the top
      2. Select a category from the displayed list
      3. Select a package repository from the displayed list
      4.  Browse the displayed list of available packages and mark a package to be removed by pressing the “-” key
      5. Press the “g” key twice to remove the selected package
  • Ubuntu Software Center: Open Ubuntu Software Center by selecting it from the menu at the top: Applications > Ubuntu Software Center
    • Installing a package: The steps below describe how to install a package using the Ubuntu Software Center:
      1. Find the package to be installed by selecting it from the categories listed under the ‘Get Software” menu in the left-pane or searching for it using the “Search” box in the top right corner.
      2. Select the package to be installed from the results displayed in the right-pane
      3. Select the “Install” option to install the selected package
    • Removing a package: The steps below describe how to remove a package using the Ubuntu Software Center:
      1. Select the “Installed Software” option from the left-pane
      2. Select a category from the options displayed under “Installed Software” in the left-pane
      3. Select the package to be removed from the results displayed in the right pane
      4. Select the “Remove” option to remove the selected package
  • Synaptic Package Manager: Open Synaptic Package Manager by selecting it from the menu at the top: System > Administration > Ubuntu Software Center
    • Installing a package: The steps below describe how to install a package using the Synaptic Package Manager:
      1. Select the “Status” button from the Synaptic Packager Manager
      2. Select the “Not Installed” option from the menu located at the top of the buttons
      3. Select the package to be installed from the list displayed in the right-pane
      4. Right-click on the package and select the “Mark for Installation” option from the pop-up menu
      5. Select the “Apply” option from the toolbar at the top
    • Removing a package: The steps below describe how to remove a package using the Synaptic Package Manager:
      1. Select the “Status” button from the Synaptic Packager Manager
      2. Select “Installed” from the menu at the top of the buttons
      3. Select the package to be removed from the list displayed in the right-pane
      4. Right-click on the package and select the “Mark for Removal” option from pop-up menu
      5. Select the option “Apply” from the toolbar at the top

Software Catalog

Dream Studio has 2141 packages installed when it is installed. These packages are more than enough for regular users, as they provide all the basic software that a regular user will need. This includes a web browser (firefox), an email client/address book (Evolution), Image editor (GIMP), Office Suite (Open Office), Audio/Video playback software. In addition to the basic software, it provides a sufficient amount of multimedia software to meet its design goals.

Major package versions

Package Name

Version

Upstream source

  • linux-image-3.0.0-9-lowlatency
  • linux-lowlatency

 

  • 3.0.0-9.13ppa1~natty1
  • 3.0.0.9.10ppa1~natty1

 

Libc6

2.13-0ubuntu13

 

xserver-xorg-video-qxl

0.0.12-1ubuntu4

 

  • gtkdialog:
  • gtk2-engines-pixbuf
  • libqt4-core
  • tk8.5: 8.5.9-2
  • 2:0.7.20-4
  • 2.24.4-0ubuntu2
  • 4:4.7.2-0ubuntu6.2
  • 8.5.9-2

 

Shells:

  • Bash
  • Dash
  • Mono-csharp-shell
  • 4.2-0ubuntu3
  • 0.5.5.1-7.2ubuntu1
  • 2.6.7-5ubuntu3

 

ftp://ftp.gnu.org/pub/gnu/bash

Busybox-static

1:1.17.1-10ubuntu1

 

 

Software packaging (rpm, dpkg, etc.)

  • dpkg
  • aptitude
  • apt
  • synaptic
  • software-center
  • dpkg: 1.16.0~ubuntu7
  • 0.6.3-3.2ubuntu1
  • 0.18.13.2ubuntu4.1
  • 0.75.1lubuntu2
  • 4.0.4

 

Firefox

6.0+build1+nobinonly-0ubuntu0.11.04.1

 

Evolution

2.32.2-0ubuntu7

 

Inkscape

0.48.1-2ubuntu2

 

Gimp

2.6.11-1ubuntu6.1

 

Imagemagick

7:6.6.2.6-1ubuntu4

 

Package Information and Comparisons

  • Bash: Vintage:, Current:  Latest Stable release: , Modifications from the distro author: , why was it chosen for this distro:    
  • Firefox:
  • dpkg:
  • libc6:
  • apt:
  • synaptic:
  • software-center:  
  • evolution:
  • linux kernel:
  • dash:  The latest stable release of dash is 0.5.5.1-7.2ubuntu1 and it was released in November 2010, therefore dash is using the latest stable release. As stated by Dream Studio’s author, Dream Studio is using the main packages of Ubuntu without modification; this was done to allow seamless updates to the underlying software. Therefore dash has not been modified by the author. Dash is a default shell that comes installed with Ubuntu and that is why it was installed in this distribution.

Initialization

Dream Studio uses the same processes as Ubuntu to initialize the system. Specifically it uses a combination of System V init scripts and Upstart jobs to fully initialize the system. Below is an outline of the programs and their order during system initialization:

  •  

This information was found in the init.d script and the init folder under: