Trying to upgrade pelican project.

modified:   .gitignore
	modified:   Makefile
	modified:   README.rst
	new file:   content/2019-11-08-unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path.rst
	new file:   content/uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png
	new file:   content/uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png
	new file:   content/uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png
	new file:   vars.fish.tmpl
This commit is contained in:
russellballestrini 2019-11-08 13:01:13 -05:00
parent c7ffc5825d
commit a91ec82ccb
8 changed files with 55 additions and 58 deletions

3
.gitignore vendored
View file

@ -68,3 +68,6 @@ pelican-themes/
pelican-plugins/ pelican-plugins/
build.sh build.sh
vars.fish

View file

@ -8,24 +8,6 @@ OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py PUBLISHCONF=$(BASEDIR)/publishconf.py
FTP_HOST=localhost
FTP_USER=anonymous
FTP_TARGET_DIR=/
SSH_HOST=localhost
SSH_PORT=22
SSH_USER=root
SSH_TARGET_DIR=/var/www
S3_BUCKET=my_s3_bucket
CLOUDFILES_USERNAME=my_rackspace_username
CLOUDFILES_API_KEY=my_rackspace_api_key
CLOUDFILES_CONTAINER=my_cloudfiles_container
DROPBOX_DIR=~/Dropbox/Public/
GITHUB_PAGES_BRANCH=gh-pages
DEBUG ?= 0 DEBUG ?= 0
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
@ -48,15 +30,9 @@ help:
@echo ' make publish generate using production settings ' @echo ' make publish generate using production settings '
@echo ' make serve [PORT=8000] serve site at http://localhost:8000' @echo ' make serve [PORT=8000] serve site at http://localhost:8000'
@echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 ' @echo ' make serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
@echo ' make devserver [PORT=8000] start/restart develop_server.sh ' @echo ' make devserver [PORT=8000] serve and regenerate together '
@echo ' make stopserver stop local server '
@echo ' make ssh_upload upload the web site via SSH ' @echo ' make ssh_upload upload the web site via SSH '
@echo ' make rsync_upload upload the web site via rsync+ssh ' @echo ' make rsync_upload upload the web site via rsync+ssh '
@echo ' make dropbox_upload upload the web site via Dropbox '
@echo ' make ftp_upload upload the web site via FTP '
@echo ' make s3_upload upload the web site via S3 '
@echo ' make cf_upload upload the web site via Cloud Files'
@echo ' make github upload the web site via gh-pages '
@echo ' ' @echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' @echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html '
@echo 'Set the RELATIVE variable to 1 to enable relative urls ' @echo 'Set the RELATIVE variable to 1 to enable relative urls '
@ -65,6 +41,7 @@ help:
resume: resume:
rst2pdf $(INPUTDIR)/pages/russell.ballestrini.resume.rst --stylesheets $(INPUTDIR)/pages/russell.ballestrini.resume.style -o $(OUTPUTDIR)/uploads/russell.ballestrini.resume.pdf rst2pdf $(INPUTDIR)/pages/russell.ballestrini.resume.rst --stylesheets $(INPUTDIR)/pages/russell.ballestrini.resume.style -o $(OUTPUTDIR)/uploads/russell.ballestrini.resume.pdf
html: html:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
@ -76,54 +53,28 @@ regenerate:
serve: serve:
ifdef PORT ifdef PORT
cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT) $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT)
else else
cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
endif endif
serve-global: serve-global:
ifdef SERVER ifdef SERVER
cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 $(SERVER) $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b $(SERVER)
else else
cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 0.0.0.0 $(PELICAN) -l $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT) -b 0.0.0.0
endif endif
devserver: devserver:
ifdef PORT ifdef PORT
$(BASEDIR)/develop_server.sh restart $(PORT) $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) -p $(PORT)
else else
$(BASEDIR)/develop_server.sh restart $(PELICAN) -lr $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
endif endif
stopserver:
kill -9 `cat pelican.pid`
kill -9 `cat srv.pid`
@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
publish: publish:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish
scp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
rsync_upload: publish .PHONY: html help clean regenerate serve serve-global devserver publish
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
dropbox_upload: publish
cp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
ftp_upload: publish
lftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
s3_upload: publish
s3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type
cf_upload: publish
cd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
github: publish
ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)
git push origin $(GITHUB_PAGES_BRANCH)
.PHONY: html help clean regenerate serve serve-global devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github

View file

@ -17,6 +17,13 @@ Clone this repo, then in the ``pelican-themes`` directory clone this repo:
git clone git@github.com:russellballestrini/pelican-svbhack.git git clone git@github.com:russellballestrini/pelican-svbhack.git
cd .. cd ..
To install this theme:
.. code-block:: bash
pelican-themes -i pelican-themes/pelican-svbhack/
Next clone the `pelican-plugins` repo (I use ``random_article``) Next clone the `pelican-plugins` repo (I use ``random_article``)
.. code-block:: bash .. code-block:: bash

View file

@ -0,0 +1,32 @@
Unity collab not working on Fedora because of invalid CA certificate path
##########################################################################
:author: Russell Ballestrini
:slug: unity-collab-not-working-on-fedora-because-of-invalid-ca-certificate-path
:date: 2019-11-08 12:19
:tags: Code, Games
:status: published
.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-no-link.png
:align: center
:alt: An image showing that Unity Collab is not linked
This issue blocked me for about two days and prevented me from collaborating with another engineer at `gumyum` games studio.
He was on Windows and he was able to interact with collab and our shared project owned by our shared org while I was on Fedora 30.
.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-curl.png
:align: center
:alt: An image showing that Unity is looking for the CA Certificates in the wrong location
Apparently Unity naively assumes that a Linux system's copy of the root CA certificates is located `/etc/ssl/certs/ca-certificates.crt`. This is the default location on Debian and Ubuntu based systems but not Fedora or Redhat, which uses the `/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem` file.
The work around is simple, we create a soft link between the paths::
sudo ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/ssl/certs/ca-certificates.crt
.. image:: /uploads/2019/unity-collab-fedora-ca-certificate-error-fixed.png
:align: center
:alt: An image showing that Unity Collab is working again!

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

4
vars.fish.tmpl Normal file
View file

@ -0,0 +1,4 @@
set -x GOOGLE_ANALYTICS "<removed>"
set -x REMARKBOX "<removed>"
set -x LINKPEEK_APIKEY "<removed>"
set -x LINKPEEK_SECRET "<removed>"