From 6a00cb7fd60392cb2aa1343af02b5d95a5e6241f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 8 Apr 2017 23:52:01 -0700 Subject: [PATCH] small fixes, add maru script --- distro-begin | 19 ++--------------- maru-init | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ radicale-setup | 3 ++- rootsshsync | 2 +- 4 files changed, 62 insertions(+), 19 deletions(-) create mode 100644 maru-init diff --git a/distro-begin b/distro-begin index aa19cfa..78c92eb 100755 --- a/distro-begin +++ b/distro-begin @@ -186,20 +186,8 @@ if [[ $EUID == 0 ]]; then fi -#### begin link bashrc repo for all users ###### -for x in /a/c/repos/bash/!(.git|..|.); do - lnf "$x" /home/ian - sudo -u traci -i <&2' ERR + + +usage() { + cat <>/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 + +kill $(pgrep -U ian) +usermod -l ian -m -d /home/ian maru +groupmod -n ian maru +useradd -m -s /bin/bash traci +EOF + +# then do myunison n5, +# then do conflink. diff --git a/radicale-setup b/radicale-setup index 631bf42..b885f36 100755 --- a/radicale-setup +++ b/radicale-setup @@ -41,7 +41,8 @@ setini hosts 10.8.0.4:5232 server sgo radicale # davdroid from f-droid. username ian, -# url https://iank.pw/radicale/ian. +# url https://cal.iankelling.org +# username ian # I disabled power management feature, it's got 240 min sync interval, # so it shouldn't be bad. # diff --git a/rootsshsync b/rootsshsync index e962f19..9d9140a 100755 --- a/rootsshsync +++ b/rootsshsync @@ -28,5 +28,5 @@ else fi # -t times, so it won't rewrite the file every time, # -L resolve links -rsync -rtL $(eval echo ~${SUDO_USER:-$USER})/.ssh $dest +rsync -rtL $(eval echo ~${SUDO_USER:-$USER})/.ssh/ $dest chown -R root:root /root/.ssh -- 2.30.2