Arch: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
After fifteen years of exclusively running [[Debian|Debian Linux]] in its [https://wiki.debian.org/DebianUnstable Unstable] ("sid") rolling configuration on [[Machines|my machines]], I converted my day-to-day laptop to Arch in March 2019 (my workstation remains Debian Unstable). The [[Lenovo]] T580 started life as "[https://www.youtube.com/watch?v=hCuMWrfXG4E uptowngirl]"; she was renamed "uptowngrimes" for the first pass at running Arch, and finally "[https://www.youtube.com/watch?v=Tv9YoYCKNoE grimes]" once I was ready to give Arch a real go. My primary motivations were the increasingly European and ossified nature of Debian, and the fact that the Arch wiki provided | After fifteen years of exclusively running [[Debian|Debian Linux]] in its [https://wiki.debian.org/DebianUnstable Unstable] ("sid") rolling configuration on [[Machines|my machines]], I converted my day-to-day laptop to Arch in March 2019 (my workstation remains Debian Unstable). The [[Lenovo]] T580 started life as "[https://www.youtube.com/watch?v=hCuMWrfXG4E uptowngirl]"; she was renamed "uptowngrimes" for the first pass at running Arch, and finally "[https://www.youtube.com/watch?v=Tv9YoYCKNoE grimes]" once I was ready to give Arch a real go. My primary motivations were the increasingly European and ossified nature of Debian, and the fact that the Arch wiki provided a significant portion of the best content I was reading each day. | ||
I dig it thus far! | I dig it thus far! | ||
| Line 26: | Line 26: | ||
</pre> | </pre> | ||
Each time you build a new kernel, the preserved config will be copied into the source directory. <tt>make oldconfig</tt> will give you the opportunity to configure any new options. <tt>make menuconfig</tt> will then allow you to modify the kernel config. If this kernel config ends up different from the preserved config (it always will at least once, due to the version changing), the process will abort. Run <tt>cp src/archlinux-linux/.config ../config</tt> to preserve the new config. Once the config is no longer changing, the process can continue. | Each time you build a new kernel, the preserved config will be copied into the source directory. <tt>make oldconfig</tt> will give you the opportunity to configure any new options. <tt>make menuconfig</tt> will then allow you to modify the kernel config. If this kernel config ends up different from the preserved config (it always will at least once, due to the version changing), the process will abort. Run <tt>cp src/archlinux-linux/.config ../config</tt> to preserve the new config. Once the config is no longer changing, the process can continue. | ||
If you wish to avoid the lengthy build of documentation (it will otherwise dominate your total build time), remove <tt>$pkgbase-docs</tt> from the <tt>pkgname</tt> array. | |||
===New kernel process=== | ===New kernel process=== | ||
* Edit <tt> | * Edit <tt>PKGBUILD</tt> and change <tt>_pkgver</tt>, usually to a string of the form <tt>MAJOR.MINOR.PATCH.arch1</tt> | ||
* Clear out any old packages and source: <tt>rm -rf *.xz src pkg</tt> | * Clear out any old packages and source: <tt>rm -rf *.xz src pkg</tt> | ||
* Make your packages, updating the kernel config along the way (see above): | * Make your packages, updating the kernel config along the way (see above): | ||
| Line 33: | Line 35: | ||
** Remember, <tt>cp src/archlinux-linux/.config ../config</tt> to preserve the new config | ** Remember, <tt>cp src/archlinux-linux/.config ../config</tt> to preserve the new config | ||
* Install the new packages: <tt>pacman -U *.xz</tt> | * Install the new packages: <tt>pacman -U *.xz</tt> | ||
===GPG keys=== | ===GPG keys=== | ||
If you're getting errors during verification of [[GPG]] signatures, you can use pacman's trusted keys. Add to your <tt>gpg.conf</tt>: | If you're getting errors during verification of [[GPG]] signatures, you can use pacman's trusted keys. Add to your <tt>gpg.conf</tt>: | ||
<tt>keyring /etc/pacman.d/gnupg/pubring.gpg</tt> | <tt>keyring /etc/pacman.d/gnupg/pubring.gpg</tt> | ||
and then run (as specified at [https://wiki.archlinux.org/index.php/Pacman/Package_signing Package Signing]): | and then run (as specified at [https://wiki.archlinux.org/index.php/Pacman/Package_signing Package Signing]): | ||
<pre> | <pre> | ||
| Line 44: | Line 49: | ||
If you then need a particular key, try e.g.: | If you then need a particular key, try e.g.: | ||
<pre>pacman-key -r A5E9288C4FA415FA</pre> | <pre>pacman-key -r A5E9288C4FA415FA</pre> | ||
and mark the key as trusted. | |||