ubuntu installation and setup

Learning Linux, installed in a virtual machine class ubuntu18.04, just Bahrain system time is wrong, the system did not gcc, g ++.

On installing software is nothing more than:

sudo apt-get install gcc

sudo apt-get install g++

 

Modify the system time:

sudo tzselect # (mnemonic: tzselect: Time Zone the SELECT abbreviation)

 

Enter, enter the appropriate countries and regions in turn prompted, and then use the following command set:

sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

Enter after you have set the time came.

 In order to use python to install the anaconda, the system comes with python version python3.6.8, using python can not find the need to use python3 before we can see.

Then I installed the Anaconda3.5.0, Tsinghua downloaded directly from the source image, use the command to download a good installation directory.

bash Anaconda3-5.0.0-Linux-x86_64.sh

The final step in the installation will ask whether to add environment variables, reply yes. Enter the current terminal in python or python installed you do not see the need to restart a terminal to see the results of the installation.

Enter the python in the newly opened terminal at this time can be seen in the version python3.6.2, and there Anaconda display.

Anaconda for later installation easy to install and caffe tensorflow.

 

Then download caffe Source:

git clone https://github.com/bvlc/caffe.git

For compilation caffe need to download some dependent libraries:

Reference: https://blog.csdn.net/m0_38116269/article/details/85098640

sudo apt-get install libprotobuf-dev 
sudo apt-get install libleveldb-dev 
sudo apt-get install libsnappy-dev 
sudo apt-get install libopencv-dev 
sudo apt-get install libhdf5-serial-dev 
sudo apt-get install protobuf-compiler 
sudo apt-get install libgflags-dev 
sudo apt-get install libgoogle-glog-dev 
sudo apt-get install liblmdb-dev 
sudo apt-get install libatlas-base-dev 
sudo apt-get install --no-install-recommends libboost-all-dev 

Once downloaded into the directory caffe

CD caffe

A copy of a copy of Make.config

cp Makefile.config.example Makefile.config

We want to use is copied from Makefile.config.example over Makefile.config.

This file needs to make some changes:

Which because of their installation is opencv3.2 (use the command pkg-cinfig --modversion opencv can see), it is necessary to put in Makefile.config OPENCV: = Note 3 to open.

 

Guess you like

Origin www.cnblogs.com/juluwangshier/p/11256581.html