 Okay, so today's workshop we're going to or you're going to set up and use your own server Okay Build your own server not bring your own. You didn't have to bring one. I've provided you a server You're going to build it. Well build it build it in terms of really just Set up some initial configuration and install some software and use it So let's say before we do that. Let's Explain what we mean by a server and a few other things We're going to we're going to use what's called a virtual private server So what's a virtual private server? Well first? What is a server? Who has a server of their own? What is it? What's the server? well To we often interpret a server is being in two different ways. Sometimes we think of it as hardware you go For your company you go buy a server to host a website you go buy a server to do some specific task So that's the hardware Well, what is it? It's a computer where the main purpose of that computer is to run server software So we also think of servers as software The software running on that hardware, so I go buy a server the hardware and On that server hardware I install some server software Okay, so it's a little bit confusing there server software Well in a simple term applications that respond or communicate with other Applications across the internet at least from our perspective So your web browser communicates with for example the Apache web server just a piece of software that runs on a computer a web server You may have it the Microsoft exchange email server running in your company and All your users have clients that get their email from that server So server from the software perspective So a server Some of you may have heard about web hosting or shared hosting. You want to create your own website Well, what do you need you need a computer? the server hardware and The server software Apache web server is one common web server software So if you want to have your own website, you either need a computer with internet access and install the server But many people don't have their own dedicated computer That can have full-time internet access. So many people go via a company which Provides a service of web hosting you go pay a company $2 a month and they'll provide you some space to host your website and Web hosting normally is one computer shared amongst multiple users what that company does they have a computer or many computers and Many users get accounts on One of those computers So it's called shared hosting in some cases These computers in front of you Many users can use the one computer to host a website So the resources of that computer are shared amongst multiple computers The resources of the computer are shared against multiple users There's usually one computer which has one operating system running one web server like the Apache web server software But many websites hosted on that computer That's shared web hosting. We're not going to do that We can but we're not going to today. What we're going to do is set up and use a virtual private server So the idea is that we have our own server hardware Yeah, our own it's private. It's only us using that but rather than having an actual own computer It's virtual In that we use virtual machines to implement that that is the idea is that each of you Will have your own server server hardware, but virtual hardware not real hardware that's the idea of Course that virtual hardware is running on real hardware and the resources are shared amongst different virtual machines So that's the concept that we want to give everyone here a server hardware server and To make it cheaper. We use a virtual hardware server virtual private server and today We will give you access to that and then we'll go through some steps to install and set up some software on that Hardware server. Okay, so really we're going to focus on how to set up the server software We'll go through this quick so we can get started so Generally we talk about virtual private Servers and providers of such a server so companies sell you vpses There are many different companies across the world when you choose such a VPS provider, there are a number of things that you may consider Right, you need to pay money usually to use it You're using someone else's hardware and they're providing you a service you pay Some money to use that so how much money is one thing to consider when choosing a particular provider How much money to pay per month, which is a common thing, but nowadays you can pay on a shorter time frame per hour That is The ones that we're going to use we can pay per hour, so if we only use it for one day We only pay for that one day not for the full month Which is a little bit more efficient money-wise How much is a VPS cost anyone? about The ones we're going to use are of five dollars per month 160 bar per month There is Maybe there are cheaper ones around Not many, but there are a few there may be even a few free ones and There are many more expensive ones around We'll see why When you choose a provider a company that you use your VPS you consider your cost The virtual server is hosted in on real hardware in usually what's called a data center Some hosting some actual location the location of that the city where it is the country Where it is may have an impact on the performance of your server Okay, so you want to consider the location many companies have servers in multiple locations the server is being accessed by the internet and By you and by others so you want to consider how fast is the network access into that data center How many megabits per second coming in and out? The more the better When you choose a VPS you want to consider what virtualized hardware they offer How many virtual CPUs how much RAM how much disk space do they offer? normal traditional hard disks hard disks spinning platters or solid-state Discs which are much faster How much do they allow you in terms of network bandwidth? You want to consider what operating systems that they provide to you Most will support Linux or BSD based operating systems free ones Some will also support windows But you usually have to pay a little bit extra because there's a license cost involved of using windows and other operating systems Some will come with you just get the operating system installed They just install it for you others will install applications or pre-built images for example, they'll install the operating system plus the web server plus WordPress So you've got an instant website running WordPress, so they'll provide you that service the other things to consider a support like How they respond to your your queries and problems reliability of the the data center Uptime and so on how many other people are using those resources how much contention and other things Today is not about convincing you to use a virtual private server. It's not about selling one Okay, we're gonna use one just to give you some experience and then it's up to you to to choose whether it's of use to you Okay, that's not my point. I'm not trying to convince you that you all need one We're gonna use VPS is provided by a company called digital ocean okay Why they are quite a popular well-known company worldwide provide competitive price for what we want to do So they seem okay. I Haven't used them before this workshop So I set up an account to use them. I've used in in the past or I still use linode another one that provides Linux VPS's So let's go to digital ocean well So digital ocean I've created an account for myself to make it simpler I create an account for myself and then I'm going to set up some servers that each of you have Can access let's look at so I've logged into my account and This is from the digital ocean website. You don't have to be able to read at all. I'll zoom in where necessary Digital ocean it's about water cause their VPS's droplets Okay, so the idea is I have an account If I want to create a VPS I can do so by clicking the create button and Choose some options and it creates a VPS for me and I can create multiple VPS's Of course, I pay extra for each one So I've already created a number of VPS's or droplets as called here for each of you So they're listed here I Think everyone's got one. I'm going to create one for myself right now So I'll create a droplet And you'll see the options that I have when I create it so I Enter a host name which would be the name of my droplet doesn't matter what it is Preferably we wouldn't name it after my name because it's a little bit confusing once we log in but for simplicity in this class I've named it after our names Then I select the size Which is the size of the virtual hardware that they provide me so the first option is I get one CPU 512 megabytes of RAM a 20 gigabyte SSD solar state drive and one terabyte of transfer which is the amount of data that comes into my My server over a period of one month And I never remember in this case whether it's both in and out or it's just one way But one terabyte of network bandwidth over a month If I transfer more than one terabyte then I'll need to pay This costs five dollars a month If you want more RAM Larger disk space more transfer then you move up to ten dollars twenty dollars Thousands of dollars per month towards the bottom Okay, so you can choose based on what you think your requirements are I'm going to choose the cheapest one. It will be sufficient for our purposes And that's what I've done for you This company has data centers in different cities. I'm going to choose one nearby So it's maybe a little bit faster for accessing across the internet. I'm going to choose Singapore and That's what I've done for all of yours as well. I can select an operating system to install Linux based operating systems Ubuntu, Fedora, Debian and others and the version We're just installs the base OS But I can also select from applications Which installs an operating system plus some applications on top of that for me So I don't have to install those applications Wordpress on Ubuntu. Okay, so it installs Ubuntu plus the web server plus wordpress So you've got an instant website Because we're going to set up a website a basic one. We're going to use what's called lamp on Ubuntu. What's lamp mean? Anyone lamp Not the lamp in the projector What's lamp stand for? M for my SQL starter L. What's L stand for? What operating system kernel that we're using? Linux A for Apache web server Which is a common web server M for my SQL database server and P for PHP And maybe some others. That's a common combination Apache web server My SQL as a database server and PHP to join them running on a Linux operating system lamp There's a few options down the bottom Not so important for us today Vert IO default enabled really just speeds up the interface between I think my Virtual machine and the real hardware that's running Private networking allows me to easily connect all of the my droplets all of my VBS is together And sort of us internal network We won't use it. I think IPv6 is the new version of IP If you enable backups, I think you pay more So we'll not do that And I will create the droplet And now on the real hardware they're installing a virtual machine it takes about a minute to install and As it installs it actually sends me an email saying here's the login details for your account for your new VPS Okay, and while it's going it's already sent me an email sorry about that and You should see look at your email now It sent me an email or digital ocean sent me an email saying your new droplet has been created your new VPS has been created It has this IP address The user name to log in is root and the password is this random set of characters Look at your email now Because we'll need that information to log into your VPS and Mine is created. There's some other information I can do with it But let's go direct to using your VPS our tasks today So I've created fresh droplets for everyone who did that Maybe just check that's plugged in down there. I think I found who did that Okay, good. Just be careful that the cables are a bit loose Today you have a fresh droplet Together we'll set it up. So you do it on your own I'll do it on my own, but you'll follow what we do Set it up add a user set up the web server the database server and install some other software that we've seen in other workshops Some privacy software and maybe when we get time at the end just do some different things with a test and play Any questions before we start