1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Step By Step Setting up a GoLilyPad Server (SSH) [CentOS]

Discussion in 'Documentation' started by Matt, Dec 7, 2013.

  1. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    This is how to install GoLilyPad on CentOS with SSH.
    Getting Java:
    First of all, you need Java. Its very easy to get Java. Just use this command to get Java. Make sure you download the latest version which is 7 for now.
    Code (text):
    yum install java7

    Getting screens (Optional):
    To get more overview over the running servers, you can use Screens. Screens gives you the ability to run applications without letting your terminal session open. To get screens, use this command:
    Code (text):
    yum install screen

    - Basic commands:
    Create a new screen session: screen -S <name of session>
    Leaving a screen: Press: Ctrl-a + Ctrl-\
    Returning back to a screen: screen -r <name of session>
    List of all your screens: screen -ls
    List of all the screen commands: Press: Ctrl-a ?

    Setting everything up:
    I recommend you to create two folders: Connect & Proxy. You can do this easily in the SSH with these commands:
    Code (text):
    mkdir Connect
    Code (text):
    mkdir Proxy
    Or you can make these 2 folders by using FTP.

    - Setting up GoLilyPad Connect:
    After that, go to your Connect folder.
    Code (text):
    cd Connect
    Or use a screen:
    Code (text):
    screen -S Connect
    - - Getting the files:
    Now comes the importent step of all: You need to know if your CentOS is 64 or 32 bit. If you are using the 64-bit version of CentOS, use this command:
    Code (text):
    wget http://ci.lilypadmc.org/job/Go-Server-Connect/lastSuccessfulBuild/artifact/target/connect-linux-amd64
    If you're using the 32-bit version of CentOS, use this command:
    Code (text):
    wget http://ci.lilypadmc.org/job/Go-Server-Connect/lastSuccessfulBuild/artifact/target/connect-linux-386
    - - Set the right file permissions:
    You got the file. Now you have to set the file permissions right. Otherwise it won't work. If you're using 64-bit, use this command:
    Code (text):
    chmod +x connect-linux-amd64
    If you're using 32-bit, use this command:
    Code (text):
    chmod +x connect-linux-386
    - - Run for the first time:
    We can now run the connect part of LilyPad. Use this command for the 64-bit version:
    Code (text):
    ./connect-linux-amd64
    Use this command for the 32-bit version:
    Code (text):
    ./connect-linux-386
    Now stop the server by typing: Stop or Halt.

    - - Edit the connect config:
    There are 2 ways to do this. You can use FTP and edit the file, or you can use SSH. If you want to change it by using SSH, do the following:
    Code (text):
    vi connect.yml
    You'll see the config right now. You might seem a bit confused, but it is actually very simple. You will need to change the following:

    Code (yaml):
    logins:
    - username
    : example
      password
    : example
     
    The first Username and Password are for the LilyPad proxy. So you can fill them in by yourself. You'll need this later in the process. The the other ones are for the Bukkit servers.
    Example:
    Code (yaml):
    bind: :5091

    logins
    :
    - username
    : LilyPad
      password
    : password
    - username
    : hub
      password
    : hubserverpw
    - username
    : factions
      password
    : facserverpw
     
    Do that each time if you add a server. Make sure that the username and password equals to the username and password of the Bukkit-Connect config! If you have errors while starting the Connect, then check your configuration on syntax mistakes.

    - Setting up GoLilyPad Proxy:
    Go to your Proxy folder you made earlier. (Make sure you are back in the folder where the connect and proxy folders are).
    Code (text):
    cd Proxy
    Or use a screen:
    Code (text):
    screen -S Proxy
    - - Getting the files:
    Also here you need to know if you are running 64 or 32 bit. If you're running 64-bit, use this command:
    Code (text):
    wget http://ci.lilypadmc.org/job/Go-Server-Proxy/lastSuccessfulBuild/artifact/target/proxy-linux-amd64
    If you're using the 32-bit version of CentOS, use this command:
    Code (text):
    wget http://ci.lilypadmc.org/job/Go-Server-Proxy/lastSuccessfulBuild/artifact/target/proxy-linux-386


    - - Set the right file permissions:
    You got the file. Now you have to set the file permissions right. Otherwise it won't work. If you're using 64-bit, use this command:
    Code (text):
    chmod +x proxy-linux-amd64
    If you're using 32-bit, use this command:
    Code (text):
    chmod +x proxy-linux-386


    - - Run for the first time:
    We can now run the connect part of LilyPad. Use this command for the 64-bit version:
    Code (text):
    ./proxy-linux-amd64
    Use this command for the 32-bit version:
    Code (text):
    ./proxy-linux-386
    You will get an error that is spamming a bit, so try to stop the server with Stop or Halt.

    - - Edit the connect config:
    There are 2 ways to do this. You can use FTP and edit the file, or you can use SSH. If you want to change it by using SSH, do the following:
    Code (text):
    vi proxy.yml
    The config will look like this:
    Code (yaml):
    connect:
      address
    : 127.0.0.1:5091
      credentials
    :
        username
    : example
        password
    : example
    proxy
    :
      bind
    : :25565
      routes
    :
      - domain
    : ""
        server
    : example
      locale
    :
        full
    : The server seems to be currently full. Try again later!
        offline
    : The requested server is currently offline. Try again later!
        loggedIn
    : You seem to be logged in already. Try again later!
        lostConn
    : Lost connection... Please try to reconnect
        shutdown
    : The server is being restarted. Please try to reconnect
      motd
    : A LilyPad Server
      maxPlayers
    : 1
      authenticate
    : true
     
    Its very easy to edit this file. This is what you need to know:
    Code (yaml):
    credentials:
        username
    : LilyPad
        password
    : password
    This needs to equal to the settings we changed in the connect.yml. You can find the same settings back if you scroll up.
    Code (yaml):
    routes:
      - domain
    : ""
        server
    : hub
    In the other version of LilyPad you had to put a Wildcard (*). Now you don't have to put anything. Just leave it "". Server is the server where you connect to. So like the Hub server. Also that needs to equal to the username of the Hub bukkit-connect config.
    Code (yaml):
    motd: A LilyPad Server
    To use color codes, use the symbol &!

    And now...
    You're done! First start GoLilyPad-Connect and then GoLilyPad-Proxy. It should run fine. If not, post a thread in the Support section :)

    Video:
    @sgtcaze Made a awesome video tutorial on how to do this. Thanks!
    Last edited: Jun 27, 2014
    • Informative Informative x 2
    • Like Like x 1
  2. The_Zip

    The_Zip Active Member Resource Contributor

    Very detailed description, and a really nicely made video! Thanks guys!
    • Like Like x 1
  3. Surgex_

    Surgex_ New Member

    Couple of questions:

    1. Where do the server files go in reference to the connect file?
    2. Do I still need all of the Lilypad-Connect and Lilypad-Portal plugins from JLilyPad?
    3. Do you need a connect for each server?
  4. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    1. Can you please describe the question more?
    2. Yes.
    3. No you don't have to :)
  5. Surgex_

    Surgex_ New Member

    So I can have the connect and proxy server running in one folder, then my regular servers running in their own folders?
  6. The_Zip

    The_Zip Active Member Resource Contributor

    You could if you wanted, but organization and updating would be easier in my opinion to have them in separate ones.
  7. Surgex_

    Surgex_ New Member

    So just to make sure I understand this completely...

    Set up the proxy and connect folders from the guide. Enter all of the servers with their logins and passwords that are already in the Lilypad-Connect plugin config.yml, and it should be good?
  8. The_Zip

    The_Zip Active Member Resource Contributor

    Yep, and your good to go.
  9. Surgex_

    Surgex_ New Member

    So all of my servers go into the connect.yml ?
  10. The_Zip

    The_Zip Active Member Resource Contributor

    We are talking about this on the tutorial page. Its very detailed and I would suggest reading it. It should answer all of you questions. And, if not that, the video tutorial is extremely well done, and give a literal step by step. These should not be questions when they are answered above.

    However, to answer you question:
  11. Surgex_

    Surgex_ New Member

    I know, I read it. But for the code it says

    Code (text):

    bind: :5091

    logins:
    - username: LilyPad
      password: password
    - username: hub
      password: hubserverpw
    - username: factions
      password: facserverpw
     
    It didn't have the regexp and password, so that's what made it confusing.
  12. The_Zip

    The_Zip Active Member Resource Contributor

    Ah, sorry. I guess I could see how that could be confusing, there is nothing really explaining the regexp. However, the question seemed a little unneeded.
  13. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    Whopppsss.. My bad.. Forgot to update that..

    Regexp = Username

    Thread updated. It should be good now.
    Last edited: Feb 6, 2014
  14. Surgex_

    Surgex_ New Member

    Last question, I promise! :p

    I got all of my servers hooked up and listed in the connect.yml. When I start my hub server, very few people are able to connect. Most people get an error message saying that the server is offline. Any thoughts?
  15. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    What are you logs saying? Look to them all ;)
  16. The_Zip

    The_Zip Active Member Resource Contributor

    Color is not working for me. I tried the exact thing as stated above. And getting
    Error during reloading config YAML error: line 21: found character that cannot start any token
  17. Tzeentchful

    Tzeentchful Member Contributor

    You might want to add a section about how to add server icons. And I recently submitted a pull request that got accepted, it added the ability to specify the player sample(the text that comes up when you hover over the player count in the multiplier menu). All you have to do is put a 'sample.txt' file with the text you want in the same directory as the proxy. If you wanted to add that as well.
  18. The_Zip

    The_Zip Active Member Resource Contributor

    I thought someone mentioned this as well, but in the same section where you add the sample.txt, you should add the information on the server-icon.png.

    Also, not to spam but:
  19. DiscFire

    DiscFire New Member

    I'm confused... I'm running a network on one computer, I start up connect, I start up proxy, then I start up the lobby. When I try to start the lobby, howver, it is telling me that there is all ready a server running on this port, and when I try to connect, it says the serverw as not available. Any help?
  20. DiscFire

    DiscFire New Member

    Ohh, Now I get it, I change the port for the lobby :)

Share This Page