LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-15-2003, 09:49 AM   #1
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Rep: Reputation: 16
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
 
Old 04-15-2003, 09:52 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 04-15-2003, 10:06 AM   #3
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Original Poster
Rep: Reputation: 16
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
 
Old 04-15-2003, 10:13 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you want to know about kernel hacking its is C all the way!

cheers

Jamie...
 
Old 04-15-2003, 10:31 AM   #5
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Original Poster
Rep: Reputation: 16
How hard is it to learn C? And what else can you do with it?
 
Old 04-15-2003, 10:52 AM   #6
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
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...
 
Old 04-15-2003, 11:01 AM   #7
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Original Poster
Rep: Reputation: 16
How do i run as a SU in the console? I forgot
 
Old 04-15-2003, 11:20 AM   #8
Calum
Member
 
Registered: Mar 2002
Location: London
Distribution: Red Hat 9
Posts: 302

Rep: Reputation: 30
as a what?

if you mean you want to switch to root, it's just "su -"
 
Old 04-15-2003, 11:27 AM   #9
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Original Poster
Rep: Reputation: 16
So what else can i do besides kernal config with C?
 
Old 04-15-2003, 11:44 AM   #10
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Rep: Reputation: 15
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.
 
Old 04-15-2003, 11:47 AM   #11
Tech1
Member
 
Registered: Apr 2003
Location: Seattle, WA
Distribution: Slackware9
Posts: 81

Original Poster
Rep: Reputation: 16
I am still not sure what i want to do for computers, what are most games programed in, ect?
 
Old 04-15-2003, 12:21 PM   #12
dogn00dles
Member
 
Registered: Feb 2003
Distribution: Slack 9.0/NetBSD
Posts: 101

Rep: Reputation: 15
C/C++...usually with the opengl lib for graphics.

http://www.soldierx.com/books/Teach%...Days/index.htm

http://fly.cc.fer.hr/~unreal/theredbook/
 
Old 04-15-2003, 01:37 PM   #13
Shinobi
Member
 
Registered: Mar 2003
Posts: 46

Rep: Reputation: 15
Lightbulb

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
 
Old 04-15-2003, 01:47 PM   #14
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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.
 
Old 04-15-2003, 01:50 PM   #15
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
It's Python.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
The best way to learn Linux... asahlot Linux - General 7 10-18-2005 02:14 AM
Best way to learn Linux lightsycle Linux - Newbie 9 05-04-2004 10:50 AM
How to learn more about linux? Howloweener Linux - Newbie 9 05-27-2003 01:43 PM
What else to learn in LInux? Where do i go on. nutshell Linux - General 2 03-02-2002 10:55 AM
What is the best way to learn Linux?? StamfordRob Linux - Newbie 9 02-16-2002 12:37 AM

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

All times are GMT -5. The time now is 09:25 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