====== Quick Links ======
* [[https://blog.udemy.com/debian-vs-ubuntu/ | Debian vs Ubuntu]] | [[https://www.debian.org/distrib/packages | Search package]]
* [[debian/cookbook | Debian Cookbook]]
====== 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//
* Go to Boot menu in BIOS interface and move to "CSM" item, and make sure you have the following setup
| 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 |
* Move to "Secure Boot" item, and make sure you have the following setup
|OS Type | other OS |
* Exit/Save
===== Debian installation =====
* Partition disks
{{:partition_disks1.jpg?100|}} {{:partition_disks2.jpg?direct&100|}}
Guided-use entire disk
* Software selection
|Debain desktop environment |
|Xfce |
|LXDE |
|SSH server |
|standard system utilities |
===== Create user accounts =====
* Log into root
* Add group "xue"
groupadd -g 3500 xue
* Add user by running cmd/adduser.sh
* Setup sudo
apt-get install vim
visudo
Add the following block in the text file invoked by visudo command
===== Install common packages =====
* Common tools
apt-get install tcsh mc python python-dev screen links
* xfce
sudo apt-get install xfce4 xfce4-terminal
sudo dpkg --purge xscreensaver # remove screensave to save CPU resources
sudo dpkg --purge xscreensaver-data
* Common X11 applications
sudo apt-get install iceweasel
===== Installation of 32-bit library =====
* Type the following commands
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 =====
* Install pip
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进行这一步
* Ref: http://gromgull.net/blog/2013/07/multithreaded-scipynumpy-with-openblas-on-debian/
* Install openblas
apt-cache search openblas # search for openblas
sudo apt-get install libopenblas-base libopenblas-dev
sudo apt-get install python2.7-dev
* Compile numpy
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
* Check whether numpy is linked to openblas
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)
* Install numpy
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) =====
* remove numpy forcely
sudo dpkg --purge --force-all python-numpy
* remove numpy only (after apt-get matplotlib, old version of numpy will be installed automatically)
sudo dpkg -r --ignore-depends=python-numpy python-numpy
===== Usage of dpkg =====
* http://blog.csdn.net/sunjiajiang/article/details/7252593
http://www.tuicool.com/articles/iqumQz
===== change the boot option of debian =====
* 'Debian GNU/Linux' -> press 'E' -> 'setparams' -> 'Linux ...' -> delete 'quiet', add 'text' 'nomodeset'
===== Install x2go server on debian =====
* http://wiki.x2go.org/doku.php/doc:installation:x2goserver
* Add our X2Go Debian Repository.
*
sudo -s
apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
editor /etc/apt/sources.list.d/x2go.list
apt-get update
apt-get install x2go-keyring && apt-get update
apt-cache search x2go
* install
*
sudo apt-get install x2goserver x2goserver-xsession