Смена ядра linux mint

Устанавливаем ядро Linux 6.3 в Linux Mint 20 и Linux Mint 21

Linux Mint является одним из самых популярных дистрибутивов, и не зря, разработчики ответственно относятся к его разработке стараясь сделать систему удобной и стабильной. Сам дистрибутив основывается на Ubuntu, и как следствие, поставляется примерно с тем же ядром. Конечно, в последнее время стали появляться сборки Linux Mint с более свежими ядрами Linux. Имеется ввиду сборки под названием EDGE, но пока такая сборка существует для Linux Mint 20.3. Летом планируется выпустить Linux Mint EDGE 21, но что делать, если необходимо более свежее ядро для корректной работы на данный момент? В этой статье мы узнаем, как установить в Linux Mint 20 и Linux Mint 21 ядро Linux 6.3.

P.S. Обратите внимания, что данный шаг желателен только при условии, что для корректной работы системы необходимо более свежее ядро чем то, которое идет с дистрибутивом. Если система работает стабильно, то нет смысла в установке ядра Linux 6.3. Конечно, можно посмотреть как система будет работать с обновленным ядром, если что, то откатится. Но повторюсь, если система работает стабильно, оставьте то ядро, которое идет в комплекте.

Установка ядра Linux 6.3 в Linux Mint (GUI)

Итак, перед дальнейшими действиями, обновите Linux Mint до последних актуальных версий пакетов. Затем подключим PPA репозиторий Ubuntu Mainline, этот метод позволяет вам быстро загрузить последний исходный код ядра Linux и установить его на свой компьютер с Linux Mint. Используя для установки либо интерфейс командной строки (CLI), либо графический интерфейс пользователя (GUI). Тут все зависит от личных предпочтений. В общем, отправляемся в терминал и подключаем репозиторий Ubuntu Mainline:

sudo add-apt-repository ppa:cappelikan/ppa -y

Источник

Upgrade Kernel on Linux Mint

Upgrading the kernel on Linux Mint is a comparatively straightforward process that can be completed through the terminal and Update Manager. Upgrading the kernel can bring new features and bug fixes, but it can also cause compatibility issues with certain software and hardware. Therefore, before starting the upgrade, it is essential to back up the key data. This guide covers two methods to upgrade the Linux Mint kernel.

Читайте также:  Распаковать файл zip linux

Check the Current Kernel Version

Before upgrading the kernel, it is a good idea to check the current version of the kernel that runs on the system. The “uname -r” command can be employed to achieve this. The “uname -r” is a command that displays the current version of the kernel (the core part of the operating system) that the system is running on. The “-r” option specifically tells the uname command to display only the release version of the kernel.

This command outputs the current kernel version – “5.15.0.56-generic”. This tells us that the current version of the kernel is 5.15.0 and the specific build is 56. The “generic” at the end indicates that this is a standard version of the kernel, as opposed to a specific version which is tailored for a particular hardware architecture.

Upgrade Using the Update Manager

Upgrading the Linux Mint kernel using the Update Manager is a straightforward process. First, open the Update Manager by searching for it in the Mint menu or by running the “mintupdate” command in the terminal.

The Update Manager is launched within seconds on your Linux Mint screen. In the Update Manager, click on the “View” button in the top right corner as displayed from the attached image and select the 4th option which is “Linux kernels”.

The very next screen displays a warning to proceed with the kernel update. It explains the issues that you can encounter after upgrading a kernel and the instructions to perform if you face any of the listed ones. You need to proceed with this step by utilizing the “Continue” button at the bottom.

After continuing, the very next “Kernels” screen shows you a list of available kernel updates. The kernel version with its “Active” status is your currently in-use kernel. Tap on the kernel version that you would like to upgrade to and hit the “Install” button to begin the installation process.

Before the initialization of a kernel upgrade process, the pop-up dialog appears to reassure you that you’re going to upgrade to the newest kernel version. Tap “Yes” to proceed. The process of upgrading might take more than 5 minutes. Wait and relax until then. Once the installation is completed, reboot your system and your new kernel will be in use.

Читайте также:  Google earth pro linux

Upgrade Using the Wget Utility

The “wget” command is used to download the latest kernel file for the Linux Mint system from a GitHub repository. The file that is being downloaded is called “ubuntu-mainline-kernel.sh” and is located in the “master” branch of the “pimlie/ubuntu-mainline-kernel.sh” repository on GitHub. When the command is executed, the computer first attempts to resolve the “raw.githubusercontent.com” URL to an IP address.

The server responds with a status code of 200, indicating that the file is found and is being sent back to the computer. The computer receives the file and saves it under the same name as the server-side file in a local directory. In this case, the file is saved as “ubuntu-mainline-kernel.sh” in the current working directory. The file size is 26474 bytes, and the download speed is 1.90 MB/s.

omar@omar-VirtualBox:~$ wget https: // raw.githubusercontent.com / pimlie / ubuntu-mainline-kernel.sh / master / ubuntu-mainline-kernel.sh

—2023-01-16 13 : 51 : 48 — https: // raw.githubusercontent.com / pimlie / ubuntu-mainline-kernel.sh / master / ubuntu-mainline-kernel.sh

Resolving raw.githubusercontent.com ( raw.githubusercontent.com ) . 185.199.111.133, 185.199.110.133, 185.199.108.133, .

Connecting to raw.githubusercontent.com ( raw.githubusercontent.com ) | 185.199.111.133 | : 443 . connected.

HTTP request sent, awaiting response. 200 OK

Length: 26474 ( 26K ) [ text / plain ]

Saving to: ‘ubuntu-mainline-kernel.sh’

ubuntu-mainline-kernel.s 100 % [ ================================ > ] 25.85K —.-KB / s in 0.01s

2023 -01- 16 13 : 51 : 48 ( 1.90 MB / s ) — ‘ubuntu-mainline-kernel.sh’ saved [ 26474 / 26474 ]

To display the directories and files in the current working directory, the “ls” command is used. In this case, the “omar” user is in their home directory, represented by the “~” symbol. The output of the command shows a list of the items in the directory including “ubuntu-mainline-kernel.sh” which is likely a shell script file with the “ubuntu-mainline-kernel” name.

Desktop Downloads new.txt Public ubuntu-mainline-kernel.sh Warpinator

Documents Music Pictures Templates Videos

The downloaded latest kernel file from a GitHub repository using the wget command contains the shell script to install the newest kernel version. You can open this file in the VIM editor and have a look at the script as shown in the following image:

The “/usr/local/bin/” directory is used to store the locally installed executable files. It is a good practice to install the locally created scripts in this directory so that they can be easily accessed by all users on the system. The following command is used to install a file called “ubuntu-mainline-kernel.sh” in the “/usr/local/bin/” directory. The “sudo” keyword is used to run the subsequent di with superuser privileges. This is necessary because the “/usr/local/bin/” directory is a system directory and the regular users do not have permission to write to it.

Читайте также:  Exchange activesync on linux

When the command is executed, it copies the “ubuntu-mainline-kernel.sh” file from its current location to the “/usr/local/bin/” directory and set the appropriate permissions for that file so that it can be executed by any user on the system.

omar@omar-VirtualBox:~$ sudo install ubuntu-mainline-kernel.sh / usr / local / bin /

The following command uses the “ubuntu-mainline-kernel.sh” script to install a new version of the Linux kernel on an Ubuntu system. The installation process begins with the “-i” flag. When the command is executed, the system prompts for the user’s password and confirmation of the process proceeding (by typing “y” and pressing Enter). The new kernel version is installed and is accessible on the system after this is accomplished. The updated kernel won’t take effect until the user reboots the computer.

omar@omar-VirtualBox:~$ sudo ubuntu-mainline-kernel.sh -i

Finding latest version available on kernel.ubuntu.com

Latest version is: v6.1.6, continue ? ( y / N )

Will download 6 files from kernel.ubuntu.com:

Downloading amd64 / linux-headers-6.1.6-060106-generic_6.1.6- 060106.202301141035 _amd64.deb: 100 %

Downloading amd64 / linux-headers-6.1.6-060106_6.1.6- 060106.202301141035 _all.deb: 100 %

Downloading amd64 / linux-image-unsigned-6.1.6-060106-generic_6.1.6- 060106.202301141035 _amd64.deb: 100 %

Downloading amd64 / linux-modules-6.1.6-060106-generic_6.1.6- 060106.202301141035 _amd64.deb: 100 %

Downloading amd64 / CHECKSUMS: 100 %

Downloading amd64 / CHECKSUMS.gpg: 100 %

Importing kernel-ppa gpg key ok

Signature of checksum file has been successfully verified

Checksums of deb files have been successfully verified with sha256sum

Cleaning up the work folder

Now, run the uname-r command again on the Linux Mint terminal to see the kernel version. You will see that the Linux Mint kernel is upgraded to 6.1.6-060106-generic without causing any issues during the upgrade process.

omar@omar-VirtualBox:~$ uname -r

Conclusion

Upgrading the kernel on Linux Mint is a simple process that can be done through the terminal via the wget instruction and using the Update Manager of your Linux Mint system. Please note that before upgrading, you should make sure that all your software is compatible with the new kernel and also make a backup of your important data.

About the author

Omar Farooq

Hello Readers, I am Omar and I have been writing technical articles from last decade. You can check out my writing pieces.

Источник

Оцените статью
Adblock
detector