Skip to content

Instantly share code, notes, and snippets.

@Chaarizard
Last active August 29, 2015 13:57
Show Gist options
  • Save Chaarizard/9777124 to your computer and use it in GitHub Desktop.
Save Chaarizard/9777124 to your computer and use it in GitHub Desktop.
Showdown in linux

How to set-up showdown in Linux

Prerequisites:

  1. Terminal / SSH Acess: putty (for vps) or Terminal if operating linux

  2. GIT (documentation)

  3. Node.js (documentation) (you will need to install git first)

Steps:

  1. Clone: git clone https://github.com/zarel/pokemon-showdown && cd pokemon-showdown

  2. Install Modules: npm install

  3. Config: cd config && cp config-example.js config.js

  4. Edit Config: Now you can edit config.js with nano or ed. Nano is easier to use but might not be pre-installed like ed

  5. Usergroups: You might want to give yourself Administrator in your server, to do so: echo "USER,~" >> usergroups.csv (replace USER with the person you want as admin)

  6. Start: cd - && node app.js

  7. Now you can access your server at ip:port

Tips:

  1. In this way, the server will go offline after you close your terminal window or ssh cleint, so you can use nohup, forever or screen.

  2. You can update your server for latest changes using the /updateserver command

@scholzy
Copy link

scholzy commented Mar 26, 2014

have you considered using cat as your text editor? it is more intuitive than nano yet more powerful than ed -- a mighty combination! plus, it is a core package on almost all systems so it's reliable too.

@Chaarizard
Copy link
Author

@maikerushoruzu, seems like a nice idea, Implemented :)

EDIT: Dosent work it overwrits the file every edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment