Linux for student and compilers

  • Thread starter Thread starter LBloom
  • Start date Start date
  • Tags Tags
    Linux Student
AI Thread Summary
For undergraduate physics students considering the use of Linux, running a Linux distribution like Ubuntu in a virtual machine is a viable option, especially for learning purposes. However, it may not be necessary to install Linux if the goal is to use basic terminal commands and compile C++ or Fortran code, as Mac OS X's terminal supports similar commands and includes a C++ compiler (g++) with the installation of XCode. Fortran compilers can be found by searching for "gfortran," and users can utilize package managers like Fink or Macports to access additional software typically available on Linux. If opting for a virtual machine, VirtualBox is a free alternative to Parallels and is recommended for ease of use. Mainstream distributions like Ubuntu or OpenSUSE are user-friendly and may simplify software installation compared to Mac package managers.
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.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top