Running Minecraft server on Bazzite

Is there any way to run a minecraft server on bazzite? I'm not interested in using an external service to host my server, i have always hosted it on my own computer because it runs great for absolutely free. I made a thread a while ago asking about installing java, which i needed to run a server, but it was closed quickly. Any known way to run minecraft servers on bazzite without an external service such as aternos?
105 Replies
Kyle Gospo
Kyle Gospo•19h ago
Prism launcher or distrobox
Mr Chandy
Mr Chandy•19h ago
I've used a Podman container in the past. Which might meet your needs. This example is for setting up Quadlet to start a container as a systemd service https://docs.bazzite.gg/Installing_and_Managing_Software/Quadlet/#minecraft-server
💚Sky🖤
💚Sky🖤OP•18h ago
i followed the video tutorial a bit below that (im not very linux savvy yet im a noob) but im not entirely sure how to set it up for minecraft? i replaced the plex quadlet file with the minecraft server one, but its not showing up in minecraft. sorry if i sound stupid, i am just done with windows after it completely screwed my computer
Mr Chandy
Mr Chandy•18h ago
What steps have you taken so far? I can try to help Also something to keep in mind, if you heavily mod your server it is a tad more tricky then just plopping jars into a folder because its a container. Though its doable.
💚Sky🖤
💚Sky🖤OP•18h ago
i followed up to 3:55 in this (https://www.youtube.com/watch?v=xTVFmvyZGpg) video after that i figured "maybe i just have to put the minecraft server quadlet file in the plex.container file" (i was likely mistaken there)
Mike's Tech Tips
YouTube
How to run Plex Media Server & Jellyfin Server on Bazzite using Qua...
Just a short guide to running Plex Media Server & Jellyfin Server on Bazzite using Quadlets Here is a link to the companion blog post in the guide: https://mikes-tech-tips.medium.com/running-a-plex-server-and-jellyfin-server-on-bazzite-using-quadlets-d4284478a0df And a link to the Bazzite documentation on Quadlets for a deeper dive: https://doc...
💚Sky🖤
💚Sky🖤OP•18h ago
to avoid any frustration and making myself look more stupid, i just stopped there
Mr Chandy
Mr Chandy•18h ago
ok I assume you named the container file "plex.container"? If thats the case, what is the output of this command? systemctl --user cat plex
💚Sky🖤
💚Sky🖤OP•18h ago
No description
Mr Chandy
Mr Chandy•18h ago
and the output of systemctl --user status plex?
💚Sky🖤
💚Sky🖤OP•18h ago
No description
Mr Chandy
Mr Chandy•18h ago
ok what about journalctl -b0 -r --user -u plex? The last line makes me think that the container file is jumbled a bit, and is actually pulling the plex image. 40-plex-first-run: exited 0 Should be plex specific. Maybe we should start fresh with the container file and the systemd service.
💚Sky🖤
💚Sky🖤OP•18h ago
maybe starting fresh might be a better option? it would be nice to know how to do it properly than to fix it when done wrong, at least i think it would
No description
Mr Chandy
Mr Chandy•18h ago
Yeah that is def the plex docker image lol Ok, I'd suggest stopping the container using systemctl --user stop plex. Then removing the plex.container file.
💚Sky🖤
💚Sky🖤OP•18h ago
alright done, whats next? assuming a new .container file?
Mr Chandy
Mr Chandy•18h ago
Yes, though I'm going to deploy one real quick to make sure I get it right for you. So hold a sec
💚Sky🖤
💚Sky🖤OP•18h ago
ok thats much appreciated thanks!
Mr Chandy
Mr Chandy•17h ago
Ok, so lets make the container file This should ensure the correct folder is present, then open the container file with nano. install -d ~/.config/containers/systemd && nano ~/.config/containers/systemd/minecraft.container Then we add the example container file from the docs
[Container]
ContainerName=minecraft
Environment=EULA=TRUE
Image=docker.io/itzg/minecraft-server
AutoUpdate=registry
PublishPort=25565:25565
Volume=/path/to/data:/data:z

# Remove if you don't want autostart
[Install]
WantedBy=default.target
[Container]
ContainerName=minecraft
Environment=EULA=TRUE
Image=docker.io/itzg/minecraft-server
AutoUpdate=registry
PublishPort=25565:25565
Volume=/path/to/data:/data:z

# Remove if you don't want autostart
[Install]
WantedBy=default.target
You will need to adjust the volume mount for your needs. And make sure to use full directory names. I.E. /home/*youruser*/example/minecraft/data:/data:z Also get rid of everything below the pound sign if you don't want it to autostart on login. Then we reload the systemd daemons and start the service. systemctl --user daemon-reload systemctl --user start minecraft Then give it a sec to pull the image, and populate the data dir. Then we can hop into minecraft and connect with localhost:25565 This will also pull the most recent version, and there is loads of other configs we can do lemme pull up the docs for you to look at.
Mr Chandy
Mr Chandy•17h ago
https://docker-minecraft-server.readthedocs.io/en/latest/variables/ These are the Environment variables that you can adjust, like you would in the default settings of the server folder. I think you would want to add any you want to your minecraft.container file in this format
Environment=VERSION=1.21.5
Environment=MAX_PLAYERS=10
Environment=TYPE=VANILLA
Environment=VERSION=1.21.5
Environment=MAX_PLAYERS=10
Environment=TYPE=VANILLA
Variables - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
💚Sky🖤
💚Sky🖤OP•17h ago
i think i messed up, not sure what this means
No description
💚Sky🖤
💚Sky🖤OP•17h ago
which part exactly was i supposed to replace with the full directory name? sorry im still just trying to learn this stuff
Mr Chandy
Mr Chandy•17h ago
journalctl -b0 -r --user -u minecraft This will give you the logs of what went wrong, it might be the directory didn't get created correctly. It could be that install doesn't follow ~ and didn't do anything. in the minecraft.container file the Volume=/path/to/data:/data:z part has to be full directory names, so you can't use ~ for your home folder or any variables like $HOME.
💚Sky🖤
💚Sky🖤OP•17h ago
so would it be /home/(user)/.config/containers/systemd/? or just /home/(user)/?
Mr Chandy
Mr Chandy•17h ago
I'm sorry I'm really bad at explaining. This line (this is mine for example) Volume=/home/mrchandy/minecraft/data:/data:z sets up the directory mount for the container. And it needs to be the full path of the directory you want to mount minecrafts /data directory to. Its seperated by : so it goes Volume=yournormalfiles:minecraftfiles:permissions Sorry if I'm only confusing you more :wah:
💚Sky🖤
💚Sky🖤OP•17h ago
ah i think i see where the confusion is coming from i installed the minecraft launcher using flatpak, did you?
Mr Chandy
Mr Chandy•17h ago
Yes, that should have no effect on setting up a server though. what was the output of journalctl -b0 -r --user -u minecraft?
💚Sky🖤
💚Sky🖤OP•17h ago
No description
Mr Chandy
Mr Chandy•17h ago
Yeah its complaining that the directory doesn't exist. Because you need to make the directory you want the server data folder to live in. Then change this line to said directory. Volume=/home/*youruser*/*directory that you make*:/data:z I missed that in my instructions. My bad
💚Sky🖤
💚Sky🖤OP•17h ago
directory that you make? im somehow more confused now... im sorry i have autism and i have difficulty understanding some things
Mr Chandy
Mr Chandy•17h ago
yeah, make a folder where you want these files to live. If you don't care where they live, I can give you a command if you want me to decide where they live on your computer lol.
No description
💚Sky🖤
💚Sky🖤OP•17h ago
ohhhh okay does it matter where the folder is? like as in
Mr Chandy
Mr Chandy•17h ago
As long as they are in your home folder it should be fine.
💚Sky🖤
💚Sky🖤OP•17h ago
so it cant be on another disk is what im hearing?
Mr Chandy
Mr Chandy•17h ago
Hmmmm, you can try? But you may or may not run into permission issues? Probably not, but if you want to you can try.
💚Sky🖤
💚Sky🖤OP•17h ago
ehhh its fine ill just avoid that additional effort
Mr Chandy
Mr Chandy•17h ago
The home folder is safer in general because you won't run into any permissions issues.
💚Sky🖤
💚Sky🖤OP•17h ago
i think i got it let me test in minecraft fast
Mr Chandy
Mr Chandy•17h ago
Then make sure to change the Volume mount in your minecraft.container to the directory you just set up, then use systemctl --user restart minecraft and it should restart no problem.
💚Sky🖤
💚Sky🖤OP•17h ago
should look like this yeah?
No description
💚Sky🖤
💚Sky🖤OP•17h ago
IT WORKS! thank you so much for the help! i have one question though how can i see the terminal type thing that usually shows up? where you can input commands straight into the server
Mr Chandy
Mr Chandy•16h ago
Hmm I had set it up a while ago but my way was a tad janky. let me look around to see if there is a better way. podman exec -it minecraft rcon-cli This will drop your terminal into the server command prompt
💚Sky🖤
💚Sky🖤OP•16h ago
oh thats shockingly simple-
Mr Chandy
Mr Chandy•16h ago
Don't think you can get completions like you get in-game, but it works.
💚Sky🖤
💚Sky🖤OP•16h ago
wait wdym completions
Mr Chandy
Mr Chandy•16h ago
in-game you can use tab to get lists of available commands and stuff. but only for in-game sadly
💚Sky🖤
💚Sky🖤OP•16h ago
ohhh yeah thats already not built into the servers terminal i was sad when i first discovered that sorry i swear last thing is it possible to add in geyser? so i can play with all my friends
Mr Chandy
Mr Chandy•16h ago
I've never done it, but according to the itzg/minecraft-server docs you should be able to.
Examples - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
Auri
Auri•16h ago
Geyser should just be a mod that you can drop into the mod folder
💚Sky🖤
💚Sky🖤OP•16h ago
i dont need forge or anything for that?
Auri
Auri•16h ago
Are you running vanilla rn
💚Sky🖤
💚Sky🖤OP•16h ago
yes i am my apologies its been a while since ive done any minecraft server running because my pc was broken and im also still learning linux
Auri
Auri•16h ago
Hmmm You can either go fabric or paper Or forge Or like a lot of other modloader
💚Sky🖤
💚Sky🖤OP•16h ago
is there any way to do it just vanilla
Auri
Auri•16h ago
You cannot use geyser with vanilla Afaik
💚Sky🖤
💚Sky🖤OP•16h ago
this is the options it shows me, is standalone just something i can drop into the folder without forge or fabric?
Auri
Auri•16h ago
It's easy to set up anyway! Ehh What's your container config thing file Change VANILLA to FABRIC
💚Sky🖤
💚Sky🖤OP•16h ago
where is that?
No description
Auri
Auri•16h ago
Add a new environment variable MODRINTH_PROJECTS=geyser Ohh, add a new Environment=TYPE=FABRIC And Environment=MODRINTH_PROJECTS=geyser Im not too familiar with podman quadlet
💚Sky🖤
💚Sky🖤OP•16h ago
then do i just start the server back up?
Auri
Auri•16h ago
But that should work Yeah restart it
💚Sky🖤
💚Sky🖤OP•16h ago
ehhhh now its not working at all
Auri
Auri•16h ago
Strange, what's the error? I might be giving you bad code Cause
💚Sky🖤
💚Sky🖤OP•16h ago
No description
Auri
Auri•16h ago
I haven't used podlet myself Oh weird Weird systemctl --user status minecraft
💚Sky🖤
💚Sky🖤OP•16h ago
No description
💚Sky🖤
💚Sky🖤OP•16h ago
No description
Auri
Auri•16h ago
Can you right click the arrow The error is truncated :dispair:
💚Sky🖤
💚Sky🖤OP•16h ago
its just trying to scroll when i do that because of the scroll bar on the side
Auri
Auri•16h ago
Oh press the right arrow key
💚Sky🖤
💚Sky🖤OP•16h ago
No description
No description
No description
💚Sky🖤
💚Sky🖤OP•16h ago
i think you need to specify a version
Auri
Auri•16h ago
Im sorry I can't really read that Oh What version of Minecraft you're running Maybe geyser doesn't support that version?
Mr Chandy
Mr Chandy•16h ago
Yeah could be no version avaiable
Auri
Auri•16h ago
I can't tell
💚Sky🖤
💚Sky🖤OP•16h ago
[mc-image-helper] 01:29:07.564 ERROR : Invalid parameter provided for 'modrinth' command: No candidate versions of 'Geyser' [2.9.0-b981=beta, 2.9.0-b980=beta, 2.9.0-b979=beta, 2.9.0-b978=beta, 2.9.0-b977=beta, 2.9.0-b976=beta, 2.9.0-b975=beta, 2.9.0-b974=beta, 2.9.0-b973=be> newest which isss umm 1.21.10
Auri
Auri•16h ago
Huh jt should work Wait Remove the capital G :clueless: Change it to g
💚Sky🖤
💚Sky🖤OP•16h ago
ehm.. it was already lowercase
No description
Auri
Auri•16h ago
:coolfingergunscry: -# @Valerie :clueless: -# can you help, pretty please 🥺
Valerie
Valerie•16h ago
Hm? Oh I hate minecraft servers so much
Auri
Auri•16h ago
:huh: Wait Is that the only error
💚Sky🖤
💚Sky🖤OP•16h ago
yes
Mr Chandy
Mr Chandy•16h ago
did you look at the full logs? systemctl status only gives a few lines usually
💚Sky🖤
💚Sky🖤OP•16h ago
how do i do that again..?
Mr Chandy
Mr Chandy•16h ago
journalctl -b0 -r --user -u minecraft
💚Sky🖤
💚Sky🖤OP•16h ago
same exact error shown
Auri
Auri•16h ago
What abotu the line before Does it says the Minecraft version and stuff
💚Sky🖤
💚Sky🖤OP•16h ago
idk i cant do the right arrow key thing anymore what was the command we were using before
Auri
Auri•16h ago
This
💚Sky🖤
💚Sky🖤OP•16h ago
Fabric launcher for minecraft 1.21.10 loader 0.17.3 is already available
Auri
Auri•16h ago
Oh Add Environment= MODRINTH_ALLOWED_VERSION_TYPE=beta Ahhhh Fixed I need sleep :3
💚Sky🖤
💚Sky🖤OP•16h ago
okay so that error is gone but now its just not working
Auri
Auri•16h ago
Wdym Run the status command again
💚Sky🖤
💚Sky🖤OP•16h ago
No description
Auri
Auri•16h ago
Fabric crashed Ehhh Hm Imma sleep now, sorryyy I have some idea
💚Sky🖤
💚Sky🖤OP•16h ago
thats ok
Auri
Auri•16h ago
Like try paper instead Maybe
💚Sky🖤
💚Sky🖤OP•16h ago
thank you for the help no idea how to do that either 😭
Auri
Auri•16h ago
As a last ditch effort Change FABRIC to PAPER
💚Sky🖤
💚Sky🖤OP•16h ago
ah ok now its running but now my console doesnt work... OH WAIT YES IT DOES!!!
💚Sky🖤
💚Sky🖤OP•16h ago
OK THANK YOU ALL SO MUCH IT WORKS NOW go to sleep girl u deserve it
Auri
Auri•16h ago
Niceeeee Imma go to bed now Lol Have fun!
Mr Chandy
Mr Chandy•16h ago
I tried recreating what you were doing, and I think I found out what was wrong before. The environment variable MODRINTH_PROJECTS doesn't automatically grab required dependencies. so it was failing because fabric-api wasn't present. :clueless: So adding Environment=MODRINTH_DOWNLOAD_DEPENDENCIES=required fixes it.
Auri
Auri•7h ago
LOL Makes sense

Did you find this page helpful?