-
Autorestart nodejs app with supervisor on error and changes
This howto will show how to restart automatically a nodejs app on crash or on file changes using supervisor and nodemon. Autorestart on changes To install nodemon to autorestart app when you change app files: To test it’s working, use nodemon like node, passing all parameters you would pass to node: Autorestart on errors To […]
-
Using multiple deploy keys on github using .ssh/config
You can use multiple deploy keys for Github created with ssh-keygen following with these steps. You have to add to your ~/.ssh/config If you haven’t added your github name on git: Then clone your repository specifying your custom host, adapting what github suggest to you on repo page: If you have enabled push permissions you […]
-
Create a Windows 10 recovery disk on Linux
In this howto there are the steps to follow when a Windows 10 OS is not bootable anymore and you haven’t a recovery disk. This is a typical case after a new OS will be installed on Dual boot or boot partition was altered. Download Windows 10 iso: Download the official Windows 10 image Prepare […]
-
Disable password authentication on sshd
To disallow password authentication on ssh, adduser –disabled-password will not disable openSSH password. To disable the password authentication, you have to put these values on /etc/ssh/sshd_config to: PasswordAuthentication no UsePAM no PermitRootLogin no Then you’ve to: to apply changes. Connection will not be reset so before logout try to login on a different terminal to […]
-
Partition a new disk on linux using fdisk, lsblk and mkfs
First, you’ve to create a new partition. You can list all available storage device with: lsblk If your disk is new, the new device will appear empty (without children on the tree). Then: fdisk /dev/sdc Press m to show the manual. To create a partition larger than 2TB, you’ve to use a GPT partition (g) […]