Fixed typos and some minor changes

This commit is contained in:
samvaio 2016-05-09 00:02:08 +02:00
parent 840bce09cb
commit 46b7c999b5

View File

@ -2,7 +2,7 @@
######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 http://m.do.co/c/46b4d3d44795/ (and using this link will be supporting Nadeko and will give you **$10 credit**)
######Keep this helpful video handy https://www.youtube.com/watch?v=icV4_WPqPQk&feature=youtu.be (by klincheR) it contains how to set up the Digital Ocean droplet aswell.
######Keep this helpful video handy https://www.youtube.com/watch?v=icV4_WPqPQk&feature=youtu.be (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:
@ -21,13 +21,13 @@ https://cyberduck.io
**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 black window.
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 `password` you have received in your **email address registered with Digital Ocean**, 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 ask you to change your root password, for that, type the password you received through email, hit Enter, enter your new password, hit Enter and confirm that new password again.*
*(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.
@ -42,7 +42,7 @@ After you done that, you are ready to write commands.
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
</code></pre>
**Note if the command is not be initiated, hit Enter**
Note if the command is not be initiated, hit **Enter**
**2)**
<pre><code class="language-bash">echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
@ -111,9 +111,8 @@ sudo apt-get update
<pre><code class="language-bash">certmgr --ssl https://gateway.discord.gg
</code></pre>
Type `yes` and hit enter **three times**
Type `yes` and hit Enter **three times**
**NOW WE NEED NADEKO FROM RELEASES**
**15)**
@ -127,39 +126,42 @@ Move to “nadeko” folder (note `cd --` to go back the directory)
<pre><code class="language-bash">cd nadeko
</code></pre>
Go to this link: https://github.com/Kwoth/NadekoBot/releases and **copy the zip file address** of the lalest version
**NOW WE NEED TO GET NADEKO FROM RELEASES**
Go to this link: https://github.com/Kwoth/NadekoBot/releases and **copy the zip file address** of the lalest version available,
it should look like `https://github.com/Kwoth/NadekoBot/releases/download/vx.xx/NadekoBot.vx.x.zip`
**17)**
Get the correct link, type `wget`, then paste the link, then hit Enter.
Get the correct link, type `wget`, then *paste the link*, then hit **Enter**.
<pre><code class="language-bash">wget https://github.com/Kwoth/NadekoBot/releases/download/vx.xx/NadekoBot.vx.x.zip
</code></pre>
**^Do not copy-paste it**
**18)**
Now we need to unzip the downloaded zip file and to do that, type the file name as it looks like in the screen, should be like ` NadekoBot.vx.x.zip`
Now we need to `unzip` the downloaded zip file and to do that, type the file name as it showed in your screen or just copy from the screen, should be like ` NadekoBot.vx.x.zip`
<pre><code class="language-bash">unzip NadekoBot.vx.x.zip
</code></pre>
**^Do not copy-paste it**
######Now to setup Nadeko
######NOW TO SETUP NADEKO
Open **CyberDuck**
Click on **Open Connection** (left-top corner), a new window should appear.
Click on **Open Connection** (top-left corner), a new window should appear.
You should see **FTP (File Transfer Protocol)** in drop-down.
Change it to **SFTP (SSH File Transfer Protocol)**
Now, in **Server:** paste or type in your `Digital Ocean Droplets IP address`, leave Port: 22 (no need to change it)
Now, in **Server:** paste or type in your `Digital Ocean Droplets IP address`, leave `Port: 22` (no need to change it)
In **Username:** type `root`
In **Password:** type `the new password you changed at the start`
In **Password:** type `the new root password (you changed at the start)`
Click on **Connect**
@ -167,48 +169,52 @@ It should show you the new folder you created.
Open it.
######MAKE SURE YOU READ THE README BEFORE PROCEEDING
Copy the `credentials_example.json` to desktop
EDIT it as it is guided here: https://github.com/Kwoth/NadekoBot/blob/master/README.md
Rename it to `credentials.json` and paste/put it back in the folder, from where you brought it.
Rename it to `credentials.json` and paste/put it back in the folder. `(Yes, using CyberDuck)`
You should see two files `credentials_example.json` and `credentials.json`
Also if you already have nadeko set up and have `credentials.json`, `config.json`, `nadekobot.sqlite`, and `permissions` folder, you can just paste it 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 the Droplets folder using CyberDuck.
######Time to test it
######TIME TO RUN
Go back to **PuTTY**, (hope its still running xD)
Go back to **PuTTY**, `(hope its still running xD)`
**STEP 19)**
**19)**
Type/ Copy and hit **Enter**.
<pre><code class="language-bash">tmux new -s nadeko
</code></pre>
**^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 run PuTTY in back ground.`
**^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.`
**STEP 20)**
<pre><code class="language-bash">cd nadeko
</code></pre>
**20)**
<pre><code class="language-bash">mono NadekoBot.exe
</code></pre>
**CHECK THE BOT IN DISCORD, IF EVERYTHING IS WORKING**
Now time to move bot to background so to do that, press **CTRL+B+D** (this will ditach the nadeko session for TMUX)
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.
And if you want to see the session after logging again, type `tmux ls`, and that will give you the list of sessions running
And if you want to **see the sessions** after logging back again, type `tmux ls`, and that will give you the list of sessions running.
And if you want to switch to 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.)**
And 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.)
**STEP 21)**
**21)**
And if you want to kill **nadeko** session (kill session), type `tmux kill-session -t nadeko`
And if you want to **kill** NadekoBot **session**, type `tmux kill-session -t nadeko`
######IF YOU WANT TO RESTART YOUR BOT THE WHOLE SERVER
**STEP 22)**
######TO RESTART YOUR BOT ALONG WITH THE WHOLE SERVER (for science)
**22)**
Open **PuTTY** and login as you have before, type `reboot` and hit Enter.
@ -228,6 +234,7 @@ Open **PuTTY** and login as you have before, type `reboot` and hit Enter.
**-20**
HIT **CTRL+B+D**
HIT **CTRL+B+D** and close **PuTTY**
IF YOU FACE ANY TROUBLE SEE US IN NADEKO DISCORD
`IF YOU FACE ANY TROUBLE ANYWHERE IN THE GUIDE JUST FIND US IN NADEKO'S DISCORD SERVER`