Dear Community:
The Openpilot Community needs your help to continue to keep opc.ai's lights on and support the path to Workbench v0.2. With only a one person crew and without commercial funding it's not always financially feasible to fund these services out of pocket. Please consider becoming a Patreon supporter of the Openpilot Community project and receive exclusive perks and benefits!
Become a patreon Learn more Maybe Later

DISCLAIMER: This website is maintained by openpilot users and contributors. The content found here (including Workbench and Oppey the Bot) are not approved, supported, affiliated or funded by Comma.ai, Inc. Please DO NOT contact Comma.ai, Inc. staff about these things as they WILL NOT provide support. For support on openpilot, opc.ai, oppey, workbench, etc. please contact a community member on Discord.

Tesla Community
Sep 10, 2018·3 min read

Editing your Bash Profile

In order to edit the .bash_profile on the EON, first you have to move your the home directory by typing

cd

Then, you have to mount the file system in Read/Write mode by typing

mount -o rw,remount /system

At this point you can edit your .bash_profile file by typing

vi .bash\_profile

First, locate the PYTHONPATH line and delete it. Then, at the end of your file, paste the following code

# add these symlinks if you want export PYTHONPATH="/data/openpilot" export GIT\_SSH\_COMMAND="ssh -i /data/gitkey" cd /data/openpilot/selfdrive/car/tesla

alias cdo='cd /data/openpilot' alias cdt='cd /data/openpilot/selfdrive/car/tesla' alias cdp='cd /data/openpilot/panda/board' alias sop='grep -rni --include=\*.{py,h,c} /data/openpilot/ -e ' alias mrw='mount -o rw,remount /system' alias dbp='python /data/openpilot/panda/tests/debug\_console.py | grep -v "can\_push failed"' alias vic='vi /data/openpilot/selfdrive/car/tesla/carcontroller.py' alias vii='vi /data/openpilot/selfdrive/car/tesla/interface.py' alias vit='vi /data/openpilot/selfdrive/car/tesla/teslacan.py' alias vis='vi /data/openpilot/selfdrive/car/tesla/carstate.py' alias viu='vi /data/openpilot/selfdrive/ui/ui.c' alias lop='='cd /data/openpilot;./launch\_openpilot.sh' alias gp='git commit; git push' alias sp='/data/data/com.termux/files/continue.sh'```

Save the profile and you're done! If you contribute code, you might also at this point want to configure your git to save your username and password. To do that you just to a push when you still have the file system in RW mode ( or you can use the *mrw* command later to make it RW)

$ git config credential.helper store $ git push [https://github.com/repo.git](https://github.com/repo.git)Username: \<type your username\> Password: \<type your password\>

$ git push [https://github.com/repo.git](https://github.com/repo.git)[your credentials are used automatically]

Keep in mind the credentials are stored in

.git-credentials

in plain text. They are in the format

[https://user%40email.com:pass@github.com](https://user%40email.com:pass@github.com/)

where *user@email.com* is your username and *pass* is your password. So you can also just edit that file and modify as needed. Just replace *@* with *%40* in your email address. Now, about those shortcuts above:

mrw - make read / write - makes the file system writeable sop - search OpenPilot - searches the whole OP structure for the keyword that follows - example: sop user\_brake sp - starts OpenPilot after you killed it with tmux -a dbp - debug panda - launches the debugger for panda gp - git commit and push - if you saved your credentials this makes commit and push so easy; just add your comment and you're done cdt - change directory to /data/openpilot/selfdrive/car/tesla folder; this is also the folder when you will now start every time you ssh into your EON cdo - change directory to /data/openpilot cdp - change directory to /data/openpilot/panda/board vic - starts vi for /data/openpilot/selfdrive/car/tesla/carcontroller.py from any folder vii - starts vi for /data/openpilot/selfdrive/car/tesla/interface.py from any folder vis - starts vi for /data/openpilot/selfdrive/car/tesla/carstate.py from any folder vit - starts vi for /data/openpilot/selfdrive/car/tesla/teslacan.py from any folder```