Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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 have been using Linux daily for about 2 months, but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.
I have a few general questions.
1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?
2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?
3) How can I find the amount of space remaining on a drive?
4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
Re: several dumb questions :)
Quote:
Originally posted by k4zau I have been using Linux daily for about 2 months, but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.
I have a few general questions.
1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?
2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?
3) How can I find the amount of space remaining on a drive?
4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.
Thanks!
in answer to number 3, the command is 'df'
or more easily 'df -h'
as for the others, good luck
In answer to #1, I'm not sure but what you might not need to try g++ instead of gcc. I've not had much experience with C programming (as opposed to C++) but that might work.
For #1, I think you can get just the headers from the package - I'm not sure. Do 'locate' of course, to make sure they didn't get lost.
For #4, depending on how old your 'less' is, try ls | less -R. Maybe ls | less -r depending, but R is what you want, I think. Less is better than more. *g* You can scroll up and everything.
1) I'm having problems with gcc: When I try to compile a program with stdio.h or stdlib.h included, the compilation fails and it states that there is no such file or directory. I looked in every directory I could think of that might possibly contain header files, and these two files do seem to be missing, although there are lots of headers in the directories. All users of the machine experience this problem. Can I just copy the headers I need off of another machine or do I need to reinstall the package?
Try installing the glibc and c and c++ libraries and devel libraries (a guess).
4) This is probably the dumbest question of all... but, is there a way to see the list of files generated by ls a page at a time? (as in DOS, dir /p) I figured out to pipe the output of ls into more, but this doesn't color-code the filenames.
2) I tried to set up a PCI modem with pppsetup and I thought I got all the parameters right, but when I ran ppp-go it stated Error Signal 2 and refused to connect. Is there a problem with the modem or is my config file incorrect... what exactly does Signal 2 indicate?
I have found that I need to change the modem string to be able to connect with Slack ppp.
Sorry, don't have "to what" in front of me. Perhaps check your other box for a clue.
Quote:
but today I set up an old 486 with Slackware, but didn't install X or any form of desktop. It is now apparent that I don't know quite as much about Linux as I thought.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
no problem, that's what this site is all about, the only dumb questions are:
the ones that aren't asked
the ones you already know the answer to but ask to be pesky
the ones not pertaining at all to the topic at hand
the ones asked with the intention of being annoying
yours don't fit into any of those categories, to call your little questions dumb would be stooping to the level of microsoft
besides, we all have to start somewhere, and if everyone snubbed the newbie, we'd ALL be using MS windows
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.