Skip to content

Instantly share code, notes, and snippets.

@rockstardev
Last active October 25, 2023 23:10
Show Gist options
  • Save rockstardev/44977c3b18425d9eb4ed0d013594cf3a to your computer and use it in GitHub Desktop.
Save rockstardev/44977c3b18425d9eb4ed0d013594cf3a to your computer and use it in GitHub Desktop.
Setting up BTCPayServer development environment on Linux (Ubuntu)
# Installing prerequisites for BTCPayServer development on Ubuntu
# Install .NET Core SDK 2.2
# https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install?initial-os=linux
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
# Install Visual Studio Code
# https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt updatesudo apt install code
# Install Docker
# https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
# This requires restart... so you can do `docker-compose up dev` without sudo
sudo usermod -a -G docker $USER
# Install Docker-Compose
# https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@Eskyee
Copy link

Eskyee commented Aug 31, 2019

please correct typo on line 26 should be:
sudo apt update
sudo apt install code

instead of: sudo apt updatesudo apt install code

@woutersamaey
Copy link

woutersamaey commented May 28, 2021

Please change line 13 sudo apt-get install dotnet-sdk-2.2 with sudo apt install dotnet-sdk-3.1
And on line 4 it's also in the comments mentioned.

Version 2.2 is no longer supported, but 3.1 is.

@woutersamaey
Copy link

On line 26 a is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment