LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-21-2005, 07:45 AM   #16
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49

The thing I installed was a non-graphical, command line thing; could have tried installing the corresponding graphical thing but am a bit hair shirt. (After all you have to be root - at least with my version - and it is wrong to be root inside X; at least this used to be the case - for security reasons.)

You could try that - a command line version.

Don't want to be irritating but on my Debian thing you'd just try: 'apt-get install motif'. At which point it'd call me a pervert and tell me to f-off.:-)
 
Old 11-21-2005, 02:36 PM   #17
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
That's what I'm trying to install as well. I'm just doing from a CLI in X. And since I happen to be there I use YaST to check for the motif package as well. May jump into a lower runlevel and try just CLI work on it. Try that way. Not that it exactly takes a long time to reboot. Just a hastle to do so.
 
Old 11-22-2005, 10:31 AM   #18
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Sorry - don't really understand. Thought motif was the sort of graphical toolkit for X, so why would the command line version of hotswap need it?

Is it possible the program just wants to ask some questions, though it didn't ask me any, and needs to put up some sort of display in X? So that motif is not used by hotswap but just the configure program? If so ctrl-alt-F1 or F2 or whatever, then run configure, should solve the problem?? Incidentally maybe don't have to be root to use hotswap, perhaps could do:

# chmod u+s /..../hotswap

add suid or whatever?? I'll try it.
 
Old 11-22-2005, 10:34 AM   #19
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
configure: error: This program requires Motif.
configure: error: /bin/sh './configure' failed for motif-frontend
flat4:/home/nd4spd/tmp/hotswap-0.4.0 #

---

To compile from sources you need headers (so that the program being compiled can use functions in these libraries). Most likely they are, in this case, named like this:

openmotif-devel 2.2.3-11 i586
openmotif-libs-devel 2.2.3-11 i586

You might not find both, but at least one. If you don't go to "www.rpmfind.net" and search for them - make sure the version number is correct.
 
Old 11-22-2005, 10:47 AM   #20
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Looking on www.debian.org the text version doesn't need motif but the gui version does.
 
Old 11-22-2005, 08:30 PM   #21
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Boo! Was thinking devl headers were necessary. Didn't see them right off. Will d/l and get back to ya on the outcome.

I only mess with X when I need graphical. Usually play in CLI when installing stuff. Makes life *much* easier.
 
Old 11-23-2005, 07:33 AM   #22
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
chmod u+s /usr/bin/hotswap does seem to make things swappable by anyone, should've thought of it before.
 
Old 11-26-2005, 01:46 PM   #23
Terje
Member
 
Registered: May 2004
Location: My own little world...
Distribution: Linux Mint, MX Linux, Slackware
Posts: 64

Rep: Reputation: 16
FWIW...

I'm running Slackware 10.1 (2.4.29-bareacpi) on both my desktop and Compaq Armada E500 laptop. On the laptop, I can hot swap the DVD-ROM and CD burner -- as long as the device is *not* mounted -- without any problems. I found this out for certain when I copied files from DVD to CD for a friend. I wasn't sure it would work before I did it, but I decided to try it anyway.

Terje
 
Old 11-26-2005, 07:53 PM   #24
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
I've tried to do it that way too. When I put the CD/DVD drive in, it's ok if I mount it. Taking it out, however, is another story. It doesn't like to unmount fully or something when I tell it to.

Been trying to get openmotif to work and add the devel version to it as well. So far it's not working. Missing dependencies and all. Slowly but surly I'm getting there (I think ... )

Oh, and regardless of whether or not I'm in X, it still bombs out on the motif-frontend error.
 
Old 11-28-2005, 11:52 AM   #25
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally posted by Nd4Spd
Oh, and regardless of whether or not I'm in X, it still bombs out on the motif-frontend error.
You sure you're not inadvertantly trying to install a GUI version, instead of a text version?

Debian, at least, has two versions and the text one doesn't need a motif like thing:
http://packages.debian.org/cgi-bin/s...le&release=all

Don't know for sure but does this page: http://dag.wieers.com/packages/hotswap/ contain both types in .rpm versions?
 
Old 11-28-2005, 11:58 AM   #26
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
I can't even remember where I found this version of hotswap. I just looked in the original tarball and it is a GUI version. Will go snag a non-gui version and recompile.

... month and a 1/2 later ... lol

Thanks for pointing out my obvious overlooking simple things. You'd get the impression I'd never used a computer before, let alone linux. Sheesh!
 
Old 11-30-2005, 11:12 AM   #27
Nd4Spd
Member
 
Registered: Jul 2004
Location: In a Ditch
Distribution: Slackware, Debian, SuSE, Fedora Core 4
Posts: 35

Rep: Reputation: 15
Holy Hotswap, Batman! It works.

I was able to use the tarball I had and with some careful ./configure options was able to get it working. I hotswapped in my IDE CD/DVD burner then back out and replaced with the battery, all without a kernel panic.

I'd say this one can be marked fixed & done. (about bloody time)

Thanks for all the assistance & guidence, lugoteehalt. Much appreciated.

Code:
For people looking to this thread later and wondering, 
just how Nd4Spd was able to pull this off using: hotswap-0.4.0.tar.gz

Unpack into a tmp directory
run:

#>./configure --disable-motif-frontend 
{or if you want to compile without kde}
--disable-kde-frontend

Then continue on with your usual make && make install
 
Old 12-01-2005, 09:54 AM   #28
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Good stuff.

Thanks for your help too. I didn't even know it was called hotswapping so was stuck from the start.
 
Old 12-01-2005, 12:02 PM   #29
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Here's a question:

Do either of you have hotswapping enabled in your kernel?

Last edited by Charred; 12-01-2005 at 12:07 PM.
 
Old 12-02-2005, 12:34 PM   #30
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally posted by Charred
Here's a question:

Do either of you have hotswapping enabled in your kernel?
....Now he tells us.

God knows, how does one tell?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux without cdrom or floppy novaforme Linux - General 9 08-29-2005 10:31 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
Mount Floppy CDRom swappable Drives jeffxor Mandriva 2 07-29-2004 11:27 PM
Cannot access cdrom and floppy drives navarre9 Linux - General 2 01-12-2004 11:58 AM
locks on cdrom and floppy drives yode Linux - Security 3 07-05-2002 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:48 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