Posts tagged: linux
All posts with the tag "linux"
AUR.">paru is an aur helper that allows you to use a package manager to install packages from the aur.
What’s the Aur #
The Aur is a set of community managed packages that can be installed on arch based distros.
Why a helper? #
paru just makes it easy, no clone and run makepkg. You can do everything paru can do using the built in pacman installer.
Manual Install from the Aur #
You will need to manually instal pacman from the aur in order to get started.
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
Installing packages with paru #
Once setup you are ready to install packages from the AUR just like the core repos.
# you can update your system using paru
paru -Syu
# you can install packages from the AUR
paru -S tailscale
paru -S prismlauncher
# even core repo packages can be installed
paru -S docker
Paru in Docker #
Here is a snippet from my devtainer dockerfile. Where I use paru to install packages from the AUR inside of a dockerfile.
FROM archlinux
RUN echo '[multilib]' >> /etc/pacman.conf && \
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf && \
pacman --noconfirm -Syyu && \
pacman --noconfirm -S base-devel git && \
groupadd --gid 1000 devtainer && \
useradd --uid 1000 --gid 1000 -m -r -s /bin/bash devtainer && \
passwd -d devtainer && \
echo 'devtainer ALL=(ALL) ALL' > /etc/sudoers.d/devtainer && \
mkdir -p /home/devtainer/.gnupg && \
echo 'standard-resolver' > /home/devtainer/.gnupg/dirmngr.conf && \
chown -R devtainer:devtainer /home/devtainer && \
mkdir /build && \
chown -R devtainer:devtainer /build && \
cd /build && \
sudo -u devtainer git clone --depth 1 https://aur.archlinux.org/paru.git && \
cd paru && \
sudo -u devtainer makepkg --noconfirm -si && \
sed -i 's/#RemoveMake/RemoveMake/g' /etc/paru.conf && \
pacman -Qtdq | xargs -r pacman --noconfirm -Rcns && \
rm -rf /home/devtainer/.cache && \
rm -rf /build
USER devtainer
RUN sudo -u devtainer paru --noconfirm --skipreview --useask -S \
bat \
cargo \
direnv \
dua-cli \
dust \
fd
Final Thoughts #
There are other options out there, paru seemed to be the most supported at the time I started using arch and there has been no other reason for me to change it. It’s treated me well for nearly a year now.
useful btrfs tools
Fix Arch Linux randomly rejecting passwords with one command. Try ‘faillock –user $USER’ to reset login counter and regain access. Quick solution for a smooth computing"
If you’re an Arch Linux user, you may have experienced a frustrating issue where your password is randomly not being accepted by the system. This can be a major inconvenience and can cause a lot of frustration, especially if it happens frequently.
The good news is that there is a simple fix for this issue. The following bash code can be used to fix the problem:
bash faillock --user $USER
This command is used to reset the failed login count for the current user. By running this command, you will be able to reset the system’s login counter and regain access to your account.
It’s important to note that this command should only be used as a temporary solution. If you find yourself frequently having to run this command, it’s likely that there is a deeper issue with your system that needs to be addressed.
In any case, if you’re experiencing problems with your Arch Linux system not accepting your password, give the above command a try and see if it resolves the issue for you.
I recently setup some vm’s on my main machine and got sick of signing in with passwords.
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub virt
I just shared some ssh keys with myself and ran into this error telling me that I did not set the correct permissions on my key.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0750 for '/home/waylon/.ssh/id_*******' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/waylon/.ssh/id_*******": bad Permissions
repo: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I changed them with the following commands.
chmod 644 ~/.ssh/id_*******.pub
chmod 600 ~/.ssh/id_*******
For far too long I have had to fidget with v4l2oloopback after reboot. I’ve had this happen on ubuntu 18.04, 22.04, and arch.
After a reboot the start virtual camera button won’t work, It appears and is clickable, but never turns on. Until I run this command.
sudo modprobe v4l2loopback video_nr=10 card_label="OBS Video Source" exclusive_caps=1
Today I learned that you can turn on kernel modules through some files in /etc/modules...
This is what I did to my arch system to get it to work right after boot.
echo "v4l2loopback" | sudo tee /etc/modules-load.d/v4l2loopback.conf
echo "options v4l2loopback video_nr=10 card_label=\"OBS Video Source\" exclusive_caps=1" | sudo tee /etc/modprobe.d/v4l2loopback.conf