You are not logged in.

#1 2016-04-08 14:36:02

nashjc
Member
Registered: 2016-04-01
Posts: 22

Remastering Bunsen

I've been searching the forums but have not found any guide to remastering Bunsen.

1) Is there such a guide?
2) Are there scripts? I've tried respin (from linuxrespin.org -- there seem to be 2 projects).

For info, the deb files from linuxrespin don't seem to work, but I managed to get the zip file from Github and put the files in the /etc and /usr  folders as indicated by the file structure. The script "worked" and produced an iso, and it even started to boot, then got a kernel panic. So I'm close, but no cigar. Also am a scientific computing type, not a kernel hacker, so there may be information in the logs that I don't comprehend properly.

I'm willing to prepare a remastering guide or moderate a wiki, as I've a need for customized #! or equivalent, and did this easily with Remastersys on Virtualbox in 2012. Pretty sure it's a matter of getting the details right.

Perhaps better to go off-list and post when there is concrete information. ( nashjc _at_ ncf.ca )

JN

Offline

#2 2016-04-08 16:17:45

damo
....moderator....
Registered: 2015-08-20
Posts: 4,385

Re: Remastering Bunsen

There is Crunchmaster - for making a Live iso from your own Crunchbang install. It was made for Waldorf/Wheezy so will probably need some fiddling to make it current for BL.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2016-04-08 16:23:41

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

Thanks for quick reply. I'll give it a spin. Probably will have some glitches, but will see if I can fix.

JN

Offline

#4 2016-04-08 16:30:00

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

The tar files seem to have gone AWOL. At least those linked from
http://crunchbang.org/forums/viewtopic.php?id=38246

Do you have another link? I see that BLenderer is the author.

Best, JN

Offline

#5 2016-04-08 17:25:18

damo
....moderator....
Registered: 2015-08-20
Posts: 4,385

Re: Remastering Bunsen

nashjc wrote:

The tar files seem to have gone AWOL. At least those linked from
http://crunchbang.org/forums/viewtopic.php?id=38246

Do you have another link? I see that BLenderer is the author.

Best, JN

Sorry about that, copybox is about to be discontinued, so many of my post links will be out-of-date. Try this: https://dl.dropboxusercontent.com/u/532 … .1_all.deb

You can use your archive manager to extract the files - I expect the DEBIAN/control file may need editing. It can be installed (at your own risk!) with gdebi.

NB My username isn't BLenderer hmm


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2016-04-08 18:38:33

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

News! And not about breaking.

All I did was
- launch my customized BL 686 version in VirtualBox,
- attach shared folder
- sudo dpkg -i vmshare/crunchmaster.deb   # name changed here for simplicity
- sudo apt-get install -f # to fix the dependencies. There were some "mismatch" messages. Ignored for now.
- sudo crunchmaster dist # could have run the gui, I realized later.
WAIT!
- cp /home/crunchmaster/crunchmaster/crunchmaster-live.* /home/dancing/vmshare/ # user is "dancing"

Then go into VirtualBox where I have a "test" machine and set the CDROM to crunchmaster-live.iso and
Start!

Came up fine to a login -- then I had a bit of a time until I went into the original machine and looked at the /etc/crunchmaster.conf and found default user is "live". That's also the pw (3rd guess). And some of my customizations are missing, so I'll need to do a bit of work. However, the alsaplayer works, so does Thunar.

I think it will be sortable, and possibly the hooks are there already and this first try simply missed them. Many thanks.

Follow on: It seems this is worth documenting and packaging and being part of the Bunsen distro. I'm no debian packager, but am quite good at documenting and tidying. Perhaps interested parties can post here and we'll see what can be done.

Cheers, JN

Offline

#7 2016-04-08 18:44:17

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Remastering Bunsen

Do you want to remaster BunsenLabs to install your remastered iso, or just to see how your remaster (or crunchmaster) works in live mode?

Last edited by nobody0 (2016-04-08 18:46:46)

Offline

#8 2016-04-08 19:11:33

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

I'm preparing a custom live-iso / live-usb that can be used with (almost) any laptop and a decent amplified speaker to play music, display instructions, and rip CD tracks (if drive available) for folk dancing. A colleague has been using one I made in 2012 but new laptop doesn't have sound. I suspect my drivers are too old. So I wanted to remaster with more up-to-date kernel etc. Some details below on the config.

Also interested in other speciality live-USB ideas, e.g., I work with R, and a canned and sane setup for students would be useful. Suspect other people have similar interests.

Thus I want to see the availability of a reliable tool for doing this, and willing to put in some work. I can test, document, and do some script tweaking, as well as some config stuff. I don't claim to be much of a specialist in bash, though I write a lot of small scripts. I don't use python (though am fairly good with perl). Also very limited gtk expertise. But over the years, I've written a ton of software, and a lot of it is used inside different computational packages that are very widely employed. Was also voting member of IEEE 754. Have even written modem drivers in 8080 ASM for an acoustic coupler -- never again! Collaborating on a remaster tool will be enjoyable by contrast.

Rest of post is about the target design, to illustrate the need, but not about the remastering.

The dancebox usb is designed to come up with Thunar in the Music directory in list mode. This directory is actually a mountpoint for a separate partition on the USB (I use <1GB for OS, rest of a 16 or 32 for music, which has only a sample mp3 and some sample dance instructions. I've managed with two FAT32 partitions on a couple of examples, so people can, if really necessary, use a Windows machine to load music. I use alsaplayer for playing music because it allows keyboard shortcuts to start and stop tunes which is really needed in a hall where one is busy. And one of our callers is blind. Also alsaplayer can slow or speed the music (keys Q and T), which is helpful. I use a simple script to run cdparanoia and lame to rip tracks and put them into the right place. I'm sort of thinking of adding ffmulticonverter, as there is now some interesting music on YouTube and elsewhere, and it's useful to convert to plain mp3. Otherwise, I want to keep the live-USB lean and mean. I've added conky menu items and they display on the main screen. Also custom splash and colour. Minor stuff, but useful so people have an idea what it's about.

Best, JN

Offline

#9 2016-04-08 19:48:53

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Remastering Bunsen

^ In other words, you need a live configured iso off Bunsenlabs in persistent mode in your usb stick. It won't be an installable live iso, though, as there is no installer you can use from BunsenLabs.

Offline

#10 2016-04-08 20:28:50

damo
....moderator....
Registered: 2015-08-20
Posts: 4,385

Re: Remastering Bunsen

ostrolek wrote:

^ .... It won't be an installable live iso, though, as there is no installer you can use from BunsenLabs.

Well, crunchmaster (a remastersys re-write) can install Crunchbang from a live remastered iso, so it should do the same for BunsenLabs with some tweaking to bring it up-to-date.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#11 2016-04-08 22:49:21

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Remastering Bunsen

@nashjc: have a look at Refracta:
http://www.ibiblio.org/refracta/

They have a refracta2usb tool that will create a live USB from your system.

I think it should work with BunsenLabs wink


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#12 2016-04-09 14:18:03

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

The refracta tool might be useful. In a fairly wide search (which I plan to write up in a few weeks), I'd looked at refracta, but got a warning from the latest stable iso when I booted it that it was "very old" and to upgrade. The date on the file was, however, early 2016, so not so old. And the "latest" failed to connect to VirtualBox and failed the md5 sum when I followed up the Vbox error by checking that. So I had set refracta aside, but will hopefully get back to it, or at least the tools.

Since crunchmaster seems to be almost there for my current need, I'll pursue that for a day or so.

BTW, I like the posting "Don't Break BunsenLabs", which is more general than Bunsen, because the reasons for not doing the dangerous things are explained. In the R project, we get lots of trouble when folk use non-standard infrastructure then complain about what turns out to be their own mess. On the other hand, doing the dangerous things in a virtual setup can be useful for learning. Just make sure you can blow it away and start over.

Cheers, JN

Offline

#13 2016-04-10 10:45:15

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Remastering Bunsen

damo wrote:
ostrolek wrote:

^ .... It won't be an installable live iso, though, as there is no installer you can use from BunsenLabs.

Well, crunchmaster (a remastersys re-write) can install Crunchbang from a live remastered iso, so it should do the same for BunsenLabs with some tweaking to bring it up-to-date.

Would you try and let us know, if the Debian installer in BunsenLabs would install your remastered iso?

Offline

#14 2016-04-10 10:57:08

damo
....moderator....
Registered: 2015-08-20
Posts: 4,385

Re: Remastering Bunsen

ostrolek wrote:

....
Would you try and let us know, if the Debian installer in BunsenLabs would install your remastered iso?

??
Remastersy/Crunchmaster uses an install script, it doesn't use the Debian installer,


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#15 2016-04-10 11:24:25

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Remastering Bunsen

damo wrote:
ostrolek wrote:

....
Would you try and let us know, if the Debian installer in BunsenLabs would install your remastered iso?

??
Remastersy/Crunchmaster uses an install script, it doesn't use the Debian installer,

I know how remastersys works. It can be used even today, with some changes for Debian and Ubuntu and their derivatives. You can create a live iso off your installed BunsenLabs, but if you want to install it, you need an installer, which won't be there if you remaster an installed BunsenLabs or Crunchbang. The Debian installer is not useful for a remastered iso off an installed BunsenLabs, or Crunchbang.

Offline

#16 2016-04-10 11:40:59

damo
....moderator....
Registered: 2015-08-20
Posts: 4,385

Re: Remastering Bunsen

ostrolek wrote:

...
I know how remastersys works. ... but if you want to install it, you need an installer, which won't be there if you remaster an installed BunsenLabs or Crunchbang. ...

Since you are good at poking around in debs, then have a look in the crunchmaster package. You may find `/usr/bin/crunchmaster-installer` and `/usr/bin/live-install`


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#17 2016-04-10 12:18:49

nobody0
Disabled account
Registered: 2015-09-29
Posts: 664

Re: Remastering Bunsen

damo wrote:
ostrolek wrote:

...
I know how remastersys works. ... but if you want to install it, you need an installer, which won't be there if you remaster an installed BunsenLabs or Crunchbang. ...

Since you are good at poking around in debs, then have a look in the crunchmaster package. You may find `/usr/bin/crunchmaster-installer` and `/usr/bin/live-install`

Sure, the old remastersys installer was quite good. Our pals in Vsido still use it, I think. I use a tweaked version of an installer created by Ikey Doherty, which he created for LMDE.
Would be nice to see an installable BunsenLabs remaster by you or someone else. I won't do it.

Last edited by nobody0 (2016-04-10 12:19:10)

Offline

#18 2016-04-11 15:22:52

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

After a few glitches, got a more or less workable solution with crunchmaster. I made settings in /etc/crunchmaster.conf, and put some material in the directories in /etc/skel/ and /usr/share/bunsen/skel to provide files I want on the live distro. Here are a few comments and queries.

1) live-install: I tested that this starts from a USB, but did not let it continue beyond choosing NOSWAP as I did not want to mess up the working machine. I've an old box that may work (may also be too old -- non-pae).

2) I'd like Thunar to start in detailed list mode. I've tried setting in /etc/skel/ and /usr/share/bunsen/skel/ in the .config/Thunar/accels.scm. Some web pages suggest there's a thunarrc, but I cannot locate this. Suggestions?

3) I got into trouble with a LIVECDLABEL that was too long, and the iso was not created. However, this could be checked before all the time is spent squashing the files etc. Will look into doing this. Perhaps there's other such checks that could be done early. However, for the moment, this is a known issue and solved.

4) Do I need to populate both /etc/skel/ and /usr/share/bunsen/skel/?

5) I tried setting /etc/skel/.config/nitrogen/bg-saved.cfg to use a particular background file. However, eventually I just named that file as the first file (I kept the name) that appeared in
/usr/share/backgrounds/bunsen/bunsen-images/bl-default/ which is bl-flame-text-1920x1200-centre.png. So I copied dancebox.png to that file. I've probably attempted to set the filename in the wrong config file.

6) Thunar seems slow to launch the first time. Suspect I have the config files mis-specified (which may be affecting #3 above).

7) Where in crunchmaster are the live files copied to the cd file set? I'm getting some files I don't want (e.g. Virtualbox Extension stuff because I'm running in vbox for a lot of this), and I'd like to document how fine-grain copying could be done. My bash skills are in the "basic-but-effective" category, so some of the sed/awk stuff gets away from me.

glasses On my VM, the crunchmaster-gui seems to not work correctly. If someone asks in about six weeks (I've some obligations in May), I'll do some testing and try to fix.

In any event, thanks very much to damo for crunchmaster.

Once I finish a couple of things, I'll do some more work on the write-up, which will cover some of my other experiments and attempts.

Cheers, JN

Offline

#19 2016-04-11 23:21:24

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

Another glitch.

Made a live-USB which boots fine. Left it "on" during dinner and came back to blank screen. On hitting Shift, got a login screen. Turns out the username is my new one (dancing), but after several tries found the pw is 'live', whereas the VM which crunchmaster used was 'music'.

So I need to find where the passwd is set by crunchmaster if anyone knows this. It appears also that crunchmaster uses default Bunsen settings for power management, which I'd like to adjust. The creating VM settings clearly aren't carried over.

Cheers, JN

PS. For info, I can create a 1GB partition for the live USB image (FAT32) and a second one to the rest of the USB drive for user to load music (I'm not wanting to put copyright material on the device, so the user should load their own). This gets mounted and is visible in initial Thunar display. Have not tried in a Windows box yet.

Offline

#20 2017-10-26 18:21:49

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

1.5 years later and I have found I can remaster Deuterium with Crunchmaster script (I'll be happy to share -- ask as I'd like to also follow up if there are errors). I wanted to see if it would boot EFI as well as legacy. No joy despite many different attempts. Does anyone have any experience / success? It would be nice to have things boot both ways. FYI I used 32 bit pae image so it will run on a couple of old netbooks I have. It boots there fine.

JN

Offline

#21 2017-10-26 19:19:13

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

Offline

#22 2017-11-10 03:52:11

phil_in_la
New Member
Registered: 2017-11-10
Posts: 1

Re: Remastering Bunsen

Hi. I'm running Bunsen Hydrogen on x86-64, and I would like to make a customized live CD for one of my computers that's getting a little flaky. Do you have the modified version of crunchmaster anywhere, and would I have to use the 32 bit version, or can it be used for x86-64?

(I also figured that while I'm at it, I'd suggest a name change... it seems kind of obvious to call it 'bunsenburner.'

Just an idea.

Offline

#23 2017-11-10 07:12:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Remastering Bunsen

I used this method to remaster our ISO image:

https://wiki.archlinux.org/index.php/Re … nstall_ISO

For BunsenLabs, the filesystem tree is at live/filesystem.squashfs and the label can be found by using `blkid` on our image.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#24 2017-11-10 13:22:37

nashjc
Member
Registered: 2016-04-01
Posts: 22

Re: Remastering Bunsen

I'm in touch with phil_in_la and will (not quite immediately I'm afraid) take a look at the archlinux item.

Suggest phil and I (and anyone who wishes to join in) share ideas and that when the dust settles we write up our experiences and recommendations to help others.

JN

Offline

#25 2017-11-10 23:05:10

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Remastering Bunsen

OK, here is how I did it...

Dependencies:

sudo apt install squashfs-tools genisoimage syslinux-utils
Method

First download the ISO image and mount it somewhere convenient:

sudo mount bl*.img /mnt

Then copy the contents to "$HOME":

mkdir -p ~/iso
cp -a /mnt ~/iso/remix

Now we need to unpack the root filesystem used in the live environment:

cd ~/iso/remix/live
sudo unsquashfs filesystem.squashfs

The tree is expanded in the squashfs-root directory and we need to chroot into it to change it:

for i in proc sys dev dev/pts; do sudo mount --bind /$i squashfs-root/$i; done
sudo chroot squashfs-root /bin/bash

Any desired alterations can then be carried out from the chroot environment — install or remove packages and make configuration file changes as desired.

Remember to source the shell configuration files to get $PATH &c working:

. /etc/profile && . ~/.bashrc

For the BunsenLabs live desktop, modify the files in /usr/share/bunsen/skel to change tint2, openbox and all the others wink

Once the changes are done, exit the chroot and re-pack the filesystem:

exit # or <Ctrl+d>
sudo rm filesystem.squashfs
sudo mksquashfs squashfs-root filesystem.squashfs

If the kernel has been updated or changed, copy the new version to ~/iso/remix/live/ along with the associated initial ramdisk:

sudo cp squashfs-root/{vmlinuz,boot/initrd*.img} .

And then clean up:

sudo rm -r squashfs-root

Finally, generate the new ISO image:

cd ~/iso/remix
genisoimage -l -r -J -V "BUNSENLABS_HYDROGEN" -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -c isolinux/boot.cat -o ../remix.img ./

The resulting image can be burned directly to a CD or DVD but it needs to be "treated" before flashing to a USB stick:

isohybrid ~/iso/remix.img

With the usual method for the transfer:

sudo cp ~/iso/remix.img /dev/sdX

All done!

hth

Last edited by Head_on_a_Stick (2017-11-17 23:26:52)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

Board footer

Powered by FluxBB