[SOLVED] Getting Past the first Command in my Terminal
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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.
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.
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.
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.
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.
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:~$
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'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...
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?
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 "#").
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
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 "#").
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.