Installer for ubuntu

For people working on the C++ code.
User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Installer for ubuntu

by jordan4ibanez » Sat Mar 03, 2012 07:21

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.
I've been gone for a long time
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Mar 03, 2012 08:15

features i'm going to include:
updater
check for updates
fresh installer (deletes everything but map)
I've been gone for a long time
 

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

by RabbiBob » Sat Mar 03, 2012 09:26

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: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Mar 03, 2012 09:37

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
I've been gone for a long time
 

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

by JSonic » Sat Mar 03, 2012 14:11

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: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Mar 03, 2012 14:24

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
I've been gone for a long time
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Mar 03, 2012 19:21

will hopefully be making one for python so i can include gtk :)
I've been gone for a long time
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Mar 03, 2012 21:43

should i keep this as bash?
I've been gone for a long time
 

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

by cosarara97 » Sat Mar 03, 2012 22:00

I think python is better
:D
 

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

by JSonic » Sun Mar 04, 2012 08:49

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 » Tue Mar 13, 2012 09:17

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 » Tue Mar 13, 2012 09:23

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 » Tue Mar 13, 2012 09:26

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: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Tue Mar 13, 2012 12:04

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
I've been gone for a long time
 

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

by sfan5 » Tue Mar 13, 2012 13:40

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

by Death Dealer » Tue Mar 13, 2012 14:49

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 » Sun Mar 18, 2012 11:00



Use github please, also I may do some help(if you will add into collaborators).
My game: RTMG
GENTOO USER
 

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

by sfan5 » Sun Mar 18, 2012 11:25

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

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Mar 19, 2012 14:02

i'll add in colabs some day..maybe some time this week..maybe today!
I've been gone for a long time
 

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

by sfan5 » Mon Mar 19, 2012 14:03

\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 » Mon Mar 19, 2012 14:36

sfan5 wrote:\o/
Edit: My 888th Post! :D

Gratz!
My game: RTMG
GENTOO USER
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Mar 19, 2012 14:46

sfan5 wrote:\o/
Edit: My 888th Post! :D

YOU WIN 1 FREE INTERNET!
http://www.free-internet.name/
I've been gone for a long time
 

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

by RabbiBob » Wed Mar 21, 2012 16:48

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
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Apr 07, 2012 03:16

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
I've been gone for a long time
 


Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 1 guest