Arch Linux

7668 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
1
 
 

I’m trying to make a custom iso with archiso, currently I just have the standard profile with plasma-meta, kitty, and xorg-xinit installed. When booting the iso the shell is zsh as expected, but when I launch kde with startx it changes the shell to bash.

I’m not sure if this is because I’m using the root account rather than a normal user, or if it’s something weird to do with using startx as I usually use SDDM on an actual install, I’m not having much luck with Google as I just keep getting results telling me how to automatically run startx when logging into bash/zsh.

The shell for root is listed as /usr/bin/zsh in /etc/passed so chsh makes no difference, but echo $SHELL returns /bin/bash

2
 
 

Running into an issue where I have no internet connection. I've put iwd so I cam use iwctl for the wifi, enabled iwd.service, syatemd.resolv service and not sure what else i need to do. Ethernet doesn't work either but i didnt change the settings to UP on it since i wasnt planning on using it. Did chroot from what I read in the manual and no errors that I saw during the base install. Just trying to find the best way to fix lack of internet connectivity so any guidance on the issue would be appreciated.

Installing the Arch way and is new for me and this is the farthest I've gotten. I used to use the archinstall in the past but I'm not using that anymore.

3
 
 

I've been running Arch for about a year on my pretty old Acer laptop with an I7 8750h and a GTX 1060. Got a pretty good deal on a used Asus Tuf A16 with a Ryzen 7 7735hs and an RX 7700s.

Getting Arch going with my Nvidia card was a bit of a pain. Still have the random game that thinks it needs to use the Intel GPU (which I eventually solved).

So is there anything I need to do for this new laptop or since it's all AMD should everything just work?

4
 
 

I installed CachyOS with BTRFS, LUKS2 , REFIND.

After successful installation I'm not seeing any prompt for password nor the linux boot entry on refind.

Note: I didn't do any lvm or raid.

What should I do?

5
 
 

Let's say i made 10 snapshots on top of the base.

Now can i delete snap no. 5? Will the snaps after 5 will be affected?

Solved

Yes, one can delete consecutive snapshots. The data won't be deleted unless all snaps ( reference points ) get deleted.

Note: If you delete the original file and delete all the snapshots made when the file is still there, the file will get deleted permanently.

6
7
 
 

I am on EndeavourOS and was running the core/linux kernel and used yay to update my kernel to probably 6.11.1arch along with some programs and Nvidia driver updates. After rebooting it went to the login screen but when hitting login it stayed at a black screen till it fell back to terminal without gui. In the grub submenu I tried fallback which had the same problem. Fortunately I had LTS installed, and it worked.

So now what do i do? I am sure there are many solutions to fixing it. But do they work all the same? I could delete core/linux in AKM and reinstall it, right?

I am a beginner in Linux and would like to learn from this.

8
9
 
 

Hey guys. I recently installed cachyos on my PC. It’s showing the nvidia drivers installed but gives me no output if I plug hdmi into the card. Only my motherboard port is giving video output. Any idea how I can resolve this?

10
 
 
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) deepin-icon-theme-2024.06.21-1

Total Installed Size:  138.93 MiB
Net Upgrade Size:        5.96 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                     [########################] 100%
(1/1) checking package integrity                   [########################] 100%
(1/1) loading package files                        [########################] 100%
(1/1) checking for file conflicts                  [########################] 100%
error: failed to commit transaction (conflicting files)
deepin-icon-theme: /usr/share/icons/bloom/icon-theme.cache exists in filesystem
Errors occurred, no packages were upgraded.

Running a search for the error I didn't find one for deepin-icon-theme, but the same error for other packages in arch updates show up and the other ones I saw laid the blame on improper packaging. Given that this is the one from the arch repositories and not some AUR package, I'm nowhere near confident enough in myself to jump to the conclusion that this is someone else's fault, so I'm asking here.

11
 
 

Is there a standard or well-known, de-facto uitility for this?


Arch Linux, EndeavourOS

12
7
submitted 1 month ago* (last edited 1 month ago) by Kiuyn@lemmy.ml to c/archlinux@lemmy.ml
 
 

Hi everyone, hope you guys have a nice day! Long story short. I hop from opensuse tumbleweed to arch recently. I want to setup snapper so it work like on opensuse just to be safe. Even on opensuse the rolling release did kill my system few time. I run into this part on the arch wiki.

Note: If you are using the suggested Btrfs partition layout from archinstall then the @.snapshots subvolume will already be mounted to /.snapshots, and the snapper create-config command will fail [1]. To use the @.snapshots subvolume for Snapper backups, do the following:

Unmount the @.snapshots subvolume and delete the existing mountpoint.
Create the Snapper config.
Delete the subvolume created by Snapper.
Re-create the /.snapshots mount point and re-mount the @.snapshots subvolume.

I did installed arch via archinstall but I am not really experience with the btrfs files system nor mount or unmount stuff so as I expected I killed my system. I reinstalled arch and not sure how to setup snapper without pull my hair out again. Any help would be appreciate thank!

13
 
 

Downloading packages as an unprivileged user is a pretty neat update for people who want to do that.

14
 
 
#!/usr/bin/env bash
echo -e '\nReading the news...\n'
        yay -Pw
echo -e '\nUpdating...\n'
        sudo pacman -Syu
echo -e '\nLooking for orphaned packages...\n'
        yay -Qtd
echo -e '\nLooking for obsolete packages...\n'
        url='https://aur.archlinux.org/rpc?v=5&'
        pacman -Qmq | sort >| /tmp/pkgs
        curl -s "${url}type=info$(printf '&arg[]=%s' $(cat /tmp/pkgs))" \
                | jq -r '.results[]|.Name' | sort | comm -13 - /tmp/pkgs
echo -e '\nLooking for changed config files...\n'
        sudo find /etc -name *.pac*
echo -e '\nDone.\n'
15
7
submitted 1 month ago* (last edited 1 month ago) by gpstarman@lemmy.today to c/archlinux@lemmy.ml
 
 

Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.

This is the layout 👇

ID gen parent top level path
258 1773 5 5 @root
259 1601 5 5 @srv
260 1789 5 5 @cache
261 1785 5 5 @tmp
262 1797 5 5 @log
263 26 377 377 var/lib/portables
264 26 377 377 var/lib/machines
265 1791 377 377 .snapshots
266 1427 378 378 @home/.snapshots
377 1797 5 5 @
378 1797 5 5 @home

According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration

Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.

From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).

So, CachyOS configured to save snaps to separate subvol.

But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.

Is that possible ?

16
 
 

Hi all,

I have reason to believe a package I use (python-polib) was moved from the aur to the official extra repo. I'm now having trouble getting it installed.

The old page gives a 404: https://aur.archlinux.org/packages/python-polib This now seems to be the right source for this package: https://archlinux.org/packages/extra/any/python-polib/

However, I do a # pacman -Syyu python-polib and pacman can't find the target. Do I need to do something here that I'm missing?

My pacman.conf includes the "extra" repo and it updates during the Syyu command.

17
17
submitted 1 month ago* (last edited 1 month ago) by gpstarman@lemmy.today to c/archlinux@lemmy.ml
 
 

How to install ProtonVPN in Arch Linux (CachyOS) ?

Should I follow https://wiki.archlinux.org/title/ProtonVPN ?

OR

from flathub https://flathub.org/apps/com.protonvpn.www ?

This flatpak has Unverified tag, but according to this, this flatpak is safe.

Which one should I follow ?

Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :)

Also do you think using VPN from flatpak is a good idea?

18
 
 

I'm using IPV6-able mirrors

is it possible to force pacman to use IPV6 only, other than disabling IPV4 in the whole system?

19
 
 

My config for reflector is currently set as follows:

# Set the output path where the mirrorlist will be saved.
--save /etc/pacman.d/mirrorlist

# Select the transfer protocol.
--protocol https

# Use only the most recently synchronized mirrors.
--latest 200

# Sort the mirrors by synchronization time.
--sort rate

# Return, at most, the following number of mirrors.
--number 20

# Print extra info.
--verbose

I have Reflector set to run as a Systemd service, so it will run when my computer boots.

The "issue" is that I update my system as soon as I boot. Since Reflector is sorting mirrors by their measured download rate, I wonder if downloading updates, or simply doing any action that downloads data, would interfere with those measurements and cause Reflector to choose mirrors that may not be the fastest. I could simply wait for Reflector to finish before using the computer, but it takes quite a while to sort through 200 mirrors.

Is this concern justified? If so, are there ways to mitigate it that don't require me to wait for Reflector to finish? I've thought about setting it as a Pacman hook so that it runs after updating, but, then, that relies on me to perform an update for the mirrorlist to be refreshed, and that still leaves the concern of other actions eating up network bandwidth, thus skewing the measurements.

20
 
 

Hello, guys, I just installed artix and then install awesome. And want to configure it, but have no .config directory. I created it, copied rc.lua from /etc/xdg/awesome/, but it's don't work with it. Only with /etc/xdg/awesome/ dir. Can you help me with it, or I can just leave it like this?

  • upd: It was my mistake, because I created .xinitrc using root profile using such command: touch ~/.xinitrc, that why it was created in /root/ directory and caused errors, when I trying to startx without sudo. (I didn't write about it, cause thought that it didn't matter) But now all works right
21
22
 
 

Screen on event crashes PC and corrupts journalctl, seems to be an issue with edid.

Currently solution has been moving to TTY1 then moving back to sway (tty2) as TTY seems to have no issue handling these events.

Where can I start trouble shooting this?

23
24
1
submitted 3 months ago* (last edited 3 months ago) by Anono14168@sh.itjust.works to c/archlinux@lemmy.ml
 
 

So I just installed arch linux , the manual and the real way but I am facing error using pacman and while ping google.com . It was working fine in USB iso . Need suggestion . Read the wiki and tried thing but no good.

25
 
 

Some packages install in under a minute, while alternatives which seem functionally similar, take hours.

Sometimes there are several available options to fit a use case and I would like to use it now. Is it possible to anticipate which one will likely be the fastest to get rolling?

Generally I like to install via yay.

Searching around here is what I learned. Agree?:

  • AUR will be slower
  • Certain categories of package, like web browser, are inherently slow
  • Selecting -bin will be faster if available

Is there some way to guess beyond that? Certain programing languages take longer than others? Is it in relationship to existing packages on the system? Other characteristic? Some kind of dry-run feature to estimate?

Obviously I don't have the fastest computer. I have added MAKEFLAGS="-j4" to /etc/makepkg.conf so at least all 4 cores can get used.

Once I realize a package is going to take ages to get ready, is it possible to safely intervene to stop the process? I try to avoid it because in general I understand arch-based distros don't like "partial" installs. But is it safe to stop compiling? No changes have yet been made, right?

view more: next ›