Skip to content

Instantly share code, notes, and snippets.

@yesoreyeram
Created July 13, 2017 18:03
Show Gist options
  • Select an option

  • Save yesoreyeram/1d1eb2dda4d480c8c1ea476abd3361a2 to your computer and use it in GitHub Desktop.

Select an option

Save yesoreyeram/1d1eb2dda4d480c8c1ea476abd3361a2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# update hostname in hosts file (Will help to fix “sudo: unable to resolve hostname” issue while installing)
echo $(hostname -I | cut -d\ -f1) $(hostname) | tee -a /etc/hosts
# Install mono (required for octopus to connect)
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | tee /etc/apt/sources.list.d/mono-official.list
apt-get update
apt-get install mono-devel --yes --allow-unauthenticated
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment