Idiots guide to UNIX
Author
Discussion

littlegreenfairy

Original Poster:

10,134 posts

252 months

Tuesday 16th October 2007
quotequote all
Oh help,

I've got my final year uni project and its all maths and modelling using UNIX as a basis.

I don't want to be treated like a moron, but in all honesty, I am. I didn't even know that UNIX existed until yesterday and all I've got is this bloody text box to tap things into.

How can it be made simple??? What do I need to know, and how do I do simple things like make a file, find a directory and log on frown

Help frown

Mr E

23,113 posts

290 months

Tuesday 16th October 2007
quotequote all
http://www.ee.surrey.ac.uk/Teaching/Unix/unixintro...

Might be a useful read for 30 mins or so.

ATG

23,898 posts

303 months

Tuesday 16th October 2007
quotequote all
Ha, ha, ha. Welcome to "real computing" or "the dark ages" ... take your pick, opinions vary. I'm sure there must be a load of beginners manuals available on the interweb and somebody who knwos there arse from their elbow will be along to point you in the right directon soon. Have no fear; you don't have to learn much to be able to create directories, move around the tree, create files etc. Once you've got the basics and you've played with it for an hour you'll be fine.

Mr E's guide looks like a good place to start

Edited by ATG on Tuesday 16th October 22:33

mattski

85 posts

303 months

Tuesday 16th October 2007
quotequote all
Go and grab SuSE Linux or Fedora, install, get a command prompt and type 'man <command>' a lot :-)

Also learn to use the 'vi' (or 'vim') editor, it's amazing and you'll never want to use anything else once you're used to it.

To make an empty file: touch <filename>

To find something (lots of variations but I like this one): 'find <start> -name <file>', i.e. find /opt -name "*.txt" finds all text files under the /opt directory.

Good luck,
Matt



Edited by mattski on Tuesday 16th October 22:41

littlegreenfairy

Original Poster:

10,134 posts

252 months

Tuesday 16th October 2007
quotequote all
Thanks for the link.

I still want to cry frown I struggle using a mac as I don't know where anything is. Why oh why did they give this project to someone who can't even make a dvd player work weeping

mattski

85 posts

303 months

Tuesday 16th October 2007
quotequote all
is it a newish Mac? If so, you're half way there - it's BSD underneath ;-)

littlegreenfairy

Original Poster:

10,134 posts

252 months

Tuesday 16th October 2007
quotequote all
What in the name of everything holy is BSD???

My laptop is a mac book (had since april) but the computer I'm using will be some uber fast powerful ice something or other apparently.

When I say I'm completely computer illiterate, I mean it frown

grumbledoak

32,571 posts

264 months

Tuesday 16th October 2007
quotequote all
Unless you really want to become a geek, I would listen to Mr E and ATG, and try to never find out what mattski means about 'vi', or 'find'. Don't even ask about the other inmates like 'sed' and 'awk'.

Back to the "Dark Ages", indeed. biggrin

Mrs BlueCerbera

2,208 posts

271 months

Tuesday 16th October 2007
quotequote all
Crikey, sed and awk. Got an O'reilly sed and awk book on the shelf behind me. Not been looked at in years, thankfully I have no use for it now hehe

Edited to add - Good luck LGF. I've not used Unix in years but its not too hard, like someone else said, the man (manual) pages are good, if you know what command you want help on .....

Edited by Mrs BlueCerbera on Tuesday 16th October 23:21

mystomachehurts

11,669 posts

281 months

Tuesday 16th October 2007
quotequote all
PMSL laughing at everything above.


LGF, you are going to have to tell us a little bit more about what it is you need to do.

Then we will spend a few hours debating whether it should be written in bash or perl or ruby or java or c or c++.

Then once we've decided on that well debate how it should be implemented; command line/web-service-xml/html-cgi/html-php/html-ajax/ruby-rails.

You get the drift!

(At least you are not looking at VB/C#/J#/.Net)

As final question, if this is your final year project, just what have you been doing for the last few years?

Anyway... spill your beans because the devil is in the detail!


littlegreenfairy

Original Poster:

10,134 posts

252 months

Tuesday 16th October 2007
quotequote all
Umm its to do with heat conduction in rock...

As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!

ATG

23,898 posts

303 months

Tuesday 16th October 2007
quotequote all
FFS ... it should be written in Python hehe

And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.

TheLearner

6,962 posts

266 months

Wednesday 17th October 2007
quotequote all
littlegreenfairy said:
Umm its to do with heat conduction in rock...

As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
Ok. UNIX is basically what the heavy duty computers run; the things that run banks... billing systems for megacorps and so on. And yes, unfortunatley, it's used a lot when doing high variable simulations of 'stuff' (rocket motors, nuclear bombs... etc).

By virtue of the fact you only find it, for the most, in server farms, it's completely and utterly un-fcensoredking-friendly. Now, we might... might be able to make it a bit more friendly. If you had to type in such arcane commands as 'ssh' or 'telnet' to get the weird prompt up... you're screwed and well you're gonna need reinforcements. If you're say sat in front of an actual terminal somewhere try these commands:
startkde &
gnome-session &
startx &

Hopefully the machine will sit there and think about this for a few seconds and up will pop a GUI; bit different to OS X and Windows but. It might not and then we're back to plan B smile

Thing is, what does your project actually involve? Thermal conductivity of rock samples is one thing; but are you supposed to punch the numbers in to an existing program and then go on to extrapolate from it... or write the sim for scratch or something totally different? It just seems really odd that in a course that had next to no computery stuff they'd drop you in the deep end this way.

ATG

23,898 posts

303 months

Wednesday 17th October 2007
quotequote all
littlegreenfairy said:
Umm its to do with heat conduction in rock...

As for the last few years I've been doing a materials engineering degree and there has been no work on this at all, or indeed anything on computers (not even CAD) so I'm utterly screwed!
Why so optimistic?

Mathematical model of the heat flow in the rock ... some diffusion equation thing.

Now turn to a text book on "numerical techniques" which guides you through the options for putting together an iterative method for solving the differential equation and expresses it in some easy-to-read computer language (could do a lot worse than "Numerical Recipes in ForTran" ... stop laughing at the back). If you can make headway on those bit you've done the tough stuff.

Converting that into a programme that will actually run on a computer is pretty much a mechanical process. Yes, you'll have to learn how to crank the handle to produce the programme and you'll have to get used to putting every dot and comma in the right place, but it is very doable.

mph999

2,780 posts

251 months

Wednesday 17th October 2007
quotequote all
Sent you an email ....

Spokey

2,246 posts

240 months

Wednesday 17th October 2007
quotequote all
ATG said:
FFS ... it should be written in Python hehe

And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.
Burn the heathen! evil

TheLearner

6,962 posts

266 months

Wednesday 17th October 2007
quotequote all
Spokey said:
ATG said:
FFS ... it should be written in Python hehe

And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.
Burn the heathen! evil
Indeed, he should have said nano


grumbledoak

32,571 posts

264 months

Wednesday 17th October 2007
quotequote all
TheLearner said:
try these commands:
startkde &
gnome-session &
startx &
Optimistic, certainly in corporate-ville.

LGF, try:
> uname -a

and post the results. We'll have a guess at what might work.

Hanslow

838 posts

276 months

Wednesday 17th October 2007
quotequote all
We do thermal modelling software on Unix (and Windows) wink Mainly for cooling electronics, but also do HVAC systems and the software deals with heat conduction and stuff. No geological stuff though, other than having various materials available, and the ability to build up materials from base property values.

As mentioned, the numerical recipes book, in C or C++, none of this old dodgy fortran tongue out, could be just what you need. That's assuming you will be developing some software to do some calculations, rather than using existing software to calculate various heat flow properties of different materials and comparing results, etc.

A bit more detail about your actual project would be useful for those willing to help. Unix itself is quite cool, but then I was around in the (later) days of DOS, so find command lines quite refreshing wink Plenty of books on getting to grips with unix, and free resource on the web, and you'll be able to get free compilers to build any source code that you may need to write. Possibly a steep learning curve, but sounds like it could be quite enjoyable (to my twisted mind anyway smile )

Edited by Hanslow on Wednesday 17th October 00:36

ATG

23,898 posts

303 months

Wednesday 17th October 2007
quotequote all
TheLearner said:
Spokey said:
ATG said:
FFS ... it should be written in Python hehe

And whoever said "use vi", you are a very bad person. I'll agree it is "amazing", but not in a good way.
Burn the heathen! evil
Indeed, he should have said nano
What is the first menu button on nano? "Get Help". A message for us all. hehe