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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
04-15-2003, 09:49 AM
|
#1
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Rep:
|
What's the best way to learn linux?
I want to get into linux and linux programming, what's the best way to do that?
What should i learn so i can get linux to the max it can be, learn the console, ect?
I own two books already:
"Linux for Windows Addicts" Michae Joseph Miller
"Sam's Learn Linux Mandrake in 24h" - Sam's Teach yourself
|
|
|
04-15-2003, 09:52 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
I would start by installing and playing about with a linux system. Read of much documentation as you can (check out http://www.tldp.org) then ask well thought-out questions on this site! The term 'Linux programming' is a bit vague. I take it you mean writing applications for Linux yeah? First you'll need to understand a few languages. C and C++ are most often used for applications, although there are loads of languges out there.
cheers
Jamie...
|
|
|
04-15-2003, 10:06 AM
|
#3
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Original Poster
Rep:
|
I'd just like to learn how to program the kernal, and program around linux, but not make programs themselves..
I'm trying all sorts of linux flavors, seeing what i like, my ISP must love me.. In the past few days downloaded over 6GB in linux files..
Slackware9, redhat8, redhat9, mandrake9, college linux, knoppix, debian3
|
|
|
04-15-2003, 10:13 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
If you want to know about kernel hacking its is C all the way!
cheers
Jamie...
|
|
|
04-15-2003, 10:31 AM
|
#5
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Original Poster
Rep:
|
How hard is it to learn C? And what else can you do with it?
|
|
|
04-15-2003, 10:52 AM
|
#6
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
Everything. My suggestion is just install it and start playing with it. Think about everything you like to do with a computer and go get the Linux aps to do them. Compile everything you can from source if you really want to get to the nitty gritty of Linux. A properly set up KDE installation on your favorite distro is a beautiful thing. Check out the O'Reilly books, and the Bible associated with your distro. Don't run as root and you can pretty much play around as much as you would like. Have fun while getting your work done, that's what the penguin is all about...
|
|
|
04-15-2003, 11:01 AM
|
#7
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Original Poster
Rep:
|
How do i run as a SU in the console? I forgot 
|
|
|
04-15-2003, 11:20 AM
|
#8
|
Member
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302
Rep:
|
as a what?
if you mean you want to switch to root, it's just "su -"
|
|
|
04-15-2003, 11:27 AM
|
#9
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Original Poster
Rep:
|
So what else can i do besides kernal config with C?
|
|
|
04-15-2003, 11:44 AM
|
#10
|
Member
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101
Rep:
|
Quote:
Originally posted by Tech1
I'd just like to learn how to program the kernal, and program around linux, but not make programs themselves..
|
You mean, compile your own custom kernel, or actually code a device driver or some part of the kernel? The former doesn't require C at all, check out http://www.tldp.org/HOWTO/Kernel-HOWTO.html. As for coding a kernel module or something, you need to have a really good grasp on C to do that- I used to really wanna do that too, I just kind of skimmed through "The C Primer," read the "Kernel Module Programming Guide," and inserted a really crappy "device driver" that crashed my computer  . As for that last post of yours, you can use C/C++ for just about anything.
|
|
|
04-15-2003, 11:47 AM
|
#11
|
Member
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81
Original Poster
Rep:
|
I am still not sure what i want to do for computers, what are most games programed in, ect?
|
|
|
04-15-2003, 12:21 PM
|
#12
|
Member
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101
Rep:
|
|
|
|
04-15-2003, 01:37 PM
|
#13
|
Member
Registered: Mar 2003
Posts: 46
Rep:
|
Quote:
Originally posted by Tech1
I am still not sure what i want to do for computers, what are most games programed in, ect?
|
These guys aren't telling you much... If you want to learn programing you would be best to either have a friend or go-to guy, or take a college course (or two!) in programming. And even then it helps to have a fundamental understanding of binary and how programs are run by the CPU, memory, etc.
If you just want to fool around to see what proggraming is like, quick and easy without the classes, it would be best to start with (bash) shell scripting to learn the fundamentals of programs themselves. Check out this document:
http://www.tldp.org/LDP/abs/abs-guide.pdf
|
|
|
04-15-2003, 01:47 PM
|
#14
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Quote:
Originally posted by Tech1
How hard is it to learn C? And what else can you do with it?
|
Whoa there Tech1.
A completely agree with Shinobi, if you are asking this kind of question then its clear that you need to learn how to program in general before you learn C, especially to the level thats needed for Kernel hacking. As already suggested simple shell scripts will teach you some of it, you may also want to look into some Perl, Python and Pascal.
good luck!
Jamie...
Last edited by jharris; 04-15-2003 at 01:53 PM.
|
|
|
04-15-2003, 01:50 PM
|
#15
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep: 
|
It's Python. 
|
|
|
All times are GMT -5. The time now is 09:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|