| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -41,20 +41,17 @@ sudo apt-get update && sudo apt-get install -y \ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    screen \ | 
					 | 
					 | 
					 | 
					    screen \ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    sudo \ | 
					 | 
					 | 
					 | 
					    sudo \ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    vim \ | 
					 | 
					 | 
					 | 
					    vim \ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    wget | 
					 | 
					 | 
					 | 
					    wget \ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    gcc-arm-none-eabi | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# git lfs to pull models | 
					 | 
					 | 
					 | 
					# install git lfs | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					if ! command -v "git-lfs" > /dev/null 2>&1; then | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | 
					 | 
					 | 
					 | 
					  curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  sudo apt-get install git-lfs | 
					 | 
					 | 
					 | 
					  sudo apt-get install git-lfs | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					fi | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# in the openpilot repo | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					cd $HOME/openpilot | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					git lfs pull | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					git submodule init | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					git submodule update | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# install pyenv | 
					 | 
					 | 
					 | 
					# install pyenv | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if [ ! -d $HOME/.pyenv ]; then | 
					 | 
					 | 
					 | 
					if ! command -v "pyenv" > /dev/null 2>&1; then | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | 
					 | 
					 | 
					 | 
					  curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					fi | 
					 | 
					 | 
					 | 
					fi | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -66,27 +63,27 @@ if [ -z "$OPENPILOT_ENV" ]; then | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  echo "added openpilot_env to bashrc" | 
					 | 
					 | 
					 | 
					  echo "added openpilot_env to bashrc" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					fi | 
					 | 
					 | 
					 | 
					fi | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# install python 3.7.3 globally | 
					 | 
					 | 
					 | 
					# in the openpilot repo | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					cd $HOME/openpilot | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# do the rest of the git checkout | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					git lfs pull | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					git submodule init | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					git submodule update | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# install python 3.7.3 globally (you should move to python3 anyway) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pyenv install -s 3.7.3 | 
					 | 
					 | 
					 | 
					pyenv install -s 3.7.3 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pyenv global 3.7.3 | 
					 | 
					 | 
					 | 
					pyenv global 3.7.3 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pyenv rehash | 
					 | 
					 | 
					 | 
					pyenv rehash | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# **** in python env **** | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# install pipenv | 
					 | 
					 | 
					 | 
					# install pipenv | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pip install pipenv==2018.11.26 | 
					 | 
					 | 
					 | 
					pip install pipenv==2018.11.26 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# pipenv setup (in openpilot dir) | 
					 | 
					 | 
					 | 
					# pipenv setup (in openpilot dir) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pipenv install --system --deploy | 
					 | 
					 | 
					 | 
					pipenv install --system --deploy | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# install capnp (not needed anymore) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#cd external/capnp | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#if [ ! -d lib ]; then | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#  ./build.sh | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#  git checkout bin/*   # don't update these | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#fi | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#cd ../../ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# at this point, manager runs | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# to make tools work | 
					 | 
					 | 
					 | 
					# to make tools work | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pip install -r tools/requirements.txt | 
					 | 
					 | 
					 | 
					pip install -r tools/requirements.txt | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |