Ubuntu Upgrade: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<syntaxhighlight lang= | {|class='wikitable' | ||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='sql'> | |||
sudo apt update | sudo apt update | ||
sudo apt upgrade | sudo apt upgrade | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |||
|} | |||
==Upgrade » 22.04 » 24.04== | ==Upgrade » 22.04 » 24.04== | ||
{| | {|class='wikitable mw-collapsible' | ||
|valign= | !scope='col' style='text-align:left' colspan='2'| | ||
<syntaxhighlight lang= | Upgrade » 22.04 » 24.04 | ||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
sudo sed -i 's|jammy|noble|g' /etc/apt/sources.list | sudo sed -i 's|jammy|noble|g' /etc/apt/sources.list | ||
sudo apt update && sudo apt upgrade | sudo apt update && sudo apt upgrade | ||
| Line 13: | Line 22: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt autoremove | sudo apt autoremove | ||
sudo apt clean | sudo apt clean | ||
sudo reboot | sudo reboot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |||
|valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt install xorg gnome gnome-shell --no-install-recommends | sudo apt install xorg gnome gnome-shell --no-install-recommends | ||
sudo apt install --reinstall ubuntu-gnome-desktop | sudo apt install --reinstall ubuntu-gnome-desktop | ||
| Line 27: | Line 36: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top'| | |||
|} | |} | ||
==Upgrade » 23.10 » 24.04== | ==Upgrade » 23.10 » 24.04== | ||
{| | {|class='wikitable mw-collapsible' | ||
|valign= | !scope='col' style='text-align:left' colspan='2'| | ||
<syntaxhighlight lang= | Upgrade » 23.10 » 24.04 | ||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
sudo sed -i 's|mantic|noble|g' /etc/apt/sources.list | sudo sed -i 's|mantic|noble|g' /etc/apt/sources.list | ||
sudo apt update && sudo apt upgrade | sudo apt update && sudo apt upgrade | ||
| Line 38: | Line 51: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt autoremove | sudo apt autoremove | ||
sudo apt clean | sudo apt clean | ||
| Line 45: | Line 58: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |- | ||
<syntaxhighlight lang= | |valign='top'| | ||
<syntaxhighlight lang='bash'> | |||
sudo apt install xorg gnome gnome-shell --no-install-recommends | sudo apt install xorg gnome gnome-shell --no-install-recommends | ||
sudo apt install --reinstall ubuntu-gnome-desktop | sudo apt install --reinstall ubuntu-gnome-desktop | ||
| Line 52: | Line 66: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top'| | |||
|} | |} | ||
==Upgrade » 24.04 » Kernel » 6.5 » 6.8 == | ==Upgrade » 24.04 » Kernel » 6.5 » 6.8== | ||
{| | {|class='wikitable mw-collapsible' | ||
|valign= | !scope='col' style='text-align:left' colspan='2'| | ||
<syntaxhighlight lang= | Upgrade » 24.04 » Kernel » 6.5 » 6.8 | ||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
sudo apt update | sudo apt update | ||
sudo apt full-upgrade | sudo apt full-upgrade | ||
| Line 64: | Line 82: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt install --reinstall nvidia-driver-535 | sudo apt install --reinstall nvidia-driver-535 | ||
sudo apt install linux-headers-$(uname -r) | sudo apt install linux-headers-$(uname -r) | ||
| Line 71: | Line 89: | ||
nvidia-smi | nvidia-smi | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
==Upgrade » 24.04 » Kernel » 6.8 » 6.9 == | ==Upgrade » 24.04 » Kernel » 6.8 » 6.9== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left'| | |||
Upgrade » 24.04 » Kernel » 6.8 » 6.9 | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
mkdir -p /tmp/kernel-playground/kernel-v6.9.3 | mkdir -p /tmp/kernel-playground/kernel-v6.9.3 | ||
cd /tmp/kernel-playground/kernel-v6.9.3 | cd /tmp/kernel-playground/kernel-v6.9.3 | ||
| Line 87: | Line 107: | ||
sudo reboot | sudo reboot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |||
==Upgrade » 24.04 » Kernel » 6.9 » 6.10 == | ==Upgrade » 24.04 » Kernel » 6.9 » 6.10== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left'| | |||
Upgrade » 24.04 » Kernel » 6.9 » 6.10 | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
mkdir -p /tmp/kernel-playground/kernel-v6.10.10 | mkdir -p /tmp/kernel-playground/kernel-v6.10.10 | ||
cd /tmp/kernel-playground/kernel-v6.10.10 | cd /tmp/kernel-playground/kernel-v6.10.10 | ||
| Line 99: | Line 125: | ||
sudo reboot | sudo reboot | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |||
==Upgrade » 24.04 » Kernel » 6.8 » Hold == | ==Upgrade » 24.04 » Kernel » 6.8 » Hold== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left' colspan='2'| | |||
Upgrade » 24.04 » Kernel » 6.8 » Hold | |||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
sudo apt-mark hold 6.8.0-45-generic | sudo apt-mark hold 6.8.0-45-generic | ||
sudo apt-mark hold $(uname -r) | sudo apt-mark hold $(uname -r) | ||
| Line 109: | Line 141: | ||
sudo apt-mark showhold | sudo apt-mark showhold | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |||
|} | |||
==Install Packages From ISO== | ==Install Packages From ISO== | ||
{| | {|class='wikitable mw-collapsible' | ||
|valign= | !scope='col' style='text-align:left' colspan='2'| | ||
<syntaxhighlight lang= | Install Packages From ISO | ||
|- | |||
|valign='top' colspan='2'| | |||
<syntaxhighlight lang='bash'> | |||
mkdir -p ~/Documents/ubuntu-playground/ | mkdir -p ~/Documents/ubuntu-playground/ | ||
wget -cq http://th.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-resolved_255.4-1ubuntu8_amd64.deb -P ~/Documents/ubuntu-playground | wget -cq http://th.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-resolved_255.4-1ubuntu8_amd64.deb -P ~/Documents/ubuntu-playground | ||
| Line 119: | Line 157: | ||
sudo mkdir /mnt/iso/ && sudo mount -o loop,ro ~/Documents/ubuntu-playground/ubuntu-24.04-desktop-amd64.iso /mnt/iso | sudo mkdir /mnt/iso/ && sudo mount -o loop,ro ~/Documents/ubuntu-playground/ubuntu-24.04-desktop-amd64.iso /mnt/iso | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
|valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cat <<'APT' | sudo tee -a /etc/apt/sources.list >/dev/null | cat <<'APT' | sudo tee -a /etc/apt/sources.list >/dev/null | ||
| Line 133: | Line 167: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cd ~/Documents/ubuntu-playground/ | cd ~/Documents/ubuntu-playground/ | ||
sudo apt install ./network-manager-gnome_1.34.0-1ubuntu3_amd64.deb | sudo apt install ./network-manager-gnome_1.34.0-1ubuntu3_amd64.deb | ||
| Line 141: | Line 175: | ||
sudo apt upgrade && sudo apt dist-upgrade | sudo apt upgrade && sudo apt dist-upgrade | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
==Detect Invisible Window== | ==Detect Invisible Window== | ||
{|class='wikitable mw-collapsible' | |||
!scope='col' style='text-align:left' colspan='2'| | |||
Detect Invisible Window | |||
|- | |||
|valign='top' style='width:50%'| | |||
xwininfo | xwininfo | ||
sudo apt install xdotool | sudo apt install xdotool | ||
| Line 150: | Line 188: | ||
systemctl status anydesk.service | systemctl status anydesk.service | ||
systemctl disable anydesk.service | systemctl disable anydesk.service | ||
|valign='top' style='width:50%'| | |||
|} | |||
==Install Python3.10== | ==Install Python3.10== | ||
{| | {|class='wikitable mw-collapsible' | ||
| valign= | !scope='col' style='text-align:left' colspan='3'| | ||
<syntaxhighlight lang= | Install Python3.10 | ||
|- | |||
|valign='top' style='width:33%'| | |||
<syntaxhighlight lang='bash'> | |||
pyenv install -list-all | pyenv install -list-all | ||
pyenv install 3.10.14 | pyenv install 3.10.14 | ||
| Line 160: | Line 204: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:34%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
pyenv global system 3.10.14 | pyenv global system 3.10.14 | ||
pyenv global 3.10.14 | pyenv global 3.10.14 | ||
| Line 167: | Line 211: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:33%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
pyenv shell 3.10.14 | pyenv shell 3.10.14 | ||
pyenv shell system | pyenv shell system | ||
python -V | python -V | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
pyenv shell 3.10.14 | pyenv shell 3.10.14 | ||
pyenv which python | pyenv which python | ||
| Line 185: | Line 225: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
pyenv virtualenv 3.10.14 Powerline | pyenv virtualenv 3.10.14 Powerline | ||
pyenv activate Powerline | pyenv activate Powerline | ||
| Line 192: | Line 232: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
python -m pip install --upgrade pip | python -m pip install --upgrade pip | ||
pip install powerline-status | pip install powerline-status | ||
pyenv deactivate | pyenv deactivate | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
==Dummy Sound Issue== | ==Dummy Sound Issue== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left' colspan='2'| | |||
Dummy Sound Issue | |||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
sudo apt-get install -y pulseaudio | sudo apt-get install -y pulseaudio | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |||
|} | |||
==Unknown Display Issue== | ==Unknown Display Issue== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left' colspan='2'| | |||
Unknown Display Issue | |||
|- | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
cat << CFG | sudo tee /etc/X11/xorg.conf.d/20-ignore.conf >/dev/null | cat << CFG | sudo tee /etc/X11/xorg.conf.d/20-ignore.conf >/dev/null | ||
Section "Monitor" | Section "Monitor" | ||
| Line 218: | Line 270: | ||
cat /etc/X11/xorg.conf.d/20-ignore.conf | cat /etc/X11/xorg.conf.d/20-ignore.conf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |||
|} | |||
==Managing Linux Kernel== | ==Managing Linux Kernel== | ||
<syntaxhighlight lang= | {|class='wikitable mw-collapsible' | ||
!scope='col' style='text-align:left'| | |||
Managing Linux Kernel | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
<syntaxhighlight lang='bash'> | |||
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }' | dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }' | ||
dpkg --list | grep linux-image | dpkg --list | grep linux-image | ||
| Line 229: | Line 290: | ||
EXE | EXE | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |||
==Playground== | ==Playground== | ||
{| | {|class='wikitable mw-collapsible' | ||
| valign= | !scope='col' style='text-align:left' colspan='3'| | ||
<syntaxhighlight lang= | Playground | ||
|- | |||
|valign='top' style='width:33%'| | |||
<syntaxhighlight lang='bash'> | |||
uname -r | uname -r | ||
dpkg -l | grep nvidia | dpkg -l | grep nvidia | ||
| Line 240: | Line 305: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:34%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cat <<-'EXE'|sudo bash | cat <<-'EXE'|sudo bash | ||
apt-get purge -y linux-image-unsigned-6.9.3-060903-generic | apt-get purge -y linux-image-unsigned-6.9.3-060903-generic | ||
| Line 248: | Line 313: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:33%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
systemd-analyze blame | systemd-analyze blame | ||
systemd-analyze | systemd-analyze | ||
| Line 255: | Line 320: | ||
lshw | lshw | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
apt list --installed|grep linux-image | apt list --installed|grep linux-image | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt-get remove -y linux-image-unsigned-6.9.3-060903-generic | sudo apt-get remove -y linux-image-unsigned-6.9.3-060903-generic | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
dpkg -l | grep "gnome-shell-extension" | dpkg -l | grep "gnome-shell-extension" | ||
|- | |- | ||
| valign="top" colspan="3" | | | valign="top" colspan="3" | | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
# if link exists & unbroken | # if link exists & unbroken | ||
if [[ -L ${HOME}/.config/chorke/dev ]]&&\ | if [[ -L ${HOME}/.config/chorke/dev ]]&&\ | ||
[[ -e ${HOME}/.config/chorke/dev ]];then echo "link exists & unbroken";fi | [[ -e ${HOME}/.config/chorke/dev ]];then echo "link exists & unbroken";fi | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| valign="top" colspan="3" | | | valign="top" colspan="3" | | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
#if link absent or broken | #if link absent or broken | ||
if [[ ! -L ${HOME}/.config/chorke/dev ]]||\ | if [[ ! -L ${HOME}/.config/chorke/dev ]]||\ | ||
[[ ! -e ${HOME}/.config/chorke/dev ]];then echo "link absent or broken"; fi | [[ ! -e ${HOME}/.config/chorke/dev ]];then echo "link absent or broken"; fi | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
systemctl list-dependencies graphical.target | systemctl list-dependencies graphical.target | ||
cat /proc/acpi/wakeup | cat /proc/acpi/wakeup | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo apt list --installed|grep desktop-icons | sudo apt list --installed|grep desktop-icons | ||
sudo dpkg-query -l|grep desktop-icons | sudo dpkg-query -l|grep desktop-icons | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'|<syntaxhighlight lang='bash'> | ||
sudo apt install gnome-shell-extension-manager | sudo apt install gnome-shell-extension-manager | ||
apt info gnome-shell-extension-manager -a | apt info gnome-shell-extension-manager -a | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
| valign= | |||
<syntaxhighlight lang= | |||
cat <<-'EXE'|sudo bash | cat <<-'EXE'|sudo bash | ||
umount /var/snap/firefox/common/host-hunspell | umount /var/snap/firefox/common/host-hunspell | ||
| Line 328: | Line 373: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cat <<-'EXE'|sudo bash | cat <<-'EXE'|sudo bash | ||
snap disable remmina | snap disable remmina | ||
| Line 336: | Line 381: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
systemctl list-dependencies --type=service --state=running | systemctl list-dependencies --type=service --state=running | ||
systemctl list-dependencies --type=service --state=active | systemctl list-dependencies --type=service --state=active | ||
systemctl list-dependencies docker.service | systemctl list-dependencies docker.service | ||
systemctl list-dependencies --all | systemctl list-dependencies --all | ||
|- | |- | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cat /etc/passwd | cat /etc/passwd | ||
cat /etc/group | cat /etc/group | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
cat /etc/passwd|\ | cat /etc/passwd|\ | ||
awk -F : '$3 >= 1000 {printf("%-6s » %s\n", $3, $1)}'|sort -h | awk -F : '$3 >= 1000 {printf("%-6s » %s\n", $3, $1)}'|sort -h | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top'| | ||
useradd -m -d /home/chorke -s /bin/bash chorke | useradd -m -d /home/chorke -s /bin/bash chorke | ||
useradd -m -d /home/chorke -s /bin/bash chorke | useradd -m -d /home/chorke -s /bin/bash chorke | ||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
hostname | |||
hostnamectl | |||
nmcli general hostname | |||
sudo hostnamectl set-hostname shahed-aa | |||
sudo systemctl restart systemd-hostnamed | |||
</syntaxhighlight> | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
sudo apt-get install linux-headers-$(uname -r) | |||
sudo apt-get install linux-generic | |||
sudo apt-get --fix-broken install | |||
dpkg --list | grep linux-image | |||
sudo apt-get autoremove | |||
</syntaxhighlight> | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
VERSION_ID="$(. /etc/os-release; echo "${VERSION_ID}")" | |||
sudo apt-get install "linux-generic-hwe-${VERSION_ID}" | |||
apt info "linux-generic-hwe-${VERSION_ID}" -a | |||
</syntaxhighlight> | |||
|} | |} | ||
==References== | ==References== | ||
{| | {|class='wikitable mw-collapsible' | ||
| valign= | !scope='col' style='text-align:left' colspan='3'| | ||
References | |||
|- | |||
|valign='top' style='width:33%'| | |||
* [https://packages.ubuntu.com/noble/amd64/systemd-resolved/download Ubuntu » Packages » noble » <code>systemd-resolved</code>] | * [https://packages.ubuntu.com/noble/amd64/systemd-resolved/download Ubuntu » Packages » noble » <code>systemd-resolved</code>] | ||
* [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 Ubuntu » Upgrade from 22.04 to 24.04 DNS Failed] | * [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 Ubuntu » Upgrade from 22.04 to 24.04 DNS Failed] | ||
| Line 378: | Line 448: | ||
* [https://kernel.ubuntu.com/mainline/v6.9/ Ubuntu » Kernel » 6.9] | * [https://kernel.ubuntu.com/mainline/v6.9/ Ubuntu » Kernel » 6.9] | ||
| valign= | |valign='top' style='width:34%'| | ||
* [https://askubuntu.com/questions/1512331/ Ubuntu » Upgrade » 24.04 » Remain Old Kernel of 22.04] | * [https://askubuntu.com/questions/1512331/ Ubuntu » Upgrade » 24.04 » Remain Old Kernel of 22.04] | ||
* [https://packages.ubuntu.com/noble/amd64/network-manager-gnome/download Ubuntu » Packages » noble » <code>network-manager-gnome</code>] | * [https://packages.ubuntu.com/noble/amd64/network-manager-gnome/download Ubuntu » Packages » noble » <code>network-manager-gnome</code>] | ||
| Line 390: | Line 460: | ||
* [https://help.ubuntu.com/community/SwapFaq Ubuntu » Swap » FAQ] | * [https://help.ubuntu.com/community/SwapFaq Ubuntu » Swap » FAQ] | ||
| valign= | |valign='top' style='width:33%'| | ||
* [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 Ubuntu » <code>desktop-icons-ng</code> » History of versions] | * [https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 Ubuntu » <code>desktop-icons-ng</code> » History of versions] | ||
* [https://medium.com/@tenebreoscure/ubuntu-24-04-desktop-icons-not-working-1c0d3cb46d67 Ubuntu » 24.04 » Desktop icons not working] | * [https://medium.com/@tenebreoscure/ubuntu-24-04-desktop-icons-not-working-1c0d3cb46d67 Ubuntu » 24.04 » Desktop icons not working] | ||
| Line 401: | Line 471: | ||
* [[Swap Space|Ubuntu » Swap Space]] | * [[Swap Space|Ubuntu » Swap Space]] | ||
* [[Linux Kernel|Ubuntu » Kernel]] | * [[Linux Kernel|Ubuntu » Kernel]] | ||
|- | |- | ||
|valign='top'| | |||
| valign= | |||
* [https://askubuntu.com/questions/938494/ Ubuntu » <code>apt-mark hold</code> » Prevent Kernel Upgrade] | * [https://askubuntu.com/questions/938494/ Ubuntu » <code>apt-mark hold</code> » Prevent Kernel Upgrade] | ||
* [https://askubuntu.com/questions/164587/ Ubuntu » <code>apt-mark unhold</code> » Release for Upgrade] | * [https://askubuntu.com/questions/164587/ Ubuntu » <code>apt-mark unhold</code> » Release for Upgrade] | ||
| Line 418: | Line 484: | ||
* [https://xanmod.org/ Ubuntu » Kernel » XanMod] | * [https://xanmod.org/ Ubuntu » Kernel » XanMod] | ||
| valign= | |valign='top'| | ||
* [https://www.howtogeek.com/740797/how-to-roll-back-the-kernel-in-linux/ Ubuntu » Roll Back the Kernel] | * [https://www.howtogeek.com/740797/how-to-roll-back-the-kernel-in-linux/ Ubuntu » Roll Back the Kernel] | ||
| valign= | |valign='top'| | ||
|- | |- | ||
| valign= | |valign='top'| | ||
* [[Alpine/Morefine]] | * [[Alpine/Morefine]] | ||
* [[Ruby on Rails]] | * [[Ruby on Rails]] | ||
| Line 439: | Line 501: | ||
* [[Tar]] | * [[Tar]] | ||
| valign= | |valign='top'| | ||
* [https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html Linux » POSIX » Shell » Environment Variables] | * [https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html Linux » POSIX » Shell » Environment Variables] | ||
* [https://github.com/linux-surface/linux-surface Linux » Kernel » Microsoft Surface Devices] | * [https://github.com/linux-surface/linux-surface Linux » Kernel » Microsoft Surface Devices] | ||
| Line 451: | Line 513: | ||
* [[CIDR]] | * [[CIDR]] | ||
| valign= | |valign='top'| | ||
|} | |} | ||
Latest revision as of 10:32, 8 March 2026
sudo apt update
sudo apt upgrade
|
Upgrade » 22.04 » 24.04
|
Upgrade » 22.04 » 24.04 | |
|---|---|
sudo sed -i 's|jammy|noble|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade
sudo apt dist-upgrade
|
sudo apt autoremove
sudo apt clean
sudo reboot
|
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install --reinstall ubuntu-gnome-desktop
sudo reboot
|
|
Upgrade » 23.10 » 24.04
|
Upgrade » 23.10 » 24.04 | |
|---|---|
sudo sed -i 's|mantic|noble|g' /etc/apt/sources.list
sudo apt update && sudo apt upgrade
sudo apt dist-upgrade
|
sudo apt autoremove
sudo apt clean
sudo reboot
|
sudo apt install xorg gnome gnome-shell --no-install-recommends
sudo apt install --reinstall ubuntu-gnome-desktop
sudo reboot
|
|
Upgrade » 24.04 » Kernel » 6.5 » 6.8
|
Upgrade » 24.04 » Kernel » 6.5 » 6.8 | |
|---|---|
sudo apt update
sudo apt full-upgrade
apt list linux-image-generic
sudo apt install linux-image-generic
|
sudo apt install --reinstall nvidia-driver-535
sudo apt install linux-headers-$(uname -r)
dkms status
nvidia-smi
|
Upgrade » 24.04 » Kernel » 6.8 » 6.9
|
Upgrade » 24.04 » Kernel » 6.8 » 6.9 |
|---|
mkdir -p /tmp/kernel-playground/kernel-v6.9.3
cd /tmp/kernel-playground/kernel-v6.9.3
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-headers-6.9.3-060903_6.9.3-060903.202405300957_all.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-headers-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-modules-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.9.3/amd64/linux-image-unsigned-6.9.3-060903-generic_6.9.3-060903.202405300957_amd64.deb
sudo dpkg -i *.deb
sudo reboot
|
Upgrade » 24.04 » Kernel » 6.9 » 6.10
|
Upgrade » 24.04 » Kernel » 6.9 » 6.10 |
|---|
mkdir -p /tmp/kernel-playground/kernel-v6.10.10
cd /tmp/kernel-playground/kernel-v6.10.10
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010_6.10.10-061010.202409121037_all.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-headers-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-modules-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
wget -cq https://kernel.ubuntu.com/mainline/v6.10.10/amd64/linux-image-unsigned-6.10.10-061010-generic_6.10.10-061010.202409121037_amd64.deb
sudo dpkg -i *.deb
sudo reboot
|
Upgrade » 24.04 » Kernel » 6.8 » Hold
|
Upgrade » 24.04 » Kernel » 6.8 » Hold | |
|---|---|
sudo apt-mark hold 6.8.0-45-generic
sudo apt-mark hold $(uname -r)
sudo apt-mark unhold $(uname -r)
dpkg --list | grep linux-image
sudo apt-mark showhold
|
|
Install Packages From ISO
|
Install Packages From ISO | |
|---|---|
mkdir -p ~/Documents/ubuntu-playground/
wget -cq http://th.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-resolved_255.4-1ubuntu8_amd64.deb -P ~/Documents/ubuntu-playground
wget -cq https://mirrors.gbnetwork.com/ubuntu-releases/24.04/ubuntu-24.04-desktop-amd64.iso -P ~/Documents/ubuntu-playground
sudo mkdir /mnt/iso/ && sudo mount -o loop,ro ~/Documents/ubuntu-playground/ubuntu-24.04-desktop-amd64.iso /mnt/iso
| |
cat <<'APT' | sudo tee -a /etc/apt/sources.list >/dev/null
# install packages from iso file
deb file:///mnt/iso/ noble main restricted
APT
|
cd ~/Documents/ubuntu-playground/
sudo apt install ./network-manager-gnome_1.34.0-1ubuntu3_amd64.deb
sudo apt install ./systemd-resolved_255.4-1ubuntu8_amd64.deb
sudo apt install --reinstall ubuntu-gnome-desktop
sudo apt upgrade && sudo apt dist-upgrade
|
Detect Invisible Window
|
Detect Invisible Window | |
|---|---|
xwininfo sudo apt install xdotool xdotool windowclose 0x4003a2 systemctl status anydesk.service systemctl disable anydesk.service |
|
Install Python3.10
|
Install Python3.10 | ||
|---|---|---|
pyenv install -list-all
pyenv install 3.10.14
pyenv rehash
|
pyenv global system 3.10.14
pyenv global 3.10.14
pyenv global
|
pyenv shell 3.10.14
pyenv shell system
python -V
|
pyenv shell 3.10.14
pyenv which python
pyenv which pip
|
pyenv virtualenv 3.10.14 Powerline
pyenv activate Powerline
pip install wheel
|
python -m pip install --upgrade pip
pip install powerline-status
pyenv deactivate
|
Dummy Sound Issue
|
Dummy Sound Issue | |
|---|---|
sudo apt-get install -y pulseaudio
|
|
Unknown Display Issue
|
Unknown Display Issue | |
|---|---|
cat << CFG | sudo tee /etc/X11/xorg.conf.d/20-ignore.conf >/dev/null
Section "Monitor"
Identifier "None-1-1"
Option "Ignore" "true"
EndSection
CFG
ls -lah /etc/X11/xorg.conf.d/
cat /etc/X11/xorg.conf.d/20-ignore.conf
|
|
Managing Linux Kernel
|
Managing Linux Kernel |
|---|
<syntaxhighlight lang='bash'>
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
dpkg --list | grep linux-image
cat <<-'EXE'|sudo bash
apt-get purge -y linux-image-unsigned-6.9.3-060903-generic
apt-get purge -y linux-headers-6.9.3-060903-generic
EXE
|
Playground
|
Playground | ||
|---|---|---|
uname -r
dpkg -l | grep nvidia
dpkg -l | grep linux-image
sudo apt-get --purge autoremove
|
cat <<-'EXE'|sudo bash
apt-get purge -y linux-image-unsigned-6.9.3-060903-generic
apt-get purge -y linux-headers-6.9.3-060903-generic
EXE
|
systemd-analyze blame
systemd-analyze
lshw -short
lshw
|
apt list --installed|grep linux-image
|
sudo apt-get remove -y linux-image-unsigned-6.9.3-060903-generic
|
dpkg -l | grep "gnome-shell-extension" |
# if link exists & unbroken
if [[ -L ${HOME}/.config/chorke/dev ]]&&\
[[ -e ${HOME}/.config/chorke/dev ]];then echo "link exists & unbroken";fi
| ||
#if link absent or broken
if [[ ! -L ${HOME}/.config/chorke/dev ]]||\
[[ ! -e ${HOME}/.config/chorke/dev ]];then echo "link absent or broken"; fi
| ||
systemctl list-dependencies graphical.target
cat /proc/acpi/wakeup
|
sudo apt list --installed|grep desktop-icons
sudo dpkg-query -l|grep desktop-icons
|
sudo apt install gnome-shell-extension-manager
apt info gnome-shell-extension-manager -a
|
cat <<-'EXE'|sudo bash
umount /var/snap/firefox/common/host-hunspell
snap remove firefox
EXE
|
cat <<-'EXE'|sudo bash
snap disable remmina
snap remove --purge remmina
EXE
|
systemctl list-dependencies --type=service --state=running systemctl list-dependencies --type=service --state=active systemctl list-dependencies docker.service systemctl list-dependencies --all |
cat /etc/passwd
cat /etc/group
|
cat /etc/passwd|\
awk -F : '$3 >= 1000 {printf("%-6s » %s\n", $3, $1)}'|sort -h
|
useradd -m -d /home/chorke -s /bin/bash chorke useradd -m -d /home/chorke -s /bin/bash chorke |
hostname
hostnamectl
nmcli general hostname
sudo hostnamectl set-hostname shahed-aa
sudo systemctl restart systemd-hostnamed
|
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-generic
sudo apt-get --fix-broken install
dpkg --list | grep linux-image
sudo apt-get autoremove
|
VERSION_ID="$(. /etc/os-release; echo "${VERSION_ID}")"
sudo apt-get install "linux-generic-hwe-${VERSION_ID}"
apt info "linux-generic-hwe-${VERSION_ID}" -a
|