Quantcast
Channel: chirale
Browsing all 20 articles
Browse latest View live

nginx: [emerg] open() “/usr/share/nginx/off” failed (13: Permission denied)...

After a failed restart of the nginx server, you can get this error typing journalctl -xe: nginx: [emerg] open() “/usr/share/nginx/off” failed (13: Permission denied) [SOLVED] This is caused by a...

View Article



Nginx configuration for Django

Django is a powerful framework for building websites. To run a production website, usually an application server is used. So nginx will do two basic things: Serve your Django application from the...

View Article

Get number of files or directory using tree

Tree is an useful linux command to display a tree representation a full directory structure or a part of it. On a Debian based distro like Ubuntu install: The last line of tree print a line like this:...

View Article

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...

View Article

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...

View Article


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...

View Article

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...

View Article

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...

View Article


Sort of CDN to serve client-side libraries via an auto-pull git repo on tmpfs

This configuration will allow to install on a Debian-based system a fast server for client libraries. Key technologies used are: tmpfs to serve files from volatile memory git / mercurial from github /...

View Article


Disable search and autocomplete on url bar of Firefox

The default configuration of Firefox can cause a search to be performed when an url is wrong using the main bar, or auto-suggestion to be performed silently. This setting may disclose to third parties...

View Article

Full backup of PostgreSQL and restore on docker

In this howto I will show how to backup all PostgreSQL databases, roles and permission on a server and restore them on another server on a docker. 1. Backup databases on origin server To backup all...

View Article

Give flatpack a chance

Talking about package manager on Linux, flatpak gained attention recently. Installation is easy, this is about installing on Ubuntu. If you’ve some trouble installing an application using the package...

View Article

Help us fight COVID-19 in Piedmont

For more than twelve years I write on this blog about IT stuff. I’ve provided a free service in English, even if Italian is my mother tongue, to reach the widest audience. Now this little service is at...

View Article


Image may be NSFW.
Clik here to view.

Migrate mercurial code hosting from Bitbucket to your server in 9 steps using...

By now Atlassian is dropping support to Mercurial on the popular Bitbucket service. Here is a proof of concept to use a Docker container as a separate environment where self-host your code using basic...

View Article

Upgrade from Windows 7 OEM to Windows 10

Can still be feasible to upgrade an existing Window 7, 32 bit installation on 2020? I tried and yes, it is. Actually this is a suggestion of some of the best articles on this topic, this ZDnet howto...

View Article


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...

View Article

Private repo on github: how to push using a SSH deploy key

On github you can use a deploy key at a time for user associating github.com to a private key configured in .ssh/config file. Create a new user on system (e.g. userperrepo)Generate a public / private...

View Article


3-2-1 backup! Save data from VPN to local disk to cloud: part 1

3-2-1 backup is not a timer to backup. It’s a well covered backup strategy to avoid data loss storing 3 copies of valuable data in different places. At least 3 backups, 2 of which are locally stored...

View Article

Create a new mercurial repo using hg init

When you have your mercurial docker container up and running, these are the steps to create a new repo. On your server, login to mercurial docker container: docker exec -it $SSHCONTAINER bash su - hg...

View Article

Goodbye

Dear visitor, this blog was born about 15 years ago to store and share posts about some of my favourite topics. Year after year, I covered here a wide range of topics initially, focusing then...

View Article
Browsing all 20 articles
Browse latest View live




Latest Images