Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to compile on on ubuntu server using vim and g++? and possibly uploading those files onto your ubuntu desktop using ubuntu one? I have an old mac laptop I want to use for my programming only, it is pretty old so i would rather run a cmd on it rather than an entire OS. Or if anyone has other suggestions that would be great as well, this is just a mobile lap top that i carry with me and would be great if i can upload all the work on it to my main machine.

share|improve this question
up vote 0 down vote accepted

From the build-essential package contents, taken from, the package build-essential contains the following:

  • dpkg-dev (>= 1.13.5) Debian package development tools
  • g++ (>= 4:4.4.3) GNU C++ compiler (This is what you want for C++ compilations)
  • gcc (>= 4:4.4.3) GNU C compiler
  • libc6-dev Embedded GNU C Library: Development Libraries and Header Files or libc-dev virtual package provided by libc6-dev
  • make An utility for Directing compilation.

By installing this package you will be able to use the GNU C and C++ compilers. So nothing can stop you from compiling code.

Note that there is a packaged version of build-essentials for every Ubuntu version.

Vim does not depends of UI components and runs using the terminal window.

As for other lightweight recommendations for an old machine, it depends of the specs of the machine.

You can check the following window managers - desktop environments if meet your requirements:

share|improve this answer
Thank you, just the answer I was looking for – octain Aug 25 '13 at 15:23

I don't think I compeletely understand what you mean. Where does Ubuntu server run? On the laptop or on the desktop? I guess you want to install Ubuntu server on the laptop, right?

Anyway, if that is the case, then yes, you can compile from Ubuntu server. For most cases installing the build-essential package will install everything you need to compile a c++ application. Of course, you may need to install more libraries, e.g. if you are writing a GUI application.

As for getting the files back to your desktop, why not try using sshfs or NFS? I guess ubuntu one would also work, but I've not tried to use it on a command line only setup.

share|improve this answer
Yes it is a laptop, I have my main machine which is a desktop. Thanks for the answer – octain Aug 25 '13 at 15:24
You may also want to look into distcc, which allows you to work from your desktop, but lets the laptop help in compiling. See for example for instructions. – ph0t0nix Aug 25 '13 at 15:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.