<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Alloy_install</id>
	<title>Alloy install - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Alloy_install"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Alloy_install&amp;action=history"/>
	<updated>2026-05-10T18:42:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Alloy_install&amp;diff=5577&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` #!/usr/bin/env bash set -euo pipefail  # 1. Ensure running as root if  $EUID -ne 0 ; then   echo &quot;Please run as root or with sudo.&quot;   exit 1 fi  # 2. (Optional) Check...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Alloy_install&amp;diff=5577&amp;oldid=prev"/>
		<updated>2025-07-08T17:15:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` #!/usr/bin/env bash set -euo pipefail  # 1. Ensure running as root if &lt;a href=&quot;/index.php?title=$EUID_-ne_0&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;$EUID -ne 0 (page does not exist)&quot;&gt;$EUID -ne 0 &lt;/a&gt;; then   echo &amp;quot;Please run as root or with sudo.&amp;quot;   exit 1 fi  # 2. (Optional) Check...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
#!/usr/bin/env bash&lt;br /&gt;
set -euo pipefail&lt;br /&gt;
&lt;br /&gt;
# 1. Ensure running as root&lt;br /&gt;
if [[ $EUID -ne 0 ]]; then&lt;br /&gt;
  echo &amp;quot;Please run as root or with sudo.&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# 2. (Optional) Check Ubuntu version&lt;br /&gt;
. /etc/os-release&lt;br /&gt;
if [[ &amp;quot;$VERSION_ID&amp;quot; != &amp;quot;24.04&amp;quot; ]]; then&lt;br /&gt;
  echo &amp;quot;Warning: This is tailored for Ubuntu 24.04 but you're on $PRETTY_NAME.&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# 3. Install prerequisites&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get install -y gpg wget gnupg&lt;br /&gt;
&lt;br /&gt;
# 4. Add Grafana APT repo and GPG key&lt;br /&gt;
mkdir -p /etc/apt/keyrings&lt;br /&gt;
wget -q -O - https://apt.grafana.com/gpg.key \&lt;br /&gt;
  | gpg --dearmor \&lt;br /&gt;
  | tee /etc/apt/keyrings/grafana.gpg &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
cat &amp;lt;&amp;lt;EOF | tee /etc/apt/sources.list.d/grafana.list&lt;br /&gt;
deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main&lt;br /&gt;
EOF&lt;br /&gt;
&lt;br /&gt;
# 5. Update and install Alloy&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get install -y alloy&lt;br /&gt;
&lt;br /&gt;
# 6. Enable and start the service&lt;br /&gt;
systemctl daemon-reload&lt;br /&gt;
systemctl enable --now alloy&lt;br /&gt;
&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;✔ Grafana Alloy has been installed and started.&amp;quot;&lt;br /&gt;
echo &amp;quot;→ Check status with: systemctl status alloy&amp;quot;&lt;br /&gt;
&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>