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
Prism launcher or distrobox
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
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
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.
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...
to avoid any frustration and making myself look more stupid, i just stopped there
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
and the output of
systemctl --user status plex?
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.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

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.alright done, whats next?
assuming a new .container file?
Yes, though I'm going to deploy one real quick to make sure I get it right for you.
So hold a sec
ok thats much appreciated thanks!
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
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.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
Variables - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
i think i messed up, not sure what this means

which part exactly was i supposed to replace with the full directory name? sorry im still just trying to learn this stuff
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.so would it be
/home/(user)/.config/containers/systemd/? or just /home/(user)/?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:ah i think i see where the confusion is coming from
i installed the minecraft launcher using flatpak, did you?
Yes, that should have no effect on setting up a server though.
what was the output of
journalctl -b0 -r --user -u minecraft?
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 baddirectory that you make? im somehow more confused now... im sorry i have autism and i have difficulty understanding some things
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.

ohhhh okay does it matter where the folder is?
like as in
As long as they are in your home folder it should be fine.
so it cant be on another disk is what im hearing?
Hmmmm, you can try? But you may or may not run into permission issues? Probably not, but if you want to you can try.
ehhh its fine ill just avoid that additional effort
The home folder is safer in general because you won't run into any permissions issues.
i think i got it let me test in minecraft fast
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.should look like this yeah?

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
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 promptoh thats shockingly simple-
Don't think you can get completions like you get in-game, but it works.
wait wdym completions
in-game you can use tab to get lists of available commands and stuff.
but only for in-game sadly
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
Examples - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
Geyser should just be a mod that you can drop into the mod folder
i dont need forge or anything for that?
Are you running vanilla rn
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
Hmmm
You can either go fabric or paper
Or forge
Or like a lot of other modloader
Fabric - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
is there any way to do it just vanilla
You cannot use geyser with vanilla
Afaik
this is the options it shows me, is standalone just something i can drop into the folder without forge or fabric?
It's easy to set up anyway!
Ehh
What's your container config thing file
Change VANILLA to FABRIC
where is that?

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 quadletthen do i just start the server back up?
But that should work
Yeah restart it
ehhhh now its not working at all
Strange, what's the error?
I might be giving you bad code
Cause

I haven't used podlet myself
Oh weird
Weird
systemctl --user status minecraft
Can you right click the arrow
The error is truncated :dispair:
its just trying to scroll when i do that
because of the scroll bar on the side
Oh press the right arrow key
i think you need to specify a version
Im sorry
I can't really read that
Oh
What version of Minecraft you're running
Maybe geyser doesn't support that version?
Yeah could be no version avaiable
I can't tell
[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.10Huh jt should work
Wait
Remove the capital G
:clueless:
Change it to g
ehm.. it was already lowercase
:coolfingergunscry:
-# @Valerie
:clueless:
-# can you help, pretty please 🥺
Hm?
Oh
I hate minecraft servers so much
:huh:
Wait
Is that the only error
yes
did you look at the full logs?
systemctl status only gives a few lines usually
how do i do that again..?
journalctl -b0 -r --user -u minecraftsame exact error shown
What abotu the line before
Does it says the Minecraft version and stuff
idk i cant do the right arrow key thing anymore
what was the command we were using before
This
Fabric launcher for minecraft 1.21.10 loader 0.17.3 is already available
Oh
Add
Environment= MODRINTH_ALLOWED_VERSION_TYPE=beta
Ahhhh
Fixed
I need sleep
:3okay so that error is gone but now its just not working
Wdym
Run the status command again

Fabric crashed
Ehhh
Hm
Imma sleep now, sorryyy
I have some idea
thats ok
Like try paper instead
Maybe
thank you for the help
no idea how to do that either ðŸ˜
As a last ditch effort
Change FABRIC to PAPER
ah ok now its running
but now my console doesnt work...
OH WAIT YES IT DOES!!!
OK THANK YOU ALL SO MUCH IT WORKS NOW
go to sleep girl u deserve it
Niceeeee
Imma go to bed now
Lol
Have fun!
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.LOL
Makes sense