Updated Installing on Linux (markdown)

TheNep 2016-01-21 23:42:15 -05:00
parent e2f4c83f4d
commit 673705a032

@ -4,20 +4,28 @@ A general guide, tested on Ubuntu 15.10 and Raspberry Pi (original), made by Nep
Or you might want to try these easy install scripts, [for Ubuntu](https://github.com/Twentysix26/Red-DiscordBot/wiki/Ubuntu-Install-script) and [for Raspeberry Pi](https://github.com/Twentysix26/Red-DiscordBot/wiki/Raspberry-Pi-Install-script). Or you might want to try these easy install scripts, [for Ubuntu](https://github.com/Twentysix26/Red-DiscordBot/wiki/Ubuntu-Install-script) and [for Raspeberry Pi](https://github.com/Twentysix26/Red-DiscordBot/wiki/Raspberry-Pi-Install-script).
###Updating first ###Add the FFMPEG repository first, then install that
`sudo apt-get update` ```
cd
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get install ffmpeg
sudo apt-get update
sudo apt-get install libssl-dev openssl
sudo apt-get install git make nasm pkg-config libx264-dev libxext-dev libxfixes-dev zlib1g-dev
sudo apt-get install libxext-dev
```
###Installing Python 3.5.1 ###Installing Python 3.5.1
``` ```
sudo apt-get install libssl-dev openssl cd
sudo mkdir pythonbuild sudo mkdir pythonbuild
cd pythonbuild/ cd pythonbuild/
sudo wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz sudo wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
sudo tar xvfz Python-3.5.1.tgz sudo tar xvfz Python-3.5.1.tgz
cd Python-3.5.1/ cd Python-3.5.1/
sudo ./configure sudo ./configure
sudo make sudo make -j2
sudo make install sudo make install
``` ```
@ -31,36 +39,8 @@ sudo pip3.5 install git+https://github.com/Rapptz/discord.py@async
sudo pip3.5 install requests sudo pip3.5 install requests
sudo pip3.5 install youtube_dl sudo pip3.5 install youtube_dl
sudo pip3.5 install beautifulsoup4 sudo pip3.5 install beautifulsoup4
``` ```
###FFmpeg requirement for openssl
`sudo apt-get install libxext-dev`
###FFmpeg Ubuntu
```
sudo apt-get install git make nasm pkg-config libx264-dev libxext-dev libxfixes-dev zlib1g-dev
sudo git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
sudo ./configure --enable-nonfree --enable-gpl --enable-libx264 --enable-x11grab --enable-zlib --enable-openssl
```
###FFmpeg Raspberry Pi
```
cd
cd /usr/src
git clone git://git.videolan.org/x264
cd x264
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
sudo make
sudo make install
cd
cd /usr/src
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-openssl
sudo make
sudo make install
```
###Installing Libopus0 ###Installing Libopus0
`sudo apt-get install libopus0` `sudo apt-get install libopus0`
@ -71,10 +51,14 @@ cd
cd Desktop/ cd Desktop/
sudo git clone https://github.com/Twentysix26/Red-DiscordBot.git sudo git clone https://github.com/Twentysix26/Red-DiscordBot.git
cd cd
clear
``` ```
###Running Red ###Running Red
``` ```
sudo python3 Desktop/Red-DiscordBot/red.py sudo python3 Desktop/Red-DiscordBot/red.py
```
or
```
cd Desktop/Red-DiscordBot/
sudo python3 red.py
``` ```