Table of Contents

Quick Links

Installation

BIOS setup

BIOS needs to setup to allow booting from USB disk

  • press F2 # Go into BIOS Utility
  • press F5 # Default setting
  • press F7 # Go into Advanced Mode
Launch CSM Enabled
BOOT Device Control UEFI only
BOOT from Network Device UEFI driver first
BOOT from Storage Devices UEFI driver first
BOOT from PCI-E/PCI Expansion Devices UEFI driver first
OS Type other OS

Debian installation

Guided-use entire disk

Debain desktop environment
Xfce
LXDE
SSH server
standard system utilities

Create user accounts

groupadd -g 3500 xue
apt-get install vim
visudo

Add the following block in the text file invoked by visudo command



Install common packages

apt-get install tcsh mc python python-dev screen links
sudo apt-get install xfce4 xfce4-terminal
sudo dpkg --purge xscreensaver  # remove screensave to save CPU resources
sudo dpkg --purge xscreensaver-data
sudo apt-get install iceweasel

Installation of 32-bit library

sudo apt-get update
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install lib32z1
sudo apt-get install libx11-6:i386
sudo apt-get install libstdc++6:i386  # for sparky
sudo apt-get install libxext6:i386  # for nmrPipe

How to manually compile numpy

sudo apt-get install python-pip
mkdir ~/build/numpy
cd ~/build/numpy
pip install -d . numpy  # download numpy source code

Now create a site.cfg file with the following content进行这一步

apt-cache search openblas # search for openblas
sudo apt-get install libopenblas-base libopenblas-dev
sudo apt-get install python2.7-dev
sudo apt-get install python-pip
mkdir ~/build/numpy
cd ~/build/numpy
pip install -d . numpy
unzip numpy*.zip
cd numpy-*
cp site.cfg.example site.cfg

# Create site.cfg with the following content:
# [default]
# library_dirs= /usr/lib/openblas-base
# 
# [atlas]
# atlas_libs = openblas

python setup.py build
ldd build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so
You should see something like
linux-vdso.so.1 (0x00007ffe387f9000)
libopenblas.so.0 => /usr/lib/libopenblas.so.0 (0x00007f44e35ed000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f44e33cf000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f44e3024000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f44e2d23000)
libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f44e2a04000)
/lib64/ld-linux-x86-64.so.2 (0x000055a81f0ec000)
libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f44e27c7000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f44e25b1000)
sudo python setup.py install

Install other scientific packages

sudo pip install scipy
sudo apt-get install matplotlib
sudo apt-get install ipython

remove numpy(if installed system NumPy)

sudo dpkg --purge --force-all python-numpy
sudo dpkg -r --ignore-depends=python-numpy python-numpy

Usage of dpkg

http://www.tuicool.com/articles/iqumQz

change the boot option of debian

Install x2go server on debian