Class Objectives:
By the end of this class, you will be able to:
A hostname consists of 2 names: Alias or the server name and the domain name. It’s also called Fully Qualified Domain Name or FQDN.
The hostname can contain letters from a to z, digits from 0 to 9, minus sign or the hyphen, and can be up to 255 characters long.
While naming your server, you can:
Describe the server’s purpose such as just being a server – like server 1, server2, server3 , or a backup-server, or a development-server, etc.
Indicate its location like NewYork1, London1, etc.
Use an abbreviated owner or company name such as mff1, mbt1, or mindbuilt1.
We mostly use solar system, stars, galaxies etc. for our host names, like sun, moon, jupiter etc.
Don’t think too much about that. Just be Intuitive and choose an easy to remember name. If you don’t own a domain, we’ll go through the full process of registering a domain name later in the Class no: M4 C2 – Domain Registration & Name Servers. In the meanwhile, you can always search for a domain name that is free at:
namesilo.com
So here is the main folder sun.mindbuild.com which contains our “Coming Soon” page and will later on, contain all our server’s modified files and folders.
Now just drag and drop this folder sun.mindbuild.com to Sublime Text.
You can see that a sidebar has appeared.
On the sidebar, expand Coming Soon folder, and click index.html file.
This is all html the basic building blocks of a website.
On the right side, we have this text scroll bar. it comes real handy when dealing with large text files. I really miss it in other programs like Scrivener, which we shall cover shortly.
We’ll now save it as a project. The benefit of saving this folder as a project is that we’ll be able to perform quick searches as well as search and replace operations across all the files contained in this folder.
To save it as a Project click Project, and then Save Project As…
Save Project as yourservername.yourdomainname, without the suffix that is dot com. I didn’t check it in Mac, but on Windows, Sublime Text has issues using the dot com suffix. I’m saving it as sun.mindbuild.sublime-project
Choose a Color tag. It’s just an identifier, which makes identifying projects easy while switching different projects. You can assign the same color tag to the projects of the same category, like web servers, email servers etc.
In the Where field select the parent folder, in my case sun.mindbuild.com.
Save the project.
So our project is now created.
Now I’d like you to try searching for some text.
Press Command+F
Type Coming, enter, so we have got 2 matches.
Let’s suppose we want to search Coming across all the folders.
Simply press Command+Shift+F or select “Find in Files” from the Find drop down on the top menu. and then search Coming: Now we have got 4 matches across all the folders. This key combination searches files across the whole project.
Of course, we can replace text across all the files by using the same Command+Shift+F combination.
We also have these search criteria like Regular Expression, Case Sensitive, Full Word, etc which come in handy in different situations.
So that’s all.
Let’s repeat what we have achieved in this class: