0. update
sudo apt full-upgrade
full-upgrade - 通过 卸载/安装/升级 来更新系统 apt-get dist-upgrade
注意区别apt update: 刷新存储库索引
1. chrome
https://www.google.com/chrome/
直接下载安装
2. zsh/git
https://www.sysgeek.cn/install-zsh-shell-ubuntu-18-04/
如何安装和美化zsh shell
3. 搜狗输入法
https://blog.csdn.net/lupengCSDN/article/details/80279177
4. 安装adb and fastboot
https://www.linuxbabe.com/ubuntu/how-to-install-adb-fastboot-ubuntu-16-04-16-10-14-04
ADB and fastboot are two components of the Android SDK Platform-Tools:
adb and fastboot位于android sdk platform-tools包里。
5. jdk8
5.1去下载,然后设置环境变量
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
配置什么环境变量?
https://blog.csdn.net/pxmxx/article/details/80106239
export JAVA_HOME=/usr/local/java/jdk1.8.0_25
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
5.2 通过命令安装
https://blog.csdn.net/u012707739/article/details/78489833
Ubuntu 16.04安装Java JDK8
sudo apt-get install openjdk-8-jdk
java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.18.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
安装后的路径是/usr/lib/jvm/java-8-openjdk-amd64
如果找不到也要设置java环境变量
6. vim
sudo apt install vim
7. bazel
https://docs.bazel.build/versions/master/install-ubuntu.html
8. xmind
Download this link http://www.xmind.net/xmind/downloads/xmind-8-beta-linux_amd64.deb
Either doubleclick the finished download in your ~/Downloads and let software center install it.
Or enter commandline and do
dpkg -i xmind-8-beta-linux_amd64.deb
9. ipython
sudo apt install ipython
10 .安装repo
https://blog.csdn.net/qq_42889470/article/details/81463559
apt install curl
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
git config --global user.name "your name"
git config --global user.email "[email protected]"
11. android studio
Method 1: Install Android Studio on Ubuntu using Ubuntu Software Cente
设置字体
下载NDK
https://www.jianshu.com/p/c5b59cbe65f7
android aar 编译错误(好像要安装源码:使用的sdk安装在build-tools目录下)
"No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android"
The major revision of the Android NDK referenced by android_ndk_repository rule 'androidndk' is 18. The major revisions supported by Bazel are [10, 11, 12, 13, 14, 15, 16, 17]. Bazel will attempt to treat the NDK as if it was r17. This may cause compilation and linkage problems. Please download a supported NDK version.
11.1 更改快捷键
ctrl + f是本文件搜索、原来的定义ctr+shift +f不起作用(在某个路径下搜索也是常用功能),因此需要更改对应的快捷键
File -> Settings -> Keymap -> Editor Actions 通过搜索找到 Find in Path 双击更改即可先更改为 ctrl + shift +g
12. android编译
sudo apt-get install libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib -y
sudo apt-get install -y git flex bison gperf build-essential libncurses5-dev:i386
sudo apt-get install dpkg-dev libsdl1.2-dev libesd0-dev
sudo apt-get install git-core gnupg flex bison gperf build-essential
sudo apt-get install zip curl zlib1g-dev gcc-multilib g++-multilib
sudo apt-get install libc6-dev-i386 -y
sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
sudo apt-get install libgl1-mesa-dev libxml2-utils xsltproc unzip m4
sudo apt-get install lib32z-dev ccache
sudo apt install make make-guile -y
sudo apt-get install tofrodos -y
sudo apt-get install python-markdown libxml2-utils xsltproc zlib1g-dev:i386
编译kernel:
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
sudo apt-get install libssl-dev
13. Ubuntu 18.04下触控板右键失灵的解决方法
https://ywnz.com/linuxjc/1488.html
亲测上方法好使。
14. 在Python3下运行Matplotlib之时,碰到了”No module named _tkinter“的问题
在python2下安装matplotbit没有这个问题,
import matplotlib.pyplot as plt
sudo apt-get install python-matplotlib
暂且回避python3的问题,当前使用python2
15. 安装tensorflow
pip install tensorflow
pip install --upgrade tensorflow
pip install tensorflow==xx
以上是CPU因本机不支持NVIDIA就不安装tensorflow_gpu了
Tensorflow为GPU使用CUDA,这是唯一与NVIDIA显卡兼容
➜ ~ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
➜ ~ lspci | grep NVIDIA
如果没有NVIDIA的显卡,就不要安装tensorfow-gpu了