-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minecraft Pi Server update #2437
Comments
A zipfile was found in the body of an issue comment. Click to show contents preview
#!/bin/bash
version=2.4.8
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
mkdir -p /usr/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=.local/bin/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
enable_module fuse || exit 1
#!/bin/bash
version=2.4.8
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
mkdir -p /usr/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/applications/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
enable_module fuse || exit 1
#!/bin/bash
#remove server app image
rm -rf /usr/share/applications/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
|
I've fixed all the previous problems with my scripts |
pi-apps prefers global installation of applications when possible. please refer to many other scripts that install globally #download server
wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-2.4.8-arm64.AppImage || error "failed to download server" correct URL to use version variable in appimage |
also please stop closing and opening new issues. that is unnecessary if you want the github actions automated preview of the zipfile to change (instead of getting a new comment made), you can edit the body of the initial post to use your new zip |
sorry i didn't know you could do that im new to github |
alright i fixed the url it should be good to go now |
again, there are still multiple issues. the use of apt directly inside of scripts is banned for almost all cases (refer again to our official script writing wiki linked to you before). also we prefer that global installations be done when possible (which is the case here) so you need to change to doing that. |
what do you mean by that? |
local to the current user: just pick any random pi-apps script type install to look at. the majority are global install based (eg: pixelorama https://github.com/Botspot/pi-apps/blob/master/apps/Pixelorama/install ) |
oh ok thanks for helping me even though im not great at this |
ok i fixed that it should be good now |
It's still saving everything in the user's home directory. And that is the problem: All app files are being saved to the current user's home folder, rather than to a global location. You should find the global equivalents to these locations, like /usr/share/applications or /usr/local/bin. It will require |
oh that makes sense i updated it to work that way thats a good idea to make it global for all users |
|
oops sorry i fixed that |
this is local
#update os
sudo apt-get update again, pi-apps does not allow apps to use apt directly except under specific circumstances. also your uninstall script needs correcting also you need to enable the fuse module since this is an appimage. You can look at Musescore to see how to do this https://github.com/Botspot/pi-apps/blob/master/apps/MuseScore/install |
also @Botspot what are your thoughts on the actions bot here. Do you like that it edits the initial comment zip preview when the user edits their initial post or would it be clearer if it always made a new post (which would show up at the bottom)? If you have other ideas I am all ears. |
oh okay i fixed it |
still not fixed:
also I suggest using the 64x64 version of the icon in the .desktop file as it will be clearer |
what is the fuse module for? |
-> also you need to enable the fuse module since this is an appimage using google "fuse appimage" -> "AppImages require FUSE version 2 to run. Filesystem in Userspace (FUSE) is a system that lets non-root users mount filesystems." |
@theofficialgman, |
Heres the new file |
A zipfile was found in the body of an issue comment.
#!/bin/bash
version=2.4.8
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
mkdir -p /usr/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=.local/bin/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
enable_module fuse || exit 1
#!/bin/bash
version=2.4.8
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
mkdir -p /usr/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/applications/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > ~/.local/share/applications/mcpi_server.desktop
enable_module fuse || exit 1
#!/bin/bash
#remove server app image
rm -rf /usr/share/applications/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
|
@Botspot there is no reason we need to tell users which method to do. |
ok i did that im hoping its good now |
^ |
refer again to #2437 (comment) , you can't write to or create a root owned directory as a regular user. |
also I'd personally prefer if the enable fuse module was placed directly after the version variable. that way if it fails then you aren't left with an unuseable application unless the user does an uninstall. also you need a purge_packages in your uninstall if you have an enable_module |
A zipfile was found in the body of an issue comment. Click to show contents preview
#!/bin/bash
version=2.4.8
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
mkdir -p /usr/share/applications || error "Could not make directory"
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/applicationsmcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > /usr/share/applications/mcpi_server.desktop
enable_module fuse || exit 1
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
sudo mkdir -p /usr/share/applications || error "Could not make directory"
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/applications/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" > /usr/share/applications/mcpi_server.desktop
#!/bin/bash
#remove server app image
rm -rf /usr/share/applications/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
#purge packages
purge_packages || exit 1
|
okay done |
@kidmakesreal you don't need to edit both the original post and make a new one with the zip. as per botspot's revised recommendations just make the new post.
still not fixed... refer again -> #2437 (comment) I suggest you take a bit longer to digest and understand what we have been telling you to do rather than trying to solve the problem as quickly as possible and messing up. Think through what the commands are actually doing. There is no rush here, it won't be added today (or even this weekend likely) anyway. |
ok sorry ill try harder |
Don't worry about it. Nobody expects someone to become and expert on day one. Just make sure to give yourself time to digest and think about it. We just have guidelines (some explicitly written down in our documentation and some implied) at pi-apps that we want all new scripts to follow. |
i cant get the global installation to work is it cool if i just make it install locally? |
i think it would be better if the server folder was located in the home directory anyway due to then fact that to configure the server you have to change the server.properties file in the server folder and it would overcomplicate things for the user to have to be root to access it |
is there are reason why you chose to use the appimages from the release instead of the armhf/arm64 debs available? all release types create their configuration files in the home directory as normal so that is a non-issue |
where can i find the .deb files? i only was able to find appimages |
nevermind found it |
i have this desktop entry: "[Desktop Entry] |
sudo mkdir -p /usr/share/applications/mcpi_server
cd /usr/share/applications/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server" application folders do not belong in the |
A zipfile was found in the body of your issue. Click to show contents preview
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
sudo mkdir -p /usr/share/applications || error "Could not make directory"
cd /usr/share/applications
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
"
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
sudo mkdir -p /usr/share/applications || error "Could not make directory"
cd /usr/share/applications
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
"
#!/bin/bash
#remove server app image
sudo rm -rf /usr/share/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
sudo rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
#purge packages
purge_packages || exit 1
|
i've fixed all the previous errors in my scripts it should be all good now |
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" no .desktop file is created. this simply echos to the terminal. Writing to a .desktop file in a root owned location can be performed with a combination |
it gives me this error unless i run in root "bash: mcpi_server.desktop: Permission denied" |
A zipfile was found in the body of your issue. Click to show contents preview
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
sudo mkdir -p /usr/share/applications || error "Could not make directory"
cd /usr/share/applications
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" | sudo tee mcpi_server.desktop
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
sudo mkdir -p /usr/share/applications || error "Could not make directory"
cd /usr/share/applications
sudo echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" | sudo tee mcpi_server.desktop
#!/bin/bash
#remove server app image
sudo rm -rf /usr/share/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
sudo rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
#purge packages
purge_packages || exit 1
|
Ok sorry about that i think ive fixed it |
|
A zipfile was found in the body of your issue. Click to show contents preview
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-armhf.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" | sudo tee /usr/share/applications/mcpi_server.desktop
#!/bin/bash
version=2.4.8
#enable fuse
enable_module fuse || exit 1
#create server folder
sudo mkdir -p /usr/share/mcpi_server
cd /usr/share/mcpi_server
#download server
sudo wget -O server.AppImage https://github.com/NoozAbooz/mcpi-reborn-extended/releases/download/${version}/minecraft-pi-reborn-server-${version}-arm64.AppImage || error "failed to download server"
#make server executable
sudo chmod +x server.AppImage
#make desktop shortcut
echo "[Desktop Entry]
Name=Minecraft Pi Server
Exec=/usr/share/mcpi_server/server.AppImage
Comment=Multiplayer Server
Terminal=true
Icon=$(dirname "$0")/icon-64.png
Type=Application
Categories=Game;
" | sudo tee /usr/share/applications/mcpi_server.desktop
#!/bin/bash
#remove server app image
sudo rm -rf /usr/share/mcpi_server/server.AppImage || error "Failed to remove server.appImage"
#remove shortcut
sudo rm -rf /usr/share/applications/mcpi_server.desktop || error "Failed to remove Minecraft Pi Server shortcut"
#purge packages
purge_packages || exit 1
|
oh sorry its always the little things i miss |
Thank you for helping me make my script better |
I've fixed all the issues (that i know of) it should work now |
Hello anybody there? |
In the upcoming MCPI-Reborn v3.0.0, the client and server builds have been unified. Running the dedicated server will only require running MCPI-Reborn with |
Nice this is a really cool project I’m glad people will now be able to make their own servers and play multiplayer |
What is the name of the app?
Minecraft Pi Server
(Optional) Where is the app hosted?
No response
About the app
a simple one click install mcpi server software
Upload file or Add PR Link
Minecraft Pi Server.zip
Confirmations
The text was updated successfully, but these errors were encountered: