iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixes
[distro-setup]
/
maru-init
diff --git
a/maru-init
b/maru-init
old mode 100644
(file)
new mode 100755
(executable)
index
92f179b
..
8f4ab55
--- a/
maru-init
+++ b/
maru-init
@@
-38,16
+38,16
@@
esac
scp $(readlink -f $(which rootsshsync)) maru-init maru@n5:
scp $(readlink -f $(which rootsshsync)) maru-init maru@n5:
-ssh maru@n5 ./rootsshsync
+ssh
-t
maru@n5 ./rootsshsync
ssh root@n5 bash <<'EOF'
echo "ian ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
echo n5 >/etc/hostname
ssh root@n5 bash <<'EOF'
echo "ian ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
echo n5 >/etc/hostname
-hostname -F /etc/hostname
sed -i '/^127\.0\.1\.1/d' /etc/hosts
echo "127.0.1.1 n5.lan n5" >>/etc/hosts
sed -i '/^127\.0\.1\.1/d' /etc/hosts
echo "127.0.1.1 n5.lan n5" >>/etc/hosts
+hostname -F /etc/hostname
-kill $(pgrep -U
ian
)
+kill $(pgrep -U
maru
)
usermod -l ian -m -d /home/ian maru
groupmod -n ian maru
useradd -m -s /bin/bash traci
usermod -l ian -m -d /home/ian maru
groupmod -n ian maru
useradd -m -s /bin/bash traci