-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
24 lines (18 loc) · 694 Bytes
/
init
File metadata and controls
24 lines (18 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
apt install -y curl zsh git mc mosh language-pack-ru python-software-properties
apt-get update
git config --global color.ui true
git config --global user.name "h0"
git config --global user.email "hav0k@me.com"
adduser --quiet --shell /bin/zsh --gecos '' --disabled-password h0
ntpdate ru.pool.ntp.org
touch /etc/sudoers.d/h0
chmod 440 /etc/sudoers.d/h0
echo "h0 ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/h0
usermod -a -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,www-data h0
mkdir /home/h0/.ssh
chown h0:h0 /home/h0/.ssh
chmod 700 /home/h0/.ssh
touch /home/h0/.ssh/authorized_keys
chown h0. /home/h0/.ssh/authorized_keys
chmod 600 /home/h0/.ssh/authorized_keys