Difference between revisions of "New virtual machine"

From Klaus' wiki
Jump to: navigation, search
Line 1: Line 1:
 +
==Installing a new Centos on VirtuialBox==
 +
 
If you want to create a new virtual machine go to osboxes.org and choose Centos 1908 64 bit for VirtualBox. Download the image.
 
If you want to create a new virtual machine go to osboxes.org and choose Centos 1908 64 bit for VirtualBox. Download the image.
  
Line 13: Line 15:
 
Boot it.  
 
Boot it.  
  
Notice: Click on the virtual machine to have it capture your keystrokes and mouse interaction. Your way out back to the host is the Right-Ctrl key once. (This behaviour will change when we get the Extension Pack installed.)
+
'''Notice''': Click on the virtual machine to have it capture your keystrokes and mouse interaction. Your way out back to the host is the Right-Ctrl key once. (This behaviour will change when we get the Extension Pack installed.)
  
Login to the account osboxes using the osboxes.org password. Notice: It comes with the GNOME window manager installed. KDE we'll have to install later. (Select English in the first dialogue box, Danish keyboard in the next, switch off location services, skip the online accounts connection. Close the help window.
+
Login to the account osboxes using the osboxes.org password. '''Notice''': It comes with the GNOME window manager installed. KDE we'll have to install later. (Select English in the first dialogue box, Danish keyboard in the next, switch off location services, skip the online accounts connection. Close the help window.
  
 
Next thing is to install VirtualBox Extensions - that's the software gluing the virtual machine to the operating system running underneath. Second step is to bring the machine up-to-date. Third step is to install the necessary software for the course. And finally download Eclipse and install it.
 
Next thing is to install VirtualBox Extensions - that's the software gluing the virtual machine to the operating system running underneath. Second step is to bring the machine up-to-date. Third step is to install the necessary software for the course. And finally download Eclipse and install it.
Line 63: Line 65:
 
Logout and follow the steps in [[First start]] to get into the KDE-Environment.
 
Logout and follow the steps in [[First start]] to get into the KDE-Environment.
  
===Install Eclipse IDE===
+
==Install on VMWare==
 +
 
 +
Follow the instructions in the [https://www.osboxes.org/guide/ guide] a bit down the page. Nptice: Choose SATA when prompted to select disk controller not the default SCSI.
 +
 
 +
Login to the account osboxes using the osboxes.org password. '''Notice''': It comes with the GNOME window manager installed. KDE we'll have to install later. (Select English in the first dialogue box, Danish keyboard in the next, switch off location services, skip the online accounts connection. Close the help window.
 +
 
 +
 
 +
<source lang=bash>
 +
]$ sudo yum install epel-release
 +
</source>
 +
 
 +
Finally update the system
 +
<source lang=bash>
 +
]$ sudo yum update
 +
</source>
 +
....this may take a while. But when finished reboot.
 +
<source lang=bash>
 +
]$ sudo reboot now
 +
</source>
 +
 
 +
Login on the osboxes account again.
 +
 
 +
To finalise perform these installations (open a terminal window once again):
 +
<source lang=bash>
 +
]$ sudo yum -y install yumex krusader yakuake
 +
]$ sudo yum -y groupinstall kde "KDE Plasma Workspaces" "Development Tools" "Electronic Lab" --skip-broken
 +
</source>
 +
 
 +
Logout and follow the steps in [[First start]] to get into the KDE-Environment.
 +
 
 +
==Install Eclipse IDE==
  
 
Right click on this link [[https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2019-12/R/eclipse-cpp-2019-12-R-linux-gtk-x86_64.tar.gz Eclipse CDT]] copy the link location.
 
Right click on this link [[https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2019-12/R/eclipse-cpp-2019-12-R-linux-gtk-x86_64.tar.gz Eclipse CDT]] copy the link location.

Revision as of 15:00, 28 April 2020

Installing a new Centos on VirtuialBox

If you want to create a new virtual machine go to osboxes.org and choose Centos 1908 64 bit for VirtualBox. Download the image.

Decompress with a suited utility handling 7z compressed files.

If you have one installation already you need to give the newly downloaded disk a new unique UUID (a number with a lot of digits). Issue this command in you shell where you've placed the file from osboxes.

]$ VBoxManage internalcommands sethduuid CentOS\ 7-1908(64bit).vdi

Follow the instructions given in the guide on osboxes how to create the new machine.

Boot it.

Notice: Click on the virtual machine to have it capture your keystrokes and mouse interaction. Your way out back to the host is the Right-Ctrl key once. (This behaviour will change when we get the Extension Pack installed.)

Login to the account osboxes using the osboxes.org password. Notice: It comes with the GNOME window manager installed. KDE we'll have to install later. (Select English in the first dialogue box, Danish keyboard in the next, switch off location services, skip the online accounts connection. Close the help window.

Next thing is to install VirtualBox Extensions - that's the software gluing the virtual machine to the operating system running underneath. Second step is to bring the machine up-to-date. Third step is to install the necessary software for the course. And finally download Eclipse and install it.

Install VirtualBox extensions

Select the Danish keyboard up to the right, where it now says us or en.

Right click on the background and select Open Terminal.

Type in this

]$ sudo yum install kernel-headers kernel-devel

give the password you used to login with and accept the importing of a GPG key.

next

]$ sudo yum install epel-release

now install the development tools

]$ sudo yum install make gcc perl dkms bzip2

Finally update the system

]$ sudo yum update

....this may take a while. But when finished reboot.

]$ sudo reboot now

After the reboot on the menu for the virtualbox window click on Devices->Insert Guest Additions CD Image

You should see a greyed window. Click on it and click on the Run button. Give the password. Let the software install. After installation you should be able to move you mouse in and out of the virtual machine without pressing the Right-Ctrl key. You can also resize the window containing the virtual machine to the size of your preference.

In the Devices menu select Shared Clipboard->Bidirectional - this will allow you to mark stuff in your host OS and bring it to the clipboard on the virtual machine, i.e. less typing from now on.

To finalise perform these installations (open a terminal window once again):

]$ sudo yum -y install yumex krusader yakuake
]$ sudo yum -y groupinstall kde "KDE Plasma Workspaces" "Development Tools" "Electronic Lab" --skip-broken

Logout and follow the steps in First start to get into the KDE-Environment.

Install on VMWare

Follow the instructions in the guide a bit down the page. Nptice: Choose SATA when prompted to select disk controller not the default SCSI.

Login to the account osboxes using the osboxes.org password. Notice: It comes with the GNOME window manager installed. KDE we'll have to install later. (Select English in the first dialogue box, Danish keyboard in the next, switch off location services, skip the online accounts connection. Close the help window.


]$ sudo yum install epel-release

Finally update the system

]$ sudo yum update

....this may take a while. But when finished reboot.

]$ sudo reboot now

Login on the osboxes account again.

To finalise perform these installations (open a terminal window once again):

]$ sudo yum -y install yumex krusader yakuake
]$ sudo yum -y groupinstall kde "KDE Plasma Workspaces" "Development Tools" "Electronic Lab" --skip-broken

Logout and follow the steps in First start to get into the KDE-Environment.

Install Eclipse IDE

Right click on this link [Eclipse CDT] copy the link location.

Start Firefox on the virtual machine and paste the link into the address field.

Download the Integrated development Environment and save the file - it usually goes into ~/Downloads.