Skip to content

Install Software

Gary Cornell edited this page Feb 26, 2020 · 14 revisions

Install the Software you will need

First lets update the server I am sure you see that there are over 150 packages that need updating as well as grabbing the latest Kernel. This step can be skipped if using my bash script which will take care of this as well

  • You can sudu the newuser to do this but for system software using root is best sudo su to root

sudo su

apt update

apt upgrade

update-grub

  • Once completed you need to reboot to make the new kernel take effect.

reboot

  • Once the server comes back up sudo su again and run the following to remove the old kernel and free up space

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

update-grub

  • Reboot again

reboot

  • Now you should install the software you need to develop your applications, this is totally up to you what is needed. For the purpose of this tutorial we are doing a PHP7 server with Nginx webserver and Percona MySQL Server 5.7. I am also including vsFTPd for FTP access to your application.

  • There are three options

  1. Use my bash script that does the entire setup automatically (Beginner-Everyone)
  2. Manually install the required software via apt (Experienced Users)
  3. Custom compile the software you need like Nginx (Advanced Users)
Clone this wiki locally