Nischay's Blog

How to setup lavalink server

By Nischay Sharma on Feb 5, 2022
Image post 2

In this tutorial we will be setting up lavalink server! 🎉 Let’s get started. Now, first thing first

Setting up the enviroment

To make a lavalink server, you will need a java 13 or greater, I recommend using Azul Zulu java 16 or 17. You can download & setup java by going to here:

Deploy on Railway

Once install you can verify it by doing java -version, the output should look something like this

openjdk version "16.0.2" 2021-07-20
OpenJDK Runtime Environment Zulu16.32+15-CA (build 16.0.2+7)
OpenJDK 64-Bit Server VM Zulu16.32+15-CA (build 16.0.2+7, mixed mode, sharing)

Congratulations 🥳 you’ve got Java installed!

Setting up lavalink.jar

To get started, you need to download the lavalink.jar and application.yml It’s pretty simple!

There are 2 jars provided below, one is the original one from freyacodes and one custom one which has alot more features than the original one

https://github.com/freyacodes/Lavalink/releases/tag/3.4

https://ci.fredboat.com/repository/download/Lavalink_Build/.lastSuccessful/Lavalink.jar?guest=1&branch=refs/heads/dev

https://drive.google.com/file/d/1XTJMNUYzYTYOKBMzOAoqo8v28Sqe3O9V/view

application.yml download

Once you’ve downloaded the jar and application.yml file, you can simply edit the application.yml port and password to your preferences. Now last step is to move both into a single folder, then open a terminal to that folder using cd

How to use cd in windows

How to use cd in mac

How to use cd in linux

Then run it by doing java -jar Lavalink.jar or if you wanna limit it to only using X amount of ram you can do java -XmxXG -jar Lavalink.jar I.e. java -Xmx2G -jar Lavalink.jar and you should get an output similar to this:

[root@oggy-testsrv lavalink]# java -Xmx2G -jar Lavalink.jar
2021-12-03 04:22:25.402  INFO 1826146 --- [           main] lavalink.server.Launcher                 :

       .   _                  _ _       _    __ _ _
      /\\ | | __ ___   ____ _| (_)_ __ | | __\ \ \ \
     ( ( )| |/ _` \ \ / / _` | | | '_ \| |/ / \ \ \ \
      \\/ | | (_| |\ V / (_| | | | | | |   <   ) ) ) )
       '  |_|\__,_| \_/ \__,_|_|_|_| |_|_|\_\ / / / /
    =========================================/_/_/_/

        Version:        3.3.2.3
        Build:          1239
        Build time:     31.08.2021 17:26:20 UTC
        Branch          main
        Commit:         2ad6b46
        Commit time:    31.08.2021 17:17:13 UTC
        JVM:            17.0.1
        Lavaplayer      1.3.93-original

“Help, I’ve tried the steps above but It doesn’t work.” If you’ve followed this entire guide and It doesn’t work, then please contact me on my discord server dsc.gg/oggys , discord.com/invite/N28ZrdrhtA and I’ll help you out. and also provide the following information:

  • Which distro you are on
  • What java version are you using
  • What hosting provider you are using
  • Don’t just say “doesn’t work”. Describe your problem in details

And that’s it! You’ve installed lavalink! 🎉🥳

Thank you for reading, have a great day!

Subscribe to my Newsletters

Lorem ipsum dolor sit amet consectetur adipisicing elit. Tenetur vero esse non molestias eos excepturi, inventore atque cupiditate.

    © Copyright 2022 by Nischay's Blog. Built with ♥ by ~Nischay.