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.
Alright, I've got a dualboot Win98/Redhat setup going. I'm a 3rd year (sorta.. ) college student majoring in computer science, yet I have not clue how to do anything under Linux or Unix (which is relevant to some of my questions).
I got Linux for multiple reasons, one being that I'm taking Intro to Operating Systems which is taught on the campus Unix mainframe. I'm hoping that I can use Linux to do most of my programming for the class, as I live 15 minutes from school and would like to just run up there for the final night's debugging and testing.
So, in Winbloze I use VisualC 6, which I purchased. What do I use under Redhat, how do I get it, etc? I figured out emacs (sorta), and cc/gcc, but couldn't get my first program to even compile. I'm sure it has to do with the includes, but I can't find the right directory to run from to begin with. Any help?
Part of the problem is I can't get my Diamond Supramax PCI 56k modem to work at all, so I have to reboot into Winbloze to get online and ask for help. Any help for getting that working?
Another question is how do I access my Windows partition? 2 simple reasons: one, I could, if necessary, save html help stuff from online and then access it from Linux to walk through whatever ; and 2, I want to get to my mp3 collection. Which leads to asking what player I need and where do I get it? From what little I've read here and there, this has something to do with a mount and/or lilo (??). Any help?
Basically, any and all help is greatly appreciated, and make it as detailed as possible as I'll probably end up printing this and having to work through it on my own.
Your programming questions would probably be better answered in the programming forum. As far as accessing your Windoze partition and your modem goes...my question for you is, have you re-compiled your kernel since your first install? If not you will have to do that so that you can give the kernel the ability to read DOS/VFAT filesystems, and the driver for your modem is probably not compiled into your kernel, or you'll have to check out the hardware compatability list to see if your modem is supported. Also check here to learn how to compile your kernel. Hope this helps.
ok.. the programming, no clue.. you might want to ask that separately in the programming forum for a quicker response...
now for the modem.. do you know if its a winmodem or not? if it is.. goto www.linmodems.org for a list of modems that work under linux and a list that don't work. chances are though, if it is... then most likely there is a slim chance it won't.
if that is the case, i suggest getting a cheap hardware modem, one that you can set the irq and com ports manually on the board with jumpers... i would say 99% of the time those will work... or get an external modem, those almost always work... all in all if your dying to get online in linux.
to access your windows partitions, you can mount them with the mount command...
actually post or send me your fstab and i can tell you how to mount your windows drives.. you can add them to your fstab file in /etc to mount automatically upon bootup so you don't have to mount whenever you need access to them..
MP3 players... you might want to check out or search online.. there are many out there... i tend to use apollo player.... forgot the webaddress.. you can search http://sourceforge.net or www.linuxapps.com for some leads on that.
Let me know.. or email me if you want... link below under my profile.
Originally posted by d3funct my question for you is, have you re-compiled your kernel since your first install? If not you will have to do that so that you can give the kernel the ability to read DOS/VFAT filesystems, and the driver for your modem is probably not compiled into your kernel, or you'll have to check out
I never recompiled my kernel and i can read from my win98 parition with no changes from a redhat install.... hmmmmmm....
To mount your windows harddrive at startup (assuming that it is on the first partition), you need to create a directory for it and add a line to the file /etc/fstab. I use jstar as the text editor on mine, your's might be different (you might use vi or vim or emacs).
You can use
mkdir /windows
to make a directory windows.
To fstab, you would add the line:
/dev/hda2 /windows /vfat defaults 1 0
or if that doesn't work
/dev/hda1 /windows /vfat defaults 1 0
or if it still doesn't work (hda1 or hda2 can be used)
/dev/hda1 /windows /fat defaults 1 0
Tell me what happens
EDIT: ARG! I type too slow. 4 people answerd before I posted mine! They might help you better though
That is strange, when I upgraded from 7.0 to 7.1 I had to re-compile my kernel to read DOS/WIN partitions, but I wasn't using dual-boot. I had a windows box and a seperate Linux box. hmmm...
LOL. I didn't expect this many fast responses, and I don't have time to answer all of you or try any of this. I can say it's not a software modem. I'll check all your links later for compatibility and what not. (program is due in the morning and I've still got other homework to do :\ )
I did get my program to work from the included development package (KDevelop 1.4? something close to that). What I have to have is a way to run it from the terminal as my professor wants - at least for program 1 - just a printout using the script command.
So, I use cc filename. No problems, makes an a.out file. start the script, no problem. Type a.out and it says command not found!! Yet if I run it under KDevelop (same directory and all) it runs just fine.. what's up with the a.out file and how do I run it under Linux?
I'll try to repost my programming questions to the programming board later on, but thanks everyone!
to run it from a command line you might have to type ./ before it. Or if that doesn't work, you might have to change it to an executable, one way is doing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.