Ubuntu 18.04マウント

3627 ワード

  • install vs code
  • run in terminal:
  • code filename
    
  • install python3-pip
  • sudo apt-get install python3-pip
    
  • install sogou input, amd64, download sogou*.deb
  • sudo dpkg -i sogou_pinyin_linux*amd64.deb  
    sudo apt-get install -f
    sudo apt-get install fcitx-bin
    sudo apt-get install fcitx-table 
    reboot
    
  • install perl-tk
  • sudo apt-get install perl-tk
    
  • download texlive
  • install texlive with gui:
  • ./install-tl -gui
    
  • customize installation by remove several language supports
  • reboot 10.add path to environment path:
  • cp ~./bashrc ~./bashrc.origin
    code ~./bashrc
    
  • append the following line to bashrc
  • export PATH=${PATH}:~/Program_app/texlive/2018/bin/x86_64-linux
    
  • test on shell
  • latex --v
    
  • add vim to vs code 13.add latex workshop to vs code
  • vs code setting:
  • "editor.fontFamily": "Operator Mono, Dank Mono, Fira Code Light",
    "editor.fontLigatures": true,
    
  • running latex within vs code terminal, vs code latex extension is not working well:
  • pdflatex *.tex
    bibtex *.aux
    pdflatex *.tex
    rm *.aux *.bbl *.blg *.log *.out
    
  • update pip
  • python3 -m pip install -U pip
    
  • pip settings
  • sudo vi /usr/bin/pip3
    replace from pip import main to from pip._internal import main
    
  • install tensorflow
  • pip3 install --user tensorflow
    
  • set PATH
  • echo $PATH
    vi ~./bashrc
    append export PATH=${PATH}:~/.local/bin
    echo $PATH
    
  • using matplotlib, lacking tkinter for python3
  • sudo apt-get install python3-tk
    
  • Gtk-Message: failed to load module “canberra-gtk-module”
  • sudo apt-get install libcanberra-gtk-module