Welcome, Guest. Please login or register.

Author Topic: Tell me about Unix  (Read 3609 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline X-rayTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2004
  • Posts: 4370
    • Show only replies by X-ray
Tell me about Unix
« on: April 05, 2009, 09:16:41 AM »
Yep, I know nothing about it, but I wanna.

Are there courses that you can recommend for a complete noob? Is there anything I can find out by myself?
My ultimate aim is to be able to handle files and change configs on a Unix server remotely (from a Windows PC).

 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Tell me about Unix
« Reply #1 on: April 05, 2009, 09:27:05 AM »
I bought a book called begining Linux Programming 4th Edition (Neil Matthew, Richard Stones) by Wiley Publishing! I can't recommend it more, it covers all the important parts of the POSIX interface and shells.



Offline Oliver

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: Tell me about Unix
« Reply #2 on: April 05, 2009, 10:28:34 AM »
Well, you probably know the online documentation is vast. I think the trick is finding what not to read.*

Have you commenced choosing a distribution? It seems you already have some ideas about what you want to get from it. There are some desktop distributions which are not bad at providing an eased introduction, but I suspect you may be better off just jumping in the deep end. If it is for a work project, it may be worth considering commercial support for the first year.

I used documentation by Machtelt Garrels when getting started. His writing is very easy to take. I think his guides are best used at a terminal, to try things out (typically with BASH). You may like to install a distribution to play with, and take another look at what's available after learning a bit.

Have a look at The Linux Documentation Project. I think I read Binh Nguyen's Linux Filesystem Hierarchy guide from there, and referred to his Linux Dictionary as well.

I have found Linux distributions very good for my daily computing, and for software development. BASH is also my favourite shell. I prefer Windows for multimedia and music tasks though. Should be good for your server application, though I haven't had to settup a server for anything I am directly involved in.

Another thing worth thinking about is hardware support. Have you already got your server hardware? Does it require any exotic or unusual peripherals? If so, check which products have good Linux drivers. Linux has come a long way with driver support, but it is still an issue sometimes. I think most servers would be pretty bare bones with peripherals though, so you should be fine.

Linux can be frustrating sometimes, but usually in ways different from other OS's, so a bit of persaverance, and lots of reading is in order.I generally haven't found users in Linux fora to be vey responsive to help requests. That me because I was having uncommon issues though. Many of the common questions will be answered in several places already.

Good luck!

* Somtimes one can go down a long path of fault finding or information gathering, just to find that all your efforts are completely innappropriate to your distribution.

edit - added clarification footnote
Good good study, day day up!
 

Offline X-rayTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2004
  • Posts: 4370
    • Show only replies by X-ray
Re: Tell me about Unix
« Reply #3 on: April 05, 2009, 04:13:52 PM »
Thanks both.

The Unix servers are already up and running at the hospital, and I want to learn about the OS in general and file structure / config also.
I'll find out what version it is and get back to you.
 

Offline Oliver

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: Tell me about Unix
« Reply #4 on: April 05, 2009, 06:47:49 PM »
No probs

Having the servers already running certainly will allow you to direct your efforts.

It shouldn't be too difficult to gain an understanding of the file system, and learn to manipulate files.

Did you want to just operate in text mode?

What level of access do have to the servers?

If the machines are already set up for network shares, you may not need to operate much within the Unix environment.
Good good study, day day up!
 

Offline persia

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 3753
    • Show only replies by persia
Re: Tell me about Unix
« Reply #5 on: April 05, 2009, 09:28:53 PM »
Unix is a fairly generic term, you have Linux, BSD, System IV & V, AIX, HPUX, etc.  Fortunately most unixes work pretty much the same and if you are familiar with one version then you can find your way around any.

You will probably control the servers through SSH, but you may also have VNC access.  There's really only a few config files you have to touch, perhaps you could tell us more about what you want to control and what kind of access you have.

[SIGPIC][/SIGPIC]

What we\'re witnessing is the sad, lonely crowing of that last, doomed cock.
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: Tell me about Unix
« Reply #6 on: April 06, 2009, 07:09:51 PM »
FreeBSD.org
Then Tcsh.

Unix is built around the idea that the kernel (code) have an api that is called from user software (syscall). The kernel have monopoly on hardware access and presents an restricted api to ensure no software run by a user can compromise the system, only the user "root" can do "everything". Several programs run in parallell (multitasking).
The kernel in turn use drivers to interact with hardware.

Also, unix has a philosophy of modularity and straight forward interfaces without clutter. And as little dependencies as possible.

This means that badly written software that uses the kernel api as normal user will be prevented from crashing the system. And that you can run without any graphical user interface. It's possible to not even have a console. The modularity means it's straightforward for programmers to change the way the system works.
 

Offline persia

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 3753
    • Show only replies by persia
Re: Tell me about Unix
« Reply #7 on: April 07, 2009, 02:28:05 AM »
Yep, Unix is still the gold standard of operating systems.  Has someone just lobbed the first volley in yet another BASH v tsch war?

[SIGPIC][/SIGPIC]

What we\'re witnessing is the sad, lonely crowing of that last, doomed cock.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: Tell me about Unix
« Reply #8 on: April 07, 2009, 05:27:49 AM »
@X-ray

You probably just want a copy of O'Reilly's UNIX in a Nutshell. As noted, most *nixes are based on BSD or System V. Once you know which one, it's fairly easy to move around.
 

Offline Floid

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 918
    • Show only replies by Floid
Re: Tell me about Unix
« Reply #9 on: April 08, 2009, 07:53:36 PM »
If you don't mind starting from the command line, OpenBSD can be a good and minimalist place to begin.  [For instance, when you aren't familiar with the concepts of "package management," diving right into a system that presents you with a package manager is no fun.]

Of course, OpenBSD is also not very "convenient" until you know what you're doing, and these days Ubuntu is very much plug'n'play on most systems.  So if you have the equivalent of an old 486 to throw OpenBSD on (really, anything from a 486 on up is more than fine) and a recent machine to poke at Ubuntu, you stand a decent chance of getting quickly up to speed -- and will also be exposed to common differences between "UNIX-like" systems (and BSD vs. the GNU world).

I'm not sure exactly what to suggest as reading material.  I'll see if I can dig you up the title of a very straightforward "UNIX" book I have on the shelf, which is nice because it doesn't pretend to be something it's not (and doesn't pretend UNIX is anything it's not).  I also seem to remember "Ubuntu For Non-Geeks" being pretty good if you're approaching Linux; it's more technical than the title suggests, but attacks the "things you'd expect from a desktop" rather than the "here's how to start Apache" problem-space.  Immersion is useful because once you start trying to accomplish something, you'll actually remember it over time.

The thing is that most daemons and server tasks are pretty straightforward, but people will always make careers out of making software seem big, complex, and important - and some books are authored from that perspective.*  Remember that UNIX became the lingua franca because, at heart, it's quite simple and has been easy to keep reimplementing.

*O'Reilly anything is popular and usually splits the difference... they're actually quite variable in quality depending on the author.  For example, the first half of their TCP/IP tome was a good introduction ten years ago, but then spent the rest of its pages on BIND, sendmail, and SATAN (anyone remember SATAN?) specifics.  It'll take a while to figure out what's a fad because-it's-a-fad vs. what's a fad because it's useful.
 

Offline persia

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 3753
    • Show only replies by persia
Re: Tell me about Unix
« Reply #10 on: April 08, 2009, 08:37:16 PM »
If you have a low end machine. like a pentium, Puppy's your best bet, lean, mean and rock solid.
[SIGPIC][/SIGPIC]

What we\'re witnessing is the sad, lonely crowing of that last, doomed cock.
 

Offline Oliver

  • Hero Member
  • *****
  • Join Date: Sep 2005
  • Posts: 803
    • Show only replies by Oliver
Re: Tell me about Unix
« Reply #11 on: April 14, 2009, 04:11:46 PM »
Quote
bloodline wrote:
I bought a book called begining Linux Programming 4th Edition (Neil Matthew, Richard Stones) by Wiley Publishing! I can't recommend it more, it covers all the important parts of the POSIX interface and shells.


Hi Bloodline,

Just been reading about this. I think I'll pick it up. I'm starting development on an old Intrinsyc Cerf Board running Linux. Would you say most of the info on programming in C in this book, would also be applicable to C++? I'm thinking the basis for interaction with the OS would still hold.

Cheers,

Oli

P.S. X-Ray, the documents I referenced earlier are mainly for getting started with desktop Linux. They might be a bit too basic to bother with. The BASH and Filesystem items should still be handy, though.

Also, not sure if it's been mentioned here, but having a look at things like Putty and Cygwin would probably be worthwhile.
Good good study, day day up!
 

Offline X-rayTopic starter

  • Hero Member
  • *****
  • Join Date: Jul 2004
  • Posts: 4370
    • Show only replies by X-ray
Re: Tell me about Unix
« Reply #12 on: April 14, 2009, 10:10:13 PM »
Thanks all, haven't got details yet of what version we have, but putty would be useful because that's what they are using to edit config files on the server.