1. down ubuntu-20.04.6-desktop-amd64.iso

2.create boot system disks (UltraISO)

3.set BIOS boot sequence (boot from a USB flash drive)

4.install ISO,set the user name and password

5.backup and replace the original source [ /etc/apt/sources.list ]

6.after system is installed ,open the terminal to start configuration

sudo apt-get update

7.restart  now

8.install git

sudo apt install git

9.install vim

sudo apt install vim

10.create [ .vimrc ],stored under [ ~/.vimrc ] directory,then  source ~/.vimrc

set encoding=utf-8
set nu "等同于 set number
set cursorline "等同于 set cul
set cursorcolumn "等同于 set cuc
set clipboard+=unnamed 
set nobackup
set autowrite
set noeb
set ttimeout
set ttimeoutlen=100
set confirm
set backspace=indent,eol,start
set nocompatible
set mouse=n
set showmatch
set tabstop=4
set shiftwidth=4
set noexpandtab
set laststatus=2

map <F1> :call TitleDet()<cr>
function AddTitle()
	call append(0,"/*")
	call append(1,"# ******************************************************")
	call append(2,"# Author       : Jetaime ")
	call append(3,"# Last modified: ".strftime("%Y-%m-%d %H:%M"))
	call append(4,"# Email        : stay2616@126.com")
	call append(5,"# Website      : www.niyouduo.com")
	call append(6,"# Filename     : ".expand("%:t"))
	call append(7,"# Description  : ")
	call append(8,"# ******************************************************")
	call append(9,"*/")
	echohl WarningMsg | echo "Successful in adding copyright." | echohl None
	endf

function UpdateTitle()
	normal m'
	execute '/# Last modified/s@:.*$@\=strftime(":\t%Y-%m-%d %H:%M")@'
	normal ''
	normal mk
	execute '/# Filename/s@:.*$@\=":\t".expand("%:t")@'
	execute "noh"
	normal 'k
	echohl WarningMsg | echo "Successful in updating the copyright." | echohl None
	endfunction

function TitleDet()
	let n=1
	while n < 10
let line = getline(n)
	if line =~ '^\#\s*\S*Last\smodified\S*.*$'
call UpdateTitle()
	return
	endif
	let n = n + 1
	endwhile
call AddTitle()
	endfunction

11. install x86 compliler (gcc/g++)

sudo apt install gcc g++

12.view the compiler version [ gcc --version   /  g++ --version ]

gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.

13.see which cross-compilers can be installed [ sudo apt-cache search aarch64 ]

14.here,we install aarch64-9

sudo apt install gcc-9-aarch64-linux-gnu
sudo apt install gcc-aarch64-linux-gnu
sudo apt install g++-9-aarch64-linux-gnu
sudo apt install g++-aarch64-linux-gnu

15.check computer's graphics card [ or lspci | grep -i nvidia ]

lshw -c video

*-display

description: VGA compatible controller

product: TU106 [GeForce RTX 2060]

vendor: NVIDIA Corporation

physical id: 0

bus info: pci@0000:01:00.0

version: a1

width: 64 bits

clock: 33MHz

capabilities: pm msi pciexpress vga_controller bus_master cap_list rom

configuration: driver=nouveau latency=0

resources: irq:185 memory:82000000-82ffffff memory:70000000-7fffffff memory:80000000-81ffffff ioport:4000(size=128) memory:83080000-830fffff

*-display

description: VGA compatible controller

product: UHD Graphics

vendor: Intel Corporation

physical id: 2

bus info: pci@0000:00:02.0

version: 05

width: 64 bits

clock: 33MHz

capabilities: pciexpress msi pm vga_controller bus_master cap_list rom

configuration: driver=i915 latency=0

resources: iomemory:600-5ff iomemory:400-3ff irq:186 memory:6022000000-6022ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff

01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060] (rev a1)

01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)

01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)

01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)

16.install pip

sudo apt-get install python3-pip

17.install nvidia  graphics driver

18.check whether nouveau is disabled

lsmod | grep nouveau

if there is no output,it is successfully masked

19.forbidden nouveau

sudo vim /etc/modprobe.d/blacklist.conf

add

blacklist nouveau
options nouveau modeset=0

20.jump to the directory u downloaded and install the driver

sudo chmod a+x NVIDIA-Linux-x86_64-535.54.03.run

sudo ./NVIDIA-Linux-x86_64-535.54.03.run -no-x-check -no-nouveau-check -no-opengl-files

21.is successed? u will see !

nvidia-smi

Tue Jun 20 23:35:34 2023

+---------------------------------------------------------------------------------------+

| NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 |

|-----------------------------------------+----------------------+----------------------+

| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |

| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |

| | | MIG M. |

|=========================================+======================+======================|

| 0 NVIDIA GeForce RTX 2060 Off | 00000000:01:00.0 Off | N/A |

| N/A 56C P0 21W / 80W | 0MiB / 6144MiB | 0% Default |

| | | N/A |

+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+

06-21 02:48