Experience
! ! ! If you want to program with gpu, you must install cuda first, and then think about other things! ! !
For details, please see:
http://blog.csdn.net/sun7_she/article/details/68946966
1. Recommend a website:
(Explain: If you don't put it in the code block, the L of LINUX will be capitalized, and the wrong website will be opened)
http://blog.guorongfei.com/2016/05/17/linux-toolset/
2. Installing oh my zsh is said to be a very useful terminal
http://www.jianshu.com/p/9a5c4cb0452d
https://my.oschina.net/shyann/blog/426004
3. Open the current directory as a window
Open the folder: Nothing after nautilus is to open the current directory
4. Install vim: sudo apt-get install vim
Install torch7+iTorch
If you cannot use luarocks install image, you can try various methods on this website:
https://github.com/torch/nngraph/issues/52
The following sentence solved my problem: sudo chown -R $(whoami) ~/.cache
Install torch7 on ubuntu and follow the website below to be OK
http://blog.rainy.im/2016/01/02/lua-and-torch7-on-jupyter/
There are still many pits that need to be filled:
1. Use the following sentence when installing JUYTER, otherwise it seems that you cannot visit the website in the article in China
pip3 install jupyter
2. There may be a lack of openssl during the installation process, just use the following two statements to install
sudo apt-get install openssl
sudo apt-get install libssl-dev
3. Refer to the tutorial on the following website for itorch installation
http://www.aichengxu.com/linux/24641430.htm
Zeromq installation reference official website tutorial
http://zeromq.org/area:download
Before installing zeromq, make sure to have autoconf and automake. The installation statement is the first two sentences of the code block below.
sudo apt install autoconf
sudo apt install automake
git clone https://github.com/zeromq/libzmq./autogen.sh./configuremake -j 4make checksudo make installsudo ldconfig
sudo apt-get install python-dev -y
sudo apt-get install python-pip -y
sudo pip install ipython
sudo apt-get install python-zmq -y
sudo apt-get install python-markupsafe -y
sudo apt-get install python-jsonschema -y
sudo pip install jinja2
sudo pip install tornado
luarocks install luacrypto
luarocks install env
luarocks install lzmq
luarocks install lbase64
luarocks install uuid
# add some decoders for iTorch audio and video
sudo apt-get install gstreamer1.0-libav -y
# Install iTorch
git clone https://github.com/facebook/iTorch.git
cd iTorch
luarocks make
Test it~~ Then, enter it directly on the command line
th
To call torch7
Enter directly on the command line
itorch notebook
You can open the web notebook to edit the torch
Hou Kaisen, I feel great~