Add: automatic configuration script
This commit is contained in:
parent
a29aa32b61
commit
61a4f83cb7
24
auto/auto.sh
Executable file
24
auto/auto.sh
Executable 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 ..
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# customized
|
# custom
|
||||||
|
|
||||||
umask 007
|
umask 007
|
||||||
|
|
2
auto/bash/bash.sh
Executable file
2
auto/bash/bash.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cat .bashrc.append >> ~/.bashrc
|
3
auto/gnome/gnome.sh
Executable file
3
auto/gnome/gnome.sh
Executable 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
2
auto/readline/readline.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cp -i .inputrc ~
|
2
auto/ssh/authorized_keys
Normal file
2
auto/ssh/authorized_keys
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPclu8pJC3f2MGIx/8cS/ssl7KnJB/tfmUpFRdtM7TAU DuckDuckWhale
|
||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+TiOFdNZVEgF0dU82CJfa9KlVNMJsgnPX0RItfNnIZ DuckDUckWhale Phone
|
3
auto/ssh/config
Normal file
3
auto/ssh/config
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Host *
|
||||||
|
ForwardX11Trusted no
|
||||||
|
IdentitiesOnly yes
|
5
auto/ssh/ssh.sh
Executable file
5
auto/ssh/ssh.sh
Executable 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
2
auto/tmux/tmux.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cp -i .tmux.conf ~
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
cp -i .vimrc ~
|
||||||
curl -Lo ~/.vim/autoload/plug.vim --create-dirs \
|
curl -Lo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
15
system/sshd/sshd_config
Normal file
15
system/sshd/sshd_config
Normal 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
|
Loading…
Reference in New Issue
Block a user