{"id":19953036,"url":"https://github.com/dfanso/lavalink-server","last_synced_at":"2026-05-25T16:05:50.821Z","repository":{"id":184514472,"uuid":"672022425","full_name":"DFanso/lavalink-server","owner":"DFanso","description":"installing lavalink server on a linux server.  lavalink.jar added to repo","archived":false,"fork":false,"pushed_at":"2024-06-16T14:56:27.000Z","size":65936,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T15:17:31.699Z","etag":null,"topics":["lavalink","lavalink-musicbot","lavalink-server","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DFanso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-28T17:58:00.000Z","updated_at":"2024-09-14T17:49:49.000Z","dependencies_parsed_at":"2024-06-16T16:04:04.086Z","dependency_job_id":"c8ca7422-ddfa-48bd-8baa-dc594ae693c4","html_url":"https://github.com/DFanso/lavalink-server","commit_stats":null,"previous_names":["dfanso/lavalink-server"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DFanso/lavalink-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFanso%2Flavalink-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFanso%2Flavalink-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFanso%2Flavalink-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFanso%2Flavalink-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DFanso","download_url":"https://codeload.github.com/DFanso/lavalink-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DFanso%2Flavalink-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33482459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lavalink","lavalink-musicbot","lavalink-server","ubuntu"],"created_at":"2024-11-13T01:15:12.817Z","updated_at":"2026-05-25T16:05:50.784Z","avatar_url":"https://github.com/DFanso.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lavalink Server\n\n## Installing Lavalink Server on Ubuntu\n\nThis guide will help you install the LavaLink server on an Ubuntu system. LavaLink is a Java application, so you'll need to have Java installed on your system.\n\n### How to Use the Script\n\n1. Save the script to a file, for example `install_lavalink.sh`.\n2. Make the script executable:\n    \n    ```bash\n    chmod +x install_lavalink.sh\n    \n    ```\n    \n3. Run the script with `sudo`:\n    \n    ```bash\n    sudo ./install_lavalink.sh\n    \n    ```\n    \n\nThis script will update your system, install Java, download the LavaLink JAR file, create the necessary configuration files, set up the systemd service, and start the LavaLink server. Make sure to replace `\"dfanso\"` in the configuration file with a secure password of your choice.\n\n### Step-by-Step Guide\n\n#### Step 1: Update Your System\n\nFirst, update your system to ensure you have the most recent packages:\n\n```bash\nsudo apt update\nsudo apt upgrade -y\n```\n\n#### Step 2: Install Java\n\nLavaLink requires Java. Install it with:\n\n```bash\nsudo apt install openjdk-11-jre-headless -y\n```\n\nVerify the installation with:\n\n```bash\njava -version\n```\n\n#### Step 3: Download LavaLink\n\nDownload the latest LavaLink.jar file from the LavaLink GitHub repository:\n\n```bash\nwget https://github.com/Cog-Creators/Lavalink-Jars/releases/download/3.7.11%2Bred.3/Lavalink.jar\n```\n\n#### Step 4: Create a LavaLink Configuration File\n\nLavaLink requires a configuration file named `application.yml`. Create this file in the same directory as your LavaLink.jar file:\n\n```bash\nnano application.yml\n```\n\nCopy the following configuration into `application.yml`:\n\n```yaml\nserver:\n  port: 8080\n  address: 0.0.0.0\nlavalink:\n  server:\n    password: \"your_password_here\"\n    sources:\n      youtube: true\n      bandcamp: true\n      soundcloud: true\n      twitch: true\n      vimeo: true\n      http: true\n    bufferDurationMs: 4000\n    youtubePlaylistLoadLimit: 6\n    playerUpdateInterval: 5\n    youtubeSearchEnabled: true\n    soundcloudSearchEnabled: true\nmetrics:\n  prometheus:\n    enabled: false\n    endpoint: /metrics\n  influx:\n    enabled: false\n    dbName: lavalink\n    hostname: localhost\n    port: 8086\n    username: admin\n    password: password\n```\n\nReplace `\"your_password_here\"` with a secure password of your choice.\n\n#### Step 5: Run LavaLink\n\nRun LavaLink with:\n\n```bash\njava -jar Lavalink.jar\n```\n\nTo run it in the background, use `screen`:\n\n```bash\nscreen -S LavaLink\njava -jar Lavalink.jar\n```\n\nDetach from the screen session with `CTRL+A` then `D`. Re-attach with `screen -r LavaLink`.\n\n### Running LavaLink 24/7\n\nTo keep LavaLink running continuously, use `systemd`.\n\n#### Step 1: Create a systemd Service File\n\nCreate a service file for LavaLink:\n\n```bash\nsudo nano /etc/systemd/system/lavalink.service\n```\n\nAdd the following configuration:\n\n```ini\n[Unit]\nDescription=LavaLink\nAfter=network.target\n\n[Service]\nUser=your_username\nWorkingDirectory=/path/to/your/lavalink/directory\nExecStart=/usr/bin/java -jar Lavalink.jar\nSuccessExitStatus=143\nTimeoutStopSec=10\nRestart=on-failure\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\n```\n\nReplace `your_username` with your actual username and `/path/to/your/lavalink/directory` with the path to your LavaLink directory.\n\n#### Step 2: Enable and Start the Service\n\nEnable and start the service:\n\n```bash\nsudo systemctl enable lavalink.service\nsudo systemctl start lavalink.service\n```\n\nCheck the status of the service:\n\n```bash\nsudo systemctl status lavalink.service\n```\n\n### Troubleshooting\n\nIf you encounter issues, ensure the path and permissions are correct. The user specified should have access to the LavaLink directory. If your `Lavalink.jar` is in the root directory, adjust the service file accordingly:\n\n```ini\n[Unit]\nDescription=LavaLink\nAfter=network.target\n\n[Service]\nUser=root\nWorkingDirectory=/root\nExecStart=/usr/bin/java -jar /root/Lavalink.jar\nSuccessExitStatus=143\nTimeoutStopSec=10\nRestart=on-failure\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\n```\n\nReload the systemd daemon and restart the service after any changes:\n\n```bash\nsudo systemctl daemon-reload\nsudo systemctl restart lavalink.service\n```\n\n### Checking LavaLink Status\n\n1. **Check Logs:**\n\n   ```bash\n   journalctl -u lavalink.service\n   ```\n\n2. **Check Service Status:**\n\n   ```bash\n   sudo systemctl status lavalink.service\n   ```\n\n3. **Check Open Ports:**\n\n   ```bash\n   sudo netstat -tuln | grep 8080\n   ```\n\n   If `netstat` is not installed, install it with:\n\n   ```bash\n   sudo apt install net-tools\n   ```\n\n4. **Connect a Bot:** Ensure your bot can connect to the LavaLink server and play tracks without issues.\n\nBy following these steps, you should have a running LavaLink server on your Ubuntu system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfanso%2Flavalink-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfanso%2Flavalink-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfanso%2Flavalink-server/lists"}