You are not logged in.

#1 2017-10-27 23:54:09

Eumenes
New Member
Registered: 2017-10-27
Posts: 1

How do I install packages offline to a live CD environment?

Due to circumstances, until I get a new OS drive, I have to run from Live.
I can't use a wired connection all the time, so I have to use a Dongle.
The driver required has to be added using make file, which for some reason isn't included.

The packages I need are as follows: build-essential make autoconf libtool gcc gettext dkms

This however, omits their respective dependencies which will also be necessary.
Just one of these has almost 30 dependencies, and I can't find the quickest way to install them.
I've tried mainly synpatic and apt-offline, but run into errors and so far the closest I've gotten to a solution simply involved copying over the archive and list folders from /var/ which worked, however this breaks my dependencies.

I'm out of ideas, and for now I have to just settle for less.

Last edited by Eumenes (2017-10-27 23:54:36)

Offline

#2 2017-10-28 00:06:30

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,158
Website

Re: How do I install packages offline to a live CD environment?

We don't include build-essential, make, etc.. by default because, as you've discovered, they involve a lot of packages which many users won't need. They (development tools) are included as an option in the bunsen-welcome script which automatically runs on first-login after installing BunsenLabs.

Posting information on your dongle and the steps you're attempting to make it work might help get you running.

Last edited by hhh (2017-10-28 00:09:39)


I don't care what you do at home. Would you care to explain?

Offline

#3 2017-10-28 00:27:12

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,158
Website

Re: How do I install packages offline to a live CD environment?

What I'm thinking is that instead of running live, get online somehow, create a persistent USB and install what you need until your drive gets replaced. KNOPPIX is a Debian-based live distro that offers persistency OOTB...
http://www.knopper.net/knoppix/index-en.html

I created a BunsenLabs persistent USB a while back, YMMV...
https://forums.bunsenlabs.org/viewtopic … 6974#p6974


I don't care what you do at home. Would you care to explain?

Offline

#4 2017-10-28 00:57:20

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: How do I install packages offline to a live CD environment?

Also a good idea to have a usb bank if you dont have enough usb slots so you can create a perisistent usb as noted by HHH. Best 15 bucks i ever spent as i have dongles taking up most of the slots on my laptop.

Offline

#5 2017-10-28 11:32:06

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

I have built a custom version of the BL-H² ISO image with the requested extra packages, it seems to work fine.

I am uploading it now, it will take a few hours, I will post back with a link when it finishes.

Offline

#6 2017-10-28 12:28:32

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

Here is the link for the custom image:

https://drive.google.com/file/d/0Bw_fCZ … sp=sharing

Transfer the image to a USB stick with the usual method:

sudo cp bl-cusom.iso /dev/sdX; sync

Replace X with the letter assigned to the USB stick, run this command to investigate:

udevadm monitor -k | grep block

Then plug the stick in, the output should be something like

empty@Xanadu:~ $ udevadm monitor -k | grep block                                                   
KERNEL[9759.297667] add      /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/host6/target6:0:0/6:0:0:0/block/sdb (block)
KERNEL[9759.297735] add      /devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 (block)

So in that case, /dev/sdb should be used in the cp command, *do not* add a partition number to the command, adjust to fit your case.

EDIT: I've taken the opportunity to update all of the packages on the image so you have the latest version of Firefox (ESR), the most recent kernel updates and the fix for the wpa_supplicant vulnerability, this will make your "live" system *much* more secure.

Last edited by Head_on_a_Stick (2017-11-05 13:09:49)

Offline

#7 2017-10-28 14:08:14

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: How do I install packages offline to a live CD environment?

You are gentleman and a scholar Hoas.  cool

Offline

#8 2017-10-29 01:43:35

stevep
MX Linux Developer
Registered: 2016-08-08
Posts: 381

Re: How do I install packages offline to a live CD environment?

I will assume that the kernel headers are also included, since they are required. 

It should also be possible to compile the driver on another machine running the same exact kernel and then transfer it over to the isolated machine,  even better if it also has a -source package that can be used to build a deb with module-assistant.

The driver may also be included in a newer kernel, but that's another kettle of fish...what driver is it?

Offline

#9 2017-10-29 07:51:13

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

stevep wrote:

I will assume that the kernel headers are also included

You had me worried for a moment there but yes, the headers are included — more by accident than design though :8

Offline

#10 2017-11-05 10:54:10

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

The ISO link may go down for a bit, I'm going to transfer it to a dummy gmail account to free up some space on mine ]:D

Offline

#11 2017-11-05 13:09:07

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

Right, I've moved the image over and changed the link, I will just leave it there for now.

I'm also cooking up another custom image (for myself) so I will post a link for that too.

EDIT: https://forums.bunsenlabs.org/viewtopic.php?id=4334

Last edited by Head_on_a_Stick (2017-11-06 07:23:47)

Offline

#12 2017-11-14 03:11:30

Nap
Member
Registered: 2017-11-14
Posts: 8

Re: How do I install packages offline to a live CD environment?

If I may jump into this conversation.
Unlike the OP, I just need to add SSHD and have the boot menu proceed directly to the Live install, so no compilation requirements here.  The only special requirement I have is that the OS is built for an Atom processors that doesn't have PAE.

I am downloading Knoppix as I write this and will try it out, but if you are able to share a guide on how to build an iso that can be written to a USB, I would be grateful.  I have Windows, Mac OS, and Ubuntu here to use a the platform, and I can run the bl-Deuterium-i386+NonPAE_20170429 distribution (which doesn't meet the requirements I indicated above) on an Atom machine I have.

I downloaded "ADRIANE-KNOPPIX_V7.2.0gCD-2013-07-28-EN.iso" from http://mirrors.sonic.net/knoppix/knoppix-cd/ but its not bootable.  Would you know which is bootable?

Last edited by Nap (2017-11-14 03:56:42)

Offline

#13 2017-11-14 06:51:29

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: How do I install packages offline to a live CD environment?

^ I've added the link to my guide to your other thread Nap.

My guide is a hack though, Debian have an official guide for such things that will probably work better:

http://debian-live.alioth.debian.org/li … al.en.html

Offline

#14 2017-11-14 06:56:35

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: How do I install packages offline to a live CD environment?

Nap wrote:

share a guide on how to build an iso that can be written to a USB, I would be grateful.

https://forums.bunsenlabs.org/viewtopic … 536#p63536

Offline

#15 2017-11-14 07:27:13

Nap
Member
Registered: 2017-11-14
Posts: 8

Re: How do I install packages offline to a live CD environment?

Thanks!!
I have a few questions but I'll ask them in the other thread.

Offline

Board footer

Powered by FluxBB