2019-03-09 16:07:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset='utf-8' />
|
|
|
|
<title>Linux 101 • Freeside</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main class="js-deck3000">
|
2019-03-09 16:46:03 +00:00
|
|
|
<section>
|
2019-03-11 19:31:11 +00:00
|
|
|
<article class="title">
|
2019-03-14 17:11:10 +00:00
|
|
|
<h1>Linux 101</h1>
|
2019-03-11 19:31:11 +00:00
|
|
|
</article>
|
2019-03-09 16:46:03 +00:00
|
|
|
<article>
|
2019-03-11 20:20:12 +00:00
|
|
|
<h2>Structure</h2>
|
2019-03-11 19:31:11 +00:00
|
|
|
<ul>
|
2019-03-11 20:20:12 +00:00
|
|
|
<li>Introduction - why and where</li>
|
|
|
|
<li>Installation of Ubuntu</li>
|
|
|
|
<li>Writing and compiling a simple C♯ program</li>
|
2019-03-11 19:31:11 +00:00
|
|
|
</ul>
|
2019-03-09 16:46:03 +00:00
|
|
|
</article>
|
2019-03-11 20:20:12 +00:00
|
|
|
<article>
|
|
|
|
<h2>Why?</h2>
|
|
|
|
<div class="flex horizontal">
|
|
|
|
<div><img src="./images/linux-vs-windows-desktop-os.svg" /></div>
|
|
|
|
<ul>
|
|
|
|
<li>74.44% Windows</li>
|
|
|
|
<li>12.22% macOS</li>
|
|
|
|
<li>9.51% Other</li>
|
|
|
|
<li>1.58% Linux</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<p><small>According to <a href="http://gs.statcounter.com/os-market-share/desktop/worldwide">statcounter GlobalStats</a></small></p>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Why?</h2>
|
|
|
|
<div class="flex horizontal">
|
|
|
|
<div><img src="./images/linux-vs-windows-server-os.svg" /></div>
|
|
|
|
<ul>
|
|
|
|
<li>69.4% of webservers use a Unix-based OS</li>
|
|
|
|
<li>30.6% of webservers use Windows</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<p><small>
|
|
|
|
According to
|
|
|
|
<a href="https://w3techs.com/technologies/overview/operating_system/all">W<sup>3</sup>Techs</a>
|
|
|
|
</small></p>
|
|
|
|
</article>
|
2019-03-11 20:31:58 +00:00
|
|
|
<article>
|
|
|
|
<h2>Where?</h2>
|
|
|
|
<ul>
|
|
|
|
<li>US Department of Defence</li>
|
|
|
|
<!-- Largest Single Red Hat user in the world -->
|
|
|
|
<li>French Parliament</li>
|
|
|
|
<li>Amazon</li>
|
|
|
|
<li>Android</li>
|
|
|
|
</ul>
|
|
|
|
<p><small>Sources: <a href="https://www.comparebusinessproducts.com/fyi/50-places-linux-running-you-might-not-expect">1</a></small></p>
|
|
|
|
</article>
|
2019-03-09 16:46:03 +00:00
|
|
|
</section>
|
2019-03-14 15:37:03 +00:00
|
|
|
|
2019-03-14 16:09:10 +00:00
|
|
|
|
2019-03-14 15:37:03 +00:00
|
|
|
<section>
|
|
|
|
<article class="title">
|
2019-03-14 17:11:10 +00:00
|
|
|
<h1>Installing Ubuntu</h1>
|
2019-03-14 15:37:03 +00:00
|
|
|
</article>
|
|
|
|
<article>
|
2019-03-14 15:43:15 +00:00
|
|
|
<h2>What's Ubuntu?</h1>
|
2019-03-14 15:37:03 +00:00
|
|
|
<ul>
|
|
|
|
<li>A distribution of Linux</li>
|
|
|
|
<li>Others are available, but Ubuntu is great for beginners</li>
|
|
|
|
<li>Lots of help available online if you get stuck</li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
2019-03-15 19:49:39 +00:00
|
|
|
<article>
|
|
|
|
<img src="./images/linux-logos.png" alt="The logos of a number of different linux distributions.">
|
|
|
|
</article>
|
2019-03-14 15:37:03 +00:00
|
|
|
<article>
|
2019-03-15 19:18:50 +00:00
|
|
|
<img src="./images/linux-timeline-17.10.svg" alt="A timeline of different linux distributions.">
|
2019-03-14 15:37:03 +00:00
|
|
|
</article>
|
2019-03-14 15:43:15 +00:00
|
|
|
<article>
|
|
|
|
<h2>Let's Get Started!</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Visit here to access the VMs:</li>
|
2019-03-14 16:01:44 +00:00
|
|
|
<li><a href="http://www2.dcs.hull.ac.uk/people/cssaph/FreesideLinux101/">http://www2.dcs.hull.ac.uk/people/cssaph/FreesideLinux101/</a> (short link: <a href="https://tinyurl.com/freesidelinux101">https://tinyurl.com/freesidelinux101</a>)</li>
|
2019-03-14 15:43:15 +00:00
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
2019-03-15 19:18:50 +00:00
|
|
|
<h2>Choosing the language</h2>
|
|
|
|
<img src="./images/VM-Install/0.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Boot menu</h2>
|
|
|
|
<img src="./images/VM-Install/1.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Welcome</h2>
|
|
|
|
<img src="./images/VM-Install/2.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Keyboard Layout</h2>
|
|
|
|
<img src="./images/VM-Install/3.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Initial Software and Updates</h2>
|
|
|
|
<img src="./images/VM-Install/4.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Partitioning</h2>
|
|
|
|
<img src="./images/VM-Install/5.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Dual Booting</h2>
|
|
|
|
<img src="./images/VM-Install/6.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>I'm sure it's fine.....</h2>
|
|
|
|
<img src="./images/VM-Install/7.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Location</h2>
|
|
|
|
<img src="./images/VM-Install/8.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Credentials</h2>
|
|
|
|
<img src="./images/VM-Install/9.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Now we wait!</h2>
|
|
|
|
<img src="./images/VM-Install/10.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>and wait</h2>
|
|
|
|
<img src="./images/VM-Install/12.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Complete!</h2>
|
|
|
|
<img src="./images/VM-Install/13.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Logging in</h2>
|
|
|
|
<img src="./images/VM-Install/14.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Type your password</h2>
|
|
|
|
<img src="./images/VM-Install/15.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<img src="./images/VM-Install/16.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<img src="./images/VM-Install/17.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<img src="./images/VM-Install/18.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>The amazing <code>apt</code></h2>
|
|
|
|
<h2></h2>
|
|
|
|
<img src="./images/VM-Install/20.png" />
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Doing it manually</h2>
|
|
|
|
<img src="./images/VM-Install/21.png" />
|
2019-03-14 15:43:15 +00:00
|
|
|
</article>
|
2019-03-15 19:20:24 +00:00
|
|
|
<article>
|
|
|
|
<h2>Done!</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Installation complete!</li>
|
|
|
|
<li>What next?</li>
|
|
|
|
<li>Let's write some C♯</li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
2019-03-14 15:37:03 +00:00
|
|
|
</section>
|
2019-03-29 15:41:38 +00:00
|
|
|
|
2019-03-29 15:58:19 +00:00
|
|
|
|
2019-03-29 15:41:38 +00:00
|
|
|
<section>
|
|
|
|
<article class="title">
|
|
|
|
<h1>Let's Compile some C♯!</h1>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Package Management</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Most Linux distributions use a <em>package manager</em></li>
|
|
|
|
<li><em>Everything</em> is a package - from your kernel to the software that you use</li>
|
|
|
|
<li>Debian-based distributions use <code>apt</code></li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Mono</h2>
|
|
|
|
<ul>
|
|
|
|
<li><em>Mono</em> is the .NET runtime on Linux</li>
|
|
|
|
<li>Mono isn't available in the default <code>apt</code> repositories on Ubuntu</li>
|
|
|
|
<li>...so we need to add a new apt repository!</li>
|
|
|
|
<li><a href="https://www.mono-project.com/download/stable/">https://www.mono-project.com/download/stable/</a></li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Installation</h2>
|
|
|
|
<ul>
|
|
|
|
<li>We have the <code>apt</code> repository</li>
|
|
|
|
<li>Now we can install <code>Mono</code></li>
|
2019-03-31 11:47:14 +00:00
|
|
|
<li><code>sudo apt install mono-devel</code></li>
|
2019-03-29 15:41:38 +00:00
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Usage</h2>
|
|
|
|
<ul>
|
2019-03-31 11:48:33 +00:00
|
|
|
<li>The Linux terminal is similar to the Windows command prompt</li>
|
|
|
|
<li>Download a <em>Visual Studio</em> now if possible</li>
|
|
|
|
<li>Use a text editor to write a quick program otherwise</li>
|
|
|
|
<li>We can use <code>csc</code> and <code>msbuild</code> to compile just like we do on Windows</li>
|
2019-03-29 15:41:38 +00:00
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Usage (cont.)</h2>
|
2019-03-29 15:58:19 +00:00
|
|
|
<ul>
|
|
|
|
<li><code>csc MyFile.cs</code></li>
|
|
|
|
<li><code>msbuild</code></li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<article class="title">
|
|
|
|
<h1>Monodevelop</h1>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>What's Monodevelop?</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Writing C♯ code in a text editor is old-school</li>
|
|
|
|
<li>Like <em>Visual Studio</em>, but on Linux</li>
|
|
|
|
<li>Actually the base of <em>Visual Studio for Mac</em></li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Installing</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Same prodecure as with Mono</li>
|
|
|
|
<li>Challenge: Can you install Monodevelop using what you've learnt?</li>
|
|
|
|
<li><a href="https://www.monodevelop.com/download/">https://www.monodevelop.com/download/</a></li>
|
|
|
|
</ul>
|
2019-03-29 15:41:38 +00:00
|
|
|
</article>
|
|
|
|
</section>
|
2019-03-29 16:03:46 +00:00
|
|
|
|
|
|
|
<section>
|
|
|
|
<article class="title">
|
|
|
|
<h1>Summary</h1>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Summary</h2>
|
|
|
|
<ul>
|
|
|
|
<li>We've installed Ubuntu</li>
|
|
|
|
<li>We've installed Mono</li>
|
|
|
|
<li>We've compiled some C♯</li>
|
|
|
|
<li>We've looked at Monodevelop</li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Where next?</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Web server setup</li>
|
|
|
|
<li>Application server setup</li>
|
|
|
|
<li>Git hosting</li>
|
|
|
|
<li><s>Email</s> hosting</li>
|
|
|
|
<li>Decentralised Instant Messaging</li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<article>
|
|
|
|
<h2>Thanks for coming!</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Bought to you by Freeside</li>
|
2019-03-29 16:10:37 +00:00
|
|
|
<li>
|
|
|
|
Feedback: <a href="https://forms.gle/CN2Pkm4fnHjGzs889">https://forms.gle/CN2Pkm4fnHjGzs889</a>
|
|
|
|
<!-- TODO: Add QR Code here -->
|
|
|
|
</li>
|
|
|
|
<li>Join us: <a href="https://freeside.co.uk/">https://freeside.co.uk/</a></li>
|
2019-03-29 16:03:46 +00:00
|
|
|
<li>Discord | Forums | PC Access</li>
|
|
|
|
<li>Questions?</li>
|
|
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
</section>
|
2019-03-09 16:07:44 +00:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<!---------------->
|
|
|
|
<link rel="stylesheet" href="linux101.css" />
|
|
|
|
<script src="linux101.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|