A full blog post with all the steps listed out can be found here. Macs are built on Unix and as such, you can use the terminal to run commands. However, by default root is disabled. This video will show you how to enable root on mac so you can run commands as sudo.
Click the apple symbol the upper left of your screen.
Click System Preferences
In the screen that appears click Users and Groups.
Click login options and then click the lock to allow you to make changes.
In the screen that appears enter your username and password.
Click Join next to Network account Server.
Then click Open Directory Utility.
In the screen that appears click the lock to allow you to make changes.
Enter your username and password.
Now at the top of the screen click edit & then Enable Root User.
Enter your root password and then click ok.
You can now run commands as root from the Mac Terminal
Userdata on AWS allows you to run commands on start-up when you launch an EC2 instance on AWS. This is known as boot strapping your instance. In this example we will be boot strapping Amazon Linux with the Apache web server.
First log into you AWS portal and then click services and EC2
Next Click launch instance.
Select Amazon Linux
Leave the instance as mirco to get the free tier and click next Configure instance details
Leave the defaults and scroll down to advanced details and expand it – enter the following lines into the textbox:
#!/bin/bash yum install httpd -y systemctl start httpd systemctl stop firewalld cd /var/www/html echo "this is my test site" > index.html
The text in the code block above installs apache and adds an simple webpage that reads this is my test site. Finally click Next add storage
Leave the defaults and click next add tags
Give your machine a name and click Next Configure Security Group.
Allow port 80 from 0.0.0.0/0 on the security group and click review and launch
You can proceed without a keypair as we will not log into this instance
click your instance ID
Wait until your instance is running and then copy it’s pubic IP or dns name
Open a new browser and enter the pubic IP of your Linux instance into the address bar. You should now see the simple webpage we created.
Apache Tomcat, often referred to as Tomcat Server, is an open-source Java Servlet Container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a “pure Java” HTTP web server environment in which Java code can run.
This Tomcat Tutorial will show you how to create a self signed cert that you can then use to secure Tomcat.
Open a command prompt window and navigate to your JAVA_HOME bin folder, in our case:
Note: You should update the tomcat path to match your path
You will then be prompted for a series of values, in our case we entered:
enter Keystore password: password retype keystore password: password what is your first and last name: localhost what is the name of your orgainsation unit: IT what is the name of your organisation: Darren what is the name of your city: Dublin what is the name of your state or province: Leinster What is the two-letter country code for this unit: IE
When prompted type yes to confirm all is correct.
Next you will be asked to use the same password for <tomcat>, press enter here:
Now open the tomcat server.xml file, in our case the file is located here:
Internet Information Services (IIS, formerly Internet Information Server) is an extensible web server created by Microsoft for use with the Windows NT family. IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part of the Windows NT family since Windows NT 4.0, though it may be absent from some editions (e.g. Windows XP Home edition), and is not active by default.
This IIS web server tutorial will show you how to install IIS 10 on Windows server 2016.
Click on the start menu and then server manager
Next click on manage and then add Roles and Features.
Click Next again.
Click next one last time.
Scroll down and click Web Server (IIS)
In the screen that appears click Add Features.
Click Next again.
Leave the default and click next.
You should now see a message saying Install successful. Click close to exit the installer.
“Oracle VM VirtualBox (formerly Sun VirtualBox, Sun xVM VirtualBox and Innotek VirtualBox) is a free and open-source hypervisor for x86 computers currently being developed by Oracle Corporation. Developed initially by Innotek GmbH, it was acquired by Sun Microsystems in 2008 which was in turn acquired by Oracle in 2010.”
In this tutorial you will see how to install VirtualBox on Windows Server 2016. The process for the install will be the same for windows 1o.
This is a tip which has got be out of a few binds before. So what happens is you are called to a job to troubleshoot a issue on a Linux server. You access the terminal and the keys you are typing are not appearing on the screen. For example, when you type @ you see ” and when you type # you see \.
This is happening because the terminal is expecting input from a US keyboard and you are using a UK keyboard.
You can solve this very quickly by typing the command:
sudo loadkeys uk
When this command is run successfully you should see a screen that looks like the one below.
Your keys should now be working correctly.
A video that shows this process can be found here:
“WildFly formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.”
In this tutorial we will be installing Wildfly on windows server 2016, however the process should be much the same on windows 10.
First we will download and install Java JRE. it is available from: