This shows you the differences between two versions of the page.
— | virtualisation:integrating-software [2018/07/18 15:14] (current) – created preisig | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Hello World in C ===== | ||
+ | |||
+ | - First of all we need to install gcc: GNU Compiler Collection | ||
+ | - At the beginning, update the packages by typing < | ||
+ | - Subsequently install the compiler by typing < | ||
+ | - Now create and open a .c file using nano editor < | ||
+ | - Type following code: <code c hello.c ># | ||
+ | int main() | ||
+ | { | ||
+ | printf(" | ||
+ | return 0; | ||
+ | } | ||
+ | </ | ||
+ | - Save it using Ctrl + O (German keyboard: Strg + O) | ||
+ | - Exit using Ctrl + X (German keyboard: Strg + X) | ||
+ | - Compile the program using gcc < | ||
+ | - Type < | ||
+ | - The created file has rights 644. Change it to 755 < | ||
+ | - Type < | ||
+ | |||
+ | ===== Hello World shell script ===== | ||
+ | |||
+ | - Create and open file using nano editor < | ||
+ | - Type following code: <code bash helloBash > | ||
+ | #!/bin/bash | ||
+ | echo "Hello World" | ||
+ | </ | ||
+ | - Save it using Ctrl + O (German keyboard: Strg + O) | ||
+ | - Exit using Ctrl + X (German keyboard: Strg + X) | ||
+ | - Type < | ||
+ | - The created file has rights 644. Change it to 755 < | ||
+ | - Type < | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Hello World in Python ===== | ||
+ | |||
+ | - First of all we need to install Python | ||
+ | - At the beginning, update the packages by typing < | ||
+ | - Subsequently install Python by typing < | ||
+ | - Create and open a .py file using nano editor < | ||
+ | - Type following code: <code python helloPt.py> | ||
+ | - Save it using Ctrl + O (German keyboard: Strg + O) | ||
+ | - Exit using Ctrl + X (German keyboard: Strg + X) | ||
+ | - Run the program using < | ||
+ | |||