Structure
- Introduction - why and where
- Installation of Ubuntu
- Writing and compiling a simple C♯ program
Why?
- 74.44% Windows
- 12.22% macOS
- 9.51% Other
- 1.58% Linux
According to statcounter GlobalStats
Why?
- 69.4% of webservers use a Unix-based OS
- 30.6% of webservers use Windows
According to W3Techs
Where?
- US Department of Defence
- French Parliament
- Amazon
- Android
Sources: 1
Installing Ubuntu
What's Ubuntu?
- A distribution of Linux
- Others are available, but Ubuntu is great for beginners
- Lots of help available online if you get stuck
![The logos of a number of different linux distributions.](./images/linux-logos.png)
Let's Get Started!
- Visit here to access the VMs:
- http://www2.dcs.hull.ac.uk/people/cssaph/FreesideLinux101/ (short link: https://tinyurl.com/freesidelinux101)
Choosing the language
![](./images/VM-Install/0.png)
Boot menu
![](./images/VM-Install/1.png)
Welcome
![](./images/VM-Install/2.png)
Keyboard Layout
![](./images/VM-Install/3.png)
Initial Software and Updates
![](./images/VM-Install/4.png)
Partitioning
![](./images/VM-Install/5.png)
Dual Booting
![](./images/VM-Install/6.png)
I'm sure it's fine.....
![](./images/VM-Install/7.png)
Location
![](./images/VM-Install/8.png)
Credentials
![](./images/VM-Install/9.png)
Now we wait!
![](./images/VM-Install/10.png)
and wait
![](./images/VM-Install/12.png)
Complete!
![](./images/VM-Install/13.png)
Logging in
![](./images/VM-Install/14.png)
Type your password
![](./images/VM-Install/15.png)
![](./images/VM-Install/16.png)
![](./images/VM-Install/17.png)
![](./images/VM-Install/18.png)
The amazing apt
![](./images/VM-Install/20.png)
Doing it manually
![](./images/VM-Install/21.png)
Done!
- Installation complete!
- What next?
- Let's write some C♯
Let's Compile some C♯!
Package Management
- Most Linux distributions use a package manager
- Everything is a package - from your kernel to the software that you use
- Debian-based distributions use
apt
Mono
- Mono is the .NET runtime on Linux
- Mono isn't available in the default
apt
repositories on Ubuntu - ...so we need to add a new apt repository!
- https://www.mono-project.com/download/stable/
Installation
- We have the
apt
repository - Now we can install
Mono
sudo apt install mono-devel
Usage
- If you've got some C♯ code in a Visual Studio solution already, download that now
- Otherwise, use a text editor to write a quick program
- On Linux, we can use
csc
andmsbuild
just like we do on Windows