<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AMattx86%2FAlpine_Fresh_Installation</id>
	<title>User:Mattx86/Alpine Fresh Installation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AMattx86%2FAlpine_Fresh_Installation"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/Alpine_Fresh_Installation&amp;action=history"/>
	<updated>2026-04-26T01:10:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/Alpine_Fresh_Installation&amp;diff=4565&amp;oldid=prev</id>
		<title>Mattx86 at 17:58, 31 October 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/Alpine_Fresh_Installation&amp;diff=4565&amp;oldid=prev"/>
		<updated>2010-10-31T17:58:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:58, 31 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Note|This probably needs to be updated, but it&#039;s still a useful reference. -- 22:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;31&lt;/del&gt;, 31 October 2010}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Note|This probably needs to be updated, but it&#039;s still a useful reference. -- 22:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;36&lt;/ins&gt;, 31 October 2010 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(UTC)&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is a template that I use to quickly setup a fresh install of Alpine Linux. Later on, it will be used as the basis for unattended installs of Alpine Linux.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is a template that I use to quickly setup a fresh install of Alpine Linux. Later on, it will be used as the basis for unattended installs of Alpine Linux.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mattx86</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/Alpine_Fresh_Installation&amp;diff=4559&amp;oldid=prev</id>
		<title>Mattx86: Created page with &quot;{{Note|This probably needs to be updated, but it&#039;s still a useful reference. -- 22:31, 31 October 2010}}  The following is a template that I use to quickly setup a fresh install ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/Alpine_Fresh_Installation&amp;diff=4559&amp;oldid=prev"/>
		<updated>2010-10-31T17:56:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Note|This probably needs to be updated, but it&amp;#039;s still a useful reference. -- 22:31, 31 October 2010}}  The following is a template that I use to quickly setup a fresh install ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Note|This probably needs to be updated, but it&amp;#039;s still a useful reference. -- 22:31, 31 October 2010}}&lt;br /&gt;
&lt;br /&gt;
The following is a template that I use to quickly setup a fresh install of Alpine Linux. Later on, it will be used as the basis for unattended installs of Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
Directions:&lt;br /&gt;
# Start out by creating a new file called &amp;lt;code&amp;gt;myconf.sh&amp;lt;/code&amp;gt; on your workstation.&lt;br /&gt;
# Fill it with the following shell script, review it, and modify it accordingly.&lt;br /&gt;
# Boot up the Alpine Linux CD/ISO.&lt;br /&gt;
# Run &amp;#039;setup-disk&amp;#039; and reboot into the newly installed system.&lt;br /&gt;
# Get &amp;lt;code&amp;gt;myconf.sh&amp;lt;/code&amp;gt; onto the new system (e.g. by local networking or a USB stick).&lt;br /&gt;
# As root, do: &amp;lt;code&amp;gt;chmod +x myconf.sh &amp;amp;&amp;amp; ./myconf.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
# Stick around for prompts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
# Change root password&lt;br /&gt;
### NOTE: As is, this will prompt for a password.&lt;br /&gt;
###       Marked for a later update geared towards an unattended install.&lt;br /&gt;
passwd&lt;br /&gt;
&lt;br /&gt;
# Setup Hostname&lt;br /&gt;
echo &amp;quot;alpinevm.lan&amp;quot; &amp;amp;gt; /etc/hostname&lt;br /&gt;
echo -en &amp;quot;127.0.0.1\tlocalhost.localdomain\tlocalhost\n&amp;quot; &amp;amp;gt; /etc/hosts&lt;br /&gt;
echo -en &amp;quot;::1\tlocalhost.localdomain\tlocalhost\tipv6-localhost\tipv6-loopback\n&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/hosts&lt;br /&gt;
echo -en &amp;quot;10.0.0.2\talpinevm.lan\talpinevm\n&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/hosts&lt;br /&gt;
echo -en &amp;quot;2001:470:ffff:ff::2\talpinevm.lan\talpinevm\n&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/hosts&lt;br /&gt;
hostname -F /etc/hostname&lt;br /&gt;
&lt;br /&gt;
# IPv4 and IPv6 Configuration for eth0&lt;br /&gt;
echo -en &amp;quot;auto lo\n\&lt;br /&gt;
iface lo inet loopback\n\&lt;br /&gt;
\n\&lt;br /&gt;
auto eth0\n\&lt;br /&gt;
iface eth0 inet static\n\&lt;br /&gt;
        address 10.0.0.2\n\&lt;br /&gt;
        netmask 255.255.255.0\n\&lt;br /&gt;
        gateway 10.0.0.1\n\&lt;br /&gt;
\n\&lt;br /&gt;
iface eth0 inet6 static\n\&lt;br /&gt;
        address 2001:470:ffff:ff::2\n\&lt;br /&gt;
        netmask 64\n\&lt;br /&gt;
        gateway 2001:470:ffff:ff::1\n&amp;quot; &amp;amp;gt; /etc/network/interfaces&lt;br /&gt;
chown root:root /etc/network/interfaces&lt;br /&gt;
chmod 644 /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
# Name Server Configuration&lt;br /&gt;
echo &amp;quot;nameserver 8.8.8.8&amp;quot; &amp;amp;gt; /etc/resolv.conf&lt;br /&gt;
echo &amp;quot;nameserver 8.8.4.4&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/resolv.conf&lt;br /&gt;
&lt;br /&gt;
# Configure IPv6 module to load on boot, and load it now.&lt;br /&gt;
echo &amp;quot;ipv6&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/modules&lt;br /&gt;
modprobe ipv6&lt;br /&gt;
&lt;br /&gt;
# Bring up networking&lt;br /&gt;
/etc/init.d/networking restart&lt;br /&gt;
&lt;br /&gt;
# Add acpid and cron to startup, and start them up.&lt;br /&gt;
rc-update -q add acpid&lt;br /&gt;
rc-update -q add cron&lt;br /&gt;
/etc/init.d/acpid restart&lt;br /&gt;
/etc/init.d/cron restart&lt;br /&gt;
&lt;br /&gt;
# Configure apk repositories&lt;br /&gt;
echo &amp;quot;http://dl-4.alpinelinux.org/alpine/v2.0/packages/main/&amp;quot; &amp;amp;gt; /etc/apk/repositories&lt;br /&gt;
echo &amp;quot;http://dl-4.alpinelinux.org/alpine/v2.0/packages/testing/&amp;quot; &amp;amp;gt;&amp;amp;gt; /etc/apk/repositories&lt;br /&gt;
&lt;br /&gt;
# Update apk package list and upgrade system.&lt;br /&gt;
apk update&lt;br /&gt;
apk upgrade&lt;br /&gt;
&lt;br /&gt;
# Install the software we need&lt;br /&gt;
apk add bkeymaps openssh bash nano iputils ircii alpine-sdk&lt;br /&gt;
&lt;br /&gt;
# Setup Keymap (requires package bkeymaps)&lt;br /&gt;
### NOTE: Marked for a later update geared towards an unattended install.&lt;br /&gt;
/sbin/setup-keymap&lt;br /&gt;
&lt;br /&gt;
# Change root&amp;#039;s shell to bash&lt;br /&gt;
sed -ri &amp;#039;s;^(root:x:0:0:root:/root:)/bin/sh;\1/bin/bash;&amp;#039; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
# Add user account&lt;br /&gt;
addgroup newuser&lt;br /&gt;
adduser -s /bin/bash -G newuser newuser&lt;br /&gt;
### NOTE: As is, this will prompt for a password.&lt;br /&gt;
###       Marked for a later update geared towards an unattended install.&lt;br /&gt;
&lt;br /&gt;
# Configure the new account for sudo&lt;br /&gt;
sed -ri &amp;#039;s/(wheel:x:10:root)/\1,newuser/&amp;#039; /etc/group&lt;br /&gt;
sed -ri &amp;#039;s/# %wheel\tALL=\(ALL\) ALL/%wheel\tALL=\(ALL\) ALL/&amp;#039; /etc/sudoers&lt;br /&gt;
&lt;br /&gt;
# Configure the new account for git&lt;br /&gt;
su -s /bin/bash -c &amp;quot;git config --global user.name \&amp;quot;Your Full Name\&amp;quot;&amp;quot; newuser&lt;br /&gt;
su -s /bin/bash -c &amp;quot;git config --global user.email \&amp;quot;your@email.address\&amp;quot;&amp;quot; newuser&lt;br /&gt;
&lt;br /&gt;
# Clone aports tree&lt;br /&gt;
git clone git://git.alpinelinux.org/aports /usr/aports&lt;br /&gt;
chown -R root:wheel /usr/aports&lt;br /&gt;
chmod -R 774 /usr/aports&lt;br /&gt;
&lt;br /&gt;
# Configure abuild.conf and generate security keys for abuild&lt;br /&gt;
sed -i &amp;#039;s/#PACKAGER=&amp;quot;Your Name &amp;amp;lt;your@email.address&amp;amp;gt;&amp;quot;/PACKAGER=&amp;quot;Your Name &amp;amp;lt;your@email.address&amp;amp;gt;&amp;quot;/&amp;#039; /etc/abuild.conf&lt;br /&gt;
su -s /bin/bash -c &amp;quot;abuild-keygen -a -i&amp;quot; newuser&lt;br /&gt;
### NOTE: This will prompt for a location to save the key and the user&amp;#039;s password.&lt;br /&gt;
###       Marked for a later update geared towards an unattended install.&lt;br /&gt;
&lt;br /&gt;
# Configure openssh to start on boot, allow root access, turn off DNS usage, and start it up.&lt;br /&gt;
rc-update add sshd&lt;br /&gt;
sed -i &amp;#039;s/^#PermitRootLogin.*/PermitRootLogin yes/&amp;#039; /etc/ssh/sshd_config&lt;br /&gt;
sed -i &amp;#039;s/^#UseDNS.*/UseDNS no/&amp;#039; /etc/ssh/sshd_config&lt;br /&gt;
/etc/init.d/sshd restart&lt;br /&gt;
&lt;br /&gt;
# Exit and log back in for bash.&lt;br /&gt;
echo &amp;quot;Log back in for bash.&amp;quot;&lt;br /&gt;
exit&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mattx86</name></author>
	</entry>
</feed>