Add ToolsnToys section — hub, tools, guides, FOSS catalog, 6 guide pages
Hub (toolsntoys.html), JL's early tools (jl-early-tools.html), guides hub (guides.html), FOSS Arsenal catalog (foss-tools.html), and 6 individual guide pages covering AppImage, Linux install/uninstall, Docker, and Facebook streaming. All pages use the night-sky adaptation of the adventurers_toolbox3 aesthetic with dimmed ember alpha (0.38/0.65). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
671
ToolsnToys/Guides/appimage-installation-guide.html
Normal file
671
ToolsnToys/Guides/appimage-installation-guide.html
Normal file
@@ -0,0 +1,671 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>APPIMAGE INSTALLATION // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
background: var(--bg-deep);
|
||||
color: var(--text-main);
|
||||
font-family: 'Rambla', sans-serif;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%),
|
||||
radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px);
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
animation: scanline 12s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
|
||||
.noise {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
opacity: 0.03;
|
||||
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
|
||||
pointer-events: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.campfire-glow {
|
||||
position: fixed;
|
||||
bottom: -80px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 500px;
|
||||
height: 300px;
|
||||
background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%);
|
||||
pointer-events: none;
|
||||
animation: campfireFlicker 3s ease-in-out infinite;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
@keyframes campfireFlicker {
|
||||
0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); }
|
||||
33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); }
|
||||
66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); }
|
||||
}
|
||||
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
|
||||
.guide-wrap {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 220px 1fr;
|
||||
min-height: 100vh;
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.guide-sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
overflow-y: auto;
|
||||
padding: 1.5rem 0.75rem 1.5rem 1rem;
|
||||
border-right: 1px solid var(--border-green);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--neon-dim) transparent;
|
||||
}
|
||||
|
||||
.sidebar-back {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
|
||||
.sidebar-title {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.7rem;
|
||||
letter-spacing: 0.18em;
|
||||
color: var(--fire-amber);
|
||||
text-transform: uppercase;
|
||||
line-height: 1.5;
|
||||
border-bottom: 1px solid var(--border-amber);
|
||||
padding-bottom: 0.75rem;
|
||||
text-shadow: 0 0 8px rgba(232,148,58,0.4);
|
||||
}
|
||||
|
||||
.sidebar-label {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.65rem;
|
||||
letter-spacing: 0.2em;
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
|
||||
.nav-item {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
padding: 0.3rem 0.5rem;
|
||||
border-left: 2px solid transparent;
|
||||
transition: all 0.15s;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
|
||||
.nav-item.active {
|
||||
color: var(--neon-green);
|
||||
border-left-color: var(--neon-green);
|
||||
background: rgba(50,220,140,0.06);
|
||||
}
|
||||
|
||||
.guide-main {
|
||||
padding: 2rem 2.5rem 4rem;
|
||||
max-width: 760px;
|
||||
}
|
||||
|
||||
.guide-header {
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border-green);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.guide-header::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -1px; left: 0;
|
||||
width: 35%;
|
||||
height: 1px;
|
||||
background: var(--neon-green);
|
||||
box-shadow: 0 0 8px var(--neon-green);
|
||||
animation: headerGlow 3s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
|
||||
.guide-tag {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.2em;
|
||||
color: var(--fire-amber);
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.guide-h1 {
|
||||
font-family: 'Sixtyfour', monospace;
|
||||
font-size: clamp(1.1rem, 3vw, 1.6rem);
|
||||
color: var(--neon-green);
|
||||
text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3);
|
||||
line-height: 1.3;
|
||||
margin-bottom: 0.5rem;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.guide-subtitle {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-muted);
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
|
||||
.guide-section h2 {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.88rem;
|
||||
letter-spacing: 0.18em;
|
||||
text-transform: uppercase;
|
||||
color: var(--fire-amber);
|
||||
text-shadow: 0 0 8px rgba(232,148,58,0.4);
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border-amber);
|
||||
border-left: 3px solid var(--fire-amber);
|
||||
padding: 0.5rem 0.75rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
|
||||
.guide-section h3 {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.78rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: var(--neon-teal);
|
||||
margin: 1.25rem 0 0.5rem;
|
||||
}
|
||||
|
||||
.guide-section h3::before { content: '> '; color: var(--text-muted); }
|
||||
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
|
||||
.guide-section ul, .guide-section ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
|
||||
|
||||
.guide-section li { font-size: 0.92rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.2rem; }
|
||||
|
||||
.guide-section ul li::marker { color: var(--neon-green); }
|
||||
.guide-section ol li::marker { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--fire-amber); }
|
||||
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
|
||||
.code-block.ini code { color: var(--neon-teal); }
|
||||
.code-block.text code { color: var(--text-main); }
|
||||
|
||||
.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--border-green); }
|
||||
|
||||
.guide-table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
|
||||
|
||||
.guide-table th { background: var(--bg-panel); color: var(--fire-amber); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-align: left; white-space: nowrap; }
|
||||
|
||||
.guide-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(50,220,140,0.08); color: var(--text-main); vertical-align: top; line-height: 1.5; }
|
||||
|
||||
.guide-table tr:hover td { background: rgba(50,220,140,0.04); }
|
||||
.guide-table .check-yes { color: var(--neon-green); }
|
||||
.guide-table .check-no { color: var(--fire-coral); }
|
||||
|
||||
.callout { margin: 0.75rem 0 1rem; padding: 0.7rem 0.9rem; border-left: 3px solid; background: var(--bg-surface); font-size: 0.88rem; line-height: 1.6; }
|
||||
|
||||
.callout .callout-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.35rem; }
|
||||
|
||||
.callout.note { border-color: var(--neon-teal); }
|
||||
.callout.note .callout-label { color: var(--neon-teal); }
|
||||
|
||||
.callout.warn { border-color: var(--fire-coral); }
|
||||
.callout.warn .callout-label { color: var(--fire-coral); }
|
||||
|
||||
.callout.good { border-color: var(--neon-green); }
|
||||
.callout.good .callout-label { color: var(--neon-green); }
|
||||
|
||||
.callout.cmd { border-color: var(--toucan); background: rgba(255,207,64,0.04); }
|
||||
.callout.cmd .callout-label { color: var(--toucan); }
|
||||
|
||||
.step-list { list-style: none; padding: 0; margin-bottom: 1rem; }
|
||||
|
||||
.step-item { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; align-items: flex-start; }
|
||||
|
||||
.step-num { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; color: var(--bg-panel); background: var(--fire-amber); min-width: 1.4rem; height: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.15rem; box-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
|
||||
.step-text { font-size: 0.92rem; line-height: 1.6; }
|
||||
|
||||
.quick-ref { background: var(--bg-panel); border: 1px solid var(--border-amber); margin: 1.5rem 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
|
||||
|
||||
.quick-ref-header { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
|
||||
.quick-ref-header::before { content: '// '; color: var(--text-muted); }
|
||||
|
||||
.quick-ref-body { padding: 0.75rem; }
|
||||
|
||||
.guide-section hr { border: none; border-top: 1px solid var(--border-green); margin: 1.5rem 0; }
|
||||
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.guide-wrap { grid-template-columns: 1fr; }
|
||||
.guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); }
|
||||
.guide-sidebar.open { transform: translateX(0); }
|
||||
.mobile-nav-toggle { display: block; }
|
||||
.guide-main { padding: 1rem 1.25rem 3rem; }
|
||||
.guide-h1 { font-size: 1rem; }
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg-deep); }
|
||||
::-webkit-scrollbar-thumb { background: var(--neon-dim); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
|
||||
<div class="guide-wrap">
|
||||
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">COMPLETE APPIMAGE<br>INSTALLATION GUIDE</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#what-is" class="nav-item">What is AppImage?</a>
|
||||
<a href="#method-1" class="nav-item">Method 1: Quick & Dirty</a>
|
||||
<a href="#method-2" class="nav-item">Method 2: Proper Install</a>
|
||||
<a href="#method-3" class="nav-item">Method 3: AppImageLauncher</a>
|
||||
<a href="#desktop-ref" class="nav-item">Desktop Entry Reference</a>
|
||||
<a href="#updating" class="nav-item">Updating AppImages</a>
|
||||
<a href="#removing" class="nav-item">Removing AppImages</a>
|
||||
<a href="#troubleshooting" class="nav-item">Troubleshooting</a>
|
||||
<a href="#comparison" class="nav-item">Format Comparison</a>
|
||||
<a href="#best-practices" class="nav-item">Best Practices</a>
|
||||
<a href="#finding" class="nav-item">Finding AppImages</a>
|
||||
<a href="#quick-ref" class="nav-item">Quick Reference Commands</a>
|
||||
<a href="#example" class="nav-item">Real-World Example</a>
|
||||
<a href="#resources" class="nav-item">Additional Resources</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">COMPLETE APPIMAGE<br>INSTALLATION GUIDE</h1>
|
||||
<div class="guide-subtitle">Universal Methods for Any AppImage Application</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="what-is">
|
||||
<h2>What is AppImage?</h2>
|
||||
<p>AppImage is a portable application format for Linux. Think of it like a Windows <code>.exe</code> - it's a single file that contains everything the application needs to run.</p>
|
||||
<div class="callout good">
|
||||
<div class="callout-label">Key Features</div>
|
||||
<ul>
|
||||
<li><strong>No installation required</strong> - just download and run</li>
|
||||
<li><strong>No root/sudo needed</strong> - runs as regular user</li>
|
||||
<li><strong>Self-contained</strong> - includes all dependencies</li>
|
||||
<li><strong>Portable</strong> - works across different Linux distributions</li>
|
||||
<li><strong>No system pollution</strong> - doesn't scatter files everywhere</li>
|
||||
<li><strong>Easy to remove</strong> - just delete the file</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-1">
|
||||
<h2>Method 1: Quick & Dirty (Just Run It)</h2>
|
||||
<p>The simplest way - no integration with system menus.</p>
|
||||
|
||||
<h3>Step 1: Download AppImage</h3>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-1">COPY</button></div>
|
||||
<pre><code id="code-1"># Example: Download to Downloads folder
|
||||
cd ~/Downloads
|
||||
wget https://example.com/app-name.AppImage
|
||||
|
||||
# Or use your browser to download</code></pre>
|
||||
</div>
|
||||
|
||||
<h3>Step 2: Make Executable</h3>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-2">COPY</button></div>
|
||||
<pre><code id="code-2">chmod +x ~/Downloads/app-name.AppImage</code></pre>
|
||||
</div>
|
||||
|
||||
<h3>Step 3: Run It</h3>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-3">COPY</button></div>
|
||||
<pre><code id="code-3">./app-name.AppImage</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="callout note">
|
||||
<div class="callout-label">Pros & Cons</div>
|
||||
<p><strong>Pros:</strong> Immediate, no system changes, easy to test.</p>
|
||||
<p><strong>Cons:</strong> Not in application menu, must run from terminal/file manager, no desktop integration.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-2">
|
||||
<h2>Method 2: Proper Installation (Recommended)</h2>
|
||||
<p>Integrate AppImage into your system like a native application.</p>
|
||||
|
||||
<ol class="step-list">
|
||||
<li class="step-item"><span class="step-num">1</span><span class="step-text">Create AppImages Directory: <code>mkdir -p ~/Applications</code></span></li>
|
||||
<li class="step-item"><span class="step-num">2</span><span class="step-text">Move AppImage to Applications: <code>mv ~/Downloads/app-name.AppImage ~/Applications/</code></span></li>
|
||||
<li class="step-item"><span class="step-num">3</span><span class="step-text">Make Executable: <code>chmod +x ~/Applications/app-name.AppImage</code></span></li>
|
||||
<li class="step-item"><span class="step-num">4</span><span class="step-text">Create Desktop Entry Manual Method (universal): <code>nano ~/.local/share/applications/app-name.desktop</code></span></li>
|
||||
</ol>
|
||||
|
||||
<h3>Desktop Entry Template</h3>
|
||||
<div class="code-block ini">
|
||||
<div class="code-label"><span>INI</span><button class="copy-btn" data-target="code-4">COPY</button></div>
|
||||
<pre><code id="code-4">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Application Name
|
||||
Comment=Brief description of the app
|
||||
Icon=/home/jl-kruger/Applications/app-name-icon.png
|
||||
Exec=/home/jl-kruger/Applications/app-name.AppImage
|
||||
Terminal=false
|
||||
Categories=Utility;</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-5">COPY</button></div>
|
||||
<pre><code id="code-5">chmod +x ~/.local/share/applications/app-name.desktop
|
||||
update-desktop-database ~/.local/share/applications/</code></pre>
|
||||
</div>
|
||||
|
||||
<h3>Step 4: Extract Icon (Optional)</h3>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-6">COPY</button></div>
|
||||
<pre><code id="code-6">cd ~/Applications
|
||||
./app-name.AppImage --appimage-extract
|
||||
cp squashfs-root/path/to/icon.png ~/Applications/app-name-icon.png
|
||||
rm -rf squashfs-root</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-3">
|
||||
<h2>Method 3: AppImageLauncher (Automated Integration)</h2>
|
||||
<p>AppImageLauncher automatically integrates AppImages when you first run them.</p>
|
||||
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH — Ubuntu/Mint/Debian</span><button class="copy-btn" data-target="code-7">COPY</button></div>
|
||||
<pre><code id="code-7">cd ~/Downloads
|
||||
wget https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb
|
||||
sudo apt install ./appimagelauncher_*.deb</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="callout good">
|
||||
<div class="callout-label">Benefits</div>
|
||||
<p>Fully automated process, consistent management, built-in update checking, and easy removal.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="desktop-ref">
|
||||
<h2>Complete Desktop Entry Reference</h2>
|
||||
<h3>Full-Featured Entry</h3>
|
||||
<div class="code-block ini">
|
||||
<div class="code-label"><span>INI</span><button class="copy-btn" data-target="code-8">COPY</button></div>
|
||||
<pre><code id="code-8">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Application Name
|
||||
Exec=/home/jl-kruger/Applications/app-name.AppImage %u
|
||||
Comment=What this application does
|
||||
Icon=/home/jl-kruger/Applications/app-icon.png
|
||||
Terminal=false
|
||||
Categories=Utility;Development;
|
||||
GenericName=Generic description
|
||||
Keywords=search;terms;keywords;
|
||||
StartupNotify=true
|
||||
MimeType=text/plain;text/html;</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="updating">
|
||||
<h2>Updating AppImages</h2>
|
||||
<p>AppImages don't auto-update. Manual update process:</p>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-9">COPY</button></div>
|
||||
<pre><code id="code-9">mv ~/Applications/app-name.AppImage ~/Applications/app-name.AppImage.old
|
||||
mv ~/Downloads/app-name-new-version.AppImage ~/Applications/app-name.AppImage
|
||||
chmod +x ~/Applications/app-name.AppImage
|
||||
rm ~/Applications/app-name.AppImage.old</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="removing">
|
||||
<h2>Removing AppImages</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-10">COPY</button></div>
|
||||
<pre><code id="code-10">rm ~/Applications/app-name.AppImage
|
||||
rm ~/.local/share/applications/app-name.desktop
|
||||
update-desktop-database ~/.local/share/applications/
|
||||
rm -rf ~/.config/app-name</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="troubleshooting">
|
||||
<h2>Troubleshooting</h2>
|
||||
<div class="callout warn">
|
||||
<div class="callout-label">FUSE Errors</div>
|
||||
<p>Install FUSE: <code>sudo apt install fuse libfuse2</code></p>
|
||||
</div>
|
||||
<div class="callout cmd">
|
||||
<div class="callout-label">Permissions</div>
|
||||
<code>chmod +x app-name.AppImage</code>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="comparison">
|
||||
<h2>Format Comparison</h2>
|
||||
<div class="guide-table-wrap">
|
||||
<table class="guide-table">
|
||||
<thead>
|
||||
<tr><th>Feature</th><th>AppImage</th><th>Flatpak</th><th>Snap</th><th>.deb</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>No root needed</td><td class="check-yes">✓</td><td class="check-no">✗</td><td class="check-no">✗</td><td class="check-no">✗</td></tr>
|
||||
<tr><td>Single file</td><td class="check-yes">✓</td><td class="check-no">✗</td><td class="check-no">✗</td><td class="check-no">✗</td></tr>
|
||||
<tr><td>Auto-updates</td><td class="check-no">✗</td><td class="check-yes">✓</td><td class="check-yes">✓</td><td class="check-yes">✓</td></tr>
|
||||
<tr><td>Startup speed</td><td>Fast</td><td>Slow</td><td>Slow</td><td>Fast</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="best-practices">
|
||||
<h2>Best Practices</h2>
|
||||
<h3>Directory Structure</h3>
|
||||
<div class="code-block text">
|
||||
<pre><code>~/Applications/
|
||||
├── logseq.AppImage
|
||||
├── logseq-icon.png
|
||||
~/.local/share/applications/
|
||||
├── logseq.desktop</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="finding">
|
||||
<h2>Finding AppImages</h2>
|
||||
<ul>
|
||||
<li>Project's GitHub Releases Page</li>
|
||||
<li>Official Project Website</li>
|
||||
<li>AppImageHub (archived)</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="quick-ref">
|
||||
<h2>Quick Reference Commands</h2>
|
||||
<div class="quick-ref">
|
||||
<div class="quick-ref-header">ESSENTIAL COMMANDS</div>
|
||||
<div class="quick-ref-body">
|
||||
<div class="code-block">
|
||||
<pre><code>chmod +x app-name.AppImage
|
||||
./app-name.AppImage
|
||||
./app-name.AppImage --appimage-extract
|
||||
update-desktop-database ~/.local/share/applications/</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="example">
|
||||
<h2>Real-World Example: Installing Logseq</h2>
|
||||
<ol class="step-list">
|
||||
<li class="step-item"><span class="step-num">1</span><span class="step-text">Download AppImage from GitHub.</span></li>
|
||||
<li class="step-item"><span class="step-num">2</span><span class="step-text">Move to <code>~/Applications/</code> and <code>chmod +x</code>.</span></li>
|
||||
<li class="step-item"><span class="step-num">3</span><span class="step-text">Extract icon and create <code>.desktop</code> entry.</span></li>
|
||||
<li class="step-item"><span class="step-num">4</span><span class="step-text">Launch via <code>gtk-launch logseq</code>.</span></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="resources">
|
||||
<h2>Additional Resources</h2>
|
||||
<ul>
|
||||
<li><a href="https://docs.appimage.org/" style="color:var(--neon-teal)">AppImage Documentation</a></li>
|
||||
<li><a href="https://github.com/TheAssassin/AppImageLauncher" style="color:var(--neon-teal)">AppImageLauncher GitHub</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const canvas = document.getElementById('embers');
|
||||
const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() {
|
||||
const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)];
|
||||
return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] };
|
||||
}
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) {
|
||||
const progress = e.life / e.maxLife;
|
||||
const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1;
|
||||
if (alpha <= 0) return;
|
||||
const gAlpha = alpha * 0.38;
|
||||
const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4);
|
||||
glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`);
|
||||
glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`);
|
||||
ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill();
|
||||
ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`;
|
||||
const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2);
|
||||
}
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => {
|
||||
btn.addEventListener('click', () => {
|
||||
const targetId = btn.dataset.target; const el = document.getElementById(targetId);
|
||||
if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); });
|
||||
});
|
||||
});
|
||||
const sections = document.querySelectorAll('.guide-section[id]');
|
||||
const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => {
|
||||
entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } });
|
||||
}, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle');
|
||||
const sidebar = document.getElementById('guideSidebar');
|
||||
if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
283
ToolsnToys/Guides/appimage-quick-reference.html
Normal file
283
ToolsnToys/Guides/appimage-quick-reference.html
Normal file
@@ -0,0 +1,283 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>APPIMAGE QUICK REFERENCE // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg-deep); color: var(--text-main); font-family: 'Rambla', sans-serif; min-height: 100vh; overflow-x: hidden; }
|
||||
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%), radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%); pointer-events: none; z-index: 0; }
|
||||
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px); pointer-events: none; z-index: 1000; animation: scanline 12s linear infinite; }
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
.noise { position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 999; }
|
||||
.campfire-glow { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%); pointer-events: none; animation: campfireFlicker 3s ease-in-out infinite; z-index: 0; }
|
||||
@keyframes campfireFlicker { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); } 33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); } 66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); } }
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
.guide-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; max-width: 1100px; margin: 0 auto; }
|
||||
.guide-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.5rem 0.75rem 1.5rem 1rem; border-right: 1px solid var(--border-green); display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.sidebar-back { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.15s; }
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
.sidebar-title { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--fire-amber); text-transform: uppercase; line-height: 1.5; border-bottom: 1px solid var(--border-amber); padding-bottom: 0.75rem; text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.sidebar-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
.nav-item { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
.nav-item.active { color: var(--neon-green); border-left-color: var(--neon-green); background: rgba(50,220,140,0.06); }
|
||||
.guide-main { padding: 2rem 2.5rem 4rem; max-width: 760px; }
|
||||
.guide-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); position: relative; }
|
||||
.guide-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 35%; height: 1px; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: headerGlow 3s ease-in-out infinite alternate; }
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
.guide-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; margin-bottom: 0.4rem; }
|
||||
.guide-h1 { font-family: 'Sixtyfour', monospace; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3); line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
|
||||
.guide-subtitle { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
.guide-section h2 { font-family: 'Share Tech Mono', monospace; font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); background: var(--bg-panel); border: 1px solid var(--border-amber); border-left: 3px solid var(--fire-amber); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
.guide-section h3 { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon-teal); margin: 1.25rem 0 0.5rem; }
|
||||
.guide-section h3::before { content: '> '; color: var(--text-muted); }
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
.guide-section ul, .guide-section ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
|
||||
.guide-section li { font-size: 0.92rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.2rem; }
|
||||
.guide-section ul li::marker { color: var(--neon-green); }
|
||||
.guide-section ol li::marker { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--fire-amber); }
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
.code-block.ini code { color: var(--neon-teal); }
|
||||
.code-block.text code { color: var(--text-main); }
|
||||
.quick-ref { background: var(--bg-panel); border: 1px solid var(--border-amber); margin: 1.5rem 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
|
||||
.quick-ref-header { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.quick-ref-header::before { content: '// '; color: var(--text-muted); }
|
||||
.quick-ref-body { padding: 0.75rem; }
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
@media (max-width: 720px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); } .guide-sidebar.open { transform: translateX(0); } .mobile-nav-toggle { display: block; } .guide-main { padding: 1rem 1.25rem 3rem; } .guide-h1 { font-size: 1rem; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
<div class="guide-wrap">
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">APPIMAGE QUICK REFERENCE</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#basic" class="nav-item">Basic Operations</a>
|
||||
<a href="#proper" class="nav-item">Proper Installation</a>
|
||||
<a href="#extract" class="nav-item">Extract Icon</a>
|
||||
<a href="#update" class="nav-item">Update AppImage</a>
|
||||
<a href="#remove" class="nav-item">Remove AppImage</a>
|
||||
<a href="#troubleshoot" class="nav-item">Troubleshooting</a>
|
||||
<a href="#template" class="nav-item">Desktop Template</a>
|
||||
<a href="#commands" class="nav-item">Common Commands</a>
|
||||
<a href="#categories" class="nav-item">Categories Ref</a>
|
||||
<a href="#find" class="nav-item">Find Installed</a>
|
||||
<a href="#tips" class="nav-item">Pro Tips</a>
|
||||
<a href="#security" class="nav-item">Security Check</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">APPIMAGE QUICK REFERENCE</h1>
|
||||
<div class="guide-subtitle">Essential Commands and Templates</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="basic">
|
||||
<h2>Basic Operations</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-basic">COPY</button></div>
|
||||
<pre><code id="code-basic">chmod +x app-name.AppImage
|
||||
./app-name.AppImage</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="proper">
|
||||
<h2>Proper Installation</h2>
|
||||
<h3>Manual Method</h3>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-proper">COPY</button></div>
|
||||
<pre><code id="code-proper">mkdir -p ~/Applications
|
||||
mv ~/Downloads/app-name.AppImage ~/Applications/
|
||||
chmod +x ~/Applications/app-name.AppImage
|
||||
nano ~/.local/share/applications/app-name.desktop</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="extract">
|
||||
<h2>Extract Icon from AppImage</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-extract">COPY</button></div>
|
||||
<pre><code id="code-extract">./app-name.AppImage --appimage-extract
|
||||
find squashfs-root -name "*.png" | grep -i icon
|
||||
cp squashfs-root/path/to/icon.png ~/Applications/app-icon.png
|
||||
rm -rf squashfs-root</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="update">
|
||||
<h2>Update AppImage</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-update">COPY</button></div>
|
||||
<pre><code id="code-update">mv ~/Applications/app-name.AppImage ~/Applications/app-name.AppImage.old
|
||||
mv ~/Downloads/app-name-new.AppImage ~/Applications/app-name.AppImage
|
||||
chmod +x ~/Applications/app-name.AppImage
|
||||
rm ~/Applications/app-name.AppImage.old</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="remove">
|
||||
<h2>Remove AppImage</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-remove">COPY</button></div>
|
||||
<pre><code id="code-remove">rm ~/Applications/app-name.AppImage
|
||||
rm ~/Applications/app-icon.png
|
||||
rm ~/.local/share/applications/app-name.desktop
|
||||
update-desktop-database ~/.local/share/applications/</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="troubleshoot">
|
||||
<h2>Troubleshooting</h2>
|
||||
<div class="callout note">
|
||||
<div class="callout-label">FUSE Error</div>
|
||||
<code>sudo apt install fuse libfuse2</code>
|
||||
</div>
|
||||
<div class="callout warn">
|
||||
<div class="callout-label">Validation</div>
|
||||
<code>desktop-file-validate ~/.local/share/applications/app-name.desktop</code>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="template">
|
||||
<h2>Desktop Entry Template</h2>
|
||||
<div class="code-block ini">
|
||||
<div class="code-label"><span>INI</span><button class="copy-btn" data-target="code-template">COPY</button></div>
|
||||
<pre><code id="code-template">[Desktop Entry]
|
||||
Type=Application
|
||||
Name=App Name
|
||||
Exec=/home/jl-kruger/Applications/app-name.AppImage
|
||||
Icon=/home/jl-kruger/Applications/app-icon.png
|
||||
Terminal=false
|
||||
Categories=Utility;</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="commands">
|
||||
<h2>Common AppImage Commands</h2>
|
||||
<div class="quick-ref">
|
||||
<div class="quick-ref-header">UTILITIES</div>
|
||||
<div class="quick-ref-body">
|
||||
<div class="code-block">
|
||||
<pre><code>./app-name.AppImage --appimage-help
|
||||
./app-name.AppImage --appimage-version
|
||||
./app-name.AppImage --appimage-extract
|
||||
gtk-launch app-name</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="categories">
|
||||
<h2>Categories Reference</h2>
|
||||
<ul>
|
||||
<li>AudioVideo, Development, Education, Game, Graphics</li>
|
||||
<li>Network, Office, Science, Settings, System, Utility</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="find">
|
||||
<h2>Find Installed AppImages</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>ls -lh ~/Applications/*.AppImage
|
||||
ls ~/.local/share/applications/*.desktop</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="tips">
|
||||
<h2>Pro Tips</h2>
|
||||
<div class="callout good">
|
||||
<div class="callout-label">Aliases</div>
|
||||
<code>alias myapp='~/Applications/app-name.AppImage'</code>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="security">
|
||||
<h2>Security Check</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>sha256sum app-name.AppImage
|
||||
file app-name.AppImage</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
const canvas = document.getElementById('embers'); const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 40, strength: 0.012 }, { r: 90, strength: 0.004 }, { r: 130, strength: 0.001 } ];
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() { const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)]; return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] }; }
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) { const progress = e.life / e.maxLife; const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1; if (alpha <= 0) return; const gAlpha = alpha * 0.38; const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4); glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`); glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`); ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill(); ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`; const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2); }
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
if (e.life % 6 === 0) { e.trail.push({ x: e.x, y: e.y }); if (e.trail.length > 5) e.trail.shift(); }
|
||||
const dx = mouse.x - e.x, dy = mouse.y - e.y, d = Math.sqrt(dx*dx+dy*dy);
|
||||
if (d < ZONES[2].r) {
|
||||
let s = 0;
|
||||
for (const z of ZONES) if (d < z.r) { s = z.strength; break; }
|
||||
e.vx += (dx/d)*s; e.vy += (dy/d)*s;
|
||||
e.vx *= 0.98; e.vy *= 0.98;
|
||||
}
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', () => { const targetId = btn.dataset.target; const el = document.getElementById(targetId); if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); }); }); });
|
||||
const sections = document.querySelectorAll('.guide-section[id]'); const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } }); }, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle'); const sidebar = document.getElementById('guideSidebar'); if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
218
ToolsnToys/Guides/docker-cheatsheet.html
Normal file
218
ToolsnToys/Guides/docker-cheatsheet.html
Normal file
@@ -0,0 +1,218 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>DOCKER CHEATSHEET // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg-deep); color: var(--text-main); font-family: 'Rambla', sans-serif; min-height: 100vh; overflow-x: hidden; }
|
||||
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%), radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%); pointer-events: none; z-index: 0; }
|
||||
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px); pointer-events: none; z-index: 1000; animation: scanline 12s linear infinite; }
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
.noise { position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 999; }
|
||||
.campfire-glow { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%); pointer-events: none; animation: campfireFlicker 3s ease-in-out infinite; z-index: 0; }
|
||||
@keyframes campfireFlicker { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); } 33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); } 66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); } }
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
.guide-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; max-width: 1100px; margin: 0 auto; }
|
||||
.guide-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.5rem 0.75rem 1.5rem 1rem; border-right: 1px solid var(--border-green); display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.sidebar-back { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.15s; }
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
.sidebar-title { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--fire-amber); text-transform: uppercase; line-height: 1.5; border-bottom: 1px solid var(--border-amber); padding-bottom: 0.75rem; text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.sidebar-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
.nav-item { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
.nav-item.active { color: var(--neon-green); border-left-color: var(--neon-green); background: rgba(50,220,140,0.06); }
|
||||
.guide-main { padding: 2rem 2.5rem 4rem; max-width: 760px; }
|
||||
.guide-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); position: relative; }
|
||||
.guide-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 35%; height: 1px; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: headerGlow 3s ease-in-out infinite alternate; }
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
.guide-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; margin-bottom: 0.4rem; }
|
||||
.guide-h1 { font-family: 'Sixtyfour', monospace; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3); line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
|
||||
.guide-subtitle { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
.guide-section h2 { font-family: 'Share Tech Mono', monospace; font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); background: var(--bg-panel); border: 1px solid var(--border-amber); border-left: 3px solid var(--fire-amber); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--border-green); }
|
||||
.guide-table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
|
||||
.guide-table th { background: var(--bg-panel); color: var(--fire-amber); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-align: left; white-space: nowrap; }
|
||||
.guide-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(50,220,140,0.08); color: var(--text-main); vertical-align: top; line-height: 1.5; }
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
@media (max-width: 720px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); } .guide-sidebar.open { transform: translateX(0); } .mobile-nav-toggle { display: block; } .guide-main { padding: 1rem 1.25rem 3rem; } .guide-h1 { font-size: 1rem; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
<div class="guide-wrap">
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">DOCKER COMMANDS CHEATSHEET</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#compose" class="nav-item">Docker Compose</a>
|
||||
<a href="#containers" class="nav-item">Containers</a>
|
||||
<a href="#images" class="nav-item">Images</a>
|
||||
<a href="#volumes" class="nav-item">Volumes</a>
|
||||
<a href="#networks" class="nav-item">Networks</a>
|
||||
<a href="#cleanup" class="nav-item">Cleanup</a>
|
||||
<a href="#trouble" class="nav-item">Troubleshooting</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">DOCKER CHEATSHEET</h1>
|
||||
<div class="guide-subtitle">Comprehensive Command Reference</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="compose">
|
||||
<h2>Docker Compose</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-compose">COPY</button></div>
|
||||
<pre><code id="code-compose">docker compose up -d # Start services in background
|
||||
docker compose down # Stop and remove containers
|
||||
docker compose ps # List status
|
||||
docker compose logs -f # Follow logs
|
||||
docker compose pull # Download latest images</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="containers">
|
||||
<h2>Container Management</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-cont">COPY</button></div>
|
||||
<pre><code id="code-cont">docker ps -a # List all containers
|
||||
docker stop name # Stop container
|
||||
docker rm name # Remove container
|
||||
docker exec -it name bash # Shell into container</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="images">
|
||||
<h2>Image Management</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-img">COPY</button></div>
|
||||
<pre><code id="code-img">docker images # List images
|
||||
docker rmi image_id # Remove image
|
||||
docker build -t name . # Build from Dockerfile
|
||||
docker pull name:tag # Pull specific version</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="volumes">
|
||||
<h2>Volumes</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>docker volume ls # List volumes
|
||||
docker volume rm name # Remove volume
|
||||
docker volume prune # Delete unused volumes</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="networks">
|
||||
<h2>Networks</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>docker network ls # List networks
|
||||
docker network inspect name
|
||||
docker network create name</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="cleanup">
|
||||
<h2>System Cleanup</h2>
|
||||
<div class="callout warn">
|
||||
<div class="callout-label">Pruning is permanent</div>
|
||||
<p>Use these to reclaim disk space from unused resources.</p>
|
||||
</div>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-clean">COPY</button></div>
|
||||
<pre><code id="code-clean">docker system prune # Clean everything unused
|
||||
docker system prune -a # Including unused images
|
||||
docker system df # Show disk usage</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="trouble">
|
||||
<h2>Troubleshooting</h2>
|
||||
<ul>
|
||||
<li>Permission Denied: <code>sudo usermod -aG docker $USER</code></li>
|
||||
<li>Port Conflict: <code>sudo lsof -i :PORT</code></li>
|
||||
<li>Daemon Restart: <code>sudo systemctl restart docker</code></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
const canvas = document.getElementById('embers'); const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 40, strength: 0.012 }, { r: 90, strength: 0.004 }, { r: 130, strength: 0.001 } ];
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() { const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)]; return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] }; }
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) { const progress = e.life / e.maxLife; const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1; if (alpha <= 0) return; const gAlpha = alpha * 0.38; const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4); glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`); glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`); ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill(); ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`; const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2); }
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
if (e.life % 6 === 0) { e.trail.push({ x: e.x, y: e.y }); if (e.trail.length > 5) e.trail.shift(); }
|
||||
const dx = mouse.x - e.x, dy = mouse.y - e.y, d = Math.sqrt(dx*dx+dy*dy);
|
||||
if (d < ZONES[2].r) {
|
||||
let s = 0;
|
||||
for (const z of ZONES) if (d < z.r) { s = z.strength; break; }
|
||||
e.vx += (dx/d)*s; e.vy += (dy/d)*s;
|
||||
e.vx *= 0.98; e.vy *= 0.98;
|
||||
}
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', () => { const targetId = btn.dataset.target; const el = document.getElementById(targetId); if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); }); }); });
|
||||
const sections = document.querySelectorAll('.guide-section[id]'); const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } }); }, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle'); const sidebar = document.getElementById('guideSidebar'); if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
212
ToolsnToys/Guides/facebook-streaming.html
Normal file
212
ToolsnToys/Guides/facebook-streaming.html
Normal file
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>FACEBOOK STREAMING SETUP // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg-deep); color: var(--text-main); font-family: 'Rambla', sans-serif; min-height: 100vh; overflow-x: hidden; }
|
||||
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%), radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%); pointer-events: none; z-index: 0; }
|
||||
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px); pointer-events: none; z-index: 1000; animation: scanline 12s linear infinite; }
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
.noise { position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 999; }
|
||||
.campfire-glow { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%); pointer-events: none; animation: campfireFlicker 3s ease-in-out infinite; z-index: 0; }
|
||||
@keyframes campfireFlicker { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); } 33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); } 66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); } }
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
.guide-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; max-width: 1100px; margin: 0 auto; }
|
||||
.guide-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.5rem 0.75rem 1.5rem 1rem; border-right: 1px solid var(--border-green); display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.sidebar-back { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.15s; }
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
.sidebar-title { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--fire-amber); text-transform: uppercase; line-height: 1.5; border-bottom: 1px solid var(--border-amber); padding-bottom: 0.75rem; text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.sidebar-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
.nav-item { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
.nav-item.active { color: var(--neon-green); border-left-color: var(--neon-green); background: rgba(50,220,140,0.06); }
|
||||
.guide-main { padding: 2rem 2.5rem 4rem; max-width: 760px; }
|
||||
.guide-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); position: relative; }
|
||||
.guide-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 35%; height: 1px; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: headerGlow 3s ease-in-out infinite alternate; }
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
.guide-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; margin-bottom: 0.4rem; }
|
||||
.guide-h1 { font-family: 'Sixtyfour', monospace; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3); line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
|
||||
.guide-subtitle { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
.guide-section h2 { font-family: 'Share Tech Mono', monospace; font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); background: var(--bg-panel); border: 1px solid var(--border-amber); border-left: 3px solid var(--fire-amber); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--border-green); }
|
||||
.guide-table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
|
||||
.guide-table th { background: var(--bg-panel); color: var(--fire-amber); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-align: left; white-space: nowrap; }
|
||||
.guide-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(50,220,140,0.08); color: var(--text-main); vertical-align: top; line-height: 1.5; }
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
@media (max-width: 720px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); } .guide-sidebar.open { transform: translateX(0); } .mobile-nav-toggle { display: block; } .guide-main { padding: 1rem 1.25rem 3rem; } .guide-h1 { font-size: 1rem; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
<div class="guide-wrap">
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">FACEBOOK STREAMING SETUP</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#hardware" class="nav-item">Hardware compatibility</a>
|
||||
<a href="#requirements" class="nav-item">Facebook specs</a>
|
||||
<a href="#step-1" class="nav-item">1. Page setup</a>
|
||||
<a href="#step-2" class="nav-item">2. Essential software</a>
|
||||
<a href="#step-3" class="nav-item">3. Camera config</a>
|
||||
<a href="#step-4" class="nav-item">4. Wireless mic</a>
|
||||
<a href="#step-5" class="nav-item">5. OBS Studio</a>
|
||||
<a href="#step-6" class="nav-item">6. Audio routing</a>
|
||||
<a href="#step-7" class="nav-item">7. Optimization</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">FACEBOOK STREAMING</h1>
|
||||
<div class="guide-subtitle">Multi-Camera Livestreaming with OBS on Mac M2</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="hardware">
|
||||
<h2>Hardware compatibility</h2>
|
||||
<div class="callout warn">
|
||||
<div class="callout-label">iPad A1474 (2013)</div>
|
||||
<p>iOS 12.5.7 limit. Most modern mic apps incompatible. Use Galaxy A25 for audio.</p>
|
||||
</div>
|
||||
<p>MacBook M2 supports 2-3 cameras simultaneously due to USB bandwidth constraints.</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="requirements">
|
||||
<h2>Facebook specs</h2>
|
||||
<ul>
|
||||
<li>720p maximum resolution.</li>
|
||||
<li>4,000 Kbps max video bitrate.</li>
|
||||
<li>RTMPS protocol required.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-1">
|
||||
<h2>1. Page setup</h2>
|
||||
<p>Access Meta Business Suite → Live Video → Select "Streaming Software". Enable persistent stream key.</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-2">
|
||||
<h2>2. Essential software</h2>
|
||||
<ol>
|
||||
<li>OBS Studio (Silicon native)</li>
|
||||
<li>BlackHole audio driver</li>
|
||||
<li>DroidCam OBS plugin</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-3">
|
||||
<h2>3. Camera config</h2>
|
||||
<p><strong>Galaxy A25:</strong> DroidCam (USB mode recommended for low latency).</p>
|
||||
<p><strong>iPad A1474:</strong> "Camera for OBS Studio" (verified iOS 12 compatible).</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-4">
|
||||
<h2>4. Wireless mic</h2>
|
||||
<p>Use SonoBus on Galaxy A25. Route output through BlackHole to OBS.</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-5">
|
||||
<h2>5. OBS Studio</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>Service: Facebook Live
|
||||
Encoder: Apple VT H264 (Hardware)
|
||||
Bitrate: 4000 Kbps
|
||||
Resolution: 1280x720</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-6">
|
||||
<h2>6. Audio routing</h2>
|
||||
<p>Create a Multi-Output Device in Audio MIDI Setup. Add "BlackHole 2ch" and "Built-in Output".</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="step-7">
|
||||
<h2>7. Optimization</h2>
|
||||
<ul>
|
||||
<li>Use hardware acceleration.</li>
|
||||
<li>Avoid USB hubs for cameras.</li>
|
||||
<li>Monitor CPU usage (keep < 70%).</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
const canvas = document.getElementById('embers'); const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 40, strength: 0.012 }, { r: 90, strength: 0.004 }, { r: 130, strength: 0.001 } ];
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() { const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)]; return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] }; }
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) { const progress = e.life / e.maxLife; const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1; if (alpha <= 0) return; const gAlpha = alpha * 0.38; const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4); glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`); glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`); ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill(); ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`; const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2); }
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
if (e.life % 6 === 0) { e.trail.push({ x: e.x, y: e.y }); if (e.trail.length > 5) e.trail.shift(); }
|
||||
const dx = mouse.x - e.x, dy = mouse.y - e.y, d = Math.sqrt(dx*dx+dy*dy);
|
||||
if (d < ZONES[2].r) {
|
||||
let s = 0;
|
||||
for (const z of ZONES) if (d < z.r) { s = z.strength; break; }
|
||||
e.vx += (dx/d)*s; e.vy += (dy/d)*s;
|
||||
e.vx *= 0.98; e.vy *= 0.98;
|
||||
}
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', () => { const targetId = btn.dataset.target; const el = document.getElementById(targetId); if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); }); }); });
|
||||
const sections = document.querySelectorAll('.guide-section[id]'); const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } }); }, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle'); const sidebar = document.getElementById('guideSidebar'); if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
274
ToolsnToys/Guides/linux-installation-methods.html
Normal file
274
ToolsnToys/Guides/linux-installation-methods.html
Normal file
@@ -0,0 +1,274 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LINUX INSTALLATION METHODS // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg-deep); color: var(--text-main); font-family: 'Rambla', sans-serif; min-height: 100vh; overflow-x: hidden; }
|
||||
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%), radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%); pointer-events: none; z-index: 0; }
|
||||
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px); pointer-events: none; z-index: 1000; animation: scanline 12s linear infinite; }
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
.noise { position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 999; }
|
||||
.campfire-glow { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%); pointer-events: none; animation: campfireFlicker 3s ease-in-out infinite; z-index: 0; }
|
||||
@keyframes campfireFlicker { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); } 33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); } 66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); } }
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
.guide-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; max-width: 1100px; margin: 0 auto; }
|
||||
.guide-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.5rem 0.75rem 1.5rem 1rem; border-right: 1px solid var(--border-green); display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.sidebar-back { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.15s; }
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
.sidebar-title { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--fire-amber); text-transform: uppercase; line-height: 1.5; border-bottom: 1px solid var(--border-amber); padding-bottom: 0.75rem; text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.sidebar-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
.nav-item { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
.nav-item.active { color: var(--neon-green); border-left-color: var(--neon-green); background: rgba(50,220,140,0.06); }
|
||||
.guide-main { padding: 2rem 2.5rem 4rem; max-width: 760px; }
|
||||
.guide-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); position: relative; }
|
||||
.guide-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 35%; height: 1px; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: headerGlow 3s ease-in-out infinite alternate; }
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
.guide-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; margin-bottom: 0.4rem; }
|
||||
.guide-h1 { font-family: 'Sixtyfour', monospace; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3); line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
|
||||
.guide-subtitle { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
.guide-section h2 { font-family: 'Share Tech Mono', monospace; font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); background: var(--bg-panel); border: 1px solid var(--border-amber); border-left: 3px solid var(--fire-amber); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
.guide-section h3 { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon-teal); margin: 1.25rem 0 0.5rem; }
|
||||
.guide-section h3::before { content: '> '; color: var(--text-muted); }
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
.guide-section ul, .guide-section ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
|
||||
.guide-section li { font-size: 0.92rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.2rem; }
|
||||
.guide-section ul li::marker { color: var(--neon-green); }
|
||||
.guide-section ol li::marker { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--fire-amber); }
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--border-green); }
|
||||
.guide-table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
|
||||
.guide-table th { background: var(--bg-panel); color: var(--fire-amber); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-align: left; white-space: nowrap; }
|
||||
.guide-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(50,220,140,0.08); color: var(--text-main); vertical-align: top; line-height: 1.5; }
|
||||
.guide-table tr:hover td { background: rgba(50,220,140,0.04); }
|
||||
.guide-table .check-yes { color: var(--neon-green); }
|
||||
.guide-table .check-no { color: var(--fire-coral); }
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
@media (max-width: 720px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); } .guide-sidebar.open { transform: translateX(0); } .mobile-nav-toggle { display: block; } .guide-main { padding: 1rem 1.25rem 3rem; } .guide-h1 { font-size: 1rem; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
<div class="guide-wrap">
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">LINUX INSTALLATION METHODS</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#landscape" class="nav-item">Landscape</a>
|
||||
<a href="#method-apt" class="nav-item">1. APT/DPKG</a>
|
||||
<a href="#method-flatpak" class="nav-item">2. Flatpak</a>
|
||||
<a href="#method-snap" class="nav-item">3. Snap</a>
|
||||
<a href="#method-appimage" class="nav-item">4. AppImage</a>
|
||||
<a href="#method-tarball" class="nav-item">5. Tarball</a>
|
||||
<a href="#method-source" class="nav-item">6. Source</a>
|
||||
<a href="#method-scripts" class="nav-item">7. Scripts</a>
|
||||
<a href="#decision" class="nav-item">Choosing</a>
|
||||
<a href="#maintenance" class="nav-item">Maintenance</a>
|
||||
<a href="#trouble" class="nav-item">Troubleshooting</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">LINUX INSTALLATION METHODS</h1>
|
||||
<div class="guide-subtitle">Comprehensive Guide to Software Management</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="landscape">
|
||||
<h2>Landscape</h2>
|
||||
<div class="guide-table-wrap">
|
||||
<table class="guide-table">
|
||||
<thead>
|
||||
<tr><th>Method</th><th>Root</th><th>Auto-Updates</th><th>Sandboxed</th><th>Speed</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>APT</td><td class="check-yes">✓</td><td class="check-yes">✓</td><td class="check-no">✗</td><td>⚡ Fast</td></tr>
|
||||
<tr><td>Flatpak</td><td class="check-no">✗</td><td class="check-yes">✓</td><td class="check-yes">✓</td><td>🐌 Slower</td></tr>
|
||||
<tr><td>Snap</td><td class="check-no">✗</td><td class="check-yes">✓</td><td class="check-yes">✓</td><td>🐌 Slowest</td></tr>
|
||||
<tr><td>AppImage</td><td class="check-no">✗</td><td>⚠️ Manual</td><td class="check-no">✗</td><td>⚡ Fast</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-apt">
|
||||
<h2>1. APT/DPKG (Native Packages)</h2>
|
||||
<p>The standard for Debian/Ubuntu-based systems.</p>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-apt">COPY</button></div>
|
||||
<pre><code id="code-apt">sudo apt update
|
||||
sudo apt install package-name
|
||||
sudo apt purge package-name
|
||||
sudo apt autoremove</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-flatpak">
|
||||
<h2>2. Flatpak</h2>
|
||||
<p>Universal package manager with sandboxing.</p>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-flatpak">COPY</button></div>
|
||||
<pre><code id="code-flatpak">flatpak install flathub org.example.App
|
||||
flatpak run org.example.App
|
||||
flatpak update
|
||||
flatpak uninstall --delete-data org.example.App</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-snap">
|
||||
<h2>3. Snap</h2>
|
||||
<p>Ubuntu's universal manager. (Note: Mint removes this by default).</p>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-snap">COPY</button></div>
|
||||
<pre><code id="code-snap">sudo snap install app-name
|
||||
sudo snap refresh
|
||||
sudo snap remove --purge app-name</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-appimage">
|
||||
<h2>4. AppImage</h2>
|
||||
<p>Portable, single-file applications.</p>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-appimage">COPY</button></div>
|
||||
<pre><code id="code-appimage">chmod +x app-name.AppImage
|
||||
./app-name.AppImage</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-tarball">
|
||||
<h2>5. Tarball Archives</h2>
|
||||
<p>Compressed archives for manual extraction.</p>
|
||||
<div class="code-block">
|
||||
<pre><code>tar -xzf app-name.tar.gz
|
||||
sudo mv app-name/ /opt/</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-source">
|
||||
<h2>6. Source Compilation</h2>
|
||||
<p>Building from source for maximum control.</p>
|
||||
<div class="code-block">
|
||||
<pre><code>./configure --prefix=/usr/local
|
||||
make -j$(nproc)
|
||||
sudo make install</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-scripts">
|
||||
<h2>7. Scripts</h2>
|
||||
<p>Third-party installation scripts (use with caution).</p>
|
||||
<div class="code-block">
|
||||
<pre><code>curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sudo sh get-docker.sh</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="decision">
|
||||
<h2>Choosing the Right Method</h2>
|
||||
<ol>
|
||||
<li><strong>APT</strong> - Stability & Integration</li>
|
||||
<li><strong>Flatpak</strong> - Latest versions & Security</li>
|
||||
<li><strong>AppImage</strong> - Portability</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="maintenance">
|
||||
<h2>Maintenance Best Practices</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-maint">COPY</button></div>
|
||||
<pre><code id="code-maint">sudo apt update && sudo apt upgrade -y
|
||||
flatpak update -y
|
||||
sudo apt autoremove --purge</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="trouble">
|
||||
<h2>Troubleshooting</h2>
|
||||
<ul>
|
||||
<li>Locked Manager: <code>sudo rm /var/lib/dpkg/lock</code></li>
|
||||
<li>Broken Deps: <code>sudo apt --fix-broken install</code></li>
|
||||
<li>Missing Libs: <code>ldd executable</code></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
const canvas = document.getElementById('embers'); const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 40, strength: 0.012 }, { r: 90, strength: 0.004 }, { r: 130, strength: 0.001 } ];
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() { const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)]; return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] }; }
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) { const progress = e.life / e.maxLife; const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1; if (alpha <= 0) return; const gAlpha = alpha * 0.38; const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4); glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`); glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`); ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill(); ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`; const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2); }
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
if (e.life % 6 === 0) { e.trail.push({ x: e.x, y: e.y }); if (e.trail.length > 5) e.trail.shift(); }
|
||||
const dx = mouse.x - e.x, dy = mouse.y - e.y, d = Math.sqrt(dx*dx+dy*dy);
|
||||
if (d < ZONES[2].r) {
|
||||
let s = 0;
|
||||
for (const z of ZONES) if (d < z.r) { s = z.strength; break; }
|
||||
e.vx += (dx/d)*s; e.vy += (dy/d)*s;
|
||||
e.vx *= 0.98; e.vy *= 0.98;
|
||||
}
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', () => { const targetId = btn.dataset.target; const el = document.getElementById(targetId); if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); }); }); });
|
||||
const sections = document.querySelectorAll('.guide-section[id]'); const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } }); }, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle'); const sidebar = document.getElementById('guideSidebar'); if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
243
ToolsnToys/Guides/linux-uninstallation.html
Normal file
243
ToolsnToys/Guides/linux-uninstallation.html
Normal file
@@ -0,0 +1,243 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LINUX UNINSTALLATION // TOOLS N TOYS</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&family=Share+Tech+Mono&family=Rambla:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Emoji&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-deep: #030812;
|
||||
--bg-mid: #060f1a;
|
||||
--bg-surface: #081524;
|
||||
--bg-panel: #0d1e32;
|
||||
--text-main: #c8d8e8;
|
||||
--text-muted: #3a5570;
|
||||
--phosphor: #00ff41;
|
||||
--neon-green: #32dc8c;
|
||||
--neon-dim: #229966;
|
||||
--fire-amber: #e8943a;
|
||||
--fire-dim: #b06020;
|
||||
--toucan: #ffcf40;
|
||||
--fire-coral: #d4654a;
|
||||
--neon-teal: #2ac4b3;
|
||||
--orchid: #c558d9;
|
||||
--border-green: rgba(50,220,140,0.25);
|
||||
--border-amber: rgba(232,148,58,0.35);
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: var(--bg-deep); color: var(--text-main); font-family: 'Rambla', sans-serif; min-height: 100vh; overflow-x: hidden; }
|
||||
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 90%, rgba(232,148,58,0.06) 0%, transparent 70%), radial-gradient(ellipse 80% 50% at 10% 0%, rgba(3,8,18,0.95) 0%, transparent 60%), radial-gradient(ellipse 80% 50% at 90% 0%, rgba(3,8,18,0.95) 0%, transparent 60%); pointer-events: none; z-index: 0; }
|
||||
body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.10) 4px); pointer-events: none; z-index: 1000; animation: scanline 12s linear infinite; }
|
||||
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 400px; } }
|
||||
.noise { position: fixed; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 999; }
|
||||
.campfire-glow { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(ellipse at center bottom, rgba(255,107,26,0.14) 0%, rgba(255,59,10,0.04) 40%, transparent 70%); pointer-events: none; animation: campfireFlicker 3s ease-in-out infinite; z-index: 0; }
|
||||
@keyframes campfireFlicker { 0%,100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); } 33% { opacity: 1; transform: translateX(-50%) scaleY(1.08); } 66% { opacity: 0.7; transform: translateX(-52%) scaleY(0.96); } }
|
||||
#embers { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
|
||||
.guide-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; max-width: 1100px; margin: 0 auto; }
|
||||
.guide-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.5rem 0.75rem 1.5rem 1rem; border-right: 1px solid var(--border-green); display: flex; flex-direction: column; gap: 1rem; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.sidebar-back { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--text-muted); text-decoration: none; text-transform: uppercase; transition: color 0.15s; }
|
||||
.sidebar-back:hover { color: var(--neon-green); }
|
||||
.sidebar-title { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--fire-amber); text-transform: uppercase; line-height: 1.5; border-bottom: 1px solid var(--border-amber); padding-bottom: 0.75rem; text-shadow: 0 0 8px rgba(232,148,58,0.4); }
|
||||
.sidebar-label { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
|
||||
.guide-nav { display: flex; flex-direction: column; gap: 0.1rem; }
|
||||
.nav-item { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
|
||||
.nav-item:hover { color: var(--text-main); border-left-color: var(--border-green); }
|
||||
.nav-item.active { color: var(--neon-green); border-left-color: var(--neon-green); background: rgba(50,220,140,0.06); }
|
||||
.guide-main { padding: 2rem 2.5rem 4rem; max-width: 760px; }
|
||||
.guide-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-green); position: relative; }
|
||||
.guide-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 35%; height: 1px; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: headerGlow 3s ease-in-out infinite alternate; }
|
||||
@keyframes headerGlow { from { opacity: 0.5; width: 25%; } to { opacity: 1; width: 45%; } }
|
||||
.guide-tag { font-family: 'Share Tech Mono', monospace; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--fire-amber); text-transform: uppercase; margin-bottom: 0.4rem; }
|
||||
.guide-h1 { font-family: 'Sixtyfour', monospace; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green), 0 0 24px rgba(50,220,140,0.3); line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
|
||||
.guide-subtitle { font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.1em; }
|
||||
.guide-section { margin-bottom: 2.5rem; }
|
||||
.guide-section h2 { font-family: 'Share Tech Mono', monospace; font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-amber); text-shadow: 0 0 8px rgba(232,148,58,0.4); background: var(--bg-panel); border: 1px solid var(--border-amber); border-left: 3px solid var(--fire-amber); padding: 0.5rem 0.75rem; margin-bottom: 1rem; }
|
||||
.guide-section h2::before { content: '// '; color: var(--text-muted); }
|
||||
.guide-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text-main); margin-bottom: 0.75rem; }
|
||||
code { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--toucan); background: rgba(255,207,64,0.08); padding: 1px 4px; border: 1px solid rgba(255,207,64,0.2); }
|
||||
.code-block { position: relative; margin: 0.75rem 0 1rem; background: var(--bg-surface); border: 1px solid var(--border-green); border-left: 3px solid var(--neon-green); overflow: hidden; }
|
||||
.code-label { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--text-muted); background: var(--bg-panel); padding: 0.25rem 0.75rem; border-bottom: 1px solid var(--border-green); display: flex; justify-content: space-between; align-items: center; }
|
||||
.copy-btn { font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); background: transparent; border: 1px solid var(--border-green); padding: 2px 8px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; }
|
||||
.copy-btn:hover { color: var(--neon-green); border-color: var(--neon-green); }
|
||||
.copy-btn.copied { color: var(--toucan); border-color: var(--toucan); }
|
||||
.code-block pre { padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--neon-dim) transparent; }
|
||||
.code-block code { font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--phosphor); background: none; border: none; padding: 0; line-height: 1.6; display: block; white-space: pre; }
|
||||
.guide-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; border: 1px solid var(--border-green); }
|
||||
.guide-table { width: 100%; border-collapse: collapse; font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; }
|
||||
.guide-table th { background: var(--bg-panel); color: var(--fire-amber); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-amber); text-align: left; white-space: nowrap; }
|
||||
.guide-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(50,220,140,0.08); color: var(--text-main); vertical-align: top; line-height: 1.5; }
|
||||
.mobile-nav-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 100; font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--neon-green); background: var(--bg-panel); border: 1px solid var(--border-green); padding: 0.4rem 0.7rem; cursor: pointer; }
|
||||
@media (max-width: 720px) { .guide-wrap { grid-template-columns: 1fr; } .guide-sidebar { position: fixed; top: 0; left: 0; width: 260px; z-index: 50; background: var(--bg-mid); transform: translateX(-100%); transition: transform 0.2s ease; border-right: 1px solid var(--border-green); } .guide-sidebar.open { transform: translateX(0); } .mobile-nav-toggle { display: block; } .guide-main { padding: 1rem 1.25rem 3rem; } .guide-h1 { font-size: 1rem; } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="campfire-glow"></div>
|
||||
<canvas id="embers"></canvas>
|
||||
<button class="mobile-nav-toggle" id="navToggle">☰ SECTIONS</button>
|
||||
<div class="guide-wrap">
|
||||
<aside class="guide-sidebar" id="guideSidebar">
|
||||
<a href="../guides.html" target="_top" class="sidebar-back">← FIELD MANUALS</a>
|
||||
<div class="sidebar-title">LINUX UNINSTALLATION GUIDE</div>
|
||||
<div>
|
||||
<div class="sidebar-label">// SECTIONS</div>
|
||||
<nav class="guide-nav" id="guideNav">
|
||||
<a href="#quick-ref" class="nav-item">Quick Reference</a>
|
||||
<a href="#method-apt" class="nav-item">1. APT/DPKG</a>
|
||||
<a href="#method-flatpak" class="nav-item">2. Flatpak</a>
|
||||
<a href="#method-snap" class="nav-item">3. Snap</a>
|
||||
<a href="#method-appimage" class="nav-item">4. AppImage</a>
|
||||
<a href="#method-tarball" class="nav-item">5. Tarball</a>
|
||||
<a href="#method-source" class="nav-item">6. Source builds</a>
|
||||
<a href="#method-scripts" class="nav-item">7. Scripts</a>
|
||||
<a href="#cleanup" class="nav-item">System Cleanup</a>
|
||||
<a href="#nuclear" class="nav-item">Nuclear Options</a>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
<main class="guide-main">
|
||||
<header class="guide-header">
|
||||
<div class="guide-tag">▶ FIELD MANUAL // TOOLS N TOYS</div>
|
||||
<h1 class="guide-h1">LINUX UNINSTALLATION</h1>
|
||||
<div class="guide-subtitle">Comprehensive Guide to System Cleanup</div>
|
||||
</header>
|
||||
|
||||
<section class="guide-section" id="quick-ref">
|
||||
<h2>Quick Reference</h2>
|
||||
<div class="guide-table-wrap">
|
||||
<table class="guide-table">
|
||||
<thead>
|
||||
<tr><th>Method</th><th>Identify</th><th>Command</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td>APT</td><td><code>dpkg -l</code></td><td><code>sudo apt purge</code></td></tr>
|
||||
<tr><td>Flatpak</td><td><code>flatpak list</code></td><td><code>flatpak uninstall</code></td></tr>
|
||||
<tr><td>Snap</td><td><code>snap list</code></td><td><code>sudo snap remove</code></td></tr>
|
||||
<tr><td>AppImage</td><td>File location</td><td>Delete file</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-apt">
|
||||
<h2>1. APT/DPKG Packages</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-apt">COPY</button></div>
|
||||
<pre><code id="code-apt">sudo apt remove package-name
|
||||
sudo apt purge package-name
|
||||
sudo apt autoremove --purge</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-flatpak">
|
||||
<h2>2. Flatpak Applications</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-flat">COPY</button></div>
|
||||
<pre><code id="code-flat">flatpak uninstall org.example.App
|
||||
flatpak uninstall --delete-data org.example.App
|
||||
flatpak uninstall --unused</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-snap">
|
||||
<h2>3. Snap Packages</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-snap">COPY</button></div>
|
||||
<pre><code id="code-snap">sudo snap remove package-name
|
||||
sudo snap remove --purge package-name</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-appimage">
|
||||
<h2>4. AppImages</h2>
|
||||
<ol>
|
||||
<li>Delete the AppImage file.</li>
|
||||
<li>Remove <code>~/.local/share/applications/name.desktop</code>.</li>
|
||||
<li>Clean <code>~/.config/app-name/</code>.</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-tarball">
|
||||
<h2>5. Tarball Extracts</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>sudo rm -rf /opt/package-name/
|
||||
rm -rf ~/.local/package-name/
|
||||
sudo rm /usr/local/bin/package-name</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-source">
|
||||
<h2>6. Source Builds</h2>
|
||||
<div class="code-block">
|
||||
<pre><code>cd path/to/source/
|
||||
sudo make uninstall</code></pre>
|
||||
</div>
|
||||
<p>If no uninstaller exists, use <code>checkinstall</code> for future tracking.</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="method-scripts">
|
||||
<h2>7. Scripts</h2>
|
||||
<p>Identify install location from the script source, then manually remove binaries and data.</p>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="cleanup">
|
||||
<h2>System Cleanup</h2>
|
||||
<div class="code-block">
|
||||
<div class="code-label"><span>BASH</span><button class="copy-btn" data-target="code-clean">COPY</button></div>
|
||||
<pre><code id="code-clean">sudo apt clean
|
||||
sudo journalctl --vacuum-time=7d
|
||||
rm -rf ~/.cache/thumbnails/*</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section" id="nuclear">
|
||||
<h2>Nuclear Options</h2>
|
||||
<p>Only use if the system is severely corrupted. Reset package manager locks:</p>
|
||||
<div class="code-block">
|
||||
<pre><code>sudo rm /var/lib/dpkg/lock
|
||||
sudo dpkg --configure -a</code></pre>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
const canvas = document.getElementById('embers'); const ctx = canvas.getContext('2d');
|
||||
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
|
||||
resize(); window.addEventListener('resize', resize);
|
||||
const mouse = { x: -9999, y: -9999 };
|
||||
window.addEventListener('mousemove', ev => { mouse.x = ev.clientX; mouse.y = ev.clientY; });
|
||||
const ZONES = [ { r: 40, strength: 0.012 }, { r: 90, strength: 0.004 }, { r: 130, strength: 0.001 } ];
|
||||
const EMBER_COUNT = 55; const embers = [];
|
||||
const ZONES = [ { r: 36, strength: 0.014 }, { r: 88, strength: 0.005 }, { r: 121, strength: 0.0012 } ];
|
||||
const COLORS = [ { r: 255, g: 107, b: 26 }, { r: 255, g: 59, b: 10 }, { r: 255, g: 160, b: 40 }, { r: 255, g: 200, b: 60 }, { r: 212, g: 255, b: 0 } ];
|
||||
function randomEmber() { const col = COLORS[Math.random() < 0.06 ? 4 : Math.floor(Math.random() * 4)]; return { x: Math.random() * canvas.width, y: canvas.height + 10, vx: (Math.random() - 0.5) * 0.9, vy: -(0.5 + Math.random() * 1.4), life: 0, maxLife: 180 + Math.random() * 280, size: 1 + Math.random() * 2.2, r: col.r, g: col.g, b: col.b, wobble: Math.random() * Math.PI * 2, wobbleSpeed: 0.02 + Math.random() * 0.03, trail: [] }; }
|
||||
for (let i = 0; i < EMBER_COUNT; i++) { const e = randomEmber(); e.y = Math.random() * canvas.height; e.life = Math.random() * e.maxLife; embers.push(e); }
|
||||
function drawEmber(e) { const progress = e.life / e.maxLife; const alpha = progress < 0.1 ? progress / 0.1 : progress > 0.75 ? (1 - progress) / 0.25 : 1; if (alpha <= 0) return; const gAlpha = alpha * 0.38; const glow = ctx.createRadialGradient(e.x, e.y, 0, e.x, e.y, e.size * 4); glow.addColorStop(0, `rgba(${e.r},${e.g},${e.b},${gAlpha})`); glow.addColorStop(1, `rgba(${e.r},${e.g},${e.b},0)`); ctx.beginPath(); ctx.arc(e.x, e.y, e.size * 4, 0, Math.PI * 2); ctx.fillStyle = glow; ctx.fill(); ctx.fillStyle = `rgba(${e.r},${e.g},${e.b},${Math.min(0.65, gAlpha * 1.4)})`; const ps = Math.max(1, Math.round(e.size)); ctx.fillRect(Math.round(e.x) - ps, Math.round(e.y) - ps, ps * 2, ps * 2); }
|
||||
function tick() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
for (const e of embers) {
|
||||
if (e.life % 6 === 0) { e.trail.push({ x: e.x, y: e.y }); if (e.trail.length > 5) e.trail.shift(); }
|
||||
const dx = mouse.x - e.x, dy = mouse.y - e.y, d = Math.sqrt(dx*dx+dy*dy);
|
||||
if (d < ZONES[2].r) {
|
||||
let s = 0;
|
||||
for (const z of ZONES) if (d < z.r) { s = z.strength; break; }
|
||||
e.vx += (dx/d)*s; e.vy += (dy/d)*s;
|
||||
e.vx *= 0.98; e.vy *= 0.98;
|
||||
}
|
||||
e.wobble += e.wobbleSpeed; e.x += e.vx + Math.sin(e.wobble) * 0.4; e.y += e.vy; e.life++;
|
||||
if (e.life >= e.maxLife || e.y < -20) Object.assign(e, randomEmber());
|
||||
drawEmber(e);
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
document.querySelectorAll('.copy-btn').forEach(btn => { btn.addEventListener('click', () => { const targetId = btn.dataset.target; const el = document.getElementById(targetId); if (el) navigator.clipboard.writeText(el.textContent).then(() => { btn.textContent = 'COPIED'; setTimeout(() => btn.textContent = 'COPY', 1800); }); }); });
|
||||
const sections = document.querySelectorAll('.guide-section[id]'); const navItems = document.querySelectorAll('.nav-item');
|
||||
const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { navItems.forEach(n => n.classList.remove('active')); const active = document.querySelector(`.nav-item[href="#${entry.target.id}"]`); if (active) active.classList.add('active'); } }); }, { rootMargin: '-20% 0px -60% 0px' });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
const toggle = document.getElementById('navToggle'); const sidebar = document.getElementById('guideSidebar'); if (toggle && sidebar) toggle.addEventListener('click', () => sidebar.classList.toggle('open'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user