SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-04 05:34:02

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

A Waldorf netinstall script

wget https://github.com/johnraff/cb-netinstall/archive/master.tar.gz
tar -xpf master.tar.gz
cd cb-netinstall-master
./install

Last edited by johnraff (2014-04-05 04:54:19)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-08-04 09:12:32

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: A Waldorf netinstall script

Nifty script. I will have to dig through it and try to understand the functions for myself smile

Offline

#3 2012-08-07 16:08:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Hi sunfizz - you were one of the people I was thinking of who'd already worked on this kind of stuff. Any advice you might have will be appreciated. smile

Those functions - most of them are about sending messages to a logfile and the terminal, with extra bits like ***WARNING*** tacked on or whatever. Just to save me from typing out the same code multi times. That big install_dir function just does the same as rsync or something, but also makes a record of all the files changed, in the hope of being able to undo it all later if necessary.

Offline

#4 2012-08-07 16:20:42

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: A Waldorf netinstall script

I love the idea. Thank you, John. This will open new opportunities for users to share their spins - simply by providing a link to pastebin or forum code (applist/sysfiles). Big +1! Calls for a future sub-section big_smile

Last edited by machinebacon (2012-08-07 16:21:43)

Offline

#5 2012-08-08 04:50:41

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Hi mb, thanks for the moral support! smile

It's still kind of messy at the moment, and extra bits of checking and logging keep getting added, but a lot of that is for bugfixing and the final version ought to be a bit simpler, at least from the end user's point of view.

Offline

#6 2012-08-08 10:28:56

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,131
Website

Re: A Waldorf netinstall script

I have not had chance to actually test it yet, but I really like what I see. Nice work, John, and thank you for sharing. smile

Offline

#7 2012-08-08 11:35:21

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: A Waldorf netinstall script

@john: looks very good! i skimmed through the script and i noticed all the logging functions, indeed a script as you describe, 'rough draft' kinda thing. can't try it out right now but i might be getting a spare PC in the near future, which will then be open for experimentation, and i'll be sure to check out the script by then!

Offline

#8 2012-08-08 11:57:44

el_koraco
#!/loony/bun
From: inside Ed
Registered: 2011-07-25
Posts: 4,749

Re: A Waldorf netinstall script

This is very high quality stuff.

Offline

#9 2012-08-09 01:30:08

pghjake
#! Member
From: Pittsburgh, PA, USA
Registered: 2009-02-07
Posts: 79

Re: A Waldorf netinstall script

Just did a new AMD64 wheezy install using the dual-arch netinstall image dated 8/4 and your script. I commented out the linux-image and linux-headers in the apps-to-install file since I had a shiny new 3.2.0-3-amd64 kernel. I had to change the libc6 to i386 rather than i686 as the i686 was not available. There are 3 versions of libboost-iostreams in the apps-to-install, but only 1.49.0 was available. With those changes the script ran through with no issues. Thanks so much!

Last edited by pghjake (2012-08-09 01:31:40)

Offline

#10 2012-08-09 06:02:23

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

@pghjake thanks for catching that!
My apps-to-install file was made by running 'apt-mark showmanual' on a freshly installed Waldorf, so of course it would have been an i686. I should mention somewhere that there's no support for AMD etc at the moment. In fact I'm a bit surprised it worked for you with only a couple of tweaks.

Going over the apps in that list is one little project ahead, but I want to try to make the resulting install as close as possible to the standard Waldorf.

Otherwise, atm the script seems to basically work, but it's still sort of fragile, easily upset by changes in the Debian repos etc, and things can get messed up if you run it twice in a row. Making it a bit more robust is the major aspect I'm thinking about right now.

Offline

#11 2012-08-09 12:48:32

pghjake
#! Member
From: Pittsburgh, PA, USA
Registered: 2009-02-07
Posts: 79

Re: A Waldorf netinstall script

You may want to consider adding your "recent files" and "places" scripts to the menu.xml file, since corenominal added them to the latest Waldorf spins. I put them in their own section above "Lock Screen" but you would probably like them near the top of the menu. :-)

Offline

#12 2012-08-09 18:17:43

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Now both corenominal and Debian have just upgraded I'll have to go back, reinstall Waldorf, update the sysfiles and apps-to-install in the script to match, then test it out on the new Wheezy beta 1 netinstaller.

This could take a few days, especially as I'm just about to go off on a little summer holiday...

Meanwhile the script itself is due to get a couple of tweaks, to make it a bit safer if things get interrupted half-way through eg if the user presses Ctrl+C.

Maybe next week some time... smile

Offline

#13 2012-08-09 19:46:53

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: A Waldorf netinstall script

This is a really nice project johnraff. Keep up the great work big_smile

Offline

#14 2012-08-17 00:20:32

zacharias
#! CrunchBanger
From: Tokyo 3
Registered: 2009-10-19
Posts: 105
Website

Re: A Waldorf netinstall script

gr8 work mate. thoug, is this valid also for amd64 versions? i ask this just out for curiosity, since ill be using a 386 version.
kudos

Offline

#15 2012-08-17 04:33:02

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Offline

#16 2012-08-18 17:39:39

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

I think it's now reasonably safe to try out, if anyone feels like giving it a go. If you hit an issue you can exit the script, tweak something and run it a second (or third...) time with no harm done.

I've just used it to install Waldorf in a virtualbox machine and it seems OK, except that apt-xapian-index eats all the memory (removed it). Hoping that's a Wheezy issue that wil get fixed.

Anyway, eager to hear of any bugs you might find!

Offline

#17 2012-08-20 22:45:29

zacharias
#! CrunchBanger
From: Tokyo 3
Registered: 2009-10-19
Posts: 105
Website

Re: A Waldorf netinstall script

Offline

#18 2012-08-21 04:34:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Thanks zacharias - any feedback will be appreciated! smile

Offline

#19 2012-08-21 07:46:00

rich
#! Junkie
From: barcelona
Registered: 2009-01-26
Posts: 416
Website

Re: A Waldorf netinstall script

Just saw this, nice work johnraff smile

Have a whole bunch of Wheezy VMs at the moment for various things, am looking forward to testing this on a fresh netinstall.

Incidentally, i've created similar build scripts for custom Debian's, and have also used the same system where the build files were in a downloadable tar.gz.

A nice option is to add a switch where the person has the option to cp from a USB Pendrive as well as wget from a server. Useful for systems with unusual Nic (Non-Free) Firmware and therefore no internet access after the netinstall.

May try and find some free time to adapt this to 64bit as well.

Thanks for sharing.

Last edited by rich (2012-08-21 07:51:30)

Offline

#20 2012-08-21 18:53:40

zacharias
#! CrunchBanger
From: Tokyo 3
Registered: 2009-10-19
Posts: 105
Website

Re: A Waldorf netinstall script

Offline

#21 2012-08-22 03:44:57

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Last edited by johnraff (2012-08-23 04:57:43)

Offline

#22 2012-08-22 03:55:11

omns
#! wanderer
From: ~/
Registered: 2008-11-25
Posts: 5,131

Re: A Waldorf netinstall script

Hmm, it wouldn't be too hard to come up with a 64bit version. If I get time I'll have a look smile

Offline

#23 2012-08-22 04:17:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

Offline

#24 2012-08-22 17:21:55

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

# on Waldorf
apt-mark showmanual > apps_to_install
# on Target
apt-get $( < apps_to_install )

Last edited by johnraff (2012-08-23 04:55:12)

Offline

Help fund CrunchBang, donate to the project!

#25 2012-09-03 16:10:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: A Waldorf netinstall script

wget http://dl.dropbox.com/u/10808732/cb-barebones-netinstall.tar.gz
tar -xpf cb-barebones-netinstall.tar.gz
cd cb-barebones-netinstall
./install

Last edited by johnraff (2012-09-23 15:48:37)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo