mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Updated Installing on Linux (markdown)
parent
dc0b655f11
commit
b8a288a3f2
@ -1,64 +1,58 @@
|
|||||||
# Installation on Linux
|
# Installation on Linux
|
||||||
|
|
||||||
A general guide, tested on Ubuntu 15.10 and Raspberry Pi (WIP), made by NepNep.
|
A general guide, tested mainly on Ubuntu 14.04
|
||||||
|
|
||||||
Or you might want to try these easy install scripts, [for Ubuntu and Debian Distros](https://github.com/Twentysix26/Red-DiscordBot/wiki/Ubuntu-Debian-Install-script).
|
###Repositories
|
||||||
|
|
||||||
###Lets just get this general headache out of the way
|
|
||||||
```
|
```
|
||||||
sudo apt-get install software-properties-common python-software-properties git make nasm pkg-config libx264-dev libxext-dev libxfixes-dev zlib1g-dev libssl-dev openssl
|
sudo add-apt-repository ppa:fkrull/deadsnakes -y
|
||||||
|
sudo add-apt-repository ppa:mc3man/trusty-media -y
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get upgrade -y
|
||||||
|
sudo apt-get install build-essential unzip -y
|
||||||
```
|
```
|
||||||
###Add the FFMPEG repository first, then install that
|
###Git
|
||||||
|
|
||||||
```
|
```
|
||||||
cd
|
sudo apt-get install git
|
||||||
sudo add-apt-repository ppa:mc3man/trusty-media
|
|
||||||
sudo apt-get install ffmpeg
|
|
||||||
sudo apt-get update
|
|
||||||
```
|
```
|
||||||
|
###Python 3.5
|
||||||
###Installing Python 3.5.1 (adjust "-j2" to however many cores on your machine. ie -j4)
|
|
||||||
```
|
```
|
||||||
cd
|
sudo apt-get install python3.5 -y
|
||||||
sudo mkdir pythonbuild
|
```
|
||||||
cd pythonbuild/
|
###Pip
|
||||||
sudo wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
|
```
|
||||||
sudo tar xvfz Python-3.5.1.tgz
|
wget https://bootstrap.pypa.io/get-pip.py
|
||||||
cd Python-3.5.1/
|
sudo python3.5 get-pip.py
|
||||||
sudo ./configure
|
```
|
||||||
sudo make -j2
|
###ffmpeg
|
||||||
sudo make install
|
```
|
||||||
|
sudo apt-get install ffmpeg -y
|
||||||
|
```
|
||||||
|
###Opus
|
||||||
|
```
|
||||||
|
sudo apt-get install libopus-dev -y
|
||||||
```
|
```
|
||||||
|
|
||||||
###Requirements
|
###Requirements
|
||||||
Not *all* of these are required, refer to [this](https://github.com/Twentysix26/Red-DiscordBot/wiki/Requirements) for further explanations.
|
Not *all* of these are required, refer to [this](https://github.com/Twentysix26/Red-DiscordBot/wiki/Requirements) for further explanations.
|
||||||
```
|
```
|
||||||
sudo pip3.5 install git+https://github.com/Rapptz/discord.py@async
|
sudo pip3.5 install git+https://github.com/Rapptz/discord.py@async
|
||||||
sudo pip3.5 install youtube_dl
|
sudo pip3.5 install youtube_dl
|
||||||
sudo pip3.5 install beautifulsoup4
|
|
||||||
sudo pip3.5 install imgurpython
|
sudo pip3.5 install imgurpython
|
||||||
```
|
```
|
||||||
|
|
||||||
###Red
|
###Red
|
||||||
```
|
```
|
||||||
cd
|
git clone -b develop --single-branch https://github.com/Twentysix26/Red-DiscordBot.git Red-DiscordBot
|
||||||
cd Desktop/
|
|
||||||
sudo git clone -b develop --single-branch https://github.com/Twentysix26/Red-DiscordBot.git Red-DiscordBot
|
|
||||||
cd
|
|
||||||
```
|
```
|
||||||
|
|
||||||
###Running Red
|
###Running Red
|
||||||
```
|
```
|
||||||
sudo python3 Desktop/Red-DiscordBot/red.py
|
cd Red-DiscordBot
|
||||||
|
python3.5 red.py
|
||||||
```
|
```
|
||||||
or
|
|
||||||
```
|
|
||||||
cd Desktop/Red-DiscordBot/
|
|
||||||
sudo python3 red.py
|
|
||||||
```
|
|
||||||
|
|
||||||
###Updating Red
|
###Updating Red
|
||||||
```
|
```
|
||||||
cd Desktop/Red-DiscordBot/
|
cd Red-DiscordBot
|
||||||
sudo git pull
|
git pull
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Credit for part of this guide goes to MusicBot's wiki
|
||||||
Loading…
x
Reference in New Issue
Block a user