Script para debian 11
This commit is contained in:
+22
-8
@@ -1,21 +1,29 @@
|
||||
#! /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://deb.debian.org/debian/ bullseye main
|
||||
deb-src http://deb.debian.org/debian/ bullseye main
|
||||
|
||||
deb http://security.debian.org/debian-security buster/updates main
|
||||
deb-src http://security.debian.org/debian-security buster/updates main
|
||||
deb http://security.debian.org/debian-security bullseye-security main
|
||||
deb-src http://security.debian.org/debian-security bullseye-security 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
|
||||
deb http://deb.debian.org/debian/ bullseye-updates main
|
||||
deb-src http://deb.debian.org/debian/ bullseye-updates main
|
||||
EOF
|
||||
|
||||
apt update
|
||||
apt upgrade
|
||||
apt upgrade -y
|
||||
#apt install firmware-linux firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree -y
|
||||
apt install neovim -y
|
||||
echo "set mouse-=a" >> ~/.vimrc
|
||||
|
||||
# Instalando sistemas de archivo
|
||||
apt install xfsprogs -y
|
||||
apt install jfsutils -y
|
||||
apt install exfat-fuse exfat-utils -y
|
||||
apt install ntfs-3g -y
|
||||
apt install dosfstools -y
|
||||
apt install btrfs-progs -y
|
||||
|
||||
cat > /usr/lib/systemd/system/autoexec.service << EOF
|
||||
[Unit]
|
||||
@@ -23,6 +31,7 @@ Description=Autoexec de servicios de Last Dragon
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/autoexec
|
||||
ExecStop=/bin/autoexecdown
|
||||
RemainAfterExit=yes
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -32,8 +41,13 @@ cat > /bin/autoexec << EOF
|
||||
#! /bin/bash
|
||||
EOF
|
||||
|
||||
cat > /bin/autoexecdown << EOF
|
||||
#! /bin/bash
|
||||
EOF
|
||||
|
||||
systemctl enable autoexec
|
||||
chmod +x /bin/autoexec
|
||||
chmod +x /bin/autoexecdown
|
||||
|
||||
cat > /root/.bashrc << EOF
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
|
||||
Reference in New Issue
Block a user