Manjaro install linux headers

Manjaro Kernels

Содержание

As the name would imply, as with the kernel of a seed, the Linux kernel is the core of a Linux operating system. Every other element of a Linux-based operating system is built around the kernel, which acts as an interface between your computer’s hardware and the applications that run on it. As hardware and software applications become more complex and sophisticated, so do the kernels to fully utilise them. As such, Linux kernels are continually under development, with new revisions and versions being regularly released. Further information on the very latest developments in kernel technology can be found at The Linux Kernel Archives

The first Linux kernel was originally developed by Linus Torvalds, the creator of Linux. It is now an open-source project containing millions of lines of code generated by thousands of programmers. However, Linus Torvalds still has the final authority on their development and release.

Manjaro Settings Manager offers an easy way to add and remove kernel (including the necessary kernel modules).

New kernels can be installed by pressing the «Install» button. All necessary kernel modules will be installed automatically with a new kernel as well.

Please consider the «Recommended» tag when choosing a kernel. LTS means Long Term Support, which is safest for most users. «What should I be aware of if I’m not on an LTS kernel?»

The newest installed Kernel will be booted by default, but to run other kernels that are installed, see Selecting Kernels section below.

Instead of using the Manjaro Settings Manager GUI to identify, choose, add, and remove kernels everything can be achieved from a terminal as well.

Identifying the Kernel Being Used

This terminal command will give your system’s kernel information:

The above command not only shows which kernel is being used, it also lists any other kernels that are also installed, as shown in the following example Terminal output:

As seen in the above example, Manjaro is running kernel 5.0.17-1-MANJARO. The information given here is not arbitrary; each part of the kernel name identifies something about that kernel:

  • The 5 indicates the version
  • The 0 indicates the major revision
  • The 17 indicates the minor revision
  • The 1 indicates the revision of the Manjaro package
  • MANJARO indicates the specific distribution it is used for

Adding New Kernels

Manjaro not only supports the use of multiple kernels (selectable from the boot screen), but allows easy access to the very latest bleeding edge kernels as well. This is undertaken through use of Manjaro’s own MHWD-kernel (Manjaro Hard-Ware Detection) command. The syntax of the command is as follows:

When listing a new kernel to be installed in the command, it is not necessary to write the entire version number. For example, any version of Kernel 4.19 can be listed simply as ‘linux419’, and any version of Kernel 4.14 can be listed as ‘linux414’, and so on.

The optional rmc (remove current) component is of vital importance. Using this will result in your existing kernel being deleted upon the installation of the new kernel. Otherwise, if it is not used, then the existing kernel will be kept, and will be selectable alongside the new kernel at the boot screen. It is recommended — especially if updating to the latest bleeding edge kernel — to keep your old one, even if only for a short time afterwards. This the safer option, and the old kernel can be easily removed when satisfied with the stability and functionality of the new one.

Читайте также:  Серийный номер для windows максимальная

As an example, once the terminal is opened, the following command will install a new kernel (4.19) without deleting the existing kernel currently being used:

Otherwise, the following command will install a new kernel (5.10) to replace the existing kernel, which will be deleted:

Either way, Manjaro will automatically configure the new kernel for you, ready for immediate use. Once completed, close the terminal and re-boot the system for the change to take effect.

Removing Kernels

Where multiple kernels are present on your system, pacman can be used to remove them in the terminal. It may be necessary to delete a total of three elements of the kernel in total to completely remove it:

  1. The kernel itself
  2. The kernel’s headers
  3. The kernel’s extra modules

Whether or not the headers and extra modules must be deleted depends on whether or not they have been installed.

1. To remove a kernel use the following syntax: sudo mhwd-kernel -r linux[version]

Here is an example for removing kernel 5.0.17-1

2. To delete a kernel’s headers, the syntax is:

For example, to delete the headers of kernel version 5.0.x from the system, the following command would be entered:

3. To delete a kernel’s extra modules, the syntax is:

For example, to delete the extra modules of kernel version 5.0.x from the system, the following command would be entered:

4. To delete all elements of a kernel at the same time — where they are all present on your system — the syntax is:

For example, to completely remove all elements of kernel version 5.0.x, the following command would be entered:

Please note however, that attempting to delete multiple elements at once if they are not present on your system will result in an error message before the operation itself is aborted. It is also worthwhile noting if Manjaro is being run in a virtual machine (e.g. Oracle Virtualbox), you may not be able to delete certain kernels if they contain elements important to the virtualisation process itself.

Don’t forget the mhwd-kernel -h command

As with most Linux commands that can be entered into the Terminal, typing the command followed by either -h or —help will print out the usage & available options to the Terminal for your reference. Here is the output of the mhwd-kernel -h command:

All available kernels installed on your system will be presented upon booting up. GNU GRUB is visible with a couple of options. Choose «Advanced Options for Manjaro Linux» by using the arrow keys on your keyboard and then press .

On the next screen (as illustrated) are backup copies of each kernel version installed (which will also be automatically removed if or when a kernel version is deleted). To select a kernel, simply use the arrow keys to highlight the desired version, and then press .

Источник

Arch Linux User Repository

Search Criteria

Package Details: linux-manjaro-xanmod-headers 5.13.19-1

Package Actions

Git Clone URL: https://aur.archlinux.org/linux-manjaro-xanmod.git (read-only, click to copy)
Package Base: linux-manjaro-xanmod
Description: Headers and scripts for building modules for the Linux Xanmod kernel
Upstream URL: http://www.xanmod.org/
Licenses: GPL2
Submitter: ANDRoid7890
Maintainer: ANDRoid7890
Last Packager: ANDRoid7890
Votes: 3
Popularity: 0.51
First Submitted: 2021-07-12 11:00
Last Updated: 2021-09-23 04:45

Dependencies (12)

  • pahole (pahole-git)
  • bc (bc-gh) (make)
  • cpio (cpio-git) (make)
  • git (git-git, git-vfs) (make)
  • graphviz(make)
  • imagemagick (graphicsmagick-imagemagick-compat, imagemagick-no-hdri, imagemagick-git, imagemagick-fftw, imagemagick-full, imagemagick-full-git) (make)
  • inetutils (gettext-hostname, inetutils-git) (make)
  • kmod (kmod-git, kmod-minimal-git) (make)
  • libelf (elfutils-git, libelf-minimal-git) (make)
  • python-sphinx (python-sphinx-git, python-sphinx-2) (make)
  • python-sphinx_rtd_theme(make)
  • xmlto (xmlto-git) (make)

Required by (0)

Sources (5)

Pinned Comments

ANDRoid7890 commented on 2021-07-12 11:02

This is a c u s t o m kernel with some patches included.

This is NOT a Manjaro-specific package.

Please, read the description carefully before filling a deletion request.

Latest Comments

theriddick commented on 2021-09-26 02:45

@JoeSchr I think 5.14 is considered xanmod-edge. I’m using that but also not using manjaro anymore; don’t see the advantage really except for being more configured.

Читайте также:  Как проверить диск виктория для windows

JoeSchr commented on 2021-09-25 15:13

Is this going to be updated to 5.14? 5.14 fixed a lot of my network issues, but I’m missig the performance of this kernel!

Thanks for all you work!

theriddick commented on 2021-08-07 11:02

It seems games on NTFS run via wine/proton will fail in %50 or so of system boot ups due to kernel glitch. Only thing someone can do is keep rebooting until it works. (5.13-6, could be related to using NTFS and not NTFS3. )

UPDATE: I manually updated the PKGBUILD to 5.13-8 myself and set my NTFS drives to use NTFS3 driver and everything has been working just fine so far. Keep in mind any symlinks placed on the NTFS drive will need to be remade. (compatdata for example)

davemurray-gr commented on 2021-07-30 14:28

if [ -z $ <_compiler+x>]; then _compiler=gcc fi

is not working for me if i choose to change it with «clang» or use clang with 98) Intel-Native optimizations autodetected by GCC or in any combination. im opening second terminal, issuing top. there is only cc1 when compiling and not clang-12 for example as should. so there cannot be clang build and lto with that pkgbuild.

theriddick commented on 2021-07-29 22:56

5.13-6 is out and should solve any NTFS fsync related file read problems with Wine/Proton. (touch wood).

theriddick commented on 2021-07-26 21:35

UPDATE: Fell back to 5.12-16 and all games work without any issues. Was related to games on NTFS drives.

ANDRoid7890 commented on 2021-07-26 14:30

theriddick, Just playing GTA V with proton 6.3 without any problems

theriddick commented on 2021-07-26 02:38

As it turns out, there is some odd bug within xanmod that caused my wine/proton issue which is being fixed. Maybe the next update will have that fix I do not know.

theriddick commented on 2021-07-25 11:02

This 5.13 broke WINE and Proton for me, all games fail to launch. Roll back to previous and no problems. Could be related to NTFS stuff, I do not know (games on NTFS). (Issue not present in normal manjaro 5.13).

Just a warning. Never had issues in past. I will try to recompile and see if it works the second time.

Command used: env _microarchitecture=14 use_numa=n use_tracers=n use_pds=n use_ns=y yay -S linux-manjaro-xanmod-headers linux-manjaro-xanmod

UPDATE: Apparently its related to Futex2 being too new..

cysm commented on 2021-07-21 03:29

thank you — any plans for 5.13?

Copyright © 2004-2021 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.

Источник

Типовые проблемы Manjaro Linux для новичков (обновляемая статья)

Уважаемые новички Manjaro Linux, если вы решили впервые начать использование Manjaro Linux и не знаете с чего начать, а тратить своё архидрагоценное время на «бесполезное» чтение Wiki и форумов, нет ни времени ни желания, то эта статья для вас.

Для начала, попробуем ответить на наиболее частые общие вопросы о системе.

1. Mаnjaro — это Arch?
Манжаро основан на Арч. Они весьма похожи друг на друга.

2. Mаnjaro — это Arch + графическая инсталляция?
Верно, Manjaro Linux имеет довольно удобный графический установщик(на данном этапе их два Thus и Calamares), но Manjaro уже не Archlinux, так как имеет свои ядра, свои репозитории, свои отличные от Archlinux пакеты в репозиториях и свои утилиты конфигурации, которые изрядно облегчают установку ядер и драйверов.

В Арчлинуксе есть стабильные репозитории и testing репозитории, во вторых как понятно из названия, пакеты тестируются и если багов нет, то переносятся в стабильный. Из стабильной ветки основное число пакетов берется и переносится в Manjaro unstable ветку репозиториев, в которой пакеты тестируются и в случае отсутствия багов переносятся в testing репозитории Манжаро, откуда после недолгой обкатки переносятся в stable версию Manjaro репозиториев. Тоесть стабильные пакеты в арче, считаются еще нестабильными пакетами в манжаро и подлежат дополнительной обкатке и проверке.

3. Можно использовать репозитории Арча?
Официальные репозитории- нет. Но репозитормй AUR- можно.

4. Зачем использовать Mаnjaro, когда есть Arch?
Не видите для чего вам Manjaro Linux, используйте Arch.

Читайте также:  Загрузить по поддержки windows для моего mac

Какой вариант Mаnjaro использовать?

Новичкам в линукс рекомендуется стабильная ветка Манжаро, вариант c XFCE или KDE. Этим вариантам разработчики Mаnjaro уделяют особое внимание. XFCE проще, KDE богаче, оба красивые. Естественно, качайте последний релиз. Ссылка на скачку здесь или в главном меню сайта.

Чем писать образ на флешку?

Итак начнём с самого начала, предположим, что вы скачали образ Manjaro Linux и не знаете чем записать образ на флешку, априори считаю, что вы находитесь в Windows, посему рекомендую пользоваться rufus, ultra iso или win32 image writer.

Если вы используете Linux то воспользуйтесь — isousb, imagewriter, multisystem, dd.

С чего начать установку?

Вот вы записали образ, загрузились с флешки, вне зависимости от вашего выбора установщика Thus или Calamares(не думаю, что те кто выбрал CLI установщик нуждаются в подсказках) рекомендую выбирать в первом случае язык системы русский, а вот раскладку выбирать по умолчанию USA english default, таким образом будет исключена проблема с вводом пароля(есть такой старый линуксовый баг, встречаемый во многих linux установщиках).

Как разбить диск?

На этапе разметки диска, если у вас EFI то обязательно создайте раздел размером, примерно 100 мегабайт(если у вас будет одна система, если будет ещё винда в дуал буте, то сделайте примерно 200 метров на всякий случай) с файловой системой fat32, размечаем его в /boot/EFI, так же обязателен раздел / размером от 15 до 50 Гигабайт на ваше усмотрение и аппетиты. Необходимость лично для вас раздела /home можете поискать «в этих ваших интернетах», так глубоко углубляться в это углубление я не буду.

Если у вас BIOS, то обязателен лишь раздел / (он же root, он же корень), так же от 15 до 50 Гигабайт на ваше усмотрение и аппетиты, с необходимостью лично вам других разделов, так же разберитесь самостоятельно.

Рассмотрим частые проблемы

И вот пред ваши ясны очи предстала впервые загруженная ОС Manjaro Linux, радости вашей и восторга а у некоторых уже на этом этапе трещат пуканы нет предела. И первое, что делает любой уважающий себя пользователь Manjaro это конечно же открывает эмулятор терминала и выполняет в нём команду на сортировку зеркал серверов по их скорости.

После чего выполняем полный апдейт системы:

На данном этапе нередко случается ошибка вида:

:: Synchronizing package databases…
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: File exists
if you’re sure a package manager is not already
running, you can remove /var/lib/pacman/db.lck

Ошибка появляется не потому что «Манжаро УГ», а из-за того, что пакетный менеджер pacman в данный момент работает или завершился некорректно, и потому в системе уже существует файл блокировки /var/lib/pacman/db.lck и как вам написано в сообщении, для устранения проблемы удалите этот самый файл:

После удаления репозитории синхронизируются и есть вероятность того, что с момента выхода скачанной вами версии некоторые ключи, которыми подписаны пакеты уже устарели и вы столкнетесь с ошибкой вида:

ошибка: libpulse: signature from «Rob McCathie » is unknown trust
:: Файл /var/cache/pacman/pkg/libpulse-5.0-1.1-x86_64.pkg.tar.xz поврежден (неверный или поврежденный пакет(PGP-подпись)).
Хотите его удалить? [Y/n] y
ошибка: jasper: signature from «Rob McCathie » is unknown trust
:: Файл /var/cache/pacman/pkg/jasper-1.900.1-12.10-x86_64.pkg.tar.xz поврежден (неверный или поврежденный пакет(PGP-подпись)).
Хотите его удалить? [Y/n] y
ошибка: lib32-libpulse: signature from «Rob McCathie » is unknown trust
:: Файл /var/cache/pacman/pkg/lib32-libpulse-5.0-1.1-x86_64.pkg.tar.xz поврежден (неверный или поврежденный пакет(PGP-подпись)).
Хотите его удалить? [Y/n] y
ошибка: pulseaudio: signature from «Rob McCathie » is unknown trust
:: Файл /var/cache/pacman/pkg/pulseaudio-5.0-1.1-x86_64.pkg.tar.xz поврежден (неверный или поврежденный пакет(PGP-подпись))

Для решения этой проблемы достаточно установить пару пакетов свежих ключей:

Убираем прерывания(tearing) в KDE
Если есть правим если нет создаем и правим файл

добавляем в него две строчки

Спасибо:

за исправления и замечания уважаемому Doaxan
за дополнения и поправки к статье уважаемому dimonmmk

Написал о наиболее часто задаваемых вопросах. Статья будет дополняться. С дополнениями и пожеланиями прошу в комментарии или ЛС. Всем Добра.

Источник

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