Initializing a Linux device

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.