mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Updated Installing on Linux (markdown)
parent
dc0b655f11
commit
b8a288a3f2
@ -1,64 +1,58 @@
|
||||
# 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).
|
||||
|
||||
###Lets just get this general headache out of the way
|
||||
###Repositories
|
||||
```
|
||||
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 add-apt-repository ppa:mc3man/trusty-media
|
||||
sudo apt-get install ffmpeg
|
||||
sudo apt-get update
|
||||
sudo apt-get install git
|
||||
```
|
||||
|
||||
###Installing Python 3.5.1 (adjust "-j2" to however many cores on your machine. ie -j4)
|
||||
###Python 3.5
|
||||
```
|
||||
cd
|
||||
sudo mkdir pythonbuild
|
||||
cd pythonbuild/
|
||||
sudo wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
|
||||
sudo tar xvfz Python-3.5.1.tgz
|
||||
cd Python-3.5.1/
|
||||
sudo ./configure
|
||||
sudo make -j2
|
||||
sudo make install
|
||||
sudo apt-get install python3.5 -y
|
||||
```
|
||||
###Pip
|
||||
```
|
||||
wget https://bootstrap.pypa.io/get-pip.py
|
||||
sudo python3.5 get-pip.py
|
||||
```
|
||||
###ffmpeg
|
||||
```
|
||||
sudo apt-get install ffmpeg -y
|
||||
```
|
||||
###Opus
|
||||
```
|
||||
sudo apt-get install libopus-dev -y
|
||||
```
|
||||
|
||||
###Requirements
|
||||
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 youtube_dl
|
||||
sudo pip3.5 install beautifulsoup4
|
||||
sudo pip3.5 install imgurpython
|
||||
```
|
||||
|
||||
###Red
|
||||
```
|
||||
cd
|
||||
cd Desktop/
|
||||
sudo git clone -b develop --single-branch https://github.com/Twentysix26/Red-DiscordBot.git Red-DiscordBot
|
||||
cd
|
||||
git clone -b develop --single-branch https://github.com/Twentysix26/Red-DiscordBot.git Red-DiscordBot
|
||||
```
|
||||
|
||||
###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
|
||||
```
|
||||
cd Desktop/Red-DiscordBot/
|
||||
sudo git pull
|
||||
cd Red-DiscordBot
|
||||
git pull
|
||||
```
|
||||
|
||||
Credit for part of this guide goes to MusicBot's wiki
|
||||
Loading…
x
Reference in New Issue
Block a user