LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2005, 04:41 PM   #1
n175uj
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Rep: Reputation: 0
File directory unknown


I am working on my XF86Config file.

I have the new beta driver for the matrox mga g400 card required for the dual display to work properly. I saved it (mgadriver-4.1.tar.gc) to a foppy since I downloaded it on my win os.

I've been looking through the shell using help, and info to try and find a way to run tar from my floppy. I figure it's something simple.

So far I have found a basic explination on how to extract the tar file and install it.

a tar.gz package
download your tar ball to somewhere like a /home/me/downloads directory so you can find things again.
open a terminal (konsole)
change to the download directory
cd /home/me/downloads
list the files
ls
(check that it is there)
now untar the archive
tar zxvf foo.1.2.3-4.tar.gz
change now to directory foo
cd foo
configure the package
./configure
(you may get errors and need more help)
build the package
./make
install the package
change to root user
su

./make install

At this time I cannot boot into the GUI with the init 5 command.
I'm using mandrive 10.2

Because I am very unaware to the file structure I am confused to were tar extracts the files.

tar zxvf foo.1.2.3-4.tar.gz

This explination shows that after the tar is executed to go to foo. Is the directory the foo part of the file name ?

Since my tar file name is mgadriver-4.1.tar.gz would the mgadriver be the directory created ?

Once I get this installed I can move on to writing my XF86Config file. I have 6 monitor's on 2 mil, 1 mil II, 1 mys, and a duel head g400 (all Matrox). I am feeling confident about giving it a go. I have printed up several XF86Config examples and am getting the idea.

I know this is a real easy problem but I cannot seem to find the answer.

Last edited by n175uj; 06-19-2005 at 07:20 PM.
 
Old 06-18-2005, 04:51 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: Would like to run tar from A: floppy

Quote:
Originally posted by n175uj
Because I am very unaware to the file structure I am confused to were tar extracts the files.
tar zxvf foo.1.2.3-4.tar.gz
This explination shows that after the tar is executed to go to foo. Is the directory the foo part of the file name ?
Since my tar file name is mgadriver-4.1.tar.gz would the mgadriver be the directory created ?
The directory created and archive name are not directly related. Just everyone does compresses directory with the files instead of the files alone (it's good, because you get a directory when unpacking instead of a bunch o files).

Tar.gz format is very similar to .zip. You can compress a directory in a zip file, right? That's exactly the same.

The directory name in the archive is usually something like (examples from your file) 'mgadriver' or 'mgadriver-4.1'. It's up to the person creating it. 'mgadriver' form is more common.

When you unpack the file, you can run 'ls' command to see a list of files (and directories). You will have the name of your new directory among other ones.
 
Old 06-18-2005, 06:08 PM   #3
n175uj
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Ok, so I did have the right idea to how it creates the directory.

Thank you for confirming that.

What should I do to tell tar to grab the file from A: floppy

I'm tired and have been going all day without finding this simple solution. I think it might be something like tar -zxvf mgadriver-4.1.tar.gz A:/

Then why don't you try it you say, because I have switched back to my win os and am burning the FC4 right now.

Also is it a good place to create the directory in the root or is there a better place to go to before running tar?


Thank you for helping the ignorant one.
 
Old 06-18-2005, 08:29 PM   #4
n175uj
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Ok I think I found what I was looking for.

I have another question about mounting more then one floppy.

what I found say's to create a linux floppy (ext2) or a windows floppy (vfat) using either

mount -t ext2 /dev/fd0/floppy and for windows,

mount -t vfat /dev/fd0/floppy


I have two questions now.

1. I think that I'm using a nfts format for my win2k. Should I use nfts or should I assume that vfat is for all windows formats?

2. Can I create a mount for both linux and windows ?

mount -t vfat /dev/fd0/floppyVFat

mount -t ext2 /dev/fd0/floppyExt2


If you can answer my questions before I find them I would appreciate it.
 
Old 06-19-2005, 12:09 AM   #5
n175uj
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Ok those were stupid questions because they were answered on the next page that I was on.
 
Old 06-19-2005, 03:53 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you're unsure which filesystem to specify with -t option, you can use 'auto'. It then tries to mount it as differnet filesystems. When there's success it stops Or stops with a long error message when the filesystem used is not supported.
 
Old 06-19-2005, 07:19 PM   #7
n175uj
LQ Newbie
 
Registered: Jun 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Ok I have re-installed mandriva 10.2 and I only configured one video card this time. This got me into the GUI.

I went to the matrox site and downloaded the drivers to /home/username/downloads

The problem I am having now is in accessing that directory.

I start the terminal (konsole) and I can only get as far as /home

When I try and type my username directory in it tells me that it's a unknown directory.

I tried this in super user and in regular mode.


I don't understand why this is happening. I read up about file permission but this does not change anything.


I stuck.
 
Old 06-19-2005, 08:59 PM   #8
ste91
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Files and directories in Linux are case sensitive, so for example Username and username are two different directories.
Also when you open konsole try the command "pwd" which will show what your current directory is, if /home/username is your home dir konsole may start there anyway.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
how to run .tar.gz files??? linus johann Linux - Newbie 10 02-04-2005 03:13 AM
distro that can run on a floppy Nay Linux - Distributions 4 06-18-2004 02:12 AM
I get errors when trying to run tar to extract gschrade Linux - Newbie 9 11-10-2003 11:32 AM
Installed RPM/tar file, cant find out how to run it Craneology Linux - Software 4 03-01-2003 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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