Page 1 of 1

Installer for ubuntu

PostPosted: Sat Mar 03, 2012 07:21
by jordan4ibanez
Here is an installer i have made for ubuntu:
Here are the sources for each file

launcher.sh: http://pastebin.com/veCsaYVt

fresh.sh: http://pastebin.com/2jqGnELd

modremove.sh: http://pastebin.com/tyS8pGGP

worldbackup.sh: http://pastebin.com/UggTSjRr

worldrestore.sh: http://pastebin.com/KbhNXFfg

confstore.sh: http://pastebin.com/CATeRuVs

confrestore.sh: http://pastebin.com/G4LjRvjj

Features

-A simple text main launcher menu better than minecrafts
-Simple Debug.txt reader in terminal
-Automate most things (currently installs packages, downloads source, unpacks, makes dir, and then builds with automatic cpu core detection)
-Can play game and host server from launcher
-Backs up and restore worlds
-Can back up and restore configuration files
-Can remove all mods that aren't default
-Will (try) to include mod repo from sfan5's mod repository that can automatically install mods with a simple 1,3, 4, 5 type of format input
-Will try to make it so there is a front end for this (gtk/cgi)


~THINGS THAT NEED TO BE DONE:

-figure out a way to use double digits for input/until then stuck with using letters after the number 9
-automated .conf creator
-create desktop icon on install
-mod repo/cache STARTED
-fresh install needs to detect if there is directory; if there is delete and reinstall
-able to delete backed up worlds
-able delete world in minetest directory
-mod pack downloads (github?) STARTED
-patch download and make the game patch for you

it is basic..but i will soon make it fail safe

Known issues:
-100% cpu usage

>>>>>>>HERE IS THE DOWNLOAD (.zip) http://ubuntuone.com/2Wp3hRomdTjvri6p73i0Ru

PostPosted: Sat Mar 03, 2012 08:15
by jordan4ibanez
features i'm going to include:
updater
check for updates
fresh installer (deletes everything but map)

PostPosted: Sat Mar 03, 2012 09:26
by RabbiBob
Nice

jordan4ibanez wrote:fresh installer (deletes everything but map)


I have a process (not script) that I'm tinkering with and it I have the following steps

1) Back up the current entire directory
2) Rename the current directory
3) Install the package
4) copy world & data from the previous install into new directory (carries world and mods over)
5) copy minetest.conf from previous install into new directory
5) Run bin/minetestserver and verify all the mods work correctly

PostPosted: Sat Mar 03, 2012 09:37
by jordan4ibanez
RabbiBob wrote:Nice

jordan4ibanez wrote:fresh installer (deletes everything but map)


I have a process (not script) that I'm tinkering with and it I have the following steps

1) Back up the current entire directory
2) Rename the current directory
3) Install the package
4) copy world & data from the previous install into new directory (carries world and mods over)
5) copy minetest.conf from previous install into new directory
5) Run bin/minetestserver and verify all the mods work correctly

cool :D i'm trying to do that and more xD

PostPosted: Sat Mar 03, 2012 14:11
by JSonic
Looks cool! I think it would work also with other debian based distros too.
jordan4ibanez wrote:-create desktop icon on install

Maybe you could use
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cp $HOME/minetest/misc/minetest.desktop $HOME/Desktop/Minetest.desktop

or even
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
...
cp $HOME/minetest/misc/Minetest.desktop ${XDG_DESKTOP_DIR:-$HOME/Desktop}/Minetest.desktop

PostPosted: Sat Mar 03, 2012 14:24
by jordan4ibanez
JSonic wrote:Looks cool! I think it would work also with other debian based distros too.
jordan4ibanez wrote:-create desktop icon on install

Maybe you could use
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cp $HOME/minetest/misc/minetest.desktop $HOME/Desktop/Minetest.desktop

or even
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
...
cp $HOME/minetest/misc/Minetest.desktop ${XDG_DESKTOP_DIR:-$HOME/Desktop}/Minetest.desktop


ok thanks jsonic

PostPosted: Sat Mar 03, 2012 19:21
by jordan4ibanez
will hopefully be making one for python so i can include gtk :)

PostPosted: Sat Mar 03, 2012 21:43
by jordan4ibanez
should i keep this as bash?

PostPosted: Sat Mar 03, 2012 22:00
by cosarara97
I think python is better

PostPosted: Sun Mar 04, 2012 08:49
by JSonic
Python. GUI would be good and (almost) every linux user has it preinstalled, so that's not a problem.

PostPosted: Tue Mar 13, 2012 09:17
by Hackeridze
Python sucks. GUI sucks. It's should be simple(like now).

PostPosted: Tue Mar 13, 2012 09:23
by Hackeridze
Maybe you should remove "-DRUN_IN_PLACE=1" and compile minetest in ~/.minetest/sources and copy(after compiling) game and server binaries into ~/.minetest/bin.

Also add "Run game" and "Run server" lines in menu.

PostPosted: Tue Mar 13, 2012 09:26
by Hackeridze
JSonic wrote:Python. GUI would be good and (almost) every linux user has it preinstalled, so that's not a problem.

GUI on my minetest-linux server without video card? No, not heard.

PostPosted: Tue Mar 13, 2012 12:04
by jordan4ibanez
Hackeridze wrote:Maybe you should remove "-DRUN_IN_PLACE=1" and compile minetest in ~/.minetest/sources and copy(after compiling) game and server binaries into ~/.minetest/bin.

Also add "Run game" and "Run server" lines in menu.

wow i thought everyone hated this! good idea hackeridze

PostPosted: Tue Mar 13, 2012 13:40
by sfan5
Hackeridze wrote:Maybe you should remove "-DRUN_IN_PLACE=1" and compile minetest in ~/.minetest/sources and copy(after compiling) game and server binaries into ~/.minetest/bin.

Also add "Run game" and "Run server" lines in menu.

+1

PostPosted: Tue Mar 13, 2012 14:49
by Death Dealer
wish i would have read this yesterday: /

PostPosted: Sun Mar 18, 2012 11:00
by Hackeridze


Use github please, also I may do some help(if you will add into collaborators).

PostPosted: Sun Mar 18, 2012 11:25
by sfan5
I can help too

PostPosted: Mon Mar 19, 2012 14:02
by jordan4ibanez
i'll add in colabs some day..maybe some time this week..maybe today!

PostPosted: Mon Mar 19, 2012 14:03
by sfan5
\o/
Edit: My 888th Post! :D

PostPosted: Mon Mar 19, 2012 14:36
by Hackeridze
sfan5 wrote:\o/
Edit: My 888th Post! :D

Gratz!

PostPosted: Mon Mar 19, 2012 14:46
by jordan4ibanez
sfan5 wrote:\o/
Edit: My 888th Post! :D

YOU WIN 1 FREE INTERNET!
http://www.free-internet.name/

PostPosted: Wed Mar 21, 2012 16:48
by RabbiBob
I didn't try your Installer, but I'm thinking the two latest builds might require some shifting of things due to the new directory structure. I've outlined my changes in another thread and it took a few minutes to migrate to the latest build once I determined the differences.

http://c55.me/minetest/forum/viewtopic.php?pid=15747#p15747

PostPosted: Sat Apr 07, 2012 03:16
by jordan4ibanez
RabbiBob wrote:I didn't try your Installer, but I'm thinking the two latest builds might require some shifting of things due to the new directory structure. I've outlined my changes in another thread and it took a few minutes to migrate to the latest build once I determined the differences.

http://c55.me/minetest/forum/viewtopic.php?pid=15747#p15747

yep..probobly going to work on this