diff --git a/Installing-on-Linux.md b/Installing-on-Linux.md index a35546f..ca637bc 100644 --- a/Installing-on-Linux.md +++ b/Installing-on-Linux.md @@ -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). -###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 ``` -sudo apt-get install libssl-dev openssl +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 +sudo make -j2 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 youtube_dl 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 `sudo apt-get install libopus0` @@ -71,10 +51,14 @@ cd cd Desktop/ sudo git clone https://github.com/Twentysix26/Red-DiscordBot.git cd -clear ``` ###Running Red ``` sudo python3 Desktop/Red-DiscordBot/red.py +``` +or +``` +cd Desktop/Red-DiscordBot/ +sudo python3 red.py ``` \ No newline at end of file