Actualizar new.sh
Ahora se descarga los archivos de bash y de alias, los pone en _skel_ y en el directorio _root_
This commit is contained in:
parent
24ca4eed6c
commit
41f168d778
20
new.sh
20
new.sh
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash
|
||||
GREEN='\033[1;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
sudo apt update && sudo apt install -y curl vim sudo git
|
||||
cp -v .bashrc bashrc_bak
|
||||
sed -i 's/both/&:erasedups/' .bashrc
|
||||
sed -i 's/^#force_/force_/' .bashrc
|
||||
sed -i '/ls=/s/auto/auto -h/' .bashrc
|
||||
sed -i '/ll=/s/^#//' .bashrc
|
||||
sed -i '/la=/s/^#//' .bashrc
|
||||
sed -i '/GCC_/s/^#//' .bashrc
|
||||
echo "alias ns='nslookup'" >> .bashrc
|
||||
source .bashrc
|
||||
|
||||
apt update && apt install -y curl vim sudo git
|
||||
wget https://f.avc.cx/bashrc.txt -O /etc/skel/.bashrc
|
||||
cp /etc/skel/.bashrc /root/.bashrc
|
||||
wget https://f.avc.cx/bash_aliases.txt -O /etc/skel/.bash_aliases
|
||||
cp /etc/skel/.bash_aliases /root/.bash_aliases
|
||||
echo -e ${YELLOW}Nuevo usuario: ${NC}
|
||||
read usuario
|
||||
adduser $usuario
|
||||
echo -e ${GREEN}Done${NC}
|
Loading…
Reference in New Issue
Block a user