Linux for student and compilers

  • Thread starter Thread starter LBloom
  • Start date Start date
  • Tags Tags
    Linux Student
Click For Summary
SUMMARY

Undergraduate Physics students can benefit from using Linux, particularly Ubuntu, for learning basic computational skills. While Mac OS X provides similar terminal commands, installing Linux in a virtual machine using tools like VirtualBox or Parallels can enhance their experience. For compiling C++ and Fortran code, Mac users can utilize the g++ compiler included with XCode and the gfortran compiler available through Fink or Macports. Overall, exploring Linux can be advantageous for science students seeking to deepen their computational knowledge.

PREREQUISITES
  • Basic understanding of Linux terminal commands
  • Familiarity with Mac OS X and its terminal
  • Knowledge of C++ and Fortran programming languages
  • Experience with virtual machine software like VirtualBox or Parallels
NEXT STEPS
  • Research how to install Ubuntu in a VirtualBox environment
  • Learn about using XCode for C++ development on Mac OS X
  • Explore the installation and usage of gfortran for Fortran programming
  • Investigate the differences between Fink and Macports for package management
USEFUL FOR

Undergraduate students in physics, computer science students, and anyone interested in enhancing their programming skills using Linux and Mac OS X.

LBloom
Messages
169
Reaction score
0
Hi, I'm a undergrad Physics students (starting junior level mechanics and E&M next semester). I've just taken a course in basic computation, so I know more about using a linux terminal. Currently I use Mac OS X and I was wondering if it was advisable that I run and learn how to use Linux too (using parallels probably). If so, which version would be recommended? I was thinking about Ubuntu since it seems the most basic, but I don't know if its worth the time or if there's something else better suited for science students.

On an unrelated note, does anyone know a good fortran or C++ compiler for a Mac? I don't have the latest one (snow leapord) and my computer doesn't seem to come with one. Are there any compilers anyone can recommend. Thanks
 
Computer science news on Phys.org
The OS X terminal uses mostly the same commands as a linux shell, so you may want to start there.
 
Maybe this is a little late, but as story645 says, if you just want to use basic Linux terminal commands and command-line compilation of c++ and fortran code, there's really no need to install Linux. Most common Linux commands should already be there by default. I believe a c++ compiler (g++) is included with Mac OS X, although you may have to install XCode (or some thing similar--I forget the exact name of the developer tools). Google for "gfortran" if you want a fortran compiler. I got mine from Fink (basically an open source package manager), but you can probably find stand-alone binary if that's all you want. If you do go with Fink (or similarly you can choose Macports), you can also install most other software available for Linux, so there's little need to actually install Linux.

If you do have a bit of extra time and hard drive space (as well as enough RAM) and want to play around with an actual Linux distribution, I would suggest installing it in a virtual machine using VirtualBox (like Parallels, but free, and works perfectly well. Parallels probably works well too, but it costs money and I've never tried it). Any mainstream distribution like Ubuntu or OpenSUSE should be very easy to use. In fact, it's possible you'll find this easier than using Fink or Macports to install open source software in Mac OS.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 13 ·
Replies
13
Views
4K