diff --git a/docs/guides/Linux Guide.md b/docs/guides/Linux Guide.md index 77713a46..90ad419b 100644 --- a/docs/guides/Linux Guide.md +++ b/docs/guides/Linux Guide.md @@ -3,59 +3,36 @@ ####Setting up NadekoBot on Linux Digital Ocean Droplet ######If you want Nadeko to play music for you 24/7 without having to hosting it on your PC and want to keep it cheap, reliable and convenient as possible, you can try Nadeko on Linux Digital Ocean Droplet using the link [DigitalOcean][DigitalOcean] (and using this link will be supporting Nadeko and will give you **$10 credit**) -######Keep this helpful video handy [Linux Setup Video][Linux Setup Video] (thanks to klincheR) it contains how to set up the Digital Ocean droplet aswell. - -Assuming you have followed the link above to created an account in Digital Ocean and video to set up the bot until you get the `IP address and root password (in email)` to login, its time to begin. - -#### Prerequisites -- Download [PuTTY][PuTTY] -- Download [CyberDuck][CyberDuck] - -**If you are setting up NadekoBot locally, prerequisites up^ are NOT needed and you can skip the steps involving them.** +######Keep this helpful video handy [Linux Setup Video][Linux Setup Video] (thanks to klincheR) it contains how to set up the Digital Ocean droplet aswell and follow this [Guide](DigitalOcean Guide.md) ####Setting up NadekoBot -- **Open PuTTY.exe** that you downloaded before, and paste or enter your `IP address` and then click **Open**. -If you entered your Droplets IP address correctly, it should show **login as:** in a newly opened window. -- Now for **login as:**, type `root` and hit enter. -- It should then, ask for password, type the `root password` you have received in your **email address registered with Digital Ocean**, then hit Enter. - -*(as you are running it for the first time, it will most likely to ask you to change your root password, for that, type the "password you received through email", hit Enter, enter a "new password", hit Enter and confirm that "new password" again.)* -**SAVE that new password somewhere safe not just in mind**. After you done that, you are ready to write commands. - -**Copy and just paste** using **mouse right-click** (it should paste automatically) +Note: When you install mono, please run update once more to check for any missing repos and dependencies. ####Installing Mono ######MONO (Source: [Mono Source][Mono Source]) -**1)** - `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF` `echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list` `sudo apt-get update` Note if the command is not being initiated, hit **Enter** -**2)** - `echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list` -**2.5)** -*ONLY DEBIAN 8 and later* +####Mono on Debian 8 and later `echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list` -**2.6)** -*ONLY CentOS 7, Fedora 19 (and later)* +####Mono on CentOS 7, Fedora 19 (and later) and later `yum install yum-util` `rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"` `yum-config-manager --add-repo http://download.mono-project.com/repo/centos/` -**3)** -*Mono Devel* +####Mono Devel `apt-get install mono-devel` @@ -177,23 +154,23 @@ Now we need to `unzip` the downloaded zip file and to do that, type the file nam - It should show you the new folder you created. - Open it. -#####MAKE SURE YOU READ THE README BEFORE PROCEEDING +####Renaming Credentials.json - Copy the `credentials_example.json` to desktop -- EDIT it as it is guided here: [Readme][Readme] -- Rename it to `credentials.json` and paste/put it back in the folder. `(Yes, using CyberDuck)` +- EDIT it as it is guided here: [Setting up Credentials.json](Windows Guide.md#setting-up-credentialsjson-file) +- Read here how to [Create DiscordBot application](https://github.com/miraai/NadekoBot/blob/dev/docs/guides/Windows%20Guide.md#creating-discordbot-application) +- Rename it to `credentials.json` and paste/put it back in the folder. - You should see two files `credentials_example.json` and `credentials.json` -- Also if you already have nadeko setup and have `credentials.json`, `config.json`, `nadekobot.sqlite`, and `"permissions" folder`, you can just copy and paste it to the Droplets folder using CyberDuck. +- Also if you already have nadeko setup and have `credentials.json`, `config.json`, `nadekobot.sqlite`, and `"permissions" folder`, you can just copy and paste it to folder. ####Running NadekoBot -- Go back to **PuTTY**, `(hope its still running xD)` - Type/ Copy and hit **Enter**. `tmux new -s nadeko` **^this will create a new session named “nadeko”** `(you can replace “nadeko” with anything you prefer and remember -its your session name) so you can run the bot in background without having to keep running PuTTY in the background.` +its your session name) so you can run the bot in background.` - Enter your Nadeko folder `cd nadeko` @@ -207,6 +184,7 @@ its your session name) so you can run the bot in background without having to ke Now time to **move bot to background** and to do that, press **CTRL+B+D** (this will ditach the nadeko session using TMUX), and you can finally close PuTTY now. Copy your CLIENT ID (that's in the same Developer page where you brought your token) and replace `12345678` in this link: `https://discordapp.com/oauth2/authorize?client_id=12345678&scope=bot&permissions=66186303` with it. Go to that link and you will be able to add your bot to your server. +Or check this guide also [Inviting your bot to your server](Windows Guide.md#inviting-your-bot-to-your-server) **NOW YOU HAVE YOUR OWN NADEKO BOT** `Thanks to Kwoth <3` @@ -216,30 +194,14 @@ Copy your CLIENT ID (that's in the same Developer page where you brought your to -If you want to **switch to/ see that session**, type `tmux a -t nadeko` (**nadeko** is the name of the session we created before so, replace **“nadeko”** with the session name you created.) -If you want to **kill** NadekoBot **session**, type `tmux kill-session -t nadeko` -####How to restart Nadeko with the server (for science) - -- Open **PuTTY** and login as you have before, type `reboot` and hit Enter. - ####Updating Nadeko -**FOLLOW THESE STEPS SERIALLY** - -- **-21 OR 22** -- **-19** -- **-16** -- **-17** -- **-18** -- **-20** - -HIT **CTRL+B+D** and close **PuTTY** +**If you want to update your NadekoBot** just follow the steps from [Getting NadekoBot](https://github.com/miraai/NadekoBot/blob/dev/docs/guides/Linux%20Guide.md#creating-nadeko-folder) `IF YOU FACE ANY TROUBLE ANYWHERE IN THE GUIDE JUST FIND US IN NADEKO'S DISCORD SERVER` -[PuTTY]: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -[CyberDuck]: https://cyberduck.io [Linux Setup Video]: https://www.youtube.com/watch?v=icV4_WPqPQk&feature=youtu.be [Releases]: https://github.com/Kwoth/NadekoBot/releases -[Readme]: https://github.com/Kwoth/NadekoBot/blob/master/README.md [FFMPEG Help Guide]: http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/ [Mono Source]: http://www.mono-project.com/docs/getting-started/install/linux/ [DigitalOcean]: http://m.do.co/c/46b4d3d44795/