Linux 101

Believe it or not, I''m getting little help from the linux forums. In trying to learn Linux, I''ve downloaded SLAX distro. Questions:

1. How do I install .tar.gz files? And run them, if not by "double-clicking"?
2. Where can I find the useful commands? (I''ve googled and found little discription as to how to use the listed commands)
3. Which distribution is the "best" for everyday use?
4. Which one of use use Linux? Raise your hand.
8,092 views 23 replies
Reply #1 Top
I tried emailing you upside down please get a hold of me
Reply #2 Top
I`m afraid you`re not going to get very far in Linux by clicking on files. You`ve got to get down with a terminal window.

1) You need to un-gzip then un-tar the file.

gzip -d somefile.tar.gz
then...
tar xvf somefile.tar
That will leave you (more than likely) with a subdirectory under your current directory. You then go into that directory and (gasp) read the README or INSTALL text file. Usually installing a tarball (that`s what you have) is:
./configure (configures the makefiles for your system)
make (compiles "makes" the binaries)
make install (installs the binaries, man pages, config files)

2) Unix/Linux for dummies...no offence intended. Also look for Unix/Linux command line cheat sheets.
3) I like Mandrake and RedHat Fedora
4) I use RedHat more in a production environment than any other distro.

Happy typing... ...and good luck.

[Message Edited]
Reply #3 Top
Kona, could you re-email me again? I''ve been getting alot of spam in this address lately, and I might have deleted your email(s). Some had their emails bounced. I''ll email you to save your address so I won''t accidentally delete it.

Since I don''t know the commands, I''m pretty much down to the clicking. I''ve found list and list of commands, but their discriptions as to how to use them well...

What''s the difference between Mandrake and RedHat or the distro? Yes, I''ve heard Mandrake is the easiest to learn, but it sounds limiting to me.
Reply #4 Top
If on one hand you don''t know much about it and on the other think it might be "limiting" (a & b = illogical), why not give ManDrake a shot first to get some experience.

Don''t think it matters much what you run. They all have installers these days.
Reply #5 Top
I sadly removed my debian partitions today, it was just too much of a hassle to keep up with the unstable version (yes, the stable one is just what it says, but if you want the latest...). What did it for me was one upgrade where X wouldn''t start - demanding a kernel-recompile to get the latest nvidia drivers to work. Too time consuming. But I must say: I am very impressed with Gnome - it is getting better every day.
Reply #6 Top
It''s not about wanting the lastest. I want to learn the basics first, but have a distro that will provide the options to do more w/o installing a different OS.

And because I don''t know, I''ll think as I assummed. Of course I could be wrong because I don''t know what I''m thinking is right, right?
Reply #8 Top
#6 by uM0p ap!sdn - 4/23/2004 4:29:25 PM
It''''s not about wanting the lastest. I want to learn the basics first, but have a distro that will provide the options to do more w/o installing a different OS.

That''s not how it works. You can pretty much add whatever you want to any distro. Just download the tarball for the feature or server you want and install it as stated in the README (or in #2 above). It can get real hairy though. Just wait until you start chasing down dependencies...which is when what you`re trying to install requires another library and that library requires some other package and so on, and so on. I''ve been doing Unix for almost twenty years and it''s still the most annoying aspect this OS.

Just download the RedHat or Mandrake ISO(s) and go for it. Tips:
1) Command line....use it. You can`t do much (administratively) with the GUI
2) Learn VI (non-GUI text editor). If your system won`t boot into X (the GUI) how would you find and fix the problem?
3) When installing (adding) packages after initial install of the OS, try to stick with RPMs. It''s the closest thing to a SETUP.EXE you see in Linux (for the most part).
4) Stick to it...it can be very intimidating at times even for very experienced users.
Reply #9 Top
I''ve alot more to learn than I thought.

I''m sure I can figure out how to do these things, once I know/learn/find the commands. I know there''s much more to it than the commands, but for starters, I "think" learning the lingos and the basic commands is the way to go.

And I agree.... just download and go for it. I''ll get a copy of Fedora soon. 56k is not a good thing for downloading.
Reply #10 Top
Linux used to be the realm of the propeller-head...and to a certain degree still is....it''s not something for the faint-hearted....and it''s all about the journey, not the destination....
Reply #11 Top
Hehe

Wait until you go for the unstable version (so you can have support for your new gadgets) and don''t update in a while and then do a complete package update.

But I have to say, installing things is a snap with the debian packaging system.
Reply #12 Top
#10 by Admin Jafo - 4/24/2004 2:19:33 AM
...and it`s all about the journey, not the destination....


True...and very profound. They should adopt that as the Linux tag-line.


#11 by juni - 4/24/2004 4:06:14 AM
Wait until you go for the unstable version (so you can have support for your new gadgets) and don''''t update in a while and then do a complete package update.

But I have to say, installing things is a snap with the debian packaging system.


1) IMO end users should NEVER use the unstable version...there`s just no justification. The only case I can think of to try the unstable version is if someone is a developer that needs to test their software in prep for the new version or they`re a tester for the distro.

2) Yes, debs are great, but the many packages are not available in deb (or RPM for that matter). IMO, one should still be very familiar with installing tarballs if they want to get anywhere.
Reply #13 Top
Again I ask, which distro for a newbie and why? "It''s the easiest for a beginner..." doesn''t say much for me.

Or should I ask, what''s the difference between them all?? And why choose one over the other? Doesn''t matter if it''s for a newbie or not, which and why???
Reply #14 Top
#13 by uM0p ap!sdn - 4/24/2004 12:58:52 PM
Again I ask, which distro for a newbie and why? "It`s the easiest for a beginner..." doesn`t say much for me.

I`m partial to RedHat. I like the GUI installation. The other reason is I`m simply more used to RH and it`s structure and behavior than the other distros I`ve used.

Or should I ask, what`s the difference between them all?? And why choose one over the other? Doesn`t matter if it`s for a newbie or not, which and why???

That is really an impossible question to answer. Some are BSD-based (FreeBSD) and others are System V-based (RedHat). Don`t ask what`s the difference, because you might as well be asking and easier question like "What`s the meaning of life?". You might also want to consider a "live" distro like Knoppix. No install needed, you just boot up off the CD and you''ve got a Linux system. It will not modify or take over your system, so you can play with it without doing partitioning or dual-booting.

Just pick one, and try it.
Reply #16 Top
1) You need to un-gzip then un-tar the file.gzip -d somefile.tar.gzthen...tar xvf somefile.tar


These two steps can be done in one step by using gnu tar, which is the standard tar command on LINUX systems. Try the following:

tar zxvf somfile.tar.gz

This saves a step, plus saves on diskspace by not creating the uncompressed tarball.

2) Learn VI (non-GUI text editor). If your system won’t boot into X (the GUI) how would you find and fix the problem?


This is one of the most important tips that anyone can give you. VI isn''t user friendly, I like to call it expert friendly, but VI is your friend. Learn it well.

It is on EVERY UNIX/LINUX system that there is. It is one of the most powerful text editors that exists.

Note: a text editor is not a Word Processor.

If you want to learn some power-user stuff, learn awk & sed. You can use these tools in combination with other things to do about anything in UNIX. They are also very powerful.

Another tip, don''t log in as "root". Create a normal user account and log in as that user. Only use root when it is needed. You can easily become root by using "su -", but only stay logged in as root for as long as needed, then exit back to your normal account.

As soon as you can figure out how, disable all non secure telnet like programs and replace them with the equivalent secured versions like ssh. This way you don''t transmit passwords in clear text. The SecureShell commands encrypt everything, so no one will be able to see your passwords and other stuff in clear text.

Like I said about VI, LINUX isn''t user friendly, it''s expert friendly. You need to learn a lot about it to feel comfortable with it, and you need to learn a lot to be able to make it secure. But, once you have taken the time to learn it, it is very stable and very secure. My LINUX box has been up and running for over a year. How long has it been since you have had to reboot your PC? I normally end up rebooting my PC at least once or twice a week.
Reply #17 Top
Where can I find tutorials on VI? And how do I get into VI?

For the time being, I want to learn the basic commands first so I can get my way around Linux w/o the gui. Right?

So how do I create a new use account? I've only been in the root account.

The last time I reboot XP was last night. I don't leave it on when I'm not using it.
Reply #18 Top
Where can I find tutorials on VI?

The intarweb is a good place to start. There''s this new thing...it`s really cool...it`s called a search engine. It lets you search for things. Like "Linux VI tutorial"

And how do I get into VI?

See above.

For the time being, I want to learn the basic commands first so I can get my way around Linux w/o the gui. Right?

Can`t hurt. Learn the structure of the file system too. It`s very important to know where things are like config files, startup scripts, binaries, user home directories, etc. are. Also, learn to use the man pages. "Man", in this case, is short for "manual"...as in documentation. Usage: man commandname Example: man vi

So how do I create a new use account? I`ve only been in the root account.

You could always try something like a google search on "creating a user account in linux"

A piece of friendly advice: No offence, but I can see why you`re not getting much help from linux forums. In general, they don`t like to spoon-feed people. You should at least take some initiative to find your answer before posting. Almost every question here could have been answered by a simple google search.

Good luck and happy *nixing.
Reply #19 Top
Acturally, I am searching google. But that's after I've posted the posts. However, most of the item, what I've found included descriptions that only those who are fimilar with Linux can understand. Their descrtipions as to "how-to" are not as descriptive. Maybe it's me, I can try turning my monitor rightside up and see if it helps.
Reply #20 Top
Don`t give up. A decent book would go a long way. If you have no command-line, file system, or networking experience I`m not sure where to point you. I take a lot for granted after being a propeller-head (as Jafo calls us ) for more than 25 years and a systems/network admin for 17 of those. I once had a C for Windows book (for Dummies) and it actually helped put things in a way that I could relate to when I had no idea or experience to draw from. I already had done a ton of C and Motif programming, but windows programming was so alien to me that I was totally lost.

Just keep poking at it. If you`re stuborn, you`ll most certainly win! NEVER let the computer win.
Reply #21 Top
...and if the computer looks like winning...threaten it with a dosing of water....works for me...
Reply #22 Top
I have some programming experience, VB, C, HTML etc. I do understand how the command-line works. My main "problem" is not knowing what the commands are. And googling for the list commands doesn''t mean I know how to use them due to their lack of descriptions.

Ie. "useradd -m username" - add new username.
How could I''ve known which part of that was the command and the other part was to be replace with a username. Okay, okay that one was obvious, but I was just using it as an example.

I''m slowly but surely on my way. Linux for Dummies, I should look into that book. When all else fail, I''ll set it free. Out the window! The water I''ll save for a drink.