Postfix disable IPv6
To disable IPv6 on the postfix mail server, edit vi /etc/postfix/main.cf Find inet_protocols = all Replace with inet_protocols = ipv4 Restart postfix…
To disable IPv6 on the postfix mail server, edit vi /etc/postfix/main.cf Find inet_protocols = all Replace with inet_protocols = ipv4 Restart postfix…
You can try various linux distributions with out downloading ISO. To try, go to web site https://distrotest.net Find the linux distribition from…
To create a virtualenv, run virtualenv NAME_OF_VIRTUALENV On Ubuntu 18, this command will create virtualenv with Python 2.7. To create virtualenv with…
Install virtualenv on Ubuntu Creating and using virtualenv virtualenv is used to create isolated python environments. With python3, you can create virtualenv…
gunicorn behind Apache web server Running Python Application with gunicorn and nginx Serve a Django application using Gunicorn
gunicorn is a python application server used to run python applications in production. This is normally run behind web servers like nginx…
If you want to run same command on multiple servers, you can use tmux synchronize-panes feature. This will be useful when you…
When you start a new window or split pane on tmux, it always start with the directory from where you run tmux…
To start tmux and attach to existing connection on SSH in, edit file vi ~/.bashrc Add if [[ “$TMUX” == “” ]]…
To export a table into CSV file, run \copy TABLE_NAME to ‘FILE_NAME.csv’ csv header; This will save the CSV file in current…