User Tools

Site Tools


config:ubuntu18-20-upgrade

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:ubuntu18-20-upgrade [2020/08/22 23:02] Wuffconfig:ubuntu18-20-upgrade [2025/11/23 12:11] (current) – removed Wuff
Line 1: Line 1:
-====== Ubuntu 18.04 -> 20.04 upgrade ====== 
  
-<code> 
-sudo do-release-upgrade -d 
-</code> 
-Kodi-specific: keep pam config, keep security/limits config, resolved.conf blacklist.conf /etc/sysctl.conf openssh server conf  unattended upgrades mysqld.conf apticron 
- 
- 
-remove unnecessary locales 
-<code> 
-list available locales: 
-localedef --list-archive 
-locale -a 
-</code> 
-then remove all BUT THE ONES LISTED: 
-<code>sudo locale-gen --purge <locales YOU WANT TO KEEP> en_GB.utf8 en_US.utf8</code> 
- 
-<code>sudo apt-get install localepurge</code> 
-After that, you could reboot or try to run ''. /etc/default/locale''. 
- 
-To reconfigure this, simply enter the following in terminal: 
-<code>sudo dpkg-reconfigure localepurge</code> 
- 
-reinstate ppas after upgrade by uncommenting sources  https://askubuntu.com/questions/111645/whats-the-best-way-to-re-enable-ppas-repos-after-an-upgrade 
- 
-<code>for f in /etc/apt/sources.list.d/*.list; do sudo sed -i 's/bionic/focal/g' $f; sudo sed -i 's/^# \(.*\) # disabled on upgrade to.*/\1/g' $f;done</code> 
- 
-Remove snap/lxd: 
-<code> 
-sudo apt autoremove --purge snapd gnome-software-plugin-snap 
-</code> 
- 
-Remove legacy xorg drivers, keep only intel 
-<code> 
-sudo apt-get purge xserver-xorg-video-vmware xserver-xorg-video-radeon xserver-xorg-video-qxl xserver-xorg-video-nouveau xserver-xorg-video-intel-hwe-18.04 xserver-xorg-video-ati xserver-xorg-video-amdgpu xserver-xorg-legacy-hwe-18.04 xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-hwe-18.04 xserver-xorg-core-hwe-18.04 xserver-xorg-video-fbdev xserver-xorg-video-vesa xserver-xorg-video-intel 
-</code> 
- 
-remove edid firmware patch and update initramfs and grub 
-<code> 
-vi /etc/default/grub 
-</code> 
-set 
-<code> 
-GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 
-</code> 
-<code> 
-sudo update-grub 
-</code> 
- 
-<code> 
-sudo apt-get install xserver-xorg-legacy xserver-xorg-video-intel 
-</code> 
-#set to everyone 
-<code> 
-sudo dpkg-reconfigure xserver-xorg-legacy 
-</code> 
-<code> 
-sudo vi /etc/X11/Xwrapper.config 
-</code> 
-add 
-<code> 
-needs_root_rights=yes 
-</code> 
- 
-Adjust Alsa options: 
-<code> 
-sudo vi /etc/modprobe.d/alsa-base.conf 
-</code> 
-<code> 
-#options snd-hda-intel enable_msi=1 bdl_pos_adj=1,48 
-options snd-hda-intel power_save=0 power_save_controller=N 
-</code> 
- OR 
-<code> 
-sudo echo -e '\n# Disable snd-hda-intel power saving\noptions snd-hda-intel power_save=0 power_save_controller=N\n' >> /etc/modprobe.d/alsa-base.conf 
-</code> 
- 
-Reinstall virtualbox (if required): 
-<code> 
-sudo apt install virtualbox virtualbox-qt 
-</code> 
- 
-Install tortoisehg (if required): 
-https://askubuntu.com/questions/1182598/how-to-install-tortoisehg-on-ubuntu-19-10 
-https://askubuntu.com/questions/1232173/how-to-install-the-tortoisehg-in-ubuntu20-04 
-<code> 
-mkdir ~/temp 2>/dev/null 
-cd ~/temp 
-sudo apt install python-is-python3 
-python --version 
-sudo apt install -y python3-pip build-essential 
-sudo apt install -y mercurial 
-hg clone https://bitbucket.org/tortoisehg/thg/ -r stable 
-hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg -r stable 
-cd thg 
-pip3 install pyqt5 
-pip3 install qscintilla 
-sudo apt install -y pyqt5.qsci-dev 
-pip3 install mercurial 
-sudo apt install -y python3-iniparse 
-make local 
-cd ~/temp 
-rm -rf ~/tortoisehg 2>/dev/null 
-mkdir ~/tortoisehg 
-mv thg/* ~/tortoisehg 
-vi ~/.local/share/applications/tortoisehg.desktop 
-pip3 install qscintilla 
-sudo apt-get install python3-pyqt5.qsci 
-</code> 
- 
-Keepass2: 
-<code> 
-sudo apt-get install --reinstall keepass2 
-sudo apt-get install --reinstall keepass2-plugin-tray-icon keepass2-plugin-libimagemagick keepass2-plugin-libdbus 
-</code> 
config/ubuntu18-20-upgrade.1598133724.txt.gz · Last modified: (external edit)