Difference between revisions of "New virtual machine"

From Klaus' wiki
Jump to: navigation, search
(Install VirtualBox extensions)
 
Line 62: Line 62:
 
]$ sudo yum -y groupinstall kde "KDE Plasma Workspaces" "Development Tools" "Electronic Lab" --skip-broken
 
]$ sudo yum -y groupinstall kde "KDE Plasma Workspaces" "Development Tools" "Electronic Lab" --skip-broken
 
</source>
 
</source>
 +
 +
'''Notice''': For some odd reason the programs from Electronic Lab ends up in the "Lost and Found" folder in the applications menu. Right click on the menu button (start button) and choose edit. Locate the "Lost and Found" folder and drag the files to the Development Folder.
  
 
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.

Latest revision as of 12:22, 1 May 2020

Installing a new Centos on VirtualBox

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 an login once again in 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. (sometimes one have to reboot in order to have everything working smoothly.)

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

Notice: For some odd reason the programs from Electronic Lab ends up in the "Lost and Found" folder in the applications menu. Right click on the menu button (start button) and choose edit. Locate the "Lost and Found" folder and drag the files to the Development Folder.

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.

Open yakuake (Alt+F12)

Issue this command:

]$ cd Downloads
]$ sudo tar zxvf eclipse-cpp-2019-12-R-linux-gtk-x86_64.tar.gz -C /opt/

Notice: You may have dowloaded a newer version just make sure that you use the correct archive name.

Next we want a global executable file created

]$ sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse

Copy this script and paste it into the terminal window

cat<<- EOF > eclipse.desktop
[Desktop Entry]
Name=Eclipse CDT
Comment=Eclipse CDT IDE
Type=Application
Encoding=UTF-8
Exec=/usr/local/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Categories=GNOME;Application;Development;
Terminal=false
StartupNotify=true
EOF

Next this command:

]$ sudo mv eclipse.desktop /usr/share/applications/

That it! You're done installing Eclipse.