Skip to content

Commit f81345f

Browse files
author
codetrybe
committed
A script that configures Ubuntu server
1 parent 603d4fd commit f81345f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
# This script configures an Ubuntu server as follows:
3+
# **** localhost resolves to 127.0.0.2
4+
# **** facebook.com resolves to 8.8.8.8
5+
6+
cp /etc/hosts ~/hosts.new
7+
echo "127.0.0.2 localhost" > ~/hosts.new
8+
echo "8.8.8.8 facebook.com" >> ~/hosts.new
9+
cp -f ~/hosts.new /etc/hosts

0 commit comments

Comments
 (0)