Skip to content

Commit 56dfaf5

Browse files
committed
Added Linux install tutorials for JDK and Maven
1 parent ae93704 commit 56dfaf5

File tree

2 files changed

+118
-61
lines changed

2 files changed

+118
-61
lines changed
Lines changed: 57 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,74 @@
1-
# Install Java on Linux
1+
# Instalación de Java en Linux
22

3-
Tutorials are learning-oriented articles that help users to go through a process and achieve a deliverable.
4-
Start with an introduction: for whom is this tutorial and what the reader will achieve by reading it.
5-
Answer the question: "Why should I follow this?"
3+
<warning>
4+
<p>
5+
Es necesario contar con el gestor de paquetes <a href="https://snapcraft.io"><b>Snap</b></a>
6+
</p>
7+
</warning>
68

7-
Provide a short outline for the tutorial.
8-
In this tutorial, you will learn how to:
9-
* Do this
10-
* Deal with that
9+
## Uso de snap
1110

12-
## Before you start
11+
Puede verificar la instalación de **snap** utilizando el siguiente comando
1312

14-
List the prerequisites that are required or recommended.
13+
<code-block lang="console">snap --version</code-block>
1514

16-
Make sure that:
17-
- First prerequisite
18-
- Second prerequisite
15+
donde debería obtener una salida como la siguiente
1916

20-
## Part 1
17+
<code-block lang="plain text">
18+
snap 2.66.1+24.10
19+
snapd 2.66.1+24.10
20+
series 16
21+
ubuntu 24.10
22+
kernel 6.11.0-13-generic
23+
</code-block>
2124

22-
Describe what the user will learn and accomplish in the first part,
23-
then write a step-by-step procedure but on a real-world example.
25+
## Instalación de OpenJDK
2426

25-
1. Execute the following command in the terminal:
27+
A continuación debe instalar el paquete
28+
<code>openjdk</code>
2629

27-
```bash
28-
run this --that
29-
```
30+
Instale el paquete con el siguiente comando
3031

31-
2. Step with a [link](https://www.jetbrains.com)
32+
<code-block lang="console">sudo snap install openjdk</code-block>
3233

33-
3. Final step in part 1.
34+
## Alias
3435

35-
## Part 2
36+
Se debe editar el archivo con la configuración de la terminal para
37+
definir las variables de entorno necesarias. En este caso se usará el editor **Vim**
38+
para modificar las propiedades del intérprete **Bash**.
3639

37-
This is the second part of the tutorial:
40+
Abrir el archivo <shortcut>bash.bashrc</shortcut>
3841

39-
1. Step 1
40-
2. Step 2
41-
3. Step n
42+
<code-block lang="console">sudo vim /etc/bash.bashrc</code-block>
4243

43-
## What you've learned {id="what-learned"}
44+
Agregar un renglón al final del archivo con el siguiente comando
4445

45-
Summarize what the reader achieved by completing this tutorial.
46+
<code-block lang="console">source $(openjdk)</code-block>
4647

47-
<seealso>
48-
<!--Give some related links to how-to articles-->
49-
</seealso>
48+
Guardar los cambios del archivo.
49+
50+
Las variables de entorno estarán listas la próxima vez que abra una terminal.
51+
52+
## Consultar la versión instalada
53+
54+
Consulte la versión de Java instalada
55+
56+
<code-block lang="console">java -version</code-block>
57+
58+
Debería ver una salida similar a la siguiente
59+
60+
<code-block lang="plain text">
61+
user@host:~$ java -version
62+
openjdk version "23.0.1" 2024-10-15
63+
OpenJDK Runtime Environment (build 23.0.1+11-snap)
64+
OpenJDK 64-Bit Server VM (build 23.0.1+11-snap, mixed mode, sharing)
65+
</code-block>
66+
67+
Identifique en la salida una versión
68+
<shortcut>23</shortcut> o superior, en este ejemplo es la <code>23.0.1</code>
69+
70+
<note>
71+
<p>
72+
Listo! Ya cuenta con Java instalado correctamente.
73+
</p>
74+
</note>
Lines changed: 61 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,81 @@
1-
# Install Maven on Linux
1+
# Instalación de Maven en Linux
22

3-
Tutorials are learning-oriented articles that help users to go through a process and achieve a deliverable.
4-
Start with an introduction: for whom is this tutorial and what the reader will achieve by reading it.
5-
Answer the question: "Why should I follow this?"
3+
<warning>
4+
<p>
5+
Es necesario contar con el gestor de paquetes <a href="https://snapcraft.io"><b>Snap</b></a>
6+
</p>
7+
</warning>
68

7-
Provide a short outline for the tutorial.
8-
In this tutorial, you will learn how to:
9-
* Do this
10-
* Deal with that
9+
## Uso de snap
1110

12-
## Before you start
11+
Puede verificar la instalación de **snap** utilizando el siguiente comando
1312

14-
List the prerequisites that are required or recommended.
13+
<code-block lang="console">snap --version</code-block>
1514

16-
Make sure that:
17-
- First prerequisite
18-
- Second prerequisite
15+
donde debería obtener una salida como la siguiente
1916

20-
## Part 1
17+
<code-block lang="plain text">
18+
snap 2.66.1+24.10
19+
snapd 2.66.1+24.10
20+
series 16
21+
ubuntu 24.10
22+
kernel 6.11.0-13-generic
23+
</code-block>
2124

22-
Describe what the user will learn and accomplish in the first part,
23-
then write a step-by-step procedure but on a real-world example.
25+
## Instalación de Maven
2426

25-
1. Execute the following command in the terminal:
27+
A continuación debe instalar el paquete
28+
<code>strictly-maven</code>
2629

27-
```bash
28-
run this --that
29-
```
30+
Instale el paquete con el siguiente comando
3031

31-
2. Step with a [link](https://www.jetbrains.com)
32+
<code-block lang="console">sudo snap install strictly-maven</code-block>
3233

33-
3. Final step in part 1.
34+
## Alias
3435

35-
## Part 2
36+
Se debe editar el archivo con la configuración de la terminal para
37+
definir el alias necesario. En este caso se usará el editor **Vim**
38+
para modificar las propiedades del intérprete **Bash**.
3639

37-
This is the second part of the tutorial:
40+
Abrir el archivo <shortcut>.bash_aliases</shortcut>
3841

39-
1. Step 1
40-
2. Step 2
41-
3. Step n
42+
<code-block lang="console">vim ~/.bash_aliases</code-block>
4243

43-
## What you've learned {id="what-learned"}
44+
Agregar un renglón al final del archivo con el siguiente comando
4445

45-
Summarize what the reader achieved by completing this tutorial.
46+
<code-block lang="console">alias mvn='strictly-maven'</code-block>
47+
48+
Guardar los cambios del archivo.
49+
50+
Las variables de entorno estarán listas la próxima vez que abra una terminal.
51+
52+
## Consultar la versión instalada
53+
54+
Consulte la versión de Maven instalada
55+
56+
<code-block lang="console">mvn -version</code-block>
57+
58+
Debería ver una salida similar a la siguiente
59+
60+
<code-block lang="plain text">
61+
user@host:~$ mvn -version
62+
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
63+
Maven home: /snap/strictly-maven/22/maven
64+
Java version: 23.0.1, vendor: Snap Build, runtime: /snap/strictly-maven/22/jdk
65+
Default locale: en_US, platform encoding: UTF-8
66+
OS name: "linux", version: "6.11.0-13-generic", arch: "aarch64", family: "unix"
67+
</code-block>
68+
69+
Identifique en la salida una versión
70+
<shortcut>3.9</shortcut> o superior, en este ejemplo es la <code>3.9.9</code>
71+
72+
<note>
73+
<p>
74+
Listo! Ya cuenta con Maven instalado correctamente.
75+
</p>
76+
</note>
4677

4778
<seealso>
4879
<!--Give some related links to how-to articles-->
4980
</seealso>
81+

0 commit comments

Comments
 (0)