diff --git a/initupdatesystemctl.sh b/initupdatesystemctl.sh new file mode 100755 index 0000000..53edfee --- /dev/null +++ b/initupdatesystemctl.sh @@ -0,0 +1,69 @@ +#! /bin/bash + +cat > /etc/apt/sources.list << EOF +deb http://deb.debian.org/debian/ buster main contrib non-free +deb-src http://deb.debian.org/debian/ buster main contrib non-free + +deb http://security.debian.org/debian-security buster/updates main +deb-src http://security.debian.org/debian-security buster/updates main + +# buster-updates, previously known as 'volatile' +#deb http://deb.debian.org/debian/ buster-updates main +#deb-src http://deb.debian.org/debian/ buster-updates main +EOF + +apt update +apt upgrade +#apt install firmware-linux firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree -y +apt install neovim -y + +cat > /usr/lib/systemd/system/autoexec.service << EOF +[Unit] +Description=Autoexec de servicios de Last Dragon +[Service] +Type=oneshot +ExecStart=/bin/autoexec +RemainAfterExit=yes +[Install] +WantedBy=multi-user.target +EOF + +cat > /bin/autoexec << EOF +#! /bin/bash +EOF + +systemctl enable autoexec +chmod +x /bin/autoexec + +cat > /root/.bashrc << EOF +# ~/.bashrc: executed by bash(1) for non-login shells. + +# Note: PS1 and umask are already set in /etc/profile. You should not +# need this unless you want different defaults for root. +# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' +# umask 022 + + +alias cp='cp -i' +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' +alias grep='grep --color=auto' +alias l.='ls -d .* --color=auto' +alias ll='ls -l --color=auto' +alias ls='ls --color=auto' +alias mv='mv -i' +alias rm='rm -i' +alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot' +alias xzegrep='xzegrep --color=auto' +alias xzfgrep='xzfgrep --color=auto' +alias xzgrep='xzgrep --color=auto' +alias zegrep='zegrep --color=auto' +alias zfgrep='zfgrep --color=auto' +alias zgrep='zgrep --color=auto' +EOF + +timedatectl set-timezone America/Mexico_City + +systemctl disable apparmor + +shutdown -r now