Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 7f280c6

Browse files
author
Paul Cornell
committed
Added support for Ubuntu Server. Added WordPress sample topic. Added support for quick fixes for TypeScript-based projects.
1 parent ae3cf0e commit 7f280c6

46 files changed

Lines changed: 1531 additions & 627 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc_source/ami-contents.md

Lines changed: 93 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,95 @@
11
# Amazon Machine Image \(AMI\) Contents for an AWS Cloud9 EC2 Development Environment<a name="ami-contents"></a>
22

3-
The Amazon Machine Image \(AMI\) that AWS Cloud9 uses for an EC2 environment contains the following components:
4-
+ The packages listed in [Amazon Linux AMI 2018\.03 Packages](https://aws.amazon.com/amazon-linux-ami/2018-03-packages/) on the Amazon Linux AMI website\.
5-
+ [Apache HTTP Server](http://httpd.apache.org/) 2\.4
6-
+ [AWS CLI](sample-aws-cli.md) 1\.14\.9
7-
+ [AWS SAM Local](https://github.com/awslabs/aws-sam-local) 0\.2\.11
8-
+ [CoffeeScript](http://coffeescript.org) 2\.3\.1
9-
+ [Docker](https://www.docker.com/) 18\.03\.1\-ce
10-
+ [GCC, G\+\+](https://gcc.gnu.org/) 4\.8\.5
11-
+ [GDB](https://www.gnu.org/software/gdb/) 7\.6\.1
12-
+ [Git](https://git-scm.com/) 2\.14\.4
13-
+ [GNU libc](https://www.gnu.org/software/libc/) 2\.17
14-
+ [Go](https://golang.org) 1\.9\.1
15-
+ [MySQL](https://dev.mysql.com/) 14\.14
16-
+ [MySQL native driver for PHP](https://dev.mysql.com/downloads/connector/php-mysqlnd/)
17-
+ [Node\.js](https://nodejs.org/en/) v6\.14\.3
18-
+ [Node Package manager \(npm\)](https://www.npmjs.com/) 3\.10\.10
19-
+ [Node Version Manager \(nvm\)](http://nvm.sh/) 0\.31\.7
20-
+ [Perl](https://www.perl.org/) v\.5\.16\.3
21-
+ [PHP](https://secure.php.net/) 5\.6\.36
22-
+ [Pylint](https://www.pylint.org/) 1\.8\.1
23-
+ [Python](https://www.python.org/) 2\.7\.14
24-
+ [Python](https://www.python.org/) 3\.6\.5
25-
+ [Ruby on Rails](http://rubyonrails.org/) 5\.2\.0
26-
+ [Ruby](https://www.ruby-lang.org/en/) 2\.4\.1
27-
+ [virtualenv](https://virtualenv.pypa.io/en/stable/) 16\.0\.0
3+
Use the following information to get details about Amazon Machine Images \(AMIs\) that AWS Cloud9 uses for an EC2 environment\.
4+
5+
**Topics**
6+
+ [Amazon Linux](#ami-contents-amazon-linux)
7+
+ [Ubuntu Server](#ami-contents-ubuntu-server)
8+
9+
## Amazon Linux<a name="ami-contents-amazon-linux"></a>
10+
11+
To display the version of an Amazon Linux instance, run the following command from the AWS Cloud9 IDE for the connected environment or from an SSH utility such as the ssh command or PuTTY\.
12+
13+
```
14+
cat /etc/system-release
15+
```
16+
17+
To display a list of packages that are installed on an Amazon Linux instance, run one or more of the following commands\.
18+
19+
To display all installed packages as a single list:
20+
21+
```
22+
sudo yum list installed
23+
```
24+
25+
To display a list of installed packages with package names containing the specified text:
26+
27+
```
28+
sudo yum list installed | grep YOUR_SEARCH_TERM
29+
```
30+
31+
In the preceding command, replace `YOUR_SEARCH_TERM` with some portion of the package name\. For example, to display a list of all installed packages with names containing `sql`:
32+
33+
```
34+
sudo yum list installed | grep sql
35+
```
36+
37+
To display a list of all installed packages, displayed one page at a time:
38+
39+
```
40+
sudo yum list installed | less
41+
```
42+
43+
To scroll through the displayed pages:
44+
+ To move down a line, press **j**\.
45+
+ To move up a line, press **k**\.
46+
+ To move down a page, press **Ctrl\-F**\.
47+
+ To move up a page, press **Ctrl\-B**\.
48+
+ To quit, press **q**\.
49+
50+
For additional options, run the man yum command\. See also [Amazon Linux AMI 2018\.03 Packages](https://aws.amazon.com/amazon-linux-ami/2018-03-packages/) on the Amazon Linux AMI website\.
51+
52+
## Ubuntu Server<a name="ami-contents-ubuntu-server"></a>
53+
54+
To display the version of an Ubuntu Server instance, run the following command from the AWS Cloud9 IDE for the connected environment or from an SSH utility such as the ssh command or PuTTY\.
55+
56+
```
57+
lsb_release -a
58+
```
59+
60+
The version will display next to the **Description** field\.
61+
62+
To display a list of packages that are installed on an Ubuntu Server, run one or more of the following commands\.
63+
64+
To display all installed packages as a single list:
65+
66+
```
67+
sudo apt list --installed
68+
```
69+
70+
To display a list of installed packages with package names containing the specified text:
71+
72+
```
73+
sudo apt list --installed | grep YOUR_SEARCH_TERM
74+
```
75+
76+
In the preceding command, replace `YOUR_SEARCH_TERM` with some portion of the package name\. For example, to display a list of all installed packages with names containing `sql`:
77+
78+
```
79+
sudo apt list --installed grep sql
80+
```
81+
82+
To display a list of all installed packages, one page at a time:
83+
84+
```
85+
sudo apt list --installed | less
86+
```
87+
88+
To scroll through the displayed pages:
89+
+ To move down a line, press **j**\.
90+
+ To move up a line, press **k**\.
91+
+ To move down a page, press **Ctrl\-F**\.
92+
+ To move up a page, press **Ctrl\-B**\.
93+
+ To quit, press **q**\.
94+
95+
For additional options, run the man apt command\. See also [Ubuntu Packages Search](https://packages.ubuntu.com/) on the Ubuntu website\.

doc_source/app-preview.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Previewing Running Applications in the AWS Cloud9 Integrated Development Environment \(IDE\)<a name="app-preview"></a>
22

33
You can use the AWS Cloud9 IDE to preview a running application from within the IDE\.
4-
+ [Run an Application](#app-preview-run-app)
5-
+ [Preview a Running Application](#app-preview-preview-app)
6-
+ [Reload an Application Preview](#app-preview-app-reload)
7-
+ [Change the Application Preview Type](#app-preview-app-preview-type)
8-
+ [Open an Application Preview in a Separate Web Browser Tab](#app-preview-app-open-tab)
9-
+ [Switch to a Different Preview URL](#app-preview-url-switch)
10-
+ [Share a Running Application over the Internet](#app-preview-share)
4+
5+
**Topics**
6+
+ [Run an Application](#app-preview-run-app)
7+
+ [Preview a Running Application](#app-preview-preview-app)
8+
+ [Reload an Application Preview](#app-preview-app-reload)
9+
+ [Change the Application Preview Type](#app-preview-app-preview-type)
10+
+ [Open an Application Preview in a Separate Web Browser Tab](#app-preview-app-open-tab)
11+
+ [Switch to a Different Preview URL](#app-preview-url-switch)
12+
+ [Share a Running Application over the Internet](#app-preview-share)
1113

1214
## Run an Application<a name="app-preview-run-app"></a>
1315

@@ -126,11 +128,13 @@ On the application preview tab, type the path to a different URL in the address
126128
After you preview your running application, you can make it available to others over the internet\.
127129

128130
To do this, if an Amazon EC2 instance is connected to your environment, follow these steps\. Otherwise, see your server's documentation\.
129-
+ [Step 1: Get the ID and the IP Address of the Instance](#app-preview-share-get-metadata)
130-
+ [Step 2: Set Up the Security Group for the Instance](#app-preview-share-security-group)
131-
+ [Step 3: Set Up the Subnet for the Instance](#app-preview-share-subnet)
132-
+ [Step 4: Change the Running Application IP](#app-preview-share-change-port)
133-
+ [Step 5: Share the Running Application URL](#app-preview-share-url)
131+
132+
**Topics**
133+
+ [Step 1: Get the ID and the IP Address of the Instance](#app-preview-share-get-metadata)
134+
+ [Step 2: Set Up the Security Group for the Instance](#app-preview-share-security-group)
135+
+ [Step 3: Set Up the Subnet for the Instance](#app-preview-share-subnet)
136+
+ [Step 4: Change the Running Application IP](#app-preview-share-change-port)
137+
+ [Step 5: Share the Running Application URL](#app-preview-share-url)
134138

135139
### Step 1: Get the ID and the IP Address of the Instance<a name="app-preview-share-get-metadata"></a>
136140

@@ -170,9 +174,9 @@ In this step, you use the Amazon EC2 console to set up the Amazon EC2 security g
170174
You don't have to run using HTTP over port `8080`, `8081`, or `8082`\. If you are running on a different protocol or port, substitute it throughout this step\. You won't be able to preview your running application from within the IDE until you switch back to running using HTTP over one of the ports and IPs as described in [Preview a Running Application](#app-preview-preview-app)\.
171175
For an additional layer of security, you can also set up a network access control list \(ACL\) for a subnet in a virtual private cloud \(VPC\) that the instance can use\. For more information about security groups and network ACLs, see the following:
172176
[Step 3: Set Up the Subnet for the Instance](#app-preview-share-subnet)
173-
[Security](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Security.html) in the *Amazon VPC User Guide*
174-
[Security Groups for Your VPC](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide*
175-
[Network ACLs](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) in the *Amazon VPC User Guide*
177+
[Security](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Security.html) in the *Amazon VPC User Guide*
178+
[Security Groups for Your VPC](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html) in the *Amazon VPC User Guide*
179+
[Network ACLs](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the *Amazon VPC User Guide*
176180
177181
1. In the IDE for the environment, on the menu bar, choose your user icon, and then choose **Manage EC2 Instance**\. Then skip ahead to step 3 in this procedure\.
178182
@@ -211,8 +215,8 @@ In this step, you use the consoles for Amazon EC2 and Amazon Virtual Private Clo
211215
**Note**
212216
You don't have to run using HTTP over port `8080`, `8081`, or `8082`\. If you are running on a different protocol or port, substitute it throughout this step\. You won't be able to preview your running application from within the IDE until you switch back to running using HTTP over the ports and IPs as described in [Preview a Running Application](#app-preview-preview-app)\.
213217
This step describes how to set up a network ACL for a subnet in an Amazon VPC that the instance can use\. This step is not required\. However, it adds an additional layer of security when compared to just using security groups\. For more information about network ACLs, see the following:
214-
[Security](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Security.html) in the *Amazon VPC User Guide*
215-
[Network ACLs](https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) in the *Amazon VPC User Guide*
218+
[Security](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Security.html) in the *Amazon VPC User Guide*
219+
[Network ACLs](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_ACLs.html) in the *Amazon VPC User Guide*
216220
217221
1. With the Amazon EC2 console already open from the previous step, in the service navigation pane, expand **Instances** if it is not already expanded, and then choose **Instances**\.
218222

0 commit comments

Comments
 (0)