LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2012, 05:36 AM   #1
brian_mk
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Installing debian package from USB without a network


Here's the problem...

We have some machines controlled from an 'embedded' PC motherboard running Ubuntu 10.04 server.
The machines normally operate without a system console or keyboard and have a private network connection.
The problem is that if a motherboard needs to be replaced in the field, a new Ethernet driver package needs to be installed.
We would like to find a way to install the debian package without the network in fool proof way.

Without Ethernet, the only real option seems to be USB flash.
Because the system is running ubuntu server, USB devices are not auto mounted (usbmount is not installed).
To complicate things further, some machines have a USB flash license dongle.
That means to do the install manually the field service guy would need do something like:-
* Connect a system console and USB keyboard.
* Unplug any USB dongle(s).
* Plug in the USB stick with the driver.
* 'sudo mkdir -p /media/usb'
* 'sudo mount /dev/sdb1 /media/usb0'
* 'sudo dpkg -i /media/usb0/<package name>'
* 'sudo umount /media/usb0'
* Unplug the USB stick
* Reconnect USB dongle(s).

The field service manager doesn't like this because
1) It means giving root permissions to the service engineer.
2) The service engineer could make mistakes when entering the commands.

The only alternatives I can come up with are:-

1) Replace the system disk at the same time as the motherboard.
The new disk will have the required driver already installed.
This would mean having to restore the machine config and calibration files from a backup.
It also means the service engineer will need to carry a stock of replacement disks + software.

2) Create a bootable USB flash drive containing a script that would automatically run when the system is booted.
The field service manager likes this idea because it could be made fully automatic.
It does mean that the PC BIOS config may need changing to enable booting from USB.
This option effectively requires creating a custom flash bootable Ubuntu live.
How easy is this? From what I have read, it looks like a fair amount of work.
'Remastersys' looks like a possibility, but it may be a bit of an overkill.
Another option may be to add the required package and installer script using the 'uck' Ubuntu Cusomization Kit.

Is there a simpler solution?
It is possible to do something from grub?

Last edited by brian_mk; 07-01-2012 at 03:32 AM.
 
Old 07-02-2012, 11:23 AM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
You may want to take a look at mondoarchive. Works from cd or usb.

On a regular machine, once the restore cd has been made, you place the cd in the drive, reboot the nachine and when it comes to the prompt you tell it to nuke.

That gives you a full image restore and or backup solution.

http://www.mondorescue.org/
 
Old 07-03-2012, 04:23 AM   #3
GreggT
Member
 
Registered: Jan 2012
Distribution: Debian, CentOS, Fedora, TinyCore
Posts: 45

Rep: Reputation: Disabled
This may help you by making it so you don't have to worry about changing the bios
(normally systems are configured to boot from cd drive then HDD, if not scratch that)
also you usually are able to F12 or something to open a "boot screen" where cd/dvd will almost always be available.. usb rarely is

http://www.plop.at/en/bootmanager/download.html

this enables you to select where to boot from, works even if the motherboard doesn't support USB, I have used it in some situations where I was unable to change the BIOS settings. It may give you some help with your goal.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing debian package ashmita04 Debian 2 07-19-2007 09:50 AM
Network Installing Debian Linux With USB. Magefire Linux - Newbie 1 03-05-2006 03:32 AM
Installing debian package in slackware TomalakBORG Linux - Software 1 06-16-2005 07:56 PM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM
Installing a package on Debian. crash89 General 10 08-03-2003 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration