LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   extract modem and printer driver zips (https://www.linuxquestions.org/questions/linux-software-2/extract-modem-and-printer-driver-zips-306507/)

kapalka 03-26-2005 11:48 PM

extract modem and printer driver zips
 
I am working with Mephis and have a z42 printer and Intel 536ep modem

I have drivers for my modem and printer sitting on my desktop. When I right click on their icons, I see several options like: "create gzipped archive, create bzipped archive and create zip archive." Plus
extract to
Extract here
It would appear that if I was in the root directory, that I might be able to use these to create modem and printer files.
If this be true, can anyone tell be the path?
Which create or extract choice?
What do I do then to create the file and move on?
Thanks,
Ron

davcefai 03-27-2005 02:26 AM

What are the filenames? You might need to move them elsewhere, extract and install.

dalek 03-27-2005 03:37 AM

You !should! be able to extract them where they are but it may also require you to be root, assuming you are logged in as a regular user, you know not to login into the desktop as root right. :tisk:

If it says something about permissions, just open File Manager as root, super user, then extract from within konqueror.

You could also login into a console as root and do it that way. It is text though.

I know, there are too many ways to do things in Linux but at least you have options.

Let us know what you got there.

Later

:D :D :D :D

davcefai 03-27-2005 11:46 AM

Dalek,

I agree that it should be possible to extract them from the desktop. However the questioner may not b experienced enough to sort out the possible resulting mess and cope with changing to root in GUI environment.

Hence my suggestion to move the files.

dalek 03-27-2005 03:58 PM

Konqueror, as root, and midnight commander, under settings. That gives you a GUI for what you can use a GUI for and a console, shell, whatever for the command line stuff. I rarely use it but it is pretty cool to have.

He can install from anywhere but the permissions do make it hard to do sometimes. I have Konqueror set to come up with root permissions by default. If I plan to surf the web in some way I just hit the ignore button instead of putting in the password. It then gives me the permissions that are the same as the GUI, which is dale. That's me, Dale. :D

No matter where the files are, he still has to have permission and know the commands to install or run the file, whatever it is he has anyway. Where is he anyway??? :scratch:

So many options. :D

Later

:D :D :D :D :D

kapalka 03-28-2005 11:07 AM

Where am I?
 
Well, I was off and away from home since Sat. night and just now got back to the replies.
Thanks for the info, but maybe I can express my need in another manner that might be easier for you to answer:

I have the following directions that came with the modem driver:

1. login in as root
2. extract the archieve into a directory with
"tar -zxvf<archievename>.tgz
3. cd into the directory it created.
4. type make clean'
5. make 536
6. make install
This will create a /dev/modem device file. This file is used as an interface to modem by all applications: minicom, kppd, efax, etc. Please configure the applications to use /dev/modem if necessary.


Okay. Here is my understanding of each step:
1. I know how to do this
2. How? Do I open something first? Extract it into a directory implies that I have a directory open or a program that is setting one up for me. Please, more detail here.
3. cd means change directory in my dos mind. True? If so, do I just type in the new directory name?
4. Ok
5. ok
6. ok

This is all done at this stage? I just go back to user and try it out?

Thanks,
Ron.

dalek 03-28-2005 11:41 AM

When you extract the file, it will create a directory, usually with the same name but without the little part on the end. The command tar -zxvf will take care of all that. When you type in cd and the first part of the name, hit tab and it will fill in the rest for you. It saves you some typing. If you have another file that has the same name it will let you type in another letter till you get the right one. Hmmmm. Example, you have this when you do a ls:

linux-2.6.1
linux-2.6.2
linux-2.6.3

You type in lin and hit tab. It will fill in up to the last number, then you fill in the 1, 2 or 3 then hit enter. If you hit tab twice it will list all the possibilities you have, just the ones that match though. If you had a linux.2.4.1 in there it would stop at the 4 to see if you wanted the 4 or the 6. It stops at each intersection until you get there basically. That make any sence.

Sounds like you have pretty good instructions and a pretty good grasp on how to do it to me. That tar command is sort of complicated sometimes. I had to learn a lot when I installed Gentoo. It uses that command a LOT.

Let us know if you have any problems. You can type in man tar if you want to read up on it and see what those options mean. It sort of helps to understand what the heck it is doing. You can use the page up and page down keys to move up and down. Hit the q key to quit.

Oh, just in case, that up arrow key is pretty cool. It remembers the commands you have typed in recently. You sound new to Linux so thought I would share a few neat tips. :rolleyes:

Later

:D :D :D :D

davcefai 03-28-2005 11:58 AM

Try this.

As a normal user, use your file manager (Konqueror or whatever) to move the file off your desktop into another directory.

I suggest you create /opt/downloads and then store downloaded files in subdirectories of this directory. Works well for me. So create /opt/downloads/modem and drag the file into here.

Now double click on the file or right click and select "extract here" . It will extract itself either into yet another subdirectory (install or whatever) or in the same directory. If necessary move into the directory it created.

Next: Tools, Open Terminal, and you're in a DOS type screen.

Depending on your distro you might or might not be running File Manager as root. Have a look at the prompt. If it doesn't say root then enter su. Type in the root password.

Carry on at step 4. ie make clean. This "cleans up" things - should not be necessary with a freshly extracted archive as it should be clean. However it only takes a few seconds to run.

Step 5: make 536. This is the actual compilation. A lot of messages will flash past. Don't worry about the odd error or warning message. However any error message at the end of the process IS important. Otherwise no news is good news. At this point you have compiled the application for your system.

Step 6: make install. This now installs the application, putting various files in the correct places. Hint: Documentation will probably be in /usr/share/doc/<536 or whatever the program calls itself>

That's it!

This should work for any install you do. Extract in the graphical interface and then drop into a shell for the makes.

davcefai 03-28-2005 12:00 PM

Dalek posted while I was typing. (probably got faster fingers :-) )

My method does not nullify what he said. It just keeps you in the GUI longer,

dalek 03-28-2005 12:20 PM

Quote:

Originally posted by davcefai
Dalek posted while I was typing. (probably got faster fingers :-) )

My method does not nullify what he said. It just keeps you in the GUI longer,

I doubt I am a faster typer, see sig. :cry: :cry: :cry: I must have gotten there faster.

One good thing about Linux though, plenty of different ways to do something. :confused:

Later

:D :D :D :D

kapalka 03-28-2005 03:04 PM

one more error
 
I think I have everything ready except for an error message concerning kernel source.
My kernal is 2.6.7
the instructions here say to use terminal and type in urpmi kernal source
which I assum means the command line would look like #urpmi 2.6.7 or urpmi kernal 2.6.7
or some variation, none of which seem to work.
Sorry that I am having to come back so ofen, just learning the hard way!
Thanks for all the help

dalek 03-28-2005 05:20 PM

What is the error it is giving? This is pretty common though.

Come back as often as you need to. We'll do the best we can.

Later

:D :D :D :D

kapalka 03-28-2005 05:37 PM

error
 
Error is simple: "command not found"

Since I am back home, I will go mess with it again and see if I have any better luck, try a few things then check back.
Thanks,
Ron

The instructions that I had were for Mandrake. They mostly work, but there was one that indicated that I needed to know the kernel source headers. It does not say when I shoudl or where I should install them.

Basically it siad to use urpmi kernal source. After messing with that all day, "command not found", I descovered that Mepis does not use urpmi, instead had kpackage.
Fun
Anyway, I can fine the kernel just fine, but I will be dang to know what to do with that information.
When I try to open the driver with
Make 536 it does fine but ends with error 1 ***[check] , lib/modules...autoconf.h does not exist.

Make install also has error 1, cannot start Intel536.ko, no such file.

I assume this is all about the kernel source?

Should I just get an external modem?
Bad day
Ron

davcefai 03-28-2005 11:53 PM

It looks like you don't have the kernel source installed. Look for /usr/src/linux.

I don't know how kpackage works but you should be able to install the kernel source off your linux CDs. This is vital for any compilation to work.

Command not found makkes me wonder. You need gcc installed too.

dalek 03-29-2005 02:43 AM

Is this something like dependancy hell? :scratch: Sure looks like it, smells like it too.

Later

:D :D :D :D


All times are GMT -5. The time now is 05:24 PM.