Skip to content

Instantly share code, notes, and snippets.

@npadmana
Last active January 12, 2018 19:59
Show Gist options
  • Save npadmana/8a6db4708d540f1cc1ee0a0cc297c2ed to your computer and use it in GitHub Desktop.
Save npadmana/8a6db4708d540f1cc1ee0a0cc297c2ed to your computer and use it in GitHub Desktop.
Linux setup
# I recommend excluding the linux data partition from Windows Defender
sudo apt-get -y update
# Basic
sudo apt-get install -y build-essential
sudo apt-get install -y cmake curl cpio git sudo wget unzip
sudo apt-get install -y tmux vim python python-setuptools
sudo apt-get install -y emacs24-lucid ispell
# Science
sudo apt-get install -y gfortran \
gsl-bin libgsl-dev gsl-ref-html \
ispell \
libblas-dev liblapack-dev liblapacke liblapacke-dev \
libopenblas-base libopenblas-dev
sudo apt-get install -y mpich libmpich-dev
#X11
sudo apt-get install -y libx11-dev
# LaTeX
sudo apt-get install -y texlive-full
sudo /usr/bin/tl-paper set all letter
# LLVM
sudo apt-get install -y clang-4.0 llvm-4.0 llvm-4.0-dev libclang-4.0-dev libedit-dev
# SSH server
sudo apt-get install -y openssh-server
# 1. Edit /etc/ssh/sshd_config to "UsePrivilegeSeparation no"
# WSL does not have chroot
# 2. Set Port to 2222
# 3. Run "sudo ssh-keygen -A" to generate host keys
# 4. Restart ssh "sudo service ssh restart"
# Also "sudo service ssh status"
# 5. Set up keys as necessary
# Setup FFTW and friends
mkdir -p build
cd build
tar xvfz ../fftw-2.1.5.tar.gz
cd fftw-2.1.5
./configure --enable-mpi --enable-threads
make
sudo make install
cd ..
tar xvfz ../fftw-3.3.5.tar.gz
cd fftw-3.3.5
./configure --enable-mpi --enable-threads --enable-openmp
make
sudo make install
# Fonts for Emacs
# Also in build
unzip ../SourceCodePro_FontsOnly-1.013.zip
sudo mkdir -p /usr/share/fonts/sourcecodepro
sudo cp SourceCodePro_FontsOnly-1.013/OTF/*.otf /usr/share/fonts/sourcecodepro/
sudo fc-cache -f -v
# Install MKL
# Untar the tarball, then run install.sh
# You may want to customize the install, especially to get the scalapack libraries
# which require cluster support
# Install Anaconda
# I don't set it up as default
# Pandoc and friends
sudo apt-get install haskell-platform
# Do this to get a working pandoc-crossref
# This also installs pandoc
mkdir ~/pandoc
cd ~/pandoc
cabal sandbox init
cabal sandbox install pandoc-crossref
######################################
# Some notes follow below
######################################
1. You may want to just run "ubuntu.exe" instead of any other console emulator
2. Alt+Enter moves the console into full screen mode.
3. I like VcXsrv as my X-windows manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment