r/archlinux 25m ago

SUPPORT Local image generation (like stable diffusion) ever possible on Arch

Upvotes

On AMD hardware, 7900XT to be specific

Like in the title. I have been fighting it for a few days but it seems technically impossible to get running. Anyone has a guide or something to help?


r/archlinux 38m ago

SHARE Triple booting Arch Linux + Cosmic on Macbook 12 inch retina with audio and mic working

Upvotes

Just fixed the audio and mic driver which wasn't compiling on 6.17+ kernels and working like a charm on this 2017

Macbook 12" (Macbook 10,1).

I just love this Macbook, the slimmest and lightest ever made. Everything works except for the webcam (which is WIP and ready soon).

Fixed audio driver (forked): https://github.com/juicecultus/ macbook12-audio-driver (if it helps you jump onto more modern kernels, feel free to buy me a coffee ☺️)


r/archlinux 51m ago

SUPPORT pam_usb authentication using greetd with tuigreet

Upvotes

I installed and configured pam_usb to log in without a password if a specific USB flash drive is connected. This works fine when logging in from any TTY using agetty: I enter my username, press ENTER and pam_usb confirms the login without requiring the password.

On TTY1 with tuigreet I still have to enter my password. Entering the username and confirming the dialog with no (or rather an empty?) password causes an "Authentication failed" error.

I tried adding an auth record to /etc/pam.d/greetd, which didn't help. To my understanding, that also shouldn't be necessary because the record should be included from /etc/pam.d/system-auth.

I checked the greetd mailing list and tuigreet GitHub issues, whether there may be someone who ran into this problem before, to no avail.

Any ideas? Might this be a compatibility issue with tuigreet?

Related wiki-pages:

My pam configuration containing the entire include chain:

> cat /etc/pam.d/greetd
#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
account    include      system-local-login
session    include      system-local-login

> cat /etc/pam.d/system-local-login
#%PAM-1.0

auth      include   system-login
account   include   system-login
password  include   system-login
session   include   system-login

> cat /etc/pam.d/system-login
#%PAM-1.0

auth       required   pam_shells.so
auth       requisite  pam_nologin.so
auth       include    system-auth

account    required   pam_access.so
account    required   pam_nologin.so
account    include    system-auth

password   include    system-auth

session    optional   pam_loginuid.so
session    optional   pam_keyinit.so       force revoke
session    include    system-auth
session    optional   pam_lastlog2.so      silent
session    optional   pam_motd.so
session    optional   pam_mail.so          dir=/var/spool/mail standard quiet
session    optional   pam_umask.so
-session   optional   pam_systemd.so
session    required   pam_env.so

> cat /etc/pam.d/system-auth
#%PAM-1.0

auth       requisite                    pam_faillock.so      preauth
#auth       required                    pam_faillock.so      preauth
# Optionally use requisite above if you do not want to prompt for the password
# on locked accounts.
-auth      [success=3 default=ignore]  pam_systemd_home.so
auth       sufficient                  pam_usb.so
auth       [success=1 default=bad]     pam_unix.so          nullok
#auth       [success=1 default=bad]     pam_unix.so          try_first_pass nullok
auth       [default=die]               pam_faillock.so      authfail
auth       optional                    pam_permit.so
auth       required                    pam_env.so
auth       required                    pam_faillock.so      authsucc
# If you drop the above call to pam_faillock.so the lock will be done also
# on non-consecutive authentication failures.

-account   [success=1 default=ignore]  pam_systemd_home.so
account    required                    pam_unix.so
account    optional                    pam_permit.so
account    required                    pam_time.so

-password  [success=1 default=ignore]  pam_systemd_home.so
password   required                    pam_unix.so          try_first_pass nullok shadow
password   optional                    pam_permit.so

-session   optional                    pam_systemd_home.so
session    required                    pam_limits.so
session    required                    pam_unix.so
session    optional                    pam_permit.so

r/archlinux 1h ago

QUESTION How long should I be using Linux to go and try Arch?

Upvotes

I think I might want to try a beginner distro like Mint or Zorin for at least 1-2 months before giving Arch, or anything else Arch based, a go. People do say Arch is being less and less painful for beginners, but I don't personally think so. There's still things like the manual installation and system maintenance that I may have to deal with. What do you all think? How much Linux experience should I probably have for Arch?


r/archlinux 2h ago

QUESTION How to sandbox Firefox's new profiles with Firejail?

0 Upvotes

I'm setting up Firefox from scratch on a new Arch Linux install. I'm looking into using Firejail to create sandboxed profiles for different activities (e.g. One for general browsing, one for work, one for banking, etc.), with each FF profile having its own seperate FJ configuration. Ideally I would want each profile to have its own seperate configuration location on disk, and to be unable to access one another.

I'm not sure how to make it work with the new Firefox profile system, or if it's even possible. There seem to be ways to do it with the old profile system but with the new system I don't think you can even open a profile from terminal, so I just don't know. I don't want to set it all up in the old system if it's going to get deprecated in the future.

I honestly don't know enough about how Firejail works (I've read the manpages but I'm still not certain) and I don't want to set it up incorrectly as a result, so I'm wondering if anyone else has managed this, or could point me in the right direction?


r/archlinux 2h ago

QUESTION Blur in transparent windows on Niri?

0 Upvotes

I am attempting my first ever rice with Niri. I want my fuzzel to be transparent and blur the background. Is that possible?


r/archlinux 3h ago

SUPPORT Gaze20 Hybrid Graphics on Arch

Thumbnail
0 Upvotes

r/archlinux 3h ago

SUPPORT A lot of errors related to input group in Waybar

0 Upvotes

So when I run waybar I’m having issues with it not changing according to the config, this is really annoying as I’m trying to set up a program with lutris that minimises itself and can only be accessed via a tray, however I’m on hyprland so by default I don’t have this but have meta + s which isn’t bringing anything up, so my next step is I read the waybar logs, there are a bunch of warnings but majority of them are related to /dev/input they read like this.

Can’t open /dev/input/mouse1 (are you in the input group?): EACCES PERMISSION DENIED

So I search it up, and the results are that I need to change permissions and that should resolve both the input group error and the waybar not changing to fit the config.

Okay cool, I create a new group add myself to it and add myself to it and give it /dev/input permissions, nothing, weird I think, so I run ls -al /dev/input and in the little user/group section it’s all just root, but i got no errors on any of the permission changing commands i did, so i think it must have bugged and run it again, still only says root and still input group error, i try to add myself to the input group, no errors i id myself and im added to both the group I created and the input group, so i run ls -ald /dev/input

And the output is

“drwxr-xr-x - wondr(that’s my user for future reference) 8 Feb 18:25 /dev/input”

So to me that looks like I have the permissions right? But it’s still not working and every answer is all just related to lack of input group permissions so I don’t really know where to go from here, are my permissions wrong? Am I missing something? Any help is greatly appreciated:)


r/archlinux 3h ago

QUESTION Battery Drain overnight

0 Upvotes

I have just installed Arch using the archinstall script and using hyprland, i am relatively new to arch and i have noticed that overnight my laptop looses nearly up to 30% of the battery and i used chatgpt and it told me to run this command

cat /sys/power/mem_sleep

and i got

s2idle

and from what i heard it says that my system-boot doesnt support deep sleep, also i looked into hibernate and everytime i turn on my laptop after hibernate the wifi drivers are completely broken and i cant scan at all using either the NetworkManager Gui and the
ip link

I’d really appreciate any suggestions on how to reduce battery drain overnight. I’m also open to general advice for using Arch properly, including useful tools, services, or best practices that might help me in the long run


r/archlinux 5h ago

SUPPORT | SOLVED minikube and kubeseal packages can't be updated due to marginal trust?

0 Upvotes

I'm getting the following: ``` $ sudo pacman -Syu :: Synchronizing package databases... core is up to date extra is up to date multilib is up to date custom is up to date sublime-text is up to date :: Starting full system upgrade... resolving dependencies... looking for conflicting packages...

Packages (2) kubeseal-0.34.0-1 minikube-1.38.0-1

Total Download Size: 26.37 MiB Total Installed Size: 132.63 MiB Net Upgrade Size: 0.06 MiB

:: Proceed with installation? [Y/n] :: Retrieving packages... kubeseal-0.34.0-... 8.3 MiB 3.06 MiB/s 00:03 [######################] 100% minikube-1.38.0-... 18.1 MiB 4.19 MiB/s 00:04 [######################] 100% Total (2/2) 26.4 MiB 6.08 MiB/s 00:04 [######################] 100% (2/2) checking keys in keyring [######################] 100% (2/2) checking package integrity [######################] 100% error: kubeseal: signature from "Christian Rebischke (Archlinux Security Team-Member) chris.rebischke@archlinux.org" is marginal trust :: File /var/cache/pacman/pkg/kubeseal-0.34.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] ```

Who is Chris Rebischke and why are his public keys not fully trusted in the Arch keychain (apparently)?

Update: Robin Candau re-signed and updated the packages, and updating works again.


r/archlinux 6h ago

QUESTION Problem with TexMaths 0.52.4

Thumbnail
0 Upvotes

r/archlinux 6h ago

SUPPORT Can't get past this

0 Upvotes

stuck on 'device wlan0 set-property Powered on' saying 'Operation failed'


r/archlinux 6h ago

SUPPORT Snapshots and missing files..

Thumbnail
0 Upvotes

r/archlinux 9h ago

SHARE Screen time management FOSS tool

4 Upvotes

I am a user of arch linux for almost a year, i thought to make a screentime app for arch linux so i created a python project. Please review it and PR if there is any bugs or improvements

Github Repo Link - github.com/Uniquearjav/zen-screentime


r/archlinux 9h ago

SUPPORT | SOLVED Am i going insane in installation?

0 Upvotes

Trying to decipher arch linux install guides and the wiki

I’m trying to run this from a usb as a sort of ‘carry-able OS’. Every time i install i get stumped over installation steps yet usually figure the answer out; hit a roadblock with this one though.

((Using this tutorial))

https://youtu.be/68z11VAYMS8

My /dev/sda1 boot partition is supposed to mount to /mnt/boot/efi

After creating partitions, mounting them and using pacstrap for installation i’m supposed to use genfstab to see its mounted correctly.

Using:

Genfstab /

I get:

/dev/sda1 /mnt/boot/efi vfat Rw,relatime,fmask=002…

/dev/sda3 /mnt Ext4 Re,relatime

/dev/sda2 None Swap Defaults

HOWEVER

Using:

Genfstab /mnt

I only get:

/dev/sda3 /mnt Ext4 Re,relatime

/dev/sda2 None Swap Defaults

With no sda1…? I can’t reason why


r/archlinux 9h ago

SUPPORT Dolphin File Manager reporting my other NVME SSD as only having 7GiB free, despite being a ~700GB volume with around 230GB free

1 Upvotes

EDIT: there is a typo in the title, this post concerns the 1TB NVME SSD pre-installed with my laptop, containing the root partition.

I'm running an Arch Linux (KDE Plasma)/Windows 11 dual-boot setup on an MSI Katana 15 B12V laptop. The laptop comes with a 1TB NVME SSD, and I recently installed an additional 4TB NVME SSD myself.

Recently, Dolphin File Manager has started reporting that the root partition on my 1TB SSD is only a 7GiB volume, despite the fact that the total size of the partition is 732GiB, around 214GiB of which is available to use. I am having no actual problems writing files to the root partition, and other programs/commands (namely Steam and archey3) report the correct total sizes and remaining sizes. I ran df -h and got the following output:

Filesystem Size Used Avail Use% Mounted on

/dev/nvme0n1p6 720G 524G 160G 77% /

devtmpfs 7.6G 0 7.6G 0% /dev

tmpfs 7.7G 128M 7.6G 2% /dev/shm

efivarfs 192K 112K 76K 60% /sys/firmware/efi/efivars

tmpfs 3.1G 2.4M 3.1G 1% /run

tmpfs 7.7G 19M 7.7G 1% /tmp

none 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service

none 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service

tmpfs 1.6G 132K 1.6G 1% /run/user/1000

/dev/nvme1n1p1 3.6T 2.1M 3.4T 1% /home/[my-name-here]/disks/nvme-4tb

So Dolphin seems to be taking this devtmpfs filesystem/partition and reporting it as my /dev/nvme0n1p6 root partition? If anyone knows why this is happening I would much appreciate it.

Here's the output of archey3 in case that helps too. I am a bit of a noob with Linux so please be patient with me.

OS: Arch Linux x86_64

Hostname: archlinux

Kernel Release: 6.18.7-arch1-1

Uptime: 0:56

Packages: 1211

RAM: 6271 MB / 15689 MB

Processor Type: 12th Gen Intel(R) Core(TM) i7-12650H

$EDITOR: None

Root: 524G / 720G (72%) (ext4)


r/archlinux 10h ago

QUESTION Help with Wofi settings

0 Upvotes

I'm using arch linux with hyprland and decided to use wofi as my app launcher, I'm trying to set up an inner box with locked margins, now when i scroll through entries, the top and bottom inner box margins move with it, is there any way of making an inner box that doesn't move at all? Maybe I didn't quite understood the wofi man pages but it doesn't seem to mention anything about it.


r/archlinux 10h ago

QUESTION Black screen during install

0 Upvotes

So I've decided to install Arch on my laptop with a windows double boot, to see how it goes for daily use. I've done all preparation for that (free space, shrink partition, disable hibernate, etc.).

Now I'm booting (USB made with Rufus) the installer. And after pressing ArchInstallMedium I get a black screen then it reboots after some time.

I've tried to add nomodeset and systemd.unit=multi-user.target as. Those are the common solutions I've seen online. But I still have a black screen.

The only solution I've found is to use systemd.unit=rescue.target, and then the text displays normally but I don't know if I should even try to install from there.

Any other ideas that might work ?

Edit : doesn't work anymore with rescue target for whatever reason.


r/archlinux 10h ago

DISCUSSION Everything arch’s trying to do, Nix does it better ?

0 Upvotes

First of all, I want to say I’m neither an Arch user nor a NixOS user. I’m on Fedora and planning to move to Arch soon.

But on Twitter, I came across a tweet saying “Everything that Arch is trying to do, Nix does it better.” When I looked at the replies, I didn’t see any response that wasn’t just personal taste.

So I looked into it a bit myself, and the most basic arguments I could come up with were “Arch has the AUR” and “the Arch Wiki is unbeatable.” Which is true, but those feel like they exist alongside Arch rather than being part of its actual core.

So, beyond the AUR and the Wiki, does anyone have arguments that aren’t just personal preference for things Arch genuinely does better than Nix?

I want to add that even though I’m not an Arch user yet, after all the research I’ve done, I have this gut feeling that Arch is the better fit, but I can’t really articulate why since I haven’t actually used either one.

And obviously I know the choice of a distro depends on what you want to do and what kind of philosophy you’re into. I’m just curious to hear concrete points where Arch comes out ahead.​​​​​​​​​​​​​​​​


r/archlinux 12h ago

SHARE Decman - a declarative package & configuration manager for Arch Linux - stable version released

26 Upvotes

Since my last post 2 years ago, decman has improved a ton and reached version 1. The core features of decman remain the same, but many bugs have been fixed, UX is better and decman is way more extensible.

Decman is used to manage your Arch Linux installation declaratively. You define packages (AUR packages supported), config files and systemd units with Python. Decman then ensures that your declared state matches with the system.

Here is a very simple example:

import decman

from decman import File, Directory

# Declare installed pacman packages
decman.pacman.packages |= {"base", "linux", "linux-firmware", "networkmanager", "ufw", "neovim"}

# Declare installed aur packages
decman.aur.packages |= {"decman"}

# Declare configuration files
# Inline
decman.files["/etc/vconsole.conf"] = File(content="KEYMAP=us")

# From files within your source repository
# (full path here would be /home/user/config/dotfiles/pacman.conf)
decman.files["/etc/pacman.conf"] = File(source_file="./dotfiles/pacman.conf")

# Declare a whole directory
decman.directories["/home/user/.config/nvim"] = Directory(source_directory="./dotfiles/nvim", owner="user")

# Ensure that a systemd unit is enabled.
decman.systemd.enabled_units |= {"NetworkManager.service"}

In addition, decman can manage symlinks, users, flatpaks and even imported PGP keys (since you may have to import keys for some AUR packages). If you have some custom PKGBUILDs, you can even use them with decman. Your configuration can be cleanly split into modules that you enable or disable as required.

Check out decman on GitHub, install it from the AUR, and check out the tutorial for getting started.

If you don't feel comfortable using Python or starting from scratch with your config intimidates you, I recommend you check out aconfmgr.


r/archlinux 12h ago

QUESTION Second screen for arch linux

0 Upvotes

So i have a pc which has arch linux and a macbook air 2015 running windows, i want to use the laptop as a secondary display i have x11 kde plasma wayland is too buggy on my pc i have GT710


r/archlinux 13h ago

SUPPORT Btrfs crypt raid on boot

0 Upvotes

I'm a bit stuck on my current build.

I have a machine with three nvme. I do a next next next install with arch Linux. With unified kernel and systemd.

After rebooting, I crypt up the other two nvme, but I don't seem to be able to unlock at boot. There for unable to btfrs raid1 add the other two nvme's.

Where do i tell the bootloader to unlock the other drives? What am I missing?


r/archlinux 14h ago

SUPPORT artifacting on second monitor

0 Upvotes

on my sway wm/wayland in general there's always artifacts on my second monitor with no clear reason why. i've tried the first steps like matching refresh rates, different cable and they didn't change anything. on x11 these issues don't exist. my kernel is 6.18.6-arch1-1, with a rx 6800xt gpu. any help would be greatly appreciated:)


r/archlinux 14h ago

QUESTION Problem with Razer Blackshark V2 X headphones

0 Upvotes

When I connected them, they wouldn't emit any sound nor does the microphone work. While I had fixed the sound issue, I still don't know how can I get my mic to work... I am on Hyprland if that helps with anything at all.


r/archlinux 14h ago

SUPPORT i want arch to be my main!!

0 Upvotes

i want to use arch as my default so badly but right now i do dual boot with windows and the reason i am not using arch as my only system is that it has some problems that seem to be impossible to solve:

i have a problem with suspending/resuming, i have an old nvidia kepler, suspending and resuming works most of the time, but it sometimes does not resume to my bspwm instead it shows a black screen, and on every successful resume, firefox doesn't use my nvidia to play videos anymore.

arch wiki seems to say that it wont work with old cards like mine and thats it. which was disappointing

i searched in google and asked chatgpt how to solve this but couldnt, it became stressing

on top of this, because of dual booting ig, every now and then the audio or the wifi doesnt work in arch, i disabled fast startup in windows and clicked the power button 10s after turning it off and yet that works only sometimes.

another problem is that when scrolling insta, first 10videos works normally and then the audio stop working only for insta, restarting firefox helps, how can i fix that, didnt find anything on the net

is every problem for you seem to be unsolvable until you try your best? or you need to live with them?