Ubuntu 18.04 装机

  1. install vs code
  2. run in terminal:
code filename
  1. install python3-pip
sudo apt-get install python3-pip
  1. 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
  1. install perl-tk
sudo apt-get install perl-tk
  1. download texlive
  2. install texlive with gui:
./install-tl -gui
  1. customize installation by remove several language supports
  2. reboot
    10.add path to environment path:
cp ~./bashrc ~./bashrc.origin
code ~./bashrc
  1. append the following line to bashrc
export PATH=${PATH}:~/Program_app/texlive/2018/bin/x86_64-linux
  1. test on shell
latex --v
  1. add vim to vs code
    13.add latex workshop to vs code
  2. vs code setting:
"editor.fontFamily": "Operator Mono, Dank Mono, Fira Code Light",
"editor.fontLigatures": true,
  1. 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
  1. update pip
python3 -m pip install -U pip
  1. pip settings
sudo vi /usr/bin/pip3
replace from pip import main to from pip._internal import main
  1. install tensorflow
pip3 install --user tensorflow
  1. set PATH
echo $PATH
vi ~./bashrc
append export PATH=${PATH}:~/.local/bin
echo $PATH
  1. using matplotlib, lacking tkinter for python3
sudo apt-get install python3-tk
  1. Gtk-Message: failed to load module “canberra-gtk-module”
sudo apt-get install libcanberra-gtk-module

你可能感兴趣的:(linux,system)