Add: automatic configuration script

This commit is contained in:
DuckDuckWhale 2022-10-22 00:19:35 -07:00
parent a29aa32b61
commit 61a4f83cb7
Signed by: DuckDuckWhale
GPG Key ID: E4B9FC170FFD71CE
19 changed files with 60 additions and 1 deletions

24
auto/auto.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
cd bash
./bash.sh
cd ..
cd git
./git.sh
cd ..
cd ssh
./ssh.sh
cd ..
cd vim
./vim.sh
cd ..
cd gnome
./gnome.sh
cd ..
cd home-chmod
./home-chmod.sh
cd ..

View File

@ -1,5 +1,5 @@
# customized
# custom
umask 007

2
auto/bash/bash.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cat .bashrc.append >> ~/.bashrc

3
auto/gnome/gnome.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
gsettings set org.gnome.desktop.wm.keybindings switch-group "['<Super>Above_Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-group-backward "['<Shift><Super>Above_Tab']"

2
auto/readline/readline.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cp -i .inputrc ~

2
auto/ssh/authorized_keys Normal file
View File

@ -0,0 +1,2 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPclu8pJC3f2MGIx/8cS/ssl7KnJB/tfmUpFRdtM7TAU DuckDuckWhale
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+TiOFdNZVEgF0dU82CJfa9KlVNMJsgnPX0RItfNnIZ DuckDUckWhale Phone

3
auto/ssh/config Normal file
View File

@ -0,0 +1,3 @@
Host *
ForwardX11Trusted no
IdentitiesOnly yes

5
auto/ssh/ssh.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp -i authorized_keys config ~/.ssh/
chmod 600 ~/.ssh/authorized_keys ~/.ssh/config

2
auto/tmux/tmux.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
cp -i .tmux.conf ~

View File

@ -1,3 +1,4 @@
#!/bin/sh
cp -i .vimrc ~
curl -Lo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

15
system/sshd/sshd_config Normal file
View File

@ -0,0 +1,15 @@
Include /etc/ssh/sshd_config.d/*.conf
AllowGroups ssh-users
Port 22
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
# would be deprecated soon by
# KbdInteractiveAuthentication no
ChallengeResponseAuthentication no
UsePAM yes
AllowTcpForwarding yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server