Script para debian 11
This commit is contained in:
+22
-8
@@ -1,21 +1,29 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
cat > /etc/apt/sources.list << EOF
|
cat > /etc/apt/sources.list << EOF
|
||||||
deb 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/ buster main contrib non-free
|
deb-src http://deb.debian.org/debian/ bullseye main
|
||||||
|
|
||||||
deb 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 buster/updates main
|
deb-src http://security.debian.org/debian-security bullseye-security main
|
||||||
|
|
||||||
# buster-updates, previously known as 'volatile'
|
deb http://deb.debian.org/debian/ bullseye-updates main
|
||||||
#deb http://deb.debian.org/debian/ buster-updates main
|
deb-src http://deb.debian.org/debian/ bullseye-updates main
|
||||||
#deb-src http://deb.debian.org/debian/ buster-updates main
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt upgrade
|
apt upgrade -y
|
||||||
#apt install firmware-linux firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree -y
|
#apt install firmware-linux firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree -y
|
||||||
apt install neovim -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
|
cat > /usr/lib/systemd/system/autoexec.service << EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
@@ -23,6 +31,7 @@ Description=Autoexec de servicios de Last Dragon
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/autoexec
|
ExecStart=/bin/autoexec
|
||||||
|
ExecStop=/bin/autoexecdown
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
@@ -32,8 +41,13 @@ cat > /bin/autoexec << EOF
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cat > /bin/autoexecdown << EOF
|
||||||
|
#! /bin/bash
|
||||||
|
EOF
|
||||||
|
|
||||||
systemctl enable autoexec
|
systemctl enable autoexec
|
||||||
chmod +x /bin/autoexec
|
chmod +x /bin/autoexec
|
||||||
|
chmod +x /bin/autoexecdown
|
||||||
|
|
||||||
cat > /root/.bashrc << EOF
|
cat > /root/.bashrc << EOF
|
||||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||||
|
|||||||
Reference in New Issue
Block a user