Amazon Route 53 DKIM error

DKIM keys failed to validate on a mail server. The domain used Amazon ROute 53 DNS server. amavisd-new showkeys command print out following public key for this domain. root@mail:~# amavisd-new showkeys ; key#1 1024 bits, i=dkim, d=temashipyard.com.gh, /var/lib/dkim/temashipyard.com.gh.pem dkim._domainkey.temashipyard.com.gh. 3600 TXT ( “v=DKIM1; p=” “MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWcxPI2x5A0JtsRFfm6w8FNoWe” “tDPtFAQz7fbWfIQC98sth7407E7IiskMDGL1Je1OCP/0nKT3IkduNjh1yJlzN5db” “/phTtdIKsPmGAcqjskDBqLKRiKmPhknZVfO0EwqwCrFO0i9ZpN9” “vTGmquN0EdzPLK77iQIDAQAB”) root@mail:~# When you cut and paste this … Read more

kubectl

kubectl command is used to manage Kubernetes Clusters. To install kubectl on Linux, run wget https://raw.githubusercontent.com/serverok/server-setup/master/install/kubectl.sh bash kubectl.sh On Ubuntu, you can install from snap using sudo snap install kubectl –classic or with apt apt-get install kubectl To get help, run kubectl help Check if Kubernetes environment is ready kubectl version Run nginx container kubectl … Read more

Install LetsEncrypt SSL on Bitnami

NOTE: bitnami provides a tool to install SSL, it is better to use the tool to install SSL. You can see more info on page How to install LetsEncrypt SSL on Bitnami WordPress Server To install LetsEncrypt SSL on bitnami wordpress server, install letsencrypt with wget https://raw.githubusercontent.com/serverok/server-setup/master/install/letsencrypt.sh sh ./letsencrypt.sh Stop apache web server with /opt/bitnami/ctlscript.sh … Read more

How to add ISO to VMware ESXi

vmware esxi datastore

To add ISO to VMware ESXi, enable SSH access VMware > Actions > Services > Enable Secure Shell (SSH) Once enabled, you will be able to login to server using SSH. Once logged in, go to folder cd /vmfs/volumes/datastore1 Create a folder ISO and change directory to ISO folder. mkdir ISO cd ISO Now you … Read more

Swap Boot Disk in Azure VM

Customer lost login credentials for a Azure VM. Azure provide a way to reset Password for VM using Azure portal or via Azure cli/powershell. Before you swith disk, make sure you note down current name of the boot disk, so if anything went wrong with new disk, you can swap back. You can run following … Read more

Amazon EC2

https://aws.amazon.com/ec2/pricing/on-demand/ Resize Amazon EC2 Boot Disk Resize EC2 file system with LVM Amazon EC2 disk resize No space left on device Cpanel Server Behind NAT (Amazon AWS) Cpanel Server Behind NAT – Amazon EC2 Amazon Ec2 Fixing Cpanel IP after restore from snapshot How to Open Port in Amazon EC2 instance Videos Amazon EC2 Increase … Read more

Google Cloud apt signatures couldn’t be verified

When i run apt update, i get error W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.cloud.google.com cloud-sdk-jessie InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB W: An error occurred during the … Read more

Deploy Docker Image using Elastic Beanstalk

First create a file docker-eb-run.json with following content { “AWSEBDockerrunVersion”: “1”, “Image”: { “Name”: “bitnami/tomcat” }, “Ports”: [ { “ContainerPort”: “8080” } ] } here i used docker container bitnami/tomcat, you can use any container. Login to AWS Console, go to AWS Elastic Beanstalk page. Click Get Started. On next page, it ask for Application … Read more

Getting Started with Amazon Elastic Beanstalk

AWS Elastic Beanstalk is a PaaS (Platform As Service) allow you to quickly deploy applications. To install AWS Elastic Beanstalk command line tool, run sudo pip install awsebcli Starting your first Project Create a folder with a php file. mkdir ~/www/eb-project-1 cd ~/www/eb-project-1 echo “” > index.php Add our project to git. git init git … Read more

Configure Postfix to use Amazon SES

Install postfix with apt-get update && apt-get install postfix libsasl2-modules -y Update postfix config with sed -i “s/default_transport = error/# default_transport = error/g” /etc/postfix/main.cf sed -i “s/relay_transport = error/# relay_transport = error/g” /etc/postfix/main.cf sed -i “s/relayhost =/# relayhost =/g” /etc/postfix/main.cf Edit vi /etc/postfix/main.cf Add to end of the file relayhost = [SMTP_SERVER_NAME]:587 smtp_tls_security_level = encrypt … Read more

AWS Cloud​Formation

AWS Cloud​Formation allow you to quickly build infrastructure required for your applications. https://aws.amazon.com/cloudformation/ CloudFormation templates are stored as yaml or json file, this allow version control of your infrastructure, sharing the infrastructure with other developers. To list all available stacks, run aws cloudformation list-stacks To create a stack, run aws cloudformation create-stack –stack-name myteststack –template-body … Read more