Month: June 2015

tmux, a time saving linux tool

Tmux is a linux based tool, called terminal multiplexer helps enable many terminals to be accessed and controlled by a single terminal. Say if you wanted to install a program in all the linux machines in your network, then by using tmux you could access the terminal of all your machines and install the package simultaneously.

This tool has been very beneficial to me and thought I could share this to my readers.

You could install by

sudo apt-get install tmux

and when you enter

'tmux'

from command line, you will get a screen like this:

Screenshot from 2015-06-30 11:23:34

Caveat: You need to have openssh-server installed in every machine however you do not need to install Tmux in every machine.

Pictures speak more than words and the following pictures show how I installed Java in multiple machines.

tmux new -s 'new session 'ssh user@host_or_ipaddress' \; split-window -h 'ssh user@host_or_ipaddress' \; split-window -h 'ssh user@host_or_ipaddress' \; select-layout even-vertical

once you enter these panes, press

ctrl-b and ":" (use shift key) setw synchronized-panes

Screenshot from 2015-06-30 10:29:20

and there you go. The following picture is where I installed Java 8 in 6 machines in one go

Screenshot from 2015-06-30 10:37:52

more information can be found here.

Advertisements

full stack development

Full stack developer is someone who has the knowledge and ability to develop/work on all layers of web application development. When a user clicks on a web page to perform some action, the webpage communicates with server which accesses a database and retrieves information to be sent back to the user. Easier said than done.

The web application development consists of many layers. You have the server that resides on an operating system, a database where the data gets stored, a front end which the user sees when he/she opens a website and a backend layer that communicates between front end and the server. There is also the work of gathering requirements, meeting with clients, creating documentation and project management.

For instance, consider a web page(s) where:

Front-end is developed using HTML, CSS and JavaScript; back-end is developed using JavaScript, PHP or Python uses MySQL or MongoDB on a Apache Server

Keep watching this space for full stack development posts.