Setting up a Redhat / Centos Server

Add following to ~/.bashrc to show current path on prompt

export PS1='$(whoami):$(pwd)] '

and run the following to make it effective.

source ~/.bashrc

In case of Redhat, add centos repo Add following content to /etc/yum.repos.d/centos1.repo guide


And run the following command to check if it worked. sudo yum repolist

Run the following commands to set up vim, git, and tmux

yum install vim 
yum install git
yum install tmux

add ~/.tmux.conf file with the following content to enable mouse scroll and mouse click for pane change.

# Make mouse useful in copy mode
setw -g mode-mouse on

# Allow mouse to select which pane to use
set -g mouse-select-pane on

# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"

# Scroll History
set -g history-limit 30000

# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on

# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50

Installing mosh mosh is in EPEL repo

  1. download and enable EPEL repo guide
    yum install wget
    rpm -ivh epel-release-latest-7.noarch.rpm
  2. install mosh
    sudo yum --enablerepo=epel install mosh

    Now you can connect with command like

    mosh -ssh "ssh -i side_projects.pem"

This seems useful, even though I am exactly sure what it does :) guide

sudo yum groupinstall 'Development Tools'

Setting up opencv guide

Setting up nuclide

npm install -g nuclide
Written on October 13, 2018