LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-01-2012, 12:01 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Rep: Reputation: Disabled
Getting Past the first Command in my Terminal


I haven't been able to get past this first command. I am manually trying to follow these instructions for this driver because my Ubuntu is not online ( only Windows xp is )
What does this terminal result mean?

cat@username:~$ sudo tar vjxf r8168-8.aaa.bb.tar.bz2
[sudo] password for cat:
tar: r8168-8.aaa.bb.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

The unpacked driver is on my Ubuntu/Gnome desktop and the packed (still in zip folder) is on my desktop as well. I am attempting this install of this driver because the NIC consistently kicks me off the internet.

I have a copy of the instructions:
These are the instructions I am following and I have 2.6.32 25 Version of the kernel

This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface.
I am not sure if I should post all of the instructions-

Should I put this folder elsewhere in Ubuntu so the manual commands will be successful?

What ( someone please tell me ) am I not doing?
 
Old 01-01-2012, 12:11 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,184

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
If the file is in your Desktop folder then you should "change directory" to that folder:

Code:
cd Desktop
Another tip is that you can use "tab complete" instead of typing the full filename. So (once you are in the Desktop folder) just type "r8" and press TAB, it should fill in the rest of the filename for you.

Also you do not need to use "sudo" to untar a file, can you give us a link to the instructions where it said to do that?
 
1 members found this post helpful.
Old 01-01-2012, 12:12 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
First make sure you are in the directory containing the file
In the terminal type:
Code:
cd Desktop
Note the capital "D"
Then please post the output from
Code:
ls
Kind regards
 
1 members found this post helpful.
Old 01-01-2012, 01:42 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
You might want to take some time out to read through the first part of the LinuxCommand tutorial here, in order to get a feel for navigating around the shell.

http://www.linuxcommand.org/index.php
 
Old 01-01-2012, 05:28 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by David the H. View Post
You might want to take some time out to read through the first part of the LinuxCommand tutorial here, in order to get a feel for navigating around the shell.

http://www.linuxcommand.org/index.php
What I have typed into the terminal after following members advice....is not working for me. So, I am going to take your advice and read from the website.
 
Old 01-01-2012, 05:31 PM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,184

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
Quote:
Originally Posted by Ztcoracat View Post
What I have typed into the terminal after following members advice....is not working for me. So, I am going to take your advice and read from the website.
Can you be more specific than "not working"? If you copy & paste the output from the terminal commands, we can try to help you spot the problem.
 
1 members found this post helpful.
Old 01-01-2012, 05:33 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by repo View Post
First make sure you are in the directory containing the file
In the terminal type:
Code:
cd Desktop
Note the capital "D"
Then please post the output from
Code:
ls
Kind regards
I tried typing in the code you advised me....it did not work. Only gave me:
bash: cd/home/cat/Desktop/r8168-8.027.00: No such file or directory.
cat@username:~$ apt-get home/cat@ztcat/Desktop/r8168-8.027.00 tar vjxf r8168-8.aaa.bb.tar.bz2
E: Invalid operation home/cat@ztcat/Desktop/r8168-8.027.00


Think I'm just having trouble understanding so I am going to go read and learn more.
Thank you for helping me.
 
Old 01-01-2012, 05:39 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
Can you be more specific than "not working"? If you copy & paste the output from the terminal commands, we can try to help you spot the problem.
I'm trying but think I am making a mess for myself by not having some knowledge.
The output was:
cat@username:~$ cd/home/cat/Desktop/r8168-8.027.00
bash: cd/home/cat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ cd/home/cat@ztcat/Desktop/r8168-8.027.00
bash: cd/home/cat@ztcat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ apt-get cd/home/cat@ztcat/Desktop/r8168-8.027.00
E: Invalid operation cd/home/cat@ztcat/Desktop/r8168-8.027.00
cat@username:~$ home/cat@ztcat/Desktop/r8168-8.027.00
bash: home/cat@ztcat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ apt-get home/cat@ztcat/Desktop/r8168-8.027.00 tar vjxf r8168-8.aaa.bb.tar.bz2
E: Invalid operation home/cat@ztcat/Desktop/r8168-8.027.00
cat@username:~$
 
Old 01-01-2012, 05:48 PM   #9
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,184

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
Linux terminal commands need to be exact. One missing space, or a capital letter instead of lower-case, or wrong punctuation, and the command won't do what you intended it to do. Always double-check your "syntax" before pressing Enter, and if you can use Copy & Paste whenever possible, you'll reduce the risk of typos.

In your case it appears the error is simply omitting the space between the cd command and the folder.

Code:
cd /home/cat/Desktop/r8168-8.027.00
You can also extract the "tarball" (archive) by simply double-clicking it in your File Manager to open it with your Archive Manager.

Some of the other commands you're typing are just bizarre, we could help you better if you could provide a link to the tutorial that's telling you to type these weird commands?

Last edited by snowpine; 01-01-2012 at 05:49 PM.
 
1 members found this post helpful.
Old 01-01-2012, 05:51 PM   #10
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by Ztcoracat View Post
I'm trying but think I am making a mess for myself by not having some knowledge.
The output was:
cat@username:~$ cd/home/cat/Desktop/r8168-8.027.00
bash: cd/home/cat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ cd/home/cat@ztcat/Desktop/r8168-8.027.00
bash: cd/home/cat@ztcat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ apt-get cd/home/cat@ztcat/Desktop/r8168-8.027.00
E: Invalid operation cd/home/cat@ztcat/Desktop/r8168-8.027.00
cat@username:~$ home/cat@ztcat/Desktop/r8168-8.027.00
bash: home/cat@ztcat/Desktop/r8168-8.027.00: No such file or directory
cat@username:~$ apt-get home/cat@ztcat/Desktop/r8168-8.027.00 tar vjxf r8168-8.aaa.bb.tar.bz2
E: Invalid operation home/cat@ztcat/Desktop/r8168-8.027.00
cat@username:~$
Something that you may find useful, is called Autocompletion...

Start typing something (known to the system) into the terminal, and then press tab, and BASH will try to match the rest of it for you.
as an example. Try typing "cd /t" then press tab. bash should fill the rest in as /tmp. If there are multiple matches, press tab twice, and it will show you a list of all the matches, you can keep typing enough of the location to make it unique from the ones that show up in that list, then press tab again, and it will complete it.

Also, you need a space between cd and the directory your changing to.
cat@ztcat is the username@hostname of the current shell... Not the location on the file system.
If you are installing from a tarball you usually dont have to use apt-get.
Code:
$ cd /home/cat/Desktop/r8168-8.027.00
Should work, assuming that is what the folder is called. If it doesnt, as suggested earlier, change to Desktop, then use ls to find the directory, and change to it...

Last edited by fukawi1; 01-01-2012 at 05:52 PM.
 
Old 01-01-2012, 06:10 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fukawi1 View Post
Something that you may find useful, is called Autocompletion...

Start typing something (known to the system) into the terminal, and then press tab, and BASH will try to match the rest of it for you.
as an example. Try typing "cd /t" then press tab. bash should fill the rest in as /tmp. If there are multiple matches, press tab twice, and it will show you a list of all the matches, you can keep typing enough of the location to make it unique from the ones that show up in that list, then press tab again, and it will complete it.

Also, you need a space between cd and the directory your changing to.
cat@ztcat is the username@hostname of the current shell... Not the location on the file system.
If you are installing from a tarball you usually dont have to use apt-get.
Code:
$ cd /home/cat/Desktop/r8168-8.027.00
Should work, assuming that is what the folder is called. If it doesnt, as suggested earlier, change to Desktop, then use ls to find the directory, and change to it...
I copied and pasted your message to a Open Office doc that I'm taking to the other side of my partition via a usb memory stick. I'll type in the code you have given me and post it back with what results the terminal gives me.
I'm really trying hard and as a newbie this is somewhat frustrating.
Do I need the $ before cd?
 
Old 01-01-2012, 06:16 PM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by Ztcoracat View Post
Do I need the $ before cd?
The "$" is a common convention of saying that the following is typed in a shell prompt. It comes from the fact that shell prompts often end with a "$" character. You might also see lines prefixed with "#", this means you need to be root to run the command (since when you'-re root, the last character of the prompt is usually changed to "#").

You should probably read a tutorial such as http://linuxcommand.org/ before continuing.
 
1 members found this post helpful.
Old 01-01-2012, 06:22 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by snowpine View Post
Linux terminal commands need to be exact. One missing space, or a capital letter instead of lower-case, or wrong punctuation, and the command won't do what you intended it to do. Always double-check your "syntax" before pressing Enter, and if you can use Copy & Paste whenever possible, you'll reduce the risk of typos.

In your case it appears the error is simply omitting the space between the cd command and the folder.

Code:
cd /home/cat/Desktop/r8168-8.027.00
You can also extract the "tarball" (archive) by simply double-clicking it in your File Manager to open it with your Archive Manager.

Some of the other commands you're typing are just bizarre, we could help you better if you could provide a link to the tutorial that's telling you to type these weird commands?
I learned apt-get and aptitude from the "Ubuntu Linux Bible" in the Installation Software chapter. Also read the whole chapter of Synaptic Package Mgr and thought it would help me to install this driver but I did not find the driver in SPM. I think that what I do not have knowledge of at this point is what is not helping me.
I am trying and copying and pasting your messages and taking them with me to the other side of my partition on a usb memory stick to avoid confusion.
I'll type in the code that you have given me and get back to the forum asap
 
Old 01-01-2012, 06:24 PM   #14
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,461
Blog Entries: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MTK358 View Post
The "$" is a common convention of saying that the following is typed in a shell prompt. It comes from the fact that shell prompts often end with a "$" character. You might also see lines prefixed with "#", this means you need to be root to run the command (since when you'-re root, the last character of the prompt is usually changed to "#").

You should probably read a tutorial such as http://linuxcommand.org/ before continuing.
Thank You!
 
Old 01-01-2012, 07:20 PM   #15
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,184

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
Synaptic Package Manager only works to install packages from the Ubuntu software "repository." It sounds like what you're trying to install comes from someplace else. If you could provide a link to where you downloaded this package and the instructions they provided, it would really help us help you. I do not think you will be able to install this driver by guessing and typing random commands, you need to follow the correct series of steps exactly.
 
1 members found this post helpful.
  


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
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 02:04 PM
Command to get past an I/O error in a file? edspyhill01 Linux - General 4 09-26-2010 10:07 PM
[SOLVED] Make linux terminal transparent with terminal command? yooy Linux - Newbie 1 05-11-2010 03:24 AM
how to copy-past on command line? jameshao Linux - Newbie 5 02-01-2009 03:55 PM
Problems loading Mandriva past command prompt parables Linux - Newbie 2 03-18-2008 12:50 PM


All times are GMT -5. The time now is 07:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration