$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
for volume in ./www.nyu.edu/calabash/vol*; do | |
volume_name=$(basename $volume) | |
for pdf in $volume/*.pdf; do | |
doc_name=$(basename $pdf .pdf) | |
pdf_dir="./data/${volume_name}/pdf" | |
png_dir="./data/${volume_name}/png/${doc_name}" | |
ocr_dir="./data/${volume_name}/ocr/${doc_name}" | |
echo "converting $doc_name" | |
mkdir -p $pdf_dir $png_dir $ocr_dir |
TIFF_DIR="tiffs" | |
if [ ! -d "${TIFF_DIR}" ]; | |
then | |
mkdir ${TIFF_DIR} | |
fi | |
for JPG in *.jpg; do | |
TIFF="$(basename ${JPG} .jpg).tiff" | |
convert -compress none ${JPG} ${TIFF} |
/etc/apache2/apache2.conf
. add the following lines:
# Block ip addresses in our ipblacklist.conf file
<Location />
<RequireAll>
Require all granted
Include /etc/apache2/ipblacklist.conf
skip if you already have GitBash working
skip if running
convert -version
in GitBash gives you something likeVersion: ImageMagick 7.0.11-1 .....
IMPORTANT! Make sure you install a Ruby version > 2.4 and less than 3.0! Recommended is “Ruby+Devkit 2.7.3-1”. On the last step of the installation wizard, make sure to run the
ridk install
option. skip if runningruby -v
in GitBash gives you a proper version>=2.4
&< 3.0
IMPORTANT!!! About half way down one of the install option menus is a checkbox with something like “Install legacy components (convert.exe etc)”. Tick this box!!!!!!!
Steps:
git --version
docker -v
Docker version 20.10.6, build 370c289
steps:
run & configure nginx
register pebble acme server with certbot