Lab Linux - echadbourne/ChadbourneSYS-140 GitHub Wiki

Summary:

  • In this lab we took open source code from a git repository and compiled it into a runnable program. Some of the commands used will be recoded below for future reference

Important Information:

  • sudo apt update - makes sure the operating system is up to date
  • sudo apt install git - installs Git on the operating system so you can use open source code
  • git clone https://github.com/vim/vim - gets the open source code from the online repository, in this case this is the code for vim
  • cd vim - changes the folder to the one with the source code
  • sudo apt install build-essential - installs the development tools in build-essential
  • ./configure - you need to be in the directory with the source code to run this, and this checks that all of the tools needed are installed. If all of the tools needed are not installed it will suggest ones to install
  • make - compiles the source code into the binaries needed for it (you need to be in the directory with the program)
  • sudo make install - installs the binaries of the program
  • vim - in this case this runs the vim program, this changes based on the program