网络network,netplan
network:
ethernets:
ens33:
addresses:
- 192.168.4.254/24
dhcp4: false
gateway4: 192.168.4.2
nameservers:
addresses:
- 8.8.8.8
search: []
version: 2
vim的设置
set nocompatible
set nu!
filetype on
set history=1000
set background=dark
syntax on
set autoindent
set cindent
set smartindent
set tabstop=4
set shiftwidth =4
set ai!
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
set backspace=2
fstab设置
/dev/disk/by-uuid/30905584-804d-42ef-9e32-2edadc7cd179 /home/vencol/code ext4 defaults 0 0
nfs设置
安装nfs
sudo apt-get update
sudo apt-get install nfs-kernel-server
sudo vi /etc/exports
在里面添加相应文件夹/home/vencol/code *(rw,sync,no_root_squash,no_subtree_check)
重启nfs
sudo service nfs-kernel-server restart
测试
sudo mount -t nfs -o nolock -o tcp 127.0.0.1:/home/vencol/nfs /home/vencol/nfstmp
ls /home/vencol/nfstmp
repo安装
国内建议使用清华源的repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
sudo mv repo /usr/bin
加入环境变量REPO_URL
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
谷歌源
将.repo/manifest.xml 把其中的 aosp 这个 remote 的 fetch 从 https://android.googlesource.com 改为 [https://aosp.tuna.tsinghua.edu.cn/](https://aosp.tuna.tsinghua.edu.cn/)
基本编译环境搭建
sudo apt-get install build-essential zip unzip p7zip-full