Proyecto

General

Perfil

Apache Guacamole by Neodoo En » Histórico » Versión 4

Francisco Javier Solans Benedí, 2024-04-10 06:44

1 3 Francisco Javier Solans Benedí
{{toc}}
2 1 Francisco Javier Solans Benedí
3 3 Francisco Javier Solans Benedí
# Usage Instructions
4
5 1 Francisco Javier Solans Benedí
## Getting started
6
7 3 Francisco Javier Solans Benedí
1. Launch the product via 1-Click
8
2. Use a web browser to access the console application at: http://[ec2-ip]:8080/guacamole where [ec2_ip] is the public ip provided by Amazon for your instance.
9
3. Log in using the following credentials:
10
   * Username: guacadmin
11
   * Password: the instance_id of the instance
12 1 Francisco Javier Solans Benedí
13
You can also access your instance via SSH using the username and your Amazon private key.
14
15 3 Francisco Javier Solans Benedí
The **username** depends on the operative system:
16
* Centos 9 Stream: 'ec2-user'
17
* Other Centos: 'centos'
18
* Ubuntu: 'ubuntu'
19
* Rocky Linux: 'rocky'
20
21 1 Francisco Javier Solans Benedí
## Installation details
22
23 3 Francisco Javier Solans Benedí
Apache Guacamole 1.3.0 is compiled natively and runnning on APache Tomcat 9, with OpenJDK 11 and MySQL 8.
24
25 1 Francisco Javier Solans Benedí
The project location is /etc/guacamole ($GUACAMOLE_HOME) where configuration files are stored. The extensions are in $GUACAMOLE_HOME/extensions and the libraries in $GUACAMOLE_HOME/lib
26 3 Francisco Javier Solans Benedí
27 1 Francisco Javier Solans Benedí
Tomcat server is installed in /usr/java/apache-tomcat-[version] directory, which is linked to /usr/java/apache-tomcat, defined in $CATALINA_HOME.
28 3 Francisco Javier Solans Benedí
29 1 Francisco Javier Solans Benedí
The Apache Guacamole WAR is deployed at $CATALINA_HOME/webapps.
30 3 Francisco Javier Solans Benedí
31 1 Francisco Javier Solans Benedí
Services are configured with systemd.
32 3 Francisco Javier Solans Benedí
33 1 Francisco Javier Solans Benedí
(*) If the client wants to use other kind of authentication, project and libraries are provided at $HOME/software/guacamole directory
34
35
### Authentication methods
36
37 3 Francisco Javier Solans Benedí
**MySQL**
38 1 Francisco Javier Solans Benedí
39
It uses the authentication module through MySQL database thanks to the library guacamole-auth-jdbc-mysql-x.x.x.jar, in $GUACAMOLE_HOME/extensions directory, the  JDBC driver of MySQL, mysql-connector-java-x.x.x.jar, in $GUACAMOLE_HOME/lib directory and the database configuration provided in the file: $GUACAMOLE_HOME/guacamole.properties
40
41 3 Francisco Javier Solans Benedí
**PostgreSQL**
42
43 1 Francisco Javier Solans Benedí
It uses the authentication module through PostgreSQL database thanks to the library guacamole-auth-jdbc-postgresql-x.x.x.jar, in $GUACAMOLE_HOME/extensions directory, the  JDBC driver of PostgreSQL, postgresql-x.x.x.jar, in $GUACAMOLE_HOME/lib directory and the database configuration provided in the file: $GUACAMOLE_HOME/guacamole.properties
44
45
### Tomcat
46
47
View status of service:
48 3 Francisco Javier Solans Benedí
``` shell
49 1 Francisco Javier Solans Benedí
$ sudo systemctl status tomcat
50 3 Francisco Javier Solans Benedí
```
51 1 Francisco Javier Solans Benedí
52 3 Francisco Javier Solans Benedí
Stop service:
53
``` shell
54 1 Francisco Javier Solans Benedí
$ sudo systemctl stop tomcat
55 3 Francisco Javier Solans Benedí
```
56 1 Francisco Javier Solans Benedí
57 3 Francisco Javier Solans Benedí
Start service:
58
``` shell
59 1 Francisco Javier Solans Benedí
$ sudo systemctl start tomcat
60 3 Francisco Javier Solans Benedí
```
61 1 Francisco Javier Solans Benedí
62 2 Francisco Javier Solans Benedí
### Guacamole
63 1 Francisco Javier Solans Benedí
64
View status of service:
65 3 Francisco Javier Solans Benedí
``` shell
66 1 Francisco Javier Solans Benedí
$ sudo systemctl status guacd
67 3 Francisco Javier Solans Benedí
```
68 1 Francisco Javier Solans Benedí
69 3 Francisco Javier Solans Benedí
Stop service:
70
``` shell
71 1 Francisco Javier Solans Benedí
$ sudo systemctl stop guacd
72 3 Francisco Javier Solans Benedí
```
73 1 Francisco Javier Solans Benedí
74 3 Francisco Javier Solans Benedí
Start service:
75
``` shell
76 1 Francisco Javier Solans Benedí
$ sudo systemctl start guacd
77 3 Francisco Javier Solans Benedí
```
78 1 Francisco Javier Solans Benedí
79
### MySQL
80 2 Francisco Javier Solans Benedí
81 1 Francisco Javier Solans Benedí
View status of service:
82 3 Francisco Javier Solans Benedí
``` shell
83 1 Francisco Javier Solans Benedí
$ sudo systemctl status mysqld
84 3 Francisco Javier Solans Benedí
```
85 1 Francisco Javier Solans Benedí
86 3 Francisco Javier Solans Benedí
Stop service:
87
``` shell
88 1 Francisco Javier Solans Benedí
$ sudo systemctl stop mysqld
89 3 Francisco Javier Solans Benedí
```
90 1 Francisco Javier Solans Benedí
91 3 Francisco Javier Solans Benedí
Start service:
92
``` shell
93 1 Francisco Javier Solans Benedí
$ sudo systemctl start mysqld
94 3 Francisco Javier Solans Benedí
```
95 1 Francisco Javier Solans Benedí
96 3 Francisco Javier Solans Benedí
Access to MysQL console:
97
``` shell
98 1 Francisco Javier Solans Benedí
$ sudo mysql
99 3 Francisco Javier Solans Benedí
```
100 1 Francisco Javier Solans Benedí
101
### PostgreSQL
102
103
View status of service:
104 3 Francisco Javier Solans Benedí
``` shell
105 1 Francisco Javier Solans Benedí
$ sudo systemctl status postgresql
106 3 Francisco Javier Solans Benedí
```
107 1 Francisco Javier Solans Benedí
108 3 Francisco Javier Solans Benedí
Stop service:
109
``` shell
110 1 Francisco Javier Solans Benedí
$ sudo systemctl stop postgresql
111 3 Francisco Javier Solans Benedí
```
112 1 Francisco Javier Solans Benedí
113 3 Francisco Javier Solans Benedí
Start service:
114
``` shell
115 1 Francisco Javier Solans Benedí
$ sudo systemctl start postgresql
116 3 Francisco Javier Solans Benedí
```
117 1 Francisco Javier Solans Benedí
118 3 Francisco Javier Solans Benedí
Access to MysQL console:
119
``` shell
120 1 Francisco Javier Solans Benedí
sudo -u postgres psql
121 3 Francisco Javier Solans Benedí
```
122 1 Francisco Javier Solans Benedí
123
## Other useful data
124 3 Francisco Javier Solans Benedí
125
**Location of sensitive information**
126 1 Francisco Javier Solans Benedí
There is no sensitive data
127
128 3 Francisco Javier Solans Benedí
**Encryption configuration**
129 1 Francisco Javier Solans Benedí
There is no encrypted data.
130
131 3 Francisco Javier Solans Benedí
**Changing system credentials**
132 1 Francisco Javier Solans Benedí
To change the Guacamole credentials you have to go to the right menu, click "Settings" button, users section, select user guacadmin and complete the form.
133
134 3 Francisco Javier Solans Benedí
**Instructions on how the user interacts with Guacamole to decrypt necessary data**
135 1 Francisco Javier Solans Benedí
You can use the Guacamole management console to view all necessary data.
136
137 3 Francisco Javier Solans Benedí
**How to assess and monitor the health and proper function of the application.**
138 1 Francisco Javier Solans Benedí
1. Navigate to your Amazon EC2 console and verify that you're in the correct region.
139
2. Choose Instance and select your launched instance.
140
3. Select the server to display your metadata page and choose the Status checks tab at the bottom of the page to review if your status checks passed or failed.
141
142
## Additional resources
143
144 4 Francisco Javier Solans Benedí
Apache Tomcat: 
145
* https://tomee.apache.org/
146 1 Francisco Javier Solans Benedí
147 4 Francisco Javier Solans Benedí
Apache Guacamole: 
148
* https://guacamole.apache.org
149 1 Francisco Javier Solans Benedí
150 4 Francisco Javier Solans Benedí
MySQL: 
151
* https://www.mysql.com/