Skip to content
Snippets Groups Projects
Unverified Commit c301babf authored by anarcat's avatar anarcat
Browse files

bring install-like procedures closer to the top

parent 998d5e71
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,19 @@ All commands to be run as root unless otherwise noted.
* set a hostname - pick an unused one from the [[doc/naming-scheme]]
* set new root password, and document it
* swap and tmp
grep tmpfs /etc/fstab || echo 'tmpfs /tmp tmpfs defaults 0 0' >> /etc/fstab
! grep swap /etc/fstab && \
dd if=/dev/zero bs=1024k count=1024 of=/swapfile && \
chmod 0 /swapfile && \
mkswap /swapfile && \
echo '/swapfile none swap sw 0 0' >> /etc/fstab && \
swapon -a
* sanitize DNS configuration:
grep torproject.org /etc/resolv.conf || echo 'domain torproject.org' >> /etc/resolv.conf
......@@ -112,19 +125,6 @@ All commands to be run as root unless otherwise noted.
( ! grep '^root:' /etc/aliases && echo 'root: torproject-admin@torproject.org' >> /etc/aliases ) &&
sed -i -e 's/^root:.*/root: torproject-admin@torproject.org/' /etc/aliases && newaliases
* set new root password, and document it
* swap and tmp
grep tmpfs /etc/fstab || echo 'tmpfs /tmp tmpfs defaults 0 0' >> /etc/fstab
! grep swap /etc/fstab && \
dd if=/dev/zero bs=1024k count=1024 of=/swapfile && \
chmod 0 /swapfile && \
mkswap /swapfile && \
echo '/swapfile none swap sw 0 0' >> /etc/fstab && \
swapon -a
* add to [[nagios]]
* document the machine in the evil Google spreadsheet (!)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment