What Can I Do With Linux ? more details in the Question

wickedone

Member
Aug 29, 2002
118
0
0
Ok I no this has been hashed around a lot but I read all I could and did not see what I am Looking for addressed.
I have Window's XP Pro right now and 2 hard drives that I am not using, I use to play Everquest and Have quit it for good this Time, Just takes to much of my time to play, and I tend to get real envolved in it.
I tried othere Games and have come to think untill Doom III , Half Life 2, or World of Warcraft come out I wont play games much anymore.

So Linux looked to be a nice Operating system to try and learn while I wait. Downloaded Slackware 9.1 Yesterday to try out.

Once I get to find my way around in Linux and can get everything working is there anything I can do that cost nothing extra in programing simple scripts or make simple programs, if so what program (s) would that be.
I have no experiance in writhing codes or programs but thought I could find some books in the libray or some cheap ones in the book store to help me out.

I have read that many get frustraded with linux if they are new to it but if I do I will still have Xp to go to will I cool off.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Originally posted by: wickedone
Once I get to find my way around in Linux and can get everything working is there anything I can do that cost nothing extra in programing simple scripts or make simple programs, if so what program (s) would that be.
I have no experiance in writhing codes or programs but thought I could find some books in the libray or some cheap ones in the book store to help me out.
Except for Microsoft-specific stuff like VB and C#, free and good-quality programming tools for every language are available for Linux, often as part of the base install. It's one of the best reasons to use Linux, IMO.

 

wickedone

Member
Aug 29, 2002
118
0
0
Cool thanks that enven gives me more reasons to figure out how to do a good install and learn the OS.
 

ProviaFan

Lifer
Mar 17, 2001
14,993
1
0
BingBong will probably be in here shortly to recommend Python. ;)

I have nothing against it, but I prefer (and am currently learning) C++. The problem with C++ is that I have not found any extensive and helpful and easy to understand resources on the 'net that would help someone learn it. Fortunately, I was able to get C++ How To Program by Deitel and Deitel (sometimes used as a college level textbook, from what I've heard), but that may not be a possibility for everyone.

Here are some examples of the languages (scripted and non) that you can download, use, and learn for free: Perl, Python, Bash (or shell scripting), C++, Java, PHP, Tcl/Tk, Fortran, Cobol (not sure, but I think there's a compiler for it in Linux - but why would you want to, anyway? :eek:).
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Except for Microsoft-specific stuff like VB and C#, free and good-quality programming tools for every language are available for Linux, often as part of the base install. It's one of the best reasons to use Linux, IMO.

I believe there's a C# compiler as part of Mono.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: Nothinman
Except for Microsoft-specific stuff like VB and C#, free and good-quality programming tools for every language are available for Linux, often as part of the base install. It's one of the best reasons to use Linux, IMO.

I believe there's a C# compiler as part of Mono.

Yea, and supposedly it isn't all that bad either.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I was kinda wondering about that after I posted. Is Mono a full implementation of C#? I was under the impression that it implemented most, but not all, of C#. But I haven't really been following it.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
As far as developement Linux is pretty much king.

The GNU programming tools and friends of the quality that comes with Linux would of cost thousands of dollars on any other platform.

You get a world class C/C++ compiler in the GCC program for example. It's probably the most used compiler for anything. It's used to build and compile the Linux kernel and system. It's used in other OSes like OS X.

Everything in Linux (exept the top level X desktop enviroments) are geared towards getting work done. There is a reason why Linux got the reputation of a OS built by Hackers for Hackers.

Even the command line enviroment (BASH shell) is a fairly powerfull programming language. And it is easy to use it.

For example you have two programs(actually called "tools").
du --this shows the size of files in a directory

Drag / >: du -h /
du: cannot read directory `/lost+found': Permission denied
4.0K /var/lib/apt/lists/partial
11M /var/lib/apt/lists
11M /var/lib/apt........ etc etc.

grep --this searches thru lines in a file for a kerword and displays that line that contains it.

Drag ~/Desktop >: grep title forums.source.html

<title>AnandTech Forums - What Can I Do With Linux ? more details in the Question</title>
.fttodaymenutitlebar {background-color:449fc8;}
<td class="ftmenusurroundtd"><table border="0" cellpadding="2" cellspacing="0"><tr><td class="ftmenutd" id="menuopt3" onmouseover="changestyleov..... etc etc..

Well you combine them together as such in one line:

Drag / >: du -a 2> /dev/null |grep quake
4 ./var/lib/gnome/Debian/Games/quake3.desktop
0 ./usr/share/man/man1/quakestat.1.gz
8 ./usr/share/vim/vim62/syntax/quake.vim
108 ./usr/bin/quakestat
4 ./usr/lib/menu/quake3-smp
4 ./usr/lib/menu/quake3
0 ./usr/local/bin/quake3
0 ./usr/local/bin/quake3-smp
4 ./usr/local/games/quake3/quake3
4 ./usr/local/games/quake3/quake3-smp... etc etc.

makes a swell search program. By adding > file.name to the end will redirect the output into a text file that I can save for future use.

What most people recommend is that you learn to program a shell till your comfortable with it. Then move onto one of the high level programming languages such as Python or Perl. Then onto lower level programming languages like C or C++.

It all depends on what your comfortable with.

Linux can be very frustrating. The best thing IMO if your serious about learning it is just to dive right into it whole-hog. Use gui minimally and just play with your OS. Experiment with it, destroy it. Blow stuff up. Learn vi or learn Emacs. Becoming a expert in a good text editor will make you 10x more productive. I recommend installing vim and then running the vimtutor. Windows is familar and easy because you've been training yourself to use it over a ten year time or so that you've been using it. Being frustrated wasn't a issue because Windows was the only thing you COULD use. After 2 years or so of using Linux as your main OS you'll look like a uber-hacker to your windows-only friends.

If you don't know how to type by touch then find some type teaching games like children play. I started off being a horrible typer and after a few minutes every day for a couple weeks playing type teaching games I became confortable enough to begin to use VI effectively.

Very usefull for programming from books. Before I had to look at the book, look at the keyboard, look at the screen, look at the book, look at the keyboard, look at screen, backspace backspace backspace... etc etc. Very painfull, gave me a headache and was very slow. Now i am decent enough so that I can look at the book and then glance at the screen every once of a while while copying stuff. Much nicer.


Now this you can do in Windows too. You have scripting languages, gcc works in it, python works in it. You have tools like visual basic etc etc. So it's not like it's a god-OS or anything, but IMO it's superior. Linux can do anything and everything that w2k/XP/w2k3 can do(exept playing some games). Sometimes it's easier to do stuff, sometimes is harder. Sometimes it's faster, sometimes it's slower.

However Windows can't do everything Linux can do. Since it's flexible and made up of small independant parts it's much more flexible and is more limited by the hardware and imagination of the user then by limitations of the scope of the original developer. Did the author of "DU" know that I was going to use it as a search utility to find files in computer? Did he have to know, or even care? Maybe for the first one, no on the second. But it works great non the less. The sum of Linux is more then just it's parts.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I was kinda wondering about that after I posted. Is Mono a full implementation of C#? I was under the impression that it implemented most, but not all, of C#. But I haven't really been following it.

Well there's a set of things that are 'standard' which should be implemented, I think Mono has been self-hosting for quite a while now. But I'm sure there are libraries that MS has implemented in addition to the standard that Mono either hasn't gotten to yet or won't implement.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
What exactly is the point to C# anyways? Is it just a competator with Java, or is it designed to replace the whole shebang of java, C, python, etc etc...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
What exactly is the point to C# anyways? Is it just a competator with Java, or is it designed to replace the whole shebang of java, C, python, etc etc...

Replacing the whole shebang is impossible, but it seems to be more like Java than other languages. Once the .NET runtimes are on most machines it'll probably replace C++ atleast in Microsoft products as long as the performance is good enough. That would be the best thing to happen for them in a long time too, imagine no more buffer overflows for all of MS programs. Only their CLR and low level teams would have to worry about proper memory allocation.

They probably also see it as a way to get Sun back for suing them over Java, MS doesn't ship their JVM any more and I'm not sure if they are going to ship Sun's JRE so what better thing to replace it with than their own product?