Skip to content

Commit

Permalink
Set up to advertise hostname on local network.
Browse files Browse the repository at this point in the history
- Set hostname to ogn.
- Add and configure samba and winbind.

fixes #2
  • Loading branch information
matburnham committed Jul 25, 2017
1 parent a59ef39 commit d5234de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions appliance/etc/hostname
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ogn
6 changes: 6 additions & 0 deletions appliance/etc/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.1.1 ogn
5 changes: 5 additions & 0 deletions appliance/usr/local/sbin/pi-install
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
PACKAGES="
unattended-upgrades
samba
winbind
"

# Remove this file if you want to re-run the setup
Expand All @@ -29,6 +31,9 @@ apt-get -q update
apt-get -q -y dist-upgrade
apt-get -q -y install $PACKAGES

# Advertise hostname on local network. This config file already exists, so add this before installing samba and winbind
sed -i 's/^hosts: files /hosts: files wins /g' /etc/nsswitch.conf

# FIXME: For now, grab a specific package from github, really this should be added as
# an additional repository so that it gets the latest version and updates it as new versions
# come out
Expand Down

0 comments on commit d5234de

Please sign in to comment.