Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 11, 2011 12:33 pm 
Offline
Newbie

Joined: Fri Jan 21, 2011 10:08 am
Posts: 4
Website: http://zachbrowne.com
#!/bin/bash

#################################################
# Setup Basics in Ubuntu 10.04 for Linode.com #
# by Zach Browne - http://zachbrowne.com #
# Server zb1 #
#################################################

## UPDATE SERVER

hostname zb1
/etc/init.d/hostname start
ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
aptitude update && aptitude -y safe-upgrade

# Setup hosts file
rm /etc/hosts
touch /etc/hosts
cat > /etc/hosts <<EOF
127.0.0.1 localhost.localdomain localhost
96.126.124.64 zb1.zachbrowne.com zb1
72.14.178.227 zb2.zachbrowne.com zb2
EOF

# Setup static IP
rm /etc/network/interfaces
touch /etc/network/interfaces
cat > /etc/network/interfaces <<EOF
auto lo
iface lo inet loopback
auto eth0 eth0:1
iface eth0 inet static
address 96.126.124.64
netmask 255.255.255.0
gateway 96.126.124.1
iface eth0:1 inet static
address 192.168.147.82
netmask 255.255.128.0
EOF

# Remove DHCP
aptitude -y remove dhcpcd

# Add options rotate
rm /etc/resolv.conf
touch /etc/resolv.conf
cat > /etc/resolv.conf <<EOF
search members.linode.com
nameserver 72.14.188.5
nameserver 72.14.179.5
options rotate
EOF

# Install Bind9 to cache DNS.
aptitude -y install bind9
rm /etc/bind/named.conf.options
touch /etc/bind/named.conf.options
cat > /etc/bind/named.conf.options <<EOF
{
directory "/var/cache/bind";
auth-nxdomain no;
forwarders {69.93.127.10;65.19.178.10;75.127.96.10;207.192.70.10;109.74.194.10;};
listen-on-v6 {any;};
};
EOF

# Restart networking
/etc/init.d/networking restart

_________________
[bold]Zach Browne[/bold]
[em]Web Consultant[/em]
[a href=http://zachbrowne.com]zachbrowne.com[/a]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group