CommunityBot/Install: Difference between revisions Discussion View history

No edit summary
m (TerryPurdue moved page User:TerryPurdue/CommunityBot/Install to CommunityBot/Install: Promoting from userspace.)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Operating System Install/Update ==  
== Linux (Ubuntu 16.04) ==
 
=== Operating System Install/Update ===


'''All steps run on Ubuntu 16.04'''
'''All steps run on Ubuntu 16.04'''
Line 6: Line 8:
  sudo reboot
  sudo reboot


== Install .NET Core ==
=== Install .NET Core ===
 


[https://www.microsoft.com/net/core#linuxubuntu Instructions from MSFT]
[https://www.microsoft.com/net/core#linuxubuntu Instructions from MSFT]
Line 13: Line 14:
  curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
  curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
  sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg  
  sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg  
  sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" \
  sudo sh -c 'echo \
    "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" \
     > /etc/apt/sources.list.d/dotnetdev.list'
     > /etc/apt/sources.list.d/dotnetdev.list'
  sudo apt-get update
  sudo apt-get update
  sudo apt-get -y install dotnet-sdk-2.0.0
  sudo apt-get -y install dotnet-sdk-2.0.0
=== Install mono ===
== Install mono ==
  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \
    3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | \
  echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list
    sudo tee /etc/apt/sources.list.d/mono-official.list
  sudo apt-get update
  sudo apt-get update
  sudo apt-get -y install mono-complete
  sudo apt-get -y install mono-complete


== Download nuget.exe ==
=== Download nuget.exe ===


  cd /usr/bin
  cd /usr/bin
sudo wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
sudo wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
== Install Discord.Net.2.0.0-alpha-build-00828 ==
 
  usr/bin/mono /usr/bin/nuget.exe sources add -Name Discord.Net -Source https://www.myget.org/F/discord-net/api/v3/index.json
=== Install Discord.Net.2.0.0-alpha-build-00828 ===
 
  /usr/bin/mono /usr/bin/nuget.exe sources add -Name Discord.Net \
        -Source https://www.myget.org/F/discord-net/api/v3/index.json
  sudo /usr/bin/mono /usr/bin/nuget.exe install Discord.Net -Prerelease -Version 2.0.0-alpha-build-00828
  sudo /usr/bin/mono /usr/bin/nuget.exe install Discord.Net -Prerelease -Version 2.0.0-alpha-build-00828
sudo chown -R ubuntu:ubuntu ~/.nuget


== Clone DiscordBot code ==
=== Clone CommunityBot code ===


  cd ~
  cd ~
  mkdir git
  mkdir git
  cd git
  cd git
  git clone https://https://github.com/vaindil/wazebot-discord/
  git clone https://gitlab.com/SixbucksSolutions/CommunityBot


== Run bot ==
=== Run bot ===


  cd wazebot-discord/src/WazeBotDiscord
  cd wazebot-discord/src/WazeBotDiscord
  dotnet run
  dotnet run

Latest revision as of 14:24, 1 October 2017

Linux (Ubuntu 16.04)

Operating System Install/Update

All steps run on Ubuntu 16.04

sudo apt-get update
sudo apt-get -y dist-upgrade
sudo reboot

Install .NET Core

Instructions from MSFT

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg			 
sudo sh -c 'echo \
   "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" \
   > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
sudo apt-get -y install dotnet-sdk-2.0.0

Install mono

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \
   3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | \
   sudo tee /etc/apt/sources.list.d/mono-official.list
sudo apt-get update
sudo apt-get -y install mono-complete

Download nuget.exe

cd /usr/bin
sudo wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

Install Discord.Net.2.0.0-alpha-build-00828

/usr/bin/mono /usr/bin/nuget.exe sources add -Name Discord.Net \
       -Source https://www.myget.org/F/discord-net/api/v3/index.json
sudo /usr/bin/mono /usr/bin/nuget.exe install Discord.Net -Prerelease -Version 2.0.0-alpha-build-00828
sudo chown -R ubuntu:ubuntu ~/.nuget

Clone CommunityBot code

cd ~
mkdir git
cd git
git clone https://gitlab.com/SixbucksSolutions/CommunityBot

Run bot

cd wazebot-discord/src/WazeBotDiscord
dotnet run