Small edits..

This commit is contained in:
cyteen 2021-01-08 22:54:18 +00:00
parent b3457d42aa
commit 0075d9bc0c
5 changed files with 11 additions and 10 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
/etc/init.d/ssh restart
sudo sed -i 's,^\(PasswordAuthentication \).*,\1'yes',' /etc/ssh/sshd_config
sudo etc/init.d/ssh restart
bash -c "cat > ~/.ssh/config" <<'EOF'
Host *

View File

@ -37,12 +37,12 @@ EOF
DEST=${1:-/etc/skel}
cat > ${DEST}/.zprofile <<'EOF'
if [ -f ${HOME}/.ssh/id_rsa.pub ]; then
chmod 644 ${HOME}/.ssh/id_rsa.pub
if [ -f ${DEST}/.ssh/id_rsa.pub ]; then
chmod 644 ${DEST}/.ssh/id_rsa.pub
else
echo "Generating ssh keys."
ssh-keygen -q -t rsa -N '' -f ${HOME}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null
chmod 644 ${HOME}/.ssh/id_rsa.pub
chmod 644 ${DEST}/.ssh/id_rsa.pub
fi
EOF
@ -52,7 +52,7 @@ chmod +x ${DEST}/.zprofile
ssh-keygen -A
# Root user keys
ssh-keygen -q -t rsa -N '' -f ${HOME}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null
ssh-keygen -q -t rsa -N '' -f ${DEST}/.ssh/id_rsa 2>/dev/null <<< y >/dev/null
# Do this for any server you want to connect to without interaction.
# ssh-keyscan git.ring-zero.co.uk >> ~/.ssh/known_hosts

View File

@ -32,6 +32,7 @@ apt install -y \
apt-transport-https \
ca-certificates \
curl \
pass \
gnupg2 \
software-properties-common
apt install -y docker-ce docker-ce-cli containerd.io

View File

@ -166,7 +166,7 @@ Plugin 'VundleVim/Vundle.vim'
" plugin on GitHub repos
Plugin 'joonty/vdebug'
Plugin 'voldikiss/vim-floaterm'
Plugin 'voldikss/vim-floaterm'
Plugin 'tpope/vim-fugitive'
Plugin 'jreybert/vimagit'
Plugin 'wincent/command-t'

View File

@ -10,7 +10,7 @@
#sudo apt update
#sudo apt install zsh-completions
apt install -y zsh nodejs zsh-theme-powerlevel9k
sudo apt install -y zsh nodejs zsh-theme-powerlevel9k
set -x
# compaudit
# There are insecure directories: /usr/local/share/zsh/site-functions
@ -28,7 +28,7 @@ DEST=${1:-/etc/skel}
HOME=${DEST}
ALIAS_DIR=".zshrc.d"
apt install -y git
sudo apt install -y git
# Install zgen plugin manager and zsh quicktart to get a default setup for zsh
git clone https://github.com/tarjoilija/zgen ${DEST}/zgen # available with apt install zgen which installs to /usr/share/zgen
git clone https://github.com/unixorn/zsh-quickstart-kit ${DEST}/zsh-quickstart-kit
@ -212,7 +212,7 @@ EOF
#echo 'QUICKSTART_KIT_REFRESH_IN_DAYS=30' >> ~/.zshrc.d/001_quickstart-refresh.zsh
echo 'ZGEN_PLUGIN_UPDATE_DAYS=30' > ${DEST}/.zshrc.d/001_zgen-refresh.zsh
apt install -y fonts-powerline powerline
sudo apt install -y fonts-powerline powerline
# sed -i 's,^\(export LOCATE_PATH=\).*,\1'/var/lib/mlocate/mlocate.db',' ~/.zshrc
# Use powerline-daemon to speedup the prompt.