Optimizing the guide (I guess?)
🤔 Deleted the manual steps (except for the prerequisite)
This commit is contained in:
parent
b46de16257
commit
e1b9a2c3af
@ -38,7 +38,7 @@ If you entered your Droplets IP address correctly, it should show **login as:**
|
||||
- The bot should have been added to your server.
|
||||
|
||||
####Getting NadekoBot
|
||||
#####Part I
|
||||
#####Part I - Downloading the installer
|
||||
Use the following command to get and run `linuxAIO.sh`
|
||||
(Remember **Do Not** rename the file **linuxAIO.sh**)
|
||||
|
||||
@ -55,7 +55,9 @@ You should see these following options after using the above command:
|
||||
6. Set up credentials.json (if you have downloaded the bot already)
|
||||
7. To exit
|
||||
```
|
||||
#####Part II (Optional)
|
||||
#####Part II - Downloading Nadekobot prerequisites
|
||||
|
||||
(Optional) **If** you want to install it manually, you can try finding it [here](https://raw.githubusercontent.com/Kwoth/NadekoBot-BashScript/master/nadekoautoinstaller.sh)
|
||||
**If** you are running NadekoBot for the first time on your system and never had any *prerequisites* installed and have Ubuntu, Debian or CentOS, Press `5` and `enter` key, then `y` when you see the following:
|
||||
```
|
||||
Welcome to NadekoBot Auto Prerequisites Installer.
|
||||
@ -63,10 +65,8 @@ Would you like to continue?
|
||||
```
|
||||
That will install all the prerequisites your system need to run NadekoBot.
|
||||
|
||||
If you prefer to install them [manually](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#installing-manually-optional), click on the link. *(Optional)*
|
||||
|
||||
Once *prerequisites* finish installing.
|
||||
#####Part III
|
||||
#####Part III - Installing Nadeko
|
||||
Choose either
|
||||
`1` to get the **most updated build of NadekoBot**
|
||||
or
|
||||
@ -76,8 +76,7 @@ and then press `enter` key.
|
||||
Once Installation is completed you should see the options again.
|
||||
|
||||
Next, check out:
|
||||
#####Part IV (Optional)
|
||||
If you prefer to skip this step and want to do it [manually](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#setting-up-sftp) or already have the `credentials.json` file, click on the link. *(Optional)*
|
||||
#####Part IV - Setting up credentials
|
||||
|
||||
- [1. Setting up credentials.json](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#setting-up-credentialsjson)
|
||||
- [2. To Get the Google API](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-nadekobot-for-music)
|
||||
@ -102,11 +101,11 @@ You will be asked to enter the required informations, just follow the on-screen
|
||||
|
||||
(If you want to skip any optional infos, just press `enter` key without typing/pasting anything.)
|
||||
Once done,
|
||||
#####Part V
|
||||
#####Part V - Checking if Nadeko is working
|
||||
You should see the options again.
|
||||
Next, press `3` to **Run Nadeko (Normally)**
|
||||
Check in your discord server if your new bot is working properly.
|
||||
#####Part VI
|
||||
#####Part VI - Running Nadeko on tmux
|
||||
If your bot is working properly in your server, type `.die` to **shut down the bot**, then press `7` to **exit**.
|
||||
Next, [Run your bot again with **tmux**.](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#running-nadekobot)
|
||||
|
||||
@ -147,7 +146,7 @@ See how that happens:
|
||||
|
||||
**Now check your Discord, the bot should be online**
|
||||
|
||||
Next to **move the bot to background** and to do that, press **CTRL+B+D** (that will detach the nadeko session using TMUX) and you can finally close **PuTTY** if you want.
|
||||
Next to **move the bot to background** and to do that, press **CTRL+B, release, D** (that will detach the nadeko session using TMUX) and you can finally close **PuTTY** if you want.
|
||||
|
||||
####Restarting Nadeko
|
||||
|
||||
@ -177,167 +176,6 @@ Open **PuTTY** and login as you have before, type `reboot` and hit Enter.
|
||||
- Choose either `3` or `4` to run the bot again with **normally** or **auto restart** respectively.
|
||||
- Done. You can close **PuTTY** now.
|
||||
|
||||
####Installing Manually (Optional)
|
||||
|
||||
#####Installing Git
|
||||
|
||||
![img1](https://cdn.discordapp.com/attachments/251504306010849280/251504416019054592/git.gif)
|
||||
|
||||
Ubuntu:
|
||||
|
||||
`sudo apt-get install git -y`
|
||||
|
||||
CentOS:
|
||||
|
||||
`yum -y install git`
|
||||
|
||||
**NOTE:** If the command is not being initiated, hit **Enter**
|
||||
|
||||
#####Installing .NET Core SDK
|
||||
|
||||
![img2](https://cdn.discordapp.com/attachments/251504306010849280/251504746987388938/dotnet.gif)
|
||||
|
||||
Go to [this link](https://www.microsoft.com/net/core#ubuntu) (for Ubuntu) or to [this link](https://www.microsoft.com/net/core#linuxcentos) (for CentOS) provided by microsoft for instructions on how to get the most up to date version of the dotnet core sdk!
|
||||
Make sure that you're on the correct page for your distribution of linux as the guides are different for the various distributions.
|
||||
Install the **currently supported version** `1.0.0-preview2-1-003177`.
|
||||
You can find it [here](https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1-preview2.1-download.md) if you prefer manual installing `dpkg` files.
|
||||
|
||||
We'll go over the steps here for few linux distributions, accurate as of March 08, 2017:
|
||||
**NOTE:** .NET CORE SDK only supports 64-bit Linux Operating Systems (Raspberry Pis are not supported because of this)
|
||||
|
||||
**Ubuntu x64 17.04 & 16.10**
|
||||
```sh
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ yakkety main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
|
||||
sudo apt-get update && sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177 -y
|
||||
```
|
||||
|
||||
**Ubuntu x64 16.04**
|
||||
```sh
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
|
||||
sudo apt-get update && sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177 -y
|
||||
```
|
||||
|
||||
**Ubuntu x64 14.04**
|
||||
```sh
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
|
||||
sudo apt-get update && sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177 -y
|
||||
```
|
||||
|
||||
**Debian 8 x64**
|
||||
```sh
|
||||
sudo apt-get install curl libunwind8 gettext -y
|
||||
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=835021
|
||||
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
|
||||
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
|
||||
```
|
||||
|
||||
**CentOS 7 x64**
|
||||
```sh
|
||||
sudo yum install libunwind libicu -y
|
||||
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=835019
|
||||
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
|
||||
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
|
||||
```
|
||||
|
||||
#####Installing Opus Voice Codec and libsodium
|
||||
|
||||
![img3](https://cdn.discordapp.com/attachments/251504306010849280/251505294654308353/libopus.gif)
|
||||
|
||||
Ubuntu:
|
||||
|
||||
`sudo apt-get install libopus0 opus-tools libopus-dev libsodium-dev -y`
|
||||
|
||||
CentOS:
|
||||
|
||||
`yum -y install opus opus-devel`
|
||||
|
||||
#####Installing FFMPEG
|
||||
|
||||
![img4](https://cdn.discordapp.com/attachments/251504306010849280/251505443111829505/ffmpeg.gif)
|
||||
|
||||
Ubuntu:
|
||||
|
||||
`apt-get install ffmpeg -y`
|
||||
|
||||
Centos:
|
||||
|
||||
```sh
|
||||
yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm epel-release
|
||||
yum -y install ffmpeg
|
||||
```
|
||||
|
||||
**NOTE:** If you are running **UBUNTU 14.04**, you must run these first:
|
||||
|
||||
```sh
|
||||
sudo add-apt-repository ppa:mc3man/trusty-media
|
||||
sudo apt-get update
|
||||
sudo apt-get dist-upgrade
|
||||
```
|
||||
|
||||
**Before executing:** `sudo apt-get install ffmpeg`
|
||||
|
||||
|
||||
**NOTE:** If you are running **Debian 8 Jessie**, please, follow these steps:
|
||||
|
||||
```sh
|
||||
sudo apt-get update
|
||||
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/debian-backports.list
|
||||
sudo apt-get update && sudo apt-get install ffmpeg -y
|
||||
```
|
||||
|
||||
#####Installing TMUX
|
||||
|
||||
![img5](https://cdn.discordapp.com/attachments/251504306010849280/251505519758409728/tmux.gif)
|
||||
|
||||
Ubuntu:
|
||||
|
||||
`sudo apt-get install tmux -y`
|
||||
|
||||
Centos:
|
||||
|
||||
`yum -y install tmux`
|
||||
|
||||
####Guide for Advance Users (Optional)
|
||||
|
||||
**Skip this step if you are a Regular User or New to Linux.**
|
||||
|
||||
[![img7][img7]](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#getting-nadekobot)
|
||||
|
||||
- Right after [Getting NadekoBot](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#getting-nadekobot)
|
||||
- `cd NadekoBot/src/NadekoBot/` (go to this folder)
|
||||
- `pico credentials.json` (open credentials.json to edit)
|
||||
- Insert your bot **Client ID, Bot ID** (should be same as your Client ID) **and Token** if you got it following [Creating and Inviting bot](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#creating-and-inviting-bot).
|
||||
- Insert your own ID in Owners ID follow: [Setting up credentials.json](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-credentialsjson-file)
|
||||
- And Google API from [Setting up NadekoBot for Music](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-nadekobot-for-music)
|
||||
- Once done, press `CTRL+X`
|
||||
- It will ask for "Save Modified Buffer?", press `Y` for yes
|
||||
- It will then ask "File Name to Write" (rename), just hit `Enter` and Done.
|
||||
- You can now move to [Running NadekoBot](http://nadekobot.readthedocs.io/en/latest/guides/Linux%20Guide/#running-nadekobot)
|
||||
|
||||
####Setting up SFTP
|
||||
|
||||
- Open **WinSCP**
|
||||
- Click on **New Site** (top-left corner).
|
||||
- On the right-hand side, you should see **File Protocol** above a drop-down selection menu.
|
||||
- Select **SFTP** *(SSH File Transfer Protocol)* if its not already selected.
|
||||
- Now, in **Host name:** paste or type in your `Digital Ocean Droplets IP address` and leave `Port: 22` (no need to change it).
|
||||
- In **Username:** type `root`
|
||||
- In **Password:** type `the new root password (you changed at the start)`
|
||||
- Click on **Login**, it should connect.
|
||||
- It should show you the NadekoBot folder which was created by git earlier on the right-hand side window.
|
||||
- Open that folder, then open the `src` folder, followed by another `NadekoBot` folder and you should see `credentials.json` there.
|
||||
|
||||
####Setting up credentials.json
|
||||
|
||||
- Copy the `credentials.json` to desktop
|
||||
- EDIT it as it is guided here: [Setting up credentials.json](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-credentialsjson-file)
|
||||
- Paste/put it back in the folder once done. `(Using WinSCP)`
|
||||
- **If** you already have Nadeko 1.0 setup and have `credentials.json` and `NadekoBot.db`, you can just copy and paste the `credentials.json` to `NadekoBot/src/NadekoBot` and `NadekoBot.db` to `NadekoBot/src/NadekoBot/bin/Release/netcoreapp1.0/data` using WinSCP.
|
||||
- **If** you have Nadeko 0.9x follow the [Upgrading Guide](http://nadekobot.readthedocs.io/en/latest/guides/Upgrading%20Guide/)
|
||||
|
||||
####Setting up Music
|
||||
|
||||
To set up Nadeko for music and Google API Keys, follow [Setting up NadekoBot for Music](http://nadekobot.readthedocs.io/en/latest/guides/Windows%20Guide/#setting-up-nadekobot-for-music)
|
||||
@ -373,4 +211,3 @@ If you are getting error using the above steps try:
|
||||
cd ~/NadekoBot/discord.net && dotnet restore -s https://dotnet.myget.org/F/dotnet-core/api/v3/index.json && dotnet restore
|
||||
cd ~/NadekoBot/src/NadekoBot/ && dotnet restore && dotnet build --configuration Release
|
||||
```
|
||||
[img7]: https://cdn.discordapp.com/attachments/251504306010849280/251505766370902016/setting_up_credentials.gif
|
||||
|
Loading…
Reference in New Issue
Block a user