Installer for ubuntu

For people working on the C++ code.
Post Reply
User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Installer for ubuntu

by jordan4ibanez » Post

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
Last edited by jordan4ibanez on Sat Mar 03, 2012 19:06, edited 1 time in total.
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

features i'm going to include:
updater
check for updates
fresh installer (deletes everything but map)
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
RabbiBob
Member
Posts: 335
Joined: Sat Jan 28, 2012 22:40
Location: /teleport 54,47,28
Contact:

by RabbiBob » Post

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

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
JSonic
Member
Posts: 68
Joined: Fri Jan 13, 2012 17:48
Location: Suomi Finland
Contact:

by JSonic » Post

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

Code: Select all

cp $HOME/minetest/misc/minetest.desktop $HOME/Desktop/Minetest.desktop
or even

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
Stairs are cool!
Minetest-c55 for Puppy Linux
Minetest-c55 PPA: daily, stable

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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

Code: Select all

cp $HOME/minetest/misc/minetest.desktop $HOME/Desktop/Minetest.desktop
or even

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
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

will hopefully be making one for python so i can include gtk :)
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

should i keep this as bash?
hello, am program. do language in rust. make computer do. okay i go now.

cosarara97
Member
Posts: 180
Joined: Tue Nov 01, 2011 18:53

by cosarara97 » Post

I think python is better
:D

User avatar
JSonic
Member
Posts: 68
Joined: Fri Jan 13, 2012 17:48
Location: Suomi Finland
Contact:

by JSonic » Post

Python. GUI would be good and (almost) every linux user has it preinstalled, so that's not a problem.
Stairs are cool!
Minetest-c55 for Puppy Linux
Minetest-c55 PPA: daily, stable

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

Python sucks. GUI sucks. It's should be simple(like now).
My game: RTMG
GENTOO USER

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

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.
My game: RTMG
GENTOO USER

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

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.
Last edited by Hackeridze on Tue Mar 13, 2012 09:27, edited 1 time in total.
My game: RTMG
GENTOO USER

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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
hello, am program. do language in rust. make computer do. okay i go now.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

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
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

wish i would have read this yesterday: /
Keep calm and code python^_^

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

jordan4ibanez wrote: 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

>>>>>>>HERE IS THE DOWNLOAD (.zip) http://ubuntuone.com/2Wp3hRomdTjvri6p73i0Ru
Use github please, also I may do some help(if you will add into collaborators).
My game: RTMG
GENTOO USER

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

I can help too
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

i'll add in colabs some day..maybe some time this week..maybe today!
hello, am program. do language in rust. make computer do. okay i go now.

sfan5
Moderator
Posts: 4094
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

\o/
Edit: My 888th Post! :D
Last edited by sfan5 on Mon Mar 19, 2012 14:03, edited 1 time in total.
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

sfan5 wrote:\o/
Edit: My 888th Post! :D
Gratz!
My game: RTMG
GENTOO USER

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

sfan5 wrote:\o/
Edit: My 888th Post! :D
YOU WIN 1 FREE INTERNET!
http://www.free-internet.name/
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
RabbiBob
Member
Posts: 335
Joined: Sat Jan 28, 2012 22:40
Location: /teleport 54,47,28
Contact:

by RabbiBob » Post

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. ... 747#p15747

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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. ... 747#p15747
yep..probobly going to work on this
hello, am program. do language in rust. make computer do. okay i go now.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests