Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

Warning: technically any bash-specific code should not go in .profile. If you have a Debian-based system (e.g. Raspbian) where .profile may be executed by a shell that is not bash (e.g. /bin/sh is dash or some other POSIX-like shell), make sure you put the above line in .bash_aliases or the interactive portion of .bashrc rather bashrc rather than .profile to avoid problems (such as startx not working on Raspbian.)

...

Once the line is added, source the user's .profile file you just modified (or just log out and log back in): or run this command:

Code Block
languagetext
sdn@build:~$ . ~/.profilebashrc

Once you run the above command, you will see in the output of env that several new variables, such as ONOS_ROOT, OCI, and KARAF_ROOT, have been set.

...