Skip to content

Latest commit

 

History

History
79 lines (57 loc) · 1.84 KB

UBUNTU_16_04.md

File metadata and controls

79 lines (57 loc) · 1.84 KB

UBUNTU 16.04 CONFIGURATION

  1. Update and upgrade the Ubuntu distribution.

    sudo apt-get update -y
    
    sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
  2. Install a dependencies for LabelMe. This includes "Apache", "Perl", and git.

    sudo apt-get install -y \
     apache2 \
     git \
     libapache2-mod-perl2 \
     libcgi-session-perl \
     libapache2-mod-php \
     make \
     php
  3. Configure Apache.

    sudo a2enmod include
    
    sudo a2enmod rewrite
    
    sudo a2enmod cgi
  4. Edit /etc/apache2/sites-available/000-default.conf so that the following is the only element in the file.

    sudo tee /etc/apache2/sites-available/000-default.conf <<EOL
    <Directory "/var/www/html/LabelMeAnnotationTool">
       Options Indexes FollowSymLinks MultiViews Includes ExecCGI
       AddHandler cgi-script .cgi
       AllowOverride All
       Require all granted
       AddType text/html .shtml
       AddOutputFilter INCLUDES .shtml
       DirectoryIndex index.shtml
    </Directory>
    EOL
  5. Clone LabelMe from GitHub. Move the LabelMe files to Apache/web-server directories.

    git clone https://github.com/CSAILVision/LabelMeAnnotationTool.git
    
    sudo mv ./LabelMeAnnotationTool/ /var/www/html/LabelMeAnnotationTool/
  6. Run the Makefile.

    cd /var/www/html/LabelMeAnnotationTool/
    
    make
    
  7. Update the permissions of the LabelMe files.

    sudo chown -R www-data:www-data /var/www/html
    
  8. Restart Apache.

    sudo service apache2 restart
    

Note, there is a YouTube tutorial by thelittlekid that demos LabelMe installation on a local Ubuntu 16.04 box.