-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathubuntu.html
More file actions
56 lines (51 loc) · 3.63 KB
/
ubuntu.html
File metadata and controls
56 lines (51 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
layout: default
---
<h1>Contents</h1>
<ul>
<li><a href="index">The basics</a></li>
<li>Unix on your laptop</li>
<li><a href="wordpress">Wordpress on your laptop</a></li>
<li><a href="public">Getting ready to go public</a></li>
</ul>
<div style="display: inline-block; float: left;"><a href="index">Previous lesson</a></div>
<div style="display: inline-block; float: right;"><a href="wordpress">Next lesson</a></div>
<h1 style="display: block; clear: both;">Unix on your laptop</h1>
<ol>
Get started with Unix - This is an operating system like Windows10 which is used by developers and website administrators.
<ul><li>Download and install <a href="https://releases.hashicorp.com/vagrant/2.2.4/vagrant_2.2.4_x86_64.msi">Vagrant (Windows 64 bit version)</a>. This is software that will be able to start Unix inside your Windows laptop!</li>
<li>Download and install <a href="https://download.virtualbox.org/virtualbox/6.0.4/VirtualBox-6.0.4-128413-Win.exe">VirtualBox (Windows 64 bit version)</a>. Vagrant uses this to run Unix inside your Windows laptop! You can use VirtualBox yourself but it can be a bit fiddly so best to let Vagrant do it to start with.</li>
<li>Now you will need to run some commands. Type <code>cmd</code> in the Windows search bar at the bottom of the screen and start the command prompt app.</li>
<li>You will see something like:
<pre><code>C:\Users\<i>username</i>></code></pre>
Make a new directory by typing
<pre><code>C:\Users\<i>username</i>><b>mkdir ubuntu</b></code></pre>
Move into the directory by typing
<pre><code><b>cd ubuntu</b></code></pre>
The prompt should change. Make a note of the prompt so you can get to the folder in Windows Explorer. It will be something like:
<pre><code>C:\Users\<i>username</i>\ubuntu></code></pre>
</li>
<li>Go into <a href="https://github.com/cioportfolio/gettingstarted">the github area for these lessons</a>. Use the green button to download a zip of the files. Unzip the file and move <code>Vagrantfile</code> and <code>bootstrap.sh</code> into the new folder you created</li>
<li>Back to the command line now:
<pre><code>...\ubuntu><b>vagrant up</b></code></pre>
This will take some time, install loads of updates and set up unix.
You will get a new purple window but you can't get in there yet.
<pre><code>...\ubuntu><b>vagrant ssh</b></code></pre>
Now you will see something like
<pre><code>vagrant@ubuntu-xenial:~$</code></pre>
Unix is up and running. Now you need an account. Use this command and follow the prompts:
<pre><code>vagrant@ubuntu-xenial:~$ <b>sudo adduser <i>username</i></b></code></pre>
Get back to windows with
<pre><code>vagrant@ubuntu-xenial:~$ <b>exit</b></code></pre>
The next commands will stop and restart unix (it will be much quicker this time). You should now be able to logon with that account you set up in the purple/red window.
<pre><code>...\ubuntu><b>vagrant halt</b>
...\ubuntu><b>vagrant up</b></code></pre>
You can 'up' and 'halt' whenever you need to start and stop the unix app.
Time to play around.
Find the "ubuntu software" icon on the left hand side.
Click on this then search for "chromium" in the box. Install this and you now have Chrome web browser.
</li>
</ul>
<ol>
<div style="display: inline-block; float: left;"><a href="index">Previous lesson</a></div>
<div style="display: inline-block; float: right;"><a href="wordpress">Next lesson</a></div>