forked from zotan/os-bootstrap-core
11 lines
416 B
Bash
11 lines
416 B
Bash
#!/bin/bash
|
|
|
|
sudo dnf install epel-release wget git nano zsh -y
|
|
sudo groupadd sudo
|
|
sudo bash -c 'echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
|
sudo useradd -md /home/zotan -s /bin/zsh -UG sudo zotan
|
|
sudo -u zotan "mkdir /home/zotan/.ssh"
|
|
sudo -u zotan "wget -O /home/zotan/.ssh/authorized_keys share.zotan.services/authorized_keys"
|
|
sudo -u zotan "curl share.zotan.services/prezto.sh -L | zsh"
|
|
sudo -iu zotan
|