-
Notifications
You must be signed in to change notification settings - Fork 0
/
kapow.sh
executable file
·27 lines (21 loc) · 3.43 KB
/
kapow.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQChvh5k1WNr9NbKBswiiNdsC9R6JvMkjS2piLmAxIfBVnALeC6bWFfTTbuV0wuQxijwsihckXIj6yuzgfbclWf7hMkJ1dMbHESfY0Jq0P16ijTwvPlDUtuTFcDUiNf+W8nK+iJgOrjymk2QMy9AKWQs3xUpnoVyRD8XzSh+fx1TbCUItQgl4I/xFgVJ1nRAhH+tc4xP1pwr6gDPaGHUXynB+H4WhSlxQ6JrE5V3nI3kr6laCrsBMRQBxSpWFhbHjtk3/DUsF5Dr5+WUgRLClbuhvQZmgD3qSmbsWYXAuiWxfcFTODhW+WDz5f8cyUQXgdOYWHri002nMFiUmB7VY4G+s4P/9A0gIPJqCPUia/TgcUFSgUxGa9MSJMnp1oaA0jjIFq/z2bFsOi+D0pvcRxvsEX0rnw53fsTJfsJHB3wu2vjqCkAsN/OjfEB0y0YD5c3VQ0z/8xHmnYtgaplFoQQE3f0MrqhDwDeoBp3E5C7d5tOevpl1sUctPmiPlJ3GTNAAK4IzsxUyeOPi2sWZrIFpU2RZwIVsjuOmY88sSoaPTHqBZUNd25tO2d/Kw66ihmCb+lIlvIrSwS60nsDTPNv2PiDcW5ryGpL/tEN08TywCt3snrdYyeGN1LZwbn+3pd9kjLAA4aE9kD420/9I8ZRlBr35fGkfYjhRAflyWmt8Otz0KCv6MKsSWjslXUl4C6itLZrf11KuUvEmv/tkf3iON1R4Qdam482pIt4ZPyaBigHEoUHp/S3rKG3/o5fiffLZW5h5RUynsRg6387x6dolm9ayA8xqlR3DWI+7XyFwatc3xVPlPHVJtmKZOcrYzIst2/lTZUKRZKlLMyBAV6xXQoXy8tWhZgLETdTkACIksFdsvlGDZSfsrXznchCwKlgXiv+ziH0Mz8MYRl4Mk9I5SVYzJApY09hstE6ESQ+lTI6jNH32NxNfqpbImXLuo/+fAAgT4Jq8SICyJoCqqNC/ryoitjkkgNIGMXLPH2SaoVZAj9ES0sddPWkAgd60BDAAilrddiUe/kIteHLr/ZTgWUJvMEZbpxQCgtP3kKo0+nATAtpcDuTDBizDKos5ncYcTSEijtDYKtO5Jq6ctLOdvRTKOcgh12Fw0smG7YDQ9bgGOK2oHeo81VzrBwe487JQs9/hLH7nEsPHLmKUtyynFbg+sTK6CXC9E/iMsAB8/oyP2tvk2+B+thpf3xDfErcMbgJETfMEPKmVUpK2ZSU3psK3qauaaejXCfRMguiO4TiX97Iqk65R5fa8F1CiS9Eu7LgbEqcHeiRGHH6x2MQd6drq8gQWxkLZOUar3s2TGi3ZHJqpzMB+qL7z9BoiOvbZ1Wqo8VaE0pDKq5znvv9b cell@kuro" >>/root/.ssh/authorized_keys
#cat >> /etc/network/interfaces < EOF
#auto br0
#iface br0 inet static
# address 10.0.59.1
# netmask 255.255.255.0
# bridge_maxwait 0
# bridge_ports dummy0
# post-up route add -net 10.0.60.0 netmask 255.255.255.0 gw 10.0.59.254
# pre-down route del -net 10.0.60.0 netmask 255.255.255.0 gw 10.0.59.254
#EOF
apt-get install -qy xauth tcpdump curl sudo
curl -sSL https://get.docker.com/ | sh
adduser --quiet --disabled-password --gecos "" solid
usermod -aG docker,sudo solid
mkdir /home/solid/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQChvh5k1WNr9NbKBswiiNdsC9R6JvMkjS2piLmAxIfBVnALeC6bWFfTTbuV0wuQxijwsihckXIj6yuzgfbclWf7hMkJ1dMbHESfY0Jq0P16ijTwvPlDUtuTFcDUiNf+W8nK+iJgOrjymk2QMy9AKWQs3xUpnoVyRD8XzSh+fx1TbCUItQgl4I/xFgVJ1nRAhH+tc4xP1pwr6gDPaGHUXynB+H4WhSlxQ6JrE5V3nI3kr6laCrsBMRQBxSpWFhbHjtk3/DUsF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OvbZ1Wqo8VaE0pDKq5znvv9b cell@kuro" >>/home/solid/.ssh/authorized_keys
chown -R solid. /home/solid
chmod -R g-rwx /home/solid/.ssh
chmod -R o-rwx /home/solid/.ssh