LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-05-2003, 11:38 PM   #1
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
several dumb questions :)


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!
 
Old 04-05-2003, 11:42 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 04-05-2003, 11:51 PM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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.
 
Old 04-05-2003, 11:55 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.

Not sure about #2.
 
Old 04-06-2003, 12:56 AM   #5
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
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.



ls -al --color|less -R
 
Old 04-06-2003, 09:45 AM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
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.
Heh, heh, heh...yep.
 
Old 04-07-2003, 03:52 PM   #7
k4zau
Member
 
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Original Poster
Rep: Reputation: 15
thanks everyone, i will try these solutions.
 
Old 04-07-2003, 08:49 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb samba questions gulo Linux - Networking 2 03-01-2005 03:05 PM
More dumb questions VBAHole22 Linux - Newbie 1 06-18-2004 09:00 AM
A few really dumb questions about up2date KoopaTroopa Fedora 2 05-06-2004 03:09 AM
These might be dumb questions but.... BajaNick Linux - Security 6 08-10-2003 08:31 PM
Dumb Questions????????????????? fazdoo Linux - Software 6 07-22-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 AM.

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