Basic Operation

Check

Check the disk partition

1
df -hl

Check the version of System

1
lsb_release -a

Check the bit(32 or 64) of System

1
2
uname -a
uname -i

Check GPU information

1
lspci -v -s $(lspci | grep VGA | cut -d" " -f 1)

Install software

Install the ibus google input

1
2
sudo apt-get install ibus-googlepinyin
im-config

Install R project

1. First: add a repository to etc/apt/sources.list

1
sudo sh -c 'echo "deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/"'

Install wifi adapter(A6 100)

1
2
3
4
5
6
## Download http://github.com/abperiasamy/rtl8812AU_8821AU_linux
cd Download/rtl8812AU_8821AU_linux-master
## sudo make clean
sudo make
sudo make install
sudo modprobe 8812au

2. Second: running following command

1
2
sudo apt-get update
sudo apt-get install r-base

reference website:
(https://cran.r-project.org/bin/linux/ubuntu/README)

3. Set default CRAN mirror permanent in R

1
options(repos=structure(c(CRAN="YOUR FAVORITE MIRROR")))

Then follow this Link.

1
2
3
// example: link the first path to the second one

sudo ln -s /usr/local/MATLAB/R2013a/bin/matlab /usr/local/bin/matlab

Install command

1
2
3
//.deb file :

sudo dpkg -i deb_package

Switch multiple gcc and g++

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## for people who using matconvnet and mxnet the first toolbox need
## g++ 4.7 and the second need g++ 4.8, thus sometimes we need to switch between them ...

## First erased the current update-alternatives setup for gcc and g++:

sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++

## Then Install Packages
sudo apt-get install gcc-4.7 gcc-4.8 g++-4.7 g++-4.8

## Install Alternatives
### Symbolic links cc and c++ are installed by default. We will install symbol links
### for gcc and g++, then link cc and c++ to gcc and g++ respectively.


sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20

sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc

sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++


## Finally, Configure Alternatives
### The last step is configuring the default commands for gcc, g++. It's easy to switch
### between 4.7 and 4.8 interactively:

sudo update-alternatives --config gcc
sudo update-alternatives --config g++
1
ln -s -T /usr/local/cuda-8.0/ /usr/local/cuda/