liferaft/index.html
2024-02-05 12:19:19 +00:00

56 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>This is your Life Raft</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
<style>
:where(dl,ol,ul) li {
margin-bottom: calc(var(--typography-spacing-vertical) * 3);
}
button {
width: auto;
}
</style>
</head>
<body>
<main class="container">
<header>
<h1>🛟 This is your Life Raft</h1>
</header>
<ol>
<li>
<button onclick="copyCode()">click here to copy this code</button>
<code id="codeBlock">curl -O https://liferaft.altweb.me/rustdesk.sh && chmod +x rustdesk.sh && ./rustdesk.sh</code>
</li>
<li>
<p>Open the start menu either with your keyboard, by holding the <kbd>CTRL</kbd> key and clicking <kbd>ESC</kbd></p>
<p>or with your mouse, by clicking the button in the lower left hand corner of the screen.</p>
</li>
<li>
Open the terminal thusly:
<p>
<img decoding="async" width="812" height="237" alt="How to Open the Linux Terminal on Chromebook image 2" src="https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook.png" data-lazy-type="image" data-lazy-src="https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook.png" class="lazy wp-image-54440 lazy-loaded" data-lazy-srcset="https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook.png 812w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-300x88.png 300w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-768x224.png 768w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-610x178.png 610w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-80x23.png 80w" data-lazy-sizes="(max-width: 812px) 100vw, 812px" srcset="https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook.png 812w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-300x88.png 300w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-768x224.png 768w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-610x178.png 610w, https://helpdeskgeek.com/wp-content/pictures/2021/10/02-open-linux-terminal-chromebook-80x23.png 80w" sizes="(max-width: 812px) 100vw, 812px">
</p>
</li>
<li>
Paste into the terminal by clicking <kbd>CTRL-SHIFT-V</kbd> and then hit <kbd>ENTER</kbd>.
</li>
</ol>
</main>
<script>
function copyCode() {
const codeBlock = document.getElementById('codeBlock').innerText;
navigator.clipboard.writeText(codeBlock).then(() => {
alert('Code copied to clipboard!');
}, (err) => {
console.error('Error in copying text: ', err);
});
}
</script>
</body>
</html>