Skip to main content

Posts

Showing posts with the label free

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

This feature is called Software Flow Control (XON/XOFF flow control) When one end of the data link (in this case the terminal emulator) can’t receive any more data (because the buffer is full or nearing full or the user sends  C-s ) it will send an “XOFF” to tell the sending end of the data link to pause until the “XON” signal is received. What is happening under the hood is the “XOFF” is telling the TTY driver in the kernel to put the process that is sending data into a sleep state (like pausing a movie) until the TTY driver is sent an “XON” to tell the kernel to resume the process as if it were never stopped in the first place. C-s  enables terminal scroll lock. Which prevents your terminal from scrolling (By sending an “XOFF” signal to pause the output of the software). C-q  disables the scroll lock. Resuming terminal scrolling (By sending an “XON” signal to resume the output of the software). This feature is legacy (back from the 80’s when terminals were v...

How to unfreeze after accidentally pressing Ctrl-S in a terminal?

This feature is called Software Flow Control (XON/XOFF flow control) When one end of the data link (in this case the terminal emulator) can't receive any more data (because the buffer is full or nearing full or the user sends  C-s ) it will send an "XOFF" to tell the sending end of the data link to pause until the "XON" signal is received. What is happening under the hood is the "XOFF" is telling the TTY driver in the kernel to put the process that is sending data into a sleep state (like pausing a movie) until the TTY driver is sent an "XON" to tell the kernel to resume the process as if it were never stopped in the first place. C-s  enables terminal scroll lock. Which prevents your terminal from scrolling (By sending an "XOFF" signal to pause the output of the software). C-q  disables the scroll lock. Resuming terminal scrolling (By sending an "XON" signal to resume the output of the software). This feature is legacy (ba...

Terraform

Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-house solutions. Configuration files describe to Terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state, and then executes it to build the described infrastructure. As the configuration changes, Terraform is able to determine what changed and create incremental execution plans which can be applied. The infrastructure Terraform can manage includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. The key features of Terraform are: Infrastructure as Code : Infrastructure is described using a high-level configuration syntax. This allows a blueprint of your datacenter to be versioned and...

Upload artifacts to AWS S3

This document can be used when you want to upload files to AWS s3 Step-by-step guide Execute the following steps: Install ruby with the following commands in data machine where backup will be stored gpg2 --keyserver  hkp://keys.gnupg.net  --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 sudo \curl -L  https://get.rvm.io  | bash -s stable --ruby source /home/compose/.rvm/scripts/rvm rvm list known   ##### This command will show available ruby versions You can install the version of your choice by the following command: rvm install ruby 2.3.0   ###Where 2.3.0 is ruby version to be installed You can install latest ruby version by the following command: rvm install ruby --latest Check the version of ruby installed by: ruby -v Check if ruby gem is present in your machine:  gem -v If not present install by  sudo yum install 'rubygems' Then install aws-sdk:   gem install aws-sdk Add the code as below in a file  upload-...

Installation of SMTP server

The Postfix configuration procedure is as below: The configuration files main-cf  and master-cf  are found in /etc/postfix folder. We can find where these files are located as shown below. Please find the master.cf and main.cf files, and make the configurations as are present in these files main-cf     master-cf By default, Postfix will forward mail from clients in authorized network blocks to any destination. Authorized networks are defined with the  mynetworks  configuration parameter. Many Virtual Machines can be relayed to an SMTP Server. For that the private IP's of these VMs need to be specified in the  mynetworks  configuration parameter in main.cf file.  In main.cf file edit the  mynetworks  parameter with the list of IPs of the VMs that uses the SMTP Server as a mailing Server. Specify the IP address of the machine  in CIDR (network/mask) notation or simply specify your virtual machines ip. Restart the postfix service Run the following command the restart postfix service...

Setup DNS-Server on centOS-7 (Master-Slave mode)

Setup Primary (Master) DNS Server Install bind9 packages on your server. Run the following command: "yum install bind bind-utils -y" 1. Configure DNS Server Edit  ‘/etc/named.conf’  file. vi /etc/named.conf Add the lines as shown in bold: // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options {     listen-on port 53 { 127.0.0.1; [Master-dns ip] ; }; ### Master DNS IP ### #    listen-on-v6 port 53 { ::1; };     directory     "/var/named";     dump-file     "/var/named/data/cache_dump.db";     statistics-file "/var/named/data/named_stats.txt";     memstatistics-file "/var/named/data/named_mem_stats.txt";     allow-query     { localhost; 192.168.1.0/24; }; ### IP Range ###     allow-transfer{ localhost; [slave-dns ip] ; };   ### Slave DNS...