to buster

This commit is contained in:
bicubico
2023-02-20 16:13:21 -03:00
parent 091ab01445
commit 181da98124
3 changed files with 39 additions and 33 deletions

View File

@@ -0,0 +1,31 @@
Section "Files"
ModulePath "/usr/lib/arm-linux-gnueabihf/xorg/modules/"
ModulePath "/usr/lib/xorg/modules/"
EndSection
Section "Monitor"
Identifier "VGA"
Option "PreferredMode" "1024x768_60.00"
EndSection
Section "Monitor"
Identifier "HDMI"
Option "PreferredMode" "1280x720_60.00"
EndSection
Section "Monitor"
Identifier "Composite"
Option "PreferredMode" "NTSC10"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
EndSection
Section "Device"
Identifier "Card0"
Driver "fbdev"
EndSection

View File

@@ -27,7 +27,7 @@ mv stretch_source_list.txt /etc/apt/sources.list
echo "."
echo "*** apt update & upgrade ***"
apt-get update && apt-get upgrade -y
apt-get update && apt-get full-upgrade -y
sleep 5
# Define network variables

View File

@@ -1,47 +1,22 @@
#!/bin/bash
# Upgrade jessie
# Upgrade from stretch to buster
echo "."
echo "*** Updating and upgrading Debian Jessie. ***"
mv /etc/apt/sources.list /etc/apt/sources.list.bak
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/jessie_source_list.txt
mv jessie_source_list.txt /etc/apt/sources.list
echo "."
echo "*** Installing debian keyring. ***"
apt-get update
apt-get install debian-keyring debian-archive-keyring -y --force-yes
sleep 5
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_source_list.txt
mv buster_source_list.txt /etc/apt/sources.list
echo "."
echo "*** apt update & upgrade ***"
apt-get update && apt-get upgrade -y
apt-get update && apt-get full-upgrade -y
sleep 5
# Upgrade from jessie to stretch
echo "."
echo "*** Upgrading Debian Jessie to Debian Stretch ***"
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak2
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/stretch_source_list.txt
mv stretch_source_list.txt /etc/apt/sources.list
echo "."
echo "*** apt update & upgrade ***"
apt-get update && apt-get upgrade -y
sleep 5
# Define network variables
sudo chmod 666 /etc/NetworkManager/NetworkManager.conf
echo -e "[connection]" >> /etc/NetworkManager/NetworkManager.conf
echo -e "wifi.mac-address-randomization=1" >> /etc/NetworkManager/NetworkManager.conf
echo -e "" >> /etc/NetworkManager/NetworkManager.conf
echo -e "[device]" >> /etc/NetworkManager/NetworkManager.conf
echo -e "wifi.scan-rand-mac-address=no" >> /etc/NetworkManager/NetworkManager.conf
# Define X11 variables for stretch
# Define X11 variables for buster
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/stretch_x11.txt
mv stretch_x11.txt /etc/X11/xorg.conf
wget https://raw.githubusercontent.com/asophila/Flash-CHIP/master/CHIP-updater/buster_x11.txt
mv buster_x11.txt /etc/X11/xorg.conf
echo "."
echo "*** Update to Stretch finished. Reboot to continue the process. ***"