Deploying a nikola site to FTP
If you want to generate a static website using the Nikola but need to deploy to a hoster who only provides FTP you can use ncftp to automate the process.
- Install
ncftp
. On Debian-based distributionsapt install ncftp
should work -
Save you server credentials to a bookmark so they do no appear in your nikola config
- Log in to the FTP server:
ncftp -u <username> ftp.ftp_server.com
- Create a bookmark:
bookmark <bookmark name>
- Confirm whether you want to save your password or not
- Quit
- Log in to the FTP server:
-
Add a deploy configuration to you
conf.py
:
DEPLOY_COMMANDS = { 'ftp': [ "ncftpput -R <bookmark name> / output/*", ] }
- Run
nikola deploy ftp
Bootloader fix for Makerdiary nRF52840 MDK USB dongle
- Break the bootloader on an Makerdiary nRF52840 MDK USB Dongle
- You can do this by flashing an OpenSK build which was built around the first week in february 2021
- Have a SWD capable JTAG interface
- Have openocd installed
-
apt install openocd
for Ubuntu
-
- Grab a fresh bootloader
- I used
uf2_bootloader-0.2.13-44-gb2b4284-nosd.hex
- I used
- Wire up the dongle based on the pin description
- Note that I set the Busblaster to provide 3.3V
- Create a
openocd
script, e.g. flash-bootloader.cfg (You will have to adapt this to your JTAG interface) - Run
openocd
:openocd -f flash-bootloader.cfg
- You might have to press the
reset
button on the USB dongle to get a connection
- You might have to press the
Let's try this again
I will try to upload posts to this blog regularly. Let's see how that works out.