FreeEMS Quick Start Script Idea

A place for small project requests from the team to exist and grow into something fully fledged and useful to the masses.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

FreeEMS Quick Start Script Idea

Post by Fred »

https://github.com/fredcooke/FreeEMS-Quick-Start

I've documented it, and if I get a quite hour or two, I may even write it, but if someone else wants to have a crack, I can help and advise.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Preston
LQFP112 - Up with the play
Posts: 128
Joined: Fri Feb 26, 2010 5:26 am
Location: Aucks

Re: FreeEMS Quick Start Script Idea

Post by Preston »

I have a feeling that I maybe part of the inspiration for this :D

Seeing that I have freshly done a Debian install with all freeems tools and repos and will be doing it all again on my laptop this time, I'm a good candidate for this. + it will help with getting a better understanding of Debian and scripting in general.

I'll take a crack at this too!

Preston.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Quick Start Script Idea

Post by Fred »

Cool :-)

just a bunch of

cd here
cd there
make this
mvn that
sudo cp file file.back
sudo echo "blah" >> file
git clone bob
cd bob
git remote add xyz
git remote add abc
cd src
make blah

etc :-)

I'm happy to mentor as I have a very clear idea of how I want it to be.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Preston
LQFP112 - Up with the play
Posts: 128
Joined: Fri Feb 26, 2010 5:26 am
Location: Aucks

Re: FreeEMS Quick Start Script Idea

Post by Preston »

Alrighty then! will get onto it.

Preston.
johntramp
LQFP112 - Up with the play
Posts: 119
Joined: Sat Apr 24, 2010 1:42 am
Location: New Zealand

Re: FreeEMS Quick Start Script Idea

Post by johntramp »

You may also like to have a look at checkinstall for Debian distros. When I get to the stage to building firmware I will do a pkgbuild for Archlinux.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Quick Start Script Idea

Post by Fred »

That could be useful for the MTX part, but the Maven part is so clean and simple it's hardly necessary IMO. It's mostly about cloning sources and providing the latest versions of everything locally.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
johntramp
LQFP112 - Up with the play
Posts: 119
Joined: Sat Apr 24, 2010 1:42 am
Location: New Zealand

Re: FreeEMS Quick Start Script Idea

Post by johntramp »

I don't know much about maven; will you end up with orphaned files in your filesystem after an update of the tools?
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Quick Start Script Idea

Post by Fred »

It's a single directory that you plonk in /usr/local and add to your path, same as eclipse in that respect, very clean.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Quick Start Script Idea

Post by Fred »

This is a March 19 6am review of hash ea0539cd3298d0558700ea25cc0a4e46ba427cf1 from presto's copy

Preston: well if your bored then check out the script
Fred: good point, lets do that

mkdir >> mkdir -p FIX

for some systems git is wrong, use git-core which works on new stuff too, so.... DONE

Its' not an application cache, it's the apt cache FIX

Take the ***ing /Desktop/ BULL**** the **** out of that script, you ****ing bill gates **** sucker :-) DONE

>sudo ./autogen.sh
not sudo for that! only for the install. FIX

for the .bashrc stuff you're going to have a lot of shit to append to it, so put that shit in one file and cat it onto the end FIX
cat myAWESOMEfile >> .bashrc
done.

if you want a clicky thing you can symlink from desktop DONE

mkdir /usr/local/maven
ditch that, or the other - you only need one and inside it will be XYZ version and xyz version will get symlinked to maven3/ or maven, which ever you delete DONE AND FIX


i think git clone EVERYTHING up front, then build each one in sequence, quick ones first: firmware, then loader, then OLV, then mtx FIX

take that "clear" the **** out of there, lol, good bye history DONE

FreeEMS - Developers install script? call it what the URL calls it: FreeEMS Quick Start Script
it's not just for devs, its for everyone, devs can do this shit with their eyes closed. FIX

#git clone git://github.com/presto/freeems-scripts.git
what's going to go in there? why not just put it in the quick starts in a bin dir to copy into place DONE AND FIX

instead of mkdir -p ~/bin
just cp workspaces/quckstart/bin ~ FIX
then you can move the workspace mkdir right next to the cd and ditch the excess comment FIX

either sleep for 3 or ask, don't sleep and then ask.
actually, **** the "are you sure" ****[stuff], i think it's OK for the cutecom/kdiff, but the entire thing doesn't need it, they just read the README on github, if they didn't, **** them FIX

do the .bash rc part near the top, not the bottom FIX
do the kdiff/cutecom last

you dont need to create a log file, its a simple script, they can read it to find out what it did

No newline at end of file, add one :-p FIX

also, nail the mvn install before next time FIX
and the build sections for the other projects in the right order FIX

git pull git://github.com/FreeEMS/FreeEMS-Quick-Start.git
point this at your own copy until the rest of it is good, then we'll make it "live" on the other account and change the script to match
wait! that says git pulll, you have to assume that it's a clone situation, that's a light weight repo, no harm in putting a second one on disk even if they already have one DONE

Comments should be like this:
# Comment
Not like this:
#Comment
And not like this:
command # Comment FIX


6:52 AM me: ****ing sun is getting bright now boy :-) time to close eyes and ignore it. hit me up for the next script kiddy iteration
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS Quick Start Script Idea

Post by Fred »

Latest review of hash db3a9debfb2d3a8b2db36ba5be2ab123739a8074

Most stuff from last review not completed yet. Try to finish it before getting me to spend time on it again, please. Otherwise I'm burning overhead time updating and diffing and fucking around when only part of the stuff is there.

Bonus points for adding dialout group to user! WICKED

Asks for name of user and tries to configure git params, please remove, that's not required, we should be minimalist. :-(

updatedb is a file search indexing program, running that is A VERY weird B VERY time consuming C does nothing of value to either the user or us LOL, please remove. :-(

exsits >> exists

Use double spaces to separate blocks of script for better readabililty.

Fixes from above mostly seemed good :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply