Decided to upgrade my desktop, and encountered a known common scenario whereby both gdm and lightdm seem to get borked and no GUI can be started. Eventually did a reinstall. Note to self: once email and browsers are properly set up and stable, move those home folders onto the spinning disk so that they don't have to get recreated when rebuilding.
Category: "Activity log"
In a previous post I went through in detail how to set up the virtual host for Apache and to configure the /etc/hosts file, but I didn't give much detail on Apache itself. I've just gone through the whole process again, and I'm now documenting that as an addendum:
Configure required apache modules:
sudo a2enmod proxy sudo a2enmod proxy_http sudo a2enmod ssl
Generate a certificate for the server to use:
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/spud.key -out /etc/ssl/certs/spud.crt
Restart Apache:
sudo systemctl restart apache2
Of course the name and location of the cert must match the name and location specified in the virtual host file.
I'm now able to build the trunk of the eXist repo to get a working (but not yet tested) eXist 4. I can start testing our apps with it now.
A bit late coming to this, and it took an hour or so to get everything back up and running, but fonts are way nicer and the Japanese input works better.
Put the new HD into the machine and tried to do a direct dd copy from the old HD in a USB cradle, but the operation failed at the same point twice (after about 15GB). In the end, I created a new encrypted volume on the new disk, formatted it as ext4 and set an scp job going to bring everything down from Rutabaga. The results will be pretty messy, I know, but there's no real alternative. I'll have to do a bunch of chmods to handle .svn folders and such; it may be simpler to check things out again. If it's possible to get my VMs off the old drive, that's the next thing to try because those aren't backed up. Only the Windows one gets used, though, and that's easy to rebuild if necessary.
In prep for RA work, installed QGIS locally and worked through the initial parts of the tutorial. Will keep going with this. So far it's pretty straightforward.
Now that Open Layers fully supports vector layers, we're looking at the practicality of running a vector tile server for our projects. Starting from this docker example, I created a script which I can run on a standard Debian Stretch install to create a working tile server:
#!/bin/bash #This is to be run on a standard Debian Stretch install. #Install core stuff apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install apt-transport-https curl unzip build-essential python libcairo2-dev libprotobuf-dev xvfb #Temporarily use a specific source for the exact nodejs version we need. echo "deb https://deb.nodesource.com/node_4.x jessie main" >> /etc/apt/sources.list.d/nodejs.list echo "deb-src https://deb.nodesource.com/node_4.x jessie main" >> /etc/apt/sources.list.d/nodejs.list #Install it. apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y --allow-unauthenticated install nodejs #Now remove the source. rm /etc/apt/sources.list.d/nodejs.list apt-get clean #Added these in order to get the npm install to run properly. #The problem was building canvas. apt-get -y install libjpeg62-turbo-dev libpango1.0-dev libgif-dev g++ #Create directory for tileserver application. mkdir -p /usr/src/app #Get the Klokantech code for the server. cd /usr/src/app curl -L https://github.com/klokantech/tileserver-gl/archive/master.zip -o master.zip unzip master.zip cp -r tileserver-gl-master/* ./ rm -rf tileserver-gl-master #Install the node stuff npm install --production #Set environment variable echo NODE_ENV=\"production\" >> /etc/environment #Create the folder for the mbtiles files (you'll need to supply these later). mkdir /data #In case other servers are installed and running, stop them. systemctl stop apache2 mysql systemctl disable apache2 mysql echo "Now put your mbtiles files into the /data folder, and run /usr/src/app/run.sh." #Start the tileserver on port 80. #run.sh
This could form the basis for a VM-based tileserver for our projects, including the Confederation Debates; running a server for all of Canada is quite practical due to the efficiency of the vector format.
Just recording this because it took a little while to figure out:
We discovered this morning that the B and T conference site program would not print past the first page; it was as if the rest of the content was invisible to the print renderer (in all browsers). The culprit turned out to be this, in style.css:
.internal { position: relative; overflow: auto; <<------------------------this line width: 100vw; height: 100vh; -webkit-overflow-scrolling: touch; }
It hides anything beyond the viewport window from the print renderer. I was able to override by adding:
@media only print { .internal { overflow: visible; } }
I let PS know about it, since it's his stylesheet.
The upgrade for Jenkins on teiJenkins was being kept back, and it turned out this was because Ubuntu 14.04 has Java 7 by default. I added a PPA for Java 8, updated the alternatives (sudo update-alternatives --config java) to point to the new one, and was then able to install Java 8. Following that, the Jenkins update went ahead. I elected to keep my existing config for Jenkins rather than overwrite. It needed a reboot for Apache to find Jenkins again.
RE provided new space to double the available drive space; followed my own instructions here to extend the partition. No problems at all.