Created
August 3, 2019 20:39
-
-
Save aolney/844e80d34d551eaf9ff23ec69246f9cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#upgrade chromeos debian stretch to buster (for python 3.7) | |
#https://www.reddit.com/r/Crostini/comments/9rhauo/upgrade_from_stretch_to_buster_compilation_of/ | |
#Fresh Stretch install. Let's make sure everything is up to date. | |
sudo apt-get update | |
sudo apt-get -y --allow-downgrades upgrade | |
sudo apt-get -y dist-upgrade | |
#Update package repository to Buster | |
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list | |
#Now let's do the update/upgrade dance again. | |
sudo apt-get update | |
sudo apt-get -y --allow-downgrades upgrade | |
sudo apt-get -y dist-upgrade | |
#Check your Debian version | |
cat /etc/issue | |
#Install Nano or use the text editor of your choosing | |
sudo apt-get -y install nano | |
#Edit /usr/lib/systemd/system/cros-sftp.service | |
sudo echo "#insert these two lines under the [service] heading, but before the [install] heading." >> /usr/lib/systemd/system/cros-sftp.service | |
sudo echo "RuntimeDirectory=sshd" >> /usr/lib/systemd/system/cros-sftp.service | |
sudo echo "RuntimeDirectoryMode=0755" >> /usr/lib/systemd/system/cros-sftp.service | |
sudo nano /usr/lib/systemd/system/cros-sftp.service | |
#Restart cros-sftp service | |
sudo systemctl daemon-reload | |
sudo systemctl restart cros-sftp | |
sudo apt-get update | |
sudo apt-get -y --allow-downgrades upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment