User Tools

Site Tools


linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux [2014/05/08 10:00]
viennastar
linux [2014/05/08 10:35]
viennastar small adjustments to wording, fixed typos, added optional packages
Line 2: Line 2:
  
 You are expected to develop within a [[http://​en.wikipedia.org/​wiki/​Linux|Linux]] environment,​ therefore you are asked to prepare a working Linux installation on your notebook/​PC. ​ You are expected to develop within a [[http://​en.wikipedia.org/​wiki/​Linux|Linux]] environment,​ therefore you are asked to prepare a working Linux installation on your notebook/​PC. ​
-A convenient way of using a Linux operating system without reinstalling a notebook/PC is to put it into a [[http://​en.wikipedia.org/​wiki/​Virtual_machine|virtual machine (or 'guest system'​)]]. ​For this purpose ​we recommend [[https://​www.virtualbox.org/​|VirtualBox]], which is available as free [[http://​en.wikipedia.org/​wiki/​Open_source|open source]] tool and thus free of charge. +A convenient way of using a Linux operating system without reinstalling a notebook/PC is to put it into a [[http://​en.wikipedia.org/​wiki/​Virtual_machine|virtual machine (or 'guest system'​)]]. ​While there are many different solutions for virtual machines available, ​we recommend [[https://​www.virtualbox.org/​|VirtualBox]] ​for this purpose. It is available as free [[http://​en.wikipedia.org/​wiki/​Open_source|open source]] tool and thus free of charge. 
-OnceVirtualBox is installed on your notebook/​PC,​ install a Linux distribution as a guest system (aka virtual machine; virtual because the Operating system is running inside of an application,​ i.e. in this case VirtualBox).  +Once VirtualBox is installed on your notebook/​PC,​ install a Linux distribution as a guest system (aka virtual machine; ​'virtual' ​because the Operating system is running inside of an application,​ i.e. in this case VirtualBox).  
-Regarding the Linux distribution,​ we recommend [[http://​www.linuxmint.com/​|Linux Mint]], due to its broad user base, ease of use, and lightweight desktop environments. In the following, we will discuss the installation of VirtualBox as well as the setup of Linux Mint as a guest system.+Regarding the Linux distribution,​ we recommend ​the [[http://​www.ubuntu.com/​|Ubuntu]]-based distribution ​[[http://​www.linuxmint.com/​|Linux Mint]] ​because of its broad user base, ease of use, and lightweight desktop environments. In the following, we will discuss the installation of VirtualBox as well as the setup of Linux Mint as a guest system. Feel free to use a different Linux distribution if you know what you are doing.
  
 By the end of this guide you will be able to By the end of this guide you will be able to
Line 13: Line 13:
  
 Download the latest installer package for your notebook'​s/​PC'​s operating system from the [[https://​www.virtualbox.org/​wiki/​Downloads|web page]] and install it. After the installation, ​ Download the latest installer package for your notebook'​s/​PC'​s operating system from the [[https://​www.virtualbox.org/​wiki/​Downloads|web page]] and install it. After the installation, ​
-we recommend to also download and install the so-called //Extension Pack// (also available from the web page), providing amongst ​others ​support for USB 2.0 (instead of 1.1 which is shipped with the standard installation package). For detailed installation instructions,​ please use VirtualBox'​s [[https://​www.virtualbox.org/​manual/​UserManual.html|online manual]]. Another resource for help is [[http://​www.youtube.com|YouTube]],​ search terms like "​virtualbox install"​ will most likely yield valuable serach results.+we recommend to also download and install the so-called //Extension Pack// (also available from the web page), providing ​amongst ​other things - support for USB 2.0 (instead of 1.1 which is shipped with the standard installation package). For detailed installation instructions,​ please use VirtualBox'​s [[https://​www.virtualbox.org/​manual/​UserManual.html|online manual]]. Another resource for help is [[http://​www.youtube.com|YouTube]],​ search terms like "​virtualbox install"​ will most likely yield valuable serach results.
  
 ===== Setup of Linux Mint as a Virtual Machine ===== ===== Setup of Linux Mint as a Virtual Machine =====
  
-After VirtualBox has been installed on you local machine, you can start installing virtual machines inside of VirtualBox. In particular we will now install Linux Mint as a virtual machine.  +After VirtualBox has been installed on your local machine, you can start installing virtual machines inside of VirtualBox. In particular we will now install Linux Mint as a virtual machine.  
-For that purpose we first have to download a //Live DVD// image of the distribution from the web page. These images are available for different desktop environments. We recommend the [[http://​www.linuxmint.com/​edition.php?​id=146|Mate 64-bit]] version, due to its similarity to Windows. Please follow the instructions in [[http://​www.youtube.com/​watch?​v=0b156gdyJk4|this]] YouTube video, which shows a VirtualBox running on a Windows 7 host system and a Linux Mint being installed as a guest system. +For that purpose we first have to download a //Live DVD// image of the distribution from the web page. These images are available for different desktop environments. We recommend the [[http://​www.linuxmint.com/​edition.php?​id=146|Mate 64-bit]] version, due to its similarity to Windows. Please follow the instructions in [[http://​www.youtube.com/​watch?​v=0b156gdyJk4|this YouTube video]], which shows a VirtualBox running on a Windows 7 host system and a Linux Mint being installed as a guest system. 
-[[http://​www.youtube.com/​watch?​v=BmWcGeGaHyw|Here]] is another video, showing the general installation of Linux Mint but not in the context of VirtualBox or virtual machines ​in general, for that matter+[[http://​www.youtube.com/​watch?​v=BmWcGeGaHyw|Here is another video]], showing the general installation of Linux Mint in general rather than in the particular ​context of VirtualBox or virtual machines. ​
  
-**Important!** When you are asked regarding the size of the virtual hard drive, please assign at least 30 GB; also use the '​dynamically allocated'​ protocol for the virtual hard drive. However, not to worry, the size of the virtual hard drive can be increased at a later point. ​+**Important!** When you are asked regarding the size of the virtual hard drive, please assign at least 30 GB; also use the '​dynamically allocated'​ protocol for the virtual hard drive. However, not to worry, the size of the virtual hard drive can be increased at a later point and only the actual amount of disk space used in the virtual machine is required on your disk.
  
 ===== Configuring the Virtual Machine ===== ===== Configuring the Virtual Machine =====
  
-VirtualBox lets you configure the resources the virtual machine has access, amongst ​the most important resources are the number of CPU cores and the amount of system memory. We recommend assigning all cores available on your host system - excluding ​HT '​cores'​ - without execution cap to the guest as well as half the amount of physical memory available to the host. For instance, the following pictures depict the configurations for a quad-core AMD CPU with 8GB of system memory.+VirtualBox lets you configure the resources the virtual machine has access ​to. Amongst ​the most important resources are the number of CPU cores and the amount of system memory. We recommend assigning all cores available on your host system - excluding ​hyperthreading ​'​cores'​ - without execution cap to the guest as well as half the amount of physical memory available to the host. For instance, the following pictures depict the configurations for a quad-core AMD CPU with 8GB of system memory.
  
 {{:​virtualbox_motherboard.png?​200|}} {{:​virtualbox_motherboard.png?​200|}}
Line 33: Line 33:
 ===== Installing the Guest Additions ===== ===== Installing the Guest Additions =====
  
-Once Linux Mint is installed as a virtual machine, boot it up. It may very well be the case that the desktop resolution of the virtual machine is very small; worry not, this is about to change ​as we are to install the so called //​Guest ​Addtions//. To do that, please follow the steps depicted in [[http://​www.youtube.com/​watch?​v=uVXi4q3LpTY|this]] YouTube video. Note that the YouTube video is based on a Mac OS X host where an OpenSuse Linux guest is installed. The steps, however, are the same, so please follow them. After a reboot, the desktop resolution of your Linux Mint guest should be maximized to fit your physical screen.+Once Linux Mint is installed as a virtual machine, boot it up. It may very well be the case that the desktop resolution of the virtual machine is very small; ​No need to worry, ​though, as this is about to change ​when we install the so called //​Guest ​Additions//. To do that, please follow the steps depicted in [[http://​www.youtube.com/​watch?​v=uVXi4q3LpTY|this]] YouTube video. Note that the YouTube video is based on a Mac OS X host where an OpenSuse Linux guest is installed. The steps, however, are the same, so please follow them. After a reboot, the desktop resolution of your Linux Mint guest should be maximized to fit your physical screen.
  
 ===== First Steps in Linux (Mint) ===== ===== First Steps in Linux (Mint) =====
Line 55: Line 55:
   * git   * git
  
 +Depending on your actual project, you may also want to install the following packages:
 +
 +  * clang (another free C++ compiler)
 +  * ParaView (for VTK visualization)
 +  * Kile (LaTeX editor)
 +  * qtcreator (C++ IDE)
 +  * KDevelop (another C++ IDE)
 +  * Doxygen (automated documentation extraction from annotated comments in source code)
  
  
linux.txt · Last modified: 2014/05/08 10:35 by viennastar