Time:2018-06-18 13:00:00
Tags:linux
---
Attention
System version: Ubuntu 18.04 LTS
Code
# Update SystemsudoApt-get UpdatesudoApt-get upgrade-f-y# Change the system boot ordersudoVi/etc/default/grub# Press the INS key to enter insert mode# Change the value of Grub_default# Press ESC to exit insert mode# Enter ZZ to save and exit# update grub.cfg filesudoUpgrade-grub# Fix Windows Time confusion after installing dual system# First Make sure Ubuntu time is rightsudoApt-get Install NtpdatesudoNtpdate time.windows.com# Update Hardware timesudoHwclock--localtime--SYSTOHC# Configure QTsudoApt-get UpdatesudoApt-y Full-upgradesudoApt Install g++sudoApt Install gccsudoApt Install makesudoApt--fix-broken Install# You can't find Igl if you still have an errorsudoApt-get Install Libgl-dev# Uninstall Firefoxdpkg--get-selections|grepFirefoxsudoApt-get purge Firefox# Configure SSHsudoApt-get UpdatesudoApt-get Install Openssh-clientsudoApt-get Install Openssh-server# Check if the installation is successfulPS-E|grepSsh# Configure VNCsudoApt-get UpdatesudoApt-get Install Tightvncserver# Start ServiceTightvncserver# Turn off VNC connection nVncserver-kill:n# Install *.debsudoDpkg-i *.deb# If you get an error, try:sudoApt--fix-broken Install# Install Caffe-cpu-onlysudoApt-get UpdatesudoApt Install caffe-cpu# Although Caffe has been installed, we need to download some tools:CD~gitClone Https://github.com/BVLC/caffe.git# download Mnist datasudoBash ~/caffe/data/mnist/get_mnist.sh# Convert to Lmdb datasudoBash ~/caffe/examples/mnist/create_mnist.sh# Modify the configuration file for the mnist examplesudoVI ~/caffe/examples/mnist/lenet_solver.prototxt# Run ExamplesudoTime SH ~/caffe/examples/mnist/train_lenet.sh# Download and install AnacondaCD~/downloadwget-C https://mirrors4.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.shsudoBash./anaconda3-5.2.0-linux-x86_64.sh# Set alias for Anaconda PythonaliasPython_a="/home/**yourusername**/anaconda3/bin/python"# Install Caffe2# Create a Anaconda environment named Caffe2envCondaCreate--name Caffe2env# Activate Caffe2envSourceActivate Caffe2env# Install Caffe2-cpu-onlyCondaInstall-c Caffe2 Caffe2# Close Caffe2envSourceDeactivate
Initializing a Linux device