網(wǎng)絡(luò)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的設(shè)置
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設(shè)置
/dev/disk/by-uuid/30905584-804d-42ef-9e32-2edadc7cd179 /home/vencol/code ext4 defaults 0 0
nfs設(shè)置
安裝nfs
sudo apt-get update
sudo apt-get install nfs-kernel-server
sudo vi /etc/exports
在里面添加相應(yīng)文件夾/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安裝
國內(nèi)建議使用清華源的repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
sudo mv repo /usr/bin
加入環(huán)境變量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/)
基本編譯環(huán)境搭建
sudo apt-get install build-essential zip unzip p7zip-full