-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.html
More file actions
199 lines (174 loc) · 5.73 KB
/
linux.html
File metadata and controls
199 lines (174 loc) · 5.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linux Setup - Minecraft Server Tutorial</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="https://i.imgur.com/2yaf2wb.png" type="image/png">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Orbitron', sans-serif;
background-color: #111827;
color: #f9fafb;
margin: 0;
padding: 0;
}
nav {
background-color: #1f2937;
padding: 1rem 2rem;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: #10b981;
text-decoration: none;
}
.nav-links a {
color: #f3f4f6;
text-decoration: none;
margin-left: 1.5rem;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: #93c5fd;
}
.container {
max-width: 1000px;
margin: 2rem auto;
padding: 1rem;
}
h1 {
font-size: 2.5rem;
text-align: center;
color: #fbbf24;
margin-bottom: 2rem;
}
.guide-section {
display: flex;
flex-direction: column;
gap: 2rem;
}
.card {
background-color: #1e293b;
padding: 1.5rem;
border-radius: 0.75rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
}
.card h2 {
color: #38bdf8;
margin-bottom: 1rem;
}
ul, ol {
padding-left: 1.5rem;
}
li {
margin-bottom: 0.75rem;
}
.code-block {
background-color: #0f172a;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
font-family: monospace;
color: #d1d5db;
border-left: 4px solid #22d3ee;
}
footer {
background-color: #0f172a;
color: #9ca3af;
text-align: center;
padding: 1rem;
margin-top: 3rem;
}
footer a {
color: #93c5fd;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Optional: Button style for future use */
.button {
display: inline-block;
background-color: #10b981;
color: white;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
text-decoration: none;
margin-top: 1.5rem;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.button:hover {
background-color: #059669;
transform: scale(1.05);
}
</style>
</head>
<body>
<nav>
<div class="nav-container">
<a href="index.html" class="logo">MC Server Guide</a>
<div class="nav-links">
<a href="windows.html">Windows</a>
<a href="linux.html">Linux</a>
<a href="mac.html">MacOS</a>
<a href="notes.html">Personal Notes</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Setting up a Minecraft Server on Linux</h1>
<div class="guide-section">
<div class="card">
<h2>1. Prerequisites</h2>
<ul>
<li>✅ Ubuntu 20.04 or later (or similar distro)</li>
<li>✅ OpenJDK 17</li>
<li>✅ Screen or tmux (for running in background)</li>
<li>✅ Basic command line knowledge (plus some <em>common sense</em> pls 😅)</li>
</ul>
</div>
<div class="card">
<h2>2. Installation Steps</h2>
<div class="code-block">
<code>
sudo apt update<br>
sudo apt install openjdk-17-jre-headless<br>
mkdir minecraft-server <span style="color:#9ca3af">// or whatever you want to name your directory</span><br>
cd minecraft-server<br>
wget https://launcher.mojang.com/v1/objects/server.jar
</code>
</div>
</div>
<div class="card">
<h2>3. Running the Server</h2>
<ol>
<li>Create a start script<br><code>java -jar server.jar</code></li>
<li>Set up a screen session<br><code>tmux new -t mc</code></li>
<li>Edit <code>server.properties</code> to customize your setup</li>
<li>Configure firewall (or ✨ just turn it off ✨)</li>
</ol>
</div>
</div>
</div>
</main>
<footer>
No need to thank me — made with ❤️ @ <a href="https://adiee.io" target="_blank">adiee.io</a><br>
Let's be frens? 👉 <a href="https://discord.com/users/555277072675766274" target="_blank">Discord</a>
</footer>
</body>
</html>