Configure tmux

  • Install the latest tmux
  • Modify .tmux.conf.local

# — user customizations ——————————————————-
# this is the place to override or undo settings

# increase history size
set -g history-limit 10000

# start with mouse mode enabled
set -g mouse on

# force Vi mode
# really you should export VISUAL or EDITOR environment variable, see manual
#set -g status-keys vi
#set -g mode-keys vi

# replace C-b by C-a instead of using both prefixes
set -gu prefix2
unbind C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# move status line to top
# set -g status-position top

bind | split-window -h
bind – split-window -v


Minimal configuration:

# 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

unbind C-b
set -g prefix C-a
bind r source-file ~/.tmux.conf ; display-message “Config reloaded..”

bind | split-window -h
bind – split-window -v

set -g base-index 1
set -g pane-base-index 1

set -g @plugin ‘tmux-plugins/tpm’
set -g @plugin ‘tmux-plugins/tmux-sensible’
set -g @plugin ‘tmux-plugins/tmux-prefix-highlight’

set -g @plugin ‘tmux-plugins/tmux-resurrect’
set -g @plugin ‘tmux-plugins/tmux-continuum’
set -g @plugin ‘tmux-plugins/tmux-sidebar’
set -g @plugin ‘tmux-plugins/tmux-logging’
set -g @plugin ‘tmux-plugins/tmux-pain-control’
set -g @plugin ‘tmux-plugins/tmux-online-status’

run ‘~/.tmux/plugins/tpm/tpm’

install allennlp

# use gcc 4.8 to install thinc (compatible with cuda-8)

CC=/usr/bin/gcc pip install thinc==6.10.1

# cytoolz needs scl enable devtoolset-6

scl enable devtoolset-6 rh-python36 bash

pip install allennlp

python -m spacy download en



openafs on Ubuntu 16.04

Error message:

aklog: a pioctl failed while obtaining tokens for cell


/etc/init.d/openafs-client stop
# try again
  • Or, rollback your kernel to 4.2
    • check your current kernel version: uname -r
    • remove it:¬†sudo apt-get purge linux-image-x.x.x.x-generic
    • reboot
$ sudo -i
# apt-get remove openafs-client openafs-krb5 openafs-modules-dkms krb5-config krb5-user ntp
# apt-get install krb5-config krb5-user ntp openafs-client openafs-krb5 openafs-modules-dkms
# echo "" > /etc/openafs/ThisCell
# /etc/init.d/openafs-client start
# exit
$ kinit [DICE username]
$ aklog
$ /etc/init.d/openafs-client stop
$ /etc/init.d/openafs-client start