ENIGMA Forums

General fluff => General ENIGMA => Topic started by: SuperRiderTH on June 03, 2014, 06:52:25 PM

Title: I made a install script for Ubuntu.
Post by: SuperRiderTH on June 03, 2014, 06:52:25 PM
I made a script that checks for dependencies.
It requests to install them using apt-get if needed, clones the git to enigma-dev, and creates a desktop shortcut.

https://dl.dropboxusercontent.com/u/88790752/InstallEnigma.sh

https://github.com/SuperRiderTH/enigma-linux-installer

This works in Ubuntu, along with distros that use apt-get. It can be easily modified to work on other distros if needed, but I have no experience using other package managers so they are not implemented.

Video showing it in action:
https://www.youtube.com/watch?v=SRpq4p1_zaU (https://www.youtube.com/watch?v=SRpq4p1_zaU)
Title: Re: I made a install script for Ubuntu.
Post by: Goombert on June 04, 2014, 12:40:44 AM
Awesome, maybe we can use your assistance when building a package for the software center.
Title: Re: I made a install script for Ubuntu.
Post by: SuperRiderTH on June 05, 2014, 08:06:20 PM
It might be possible to make a deb file that runs the script. I have not looked into it, but since a desktop icon can make a terminal appear, then we could do it that way. Could just make a package that is the installer script, and make it remove itself upon completing the installation.

I put the script on GitHub for bug reporting, and other GitHub fun. (And so I don't lose it...) I also added a question to the script that asks if the user wants to install libcurl to use network functions.

https://github.com/SuperRiderTH/enigma-linux-installer
Title: Re: I made a install script for Ubuntu.
Post by: Rusky on June 05, 2014, 08:52:42 PM
The problem with just running a script as a .deb is then you can't upgrade or uninstall the package.
Title: Re: I made a install script for Ubuntu.
Post by: SuperRiderTH on June 05, 2014, 10:52:45 PM
Well then how about running the installer script, then having an launcher script that checks the git on startup, then starts LateralGM?
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on June 05, 2014, 11:01:25 PM
Well then how about running the installer script, then having an launcher script that checks the git on startup, then starts LateralGM?

That would be almost ideal, add a script that unistalls and cleans your system of every enigma file and folder, and is almost as good as having a true .deb on launchpad.
Title: Re: I made a install script for Ubuntu.
Post by: Rusky on June 05, 2014, 11:11:39 PM
I infinitely prefer true packages to project install scripts on Linux, to the point that if it's not a project I know much about I will simply ignore it if it requires an install script. Having a package, while inconvenient to maintain, makes me as a user trust that it won't screw everything up because the dependencies will be managed correctly, I'll have tools to see exactly what it did, I'll be able to trust the uninstaller not to leave junk lying around, and it will automatically get upgraded as part of my normal OS maintenance.
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on June 05, 2014, 11:18:53 PM
I infinitely prefer true packages to project install scripts on Linux, to the point that if it's not a project I know much about I will simply ignore it if it requires an install script. Having a package, while inconvenient to maintain, makes me as a user trust that it won't screw everything up because the dependencies will be managed correctly, I'll have tools to see exactly what it did, I'll be able to trust the uninstaller not to leave junk lying around, and it will automatically get upgraded as part of my normal OS maintenance.

Except if it's wine, which forces you to rm -rf .wine in order to remove it's configuration files. And also (if I'm not mistaken) SPE (Stany's Python Editor) and Spyder do the same thing, install other programs (XRCE and pycrust) and force you to uninstall them by shear luck and a lot of balls.
Title: Re: I made a install script for Ubuntu.
Post by: Rusky on June 05, 2014, 11:23:38 PM
Typically, uninstalling something will leave its configuration files and other similar things. This is fine with me, because there's also typically a separate option in the package manager to remove configuration files as well. I have never encountered a program that I installed through the package manager of any distro that gave me any trouble uninstalling or removing config files.
Title: Re: I made a install script for Ubuntu.
Post by: SuperRiderTH on June 05, 2014, 11:57:52 PM
I changed the installer so that it installs ENIGMA to a folder called ENIGMA like the Windows portable zip. I also made it create a LaunchEnigma.sh file which checks for git updates then launches LateralGM. The desktop shortcut is also modified to launch the LaunchEnigma script.
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on June 06, 2014, 12:26:55 AM
Typically, uninstalling something will leave its configuration files and other similar things. This is fine with me, because there's also typically a separate option in the package manager to remove configuration files as well. I have never encountered a program that I installed through the package manager of any distro that gave me any trouble uninstalling or removing config files.

Really? then you haven't tried wine or any of the other I mention, or if you did then you haven't uninstalled them, I tell you even after checking uninstall completely including configuration files they leave behind traces, in the case of SPE it leaves one program and you have to hunt it down and then uninstall it, and it doesn't apear in the menu anymore even but it is there (Been there done that).
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on June 06, 2014, 12:28:32 AM
I changed the installer so that it installs ENIGMA to a folder called ENIGMA like the Windows portable zip. I also made it create a LaunchEnigma.sh file which checks for git updates then launches LateralGM. The desktop shortcut is also modified to launch the LaunchEnigma script.

The only problem with the git updates is that they may breack something, but even so great job and many thanks will be trying the latest version of your script real soon.
Title: Re: I made a install script for Ubuntu.
Post by: Rusky on June 06, 2014, 10:10:37 AM
I use wine all the time. How are you uninstalling it? The fact that you say "checking uninstall completely including configuration files" makes me suspect it's not through your distro's package manager.

As for git updates, it might be nice if the auto updater didn't just update to master, but only to releases tagged as stable. At this point that's not really practical for people to check everything on every commit they make, but if there were some automated testing or even just continuous integration testing to check that it *builds* at all, we could auto tag those commits.
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on June 06, 2014, 05:29:34 PM
I use wine all the time. How are you uninstalling it? The fact that you say "checking uninstall completely including configuration files" makes me suspect it's not through your distro's package manager.

It doesn't matter how I uninstall wine, synaptic, apt-get or aptitude, it always leaves it's configuration files around and even other things, to really get rid of everything you must do sudo rm -rf .wine. You can check it really easy, install something you don't really want, then uninstall wine, then reinstall.

As for git updates, it might be nice if the auto updater didn't just update to master, but only to releases tagged as stable. At this point that's not really practical for people to check everything on every commit they make, but if there were some automated testing or even just continuous integration testing to check that it *builds* at all, we could auto tag those commits.

My point exactly, if every time I start enigma it autoupdates the update could (potentially) breack something, if we had branches (stable, testing, development) then it would not matter at all.
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on July 18, 2014, 02:14:10 PM
The old version does not install nor create desktop sortcut  :(
Title: Re: I made a install script for Ubuntu.
Post by: SuperRiderTH on August 25, 2014, 06:49:43 PM
It should create a .desktop file inside the ENIGMA folder created in the same directory as the script. I chose to put the shortcut there so people can do whatever they want to do with it.
Title: Re: I made a install script for Ubuntu.
Post by: time-killer-games on August 25, 2014, 10:01:00 PM
I don't want my clean Ubuntu install junked up in 1 week so it sounds like an install script isn't a good idea.
Title: Re: I made a install script for Ubuntu.
Post by: edsquare on August 25, 2014, 10:55:52 PM
It should create a .desktop file inside the ENIGMA folder created in the same directory as the script. I chose to put the shortcut there so people can do whatever they want to do with it.

Okey thanks anyway, I tought it would really install and create desktop and menu entries.

I don't want my clean Ubuntu install junked up in 1 week so it sounds like an install script isn't a good idea.

Exactly right TKM. (Y)