User Tools

Site Tools


hints:misc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hints:misc [2023/08/19 05:58] – [Building a Looking Glass] philiphints:misc [2023/08/19 07:20] (current) – [Building a Looking Glass] philip
Line 48: Line 48:
 First off, grab the few files you need off the repo - you could clone it, but there are only a few files, and they haven't been changed in a while. Put them all in **/usr/local/src/LG**. All the directions below assume that the working directory is here. First off, grab the few files you need off the repo - you could clone it, but there are only a few files, and they haven't been changed in a while. Put them all in **/usr/local/src/LG**. All the directions below assume that the working directory is here.
  
-Assuming a basic install of Ubuntu 22.04, we need to add a few packages.+Assuming a basic install of Ubuntu 22.04, we need to add a few packages, including a compiler.
 <code> <code>
-sudo apt install apache2+sudo apt install apache2 make gcc libexpat1-dev
 </code> </code>
 +
 +Next we need to install a few extra perl modules to support the looking glass. Assuming we don't have CPAN already set up, we need to do:
 +<code>
 +cpan App::cpanminus
 +</code>
 +This installs the basic CPAN environment to make adding in modules simpler. Once the CPAN environment is in place, you then need to run:
 +<code>
 +cpan install CPAN::DistnameInfo
 +cpan install XML::Parser
 +cpan install Net::Telnet
 +</code>
 +which will install the XML parser and telnet support for Perl. This should all complete successfully - you'll see these two packages and all the supporting modules being automatically installed.
 +
 With the Apache2 webserver installed in its default configuration, we now need to create two folders for the Looking Glass components. With the Apache2 webserver installed in its default configuration, we now need to create two folders for the Looking Glass components.
 <code> <code>
Line 84: Line 97:
  
 </VirtualHost> </VirtualHost>
 +</code>
 +
 +We need to turn on support for CGI:
 +<code>
 +sudo a2enmod cgid
 +</code>
 +
 +Then we need to enable the site:
 +<code>
 +sudo a2ensite lg.my.site
 +</code>
 +and then restart Apache2 for it to go live:
 +<code>
 +sudo systemctl restart apache2
 </code> </code>
  
hints/misc.1692388739.txt.gz · Last modified: 2023/08/19 05:58 by philip