Skip to content

u/AceCubed

In this archive from Feb 2018 to Jun 2018

0
posts
206
comments
0
media
638
score

A hook is where you tell pacman to "do something whenever this other thing happens". They are explained in the pacman wiki page. I created the folder /etc/pacman.d/hooks and stuck my hook configuration in there. I tell pacman to run reflector and delete the mirrorlist.pacnew file (since I don't need it anymore) whenever pacman-mirrorlist is updated. I went with the fastest 200 mirrors that are located in Canada or the US and that have been updated in the last 12 hours. Naturally reflector will sort them by speed.

% cat /etc/pacman.d/hooks/mirrorupgrade.hook
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist

[Action]
Description = Update mirrorlist with reflector and remove pacnew.
When = PostTransaction
Depends = reflector
Exec = /bin/sh -c "reflector --country 'Canada' --country 'United States' --protocol https --latest 200 --age 12 --sort rate --save /etc/pacman.d/mirrorlist;  rm -f /etc/pacman.d/mirrorlist.pacnew"

I think these are pretty straightforward. [Trigger] tells pacman when to run the hook. In this case, run it when a package named pacman-mirrorlist is upgraded. The [Action] section tells pacman what to run and the timing of it. In this case, if reflector is installed, after the mirrorlist upgrade transaction is done, execute the command listed by exec.

As long as you don't get too far behind (I update weekly), your mirrors should always be up to date and timeouts will be extremely rare.

1 points

We need more information. How is your network configured? NetworkManager? Netctl? Systemd-networkd?

Are you asking about the "nobody cared" message? It's your kernel telling you that something requested an interrupt on IRQ7 and either there is nothing it knows of listening for interrupts on IRQ7, or whatever is listening has told the kernel whatever the interrupt was isn't actually for them. If you wanted to enable irqpoll, you can. Basically, someone has walked into a hotel and told the manager he wants to talk to whoever is in room 7. The manager looked in his register and sees there is no one in room 7. Right now, the manager is just shrugging and telling the guy to leave him alone. If you turn on irqpoll, the manager will call every guest in the hotel and ask each of them if they know who this guy looking for someone in room 7 is and if they want to talk to him. It's almost always buggy firmware or drivers. If your drivers are up to date and everything is working fine, make sure you're loading any firmware or microcode your hardware needs, and that's really the best you can do. If you really want to go down the rabbit hole of debugging interrupts you can, but I always find it tedious and if things are working fine I usually don't worry about it.

1 points

You've explained why the source_pkgbuild function as well as the sanitize_pkgbuild function it calls are potentially dangerous. The other link points to the info_from_aur function which calls source_pkgbuild and therefore the potentially insecure "sanitization".

3 points

I don't believe so. When it was maintained it was secure and I'm not aware of any flaws being reported since, but I would move to maintained software now that you know about it.

1 points

When you edited your system.conf and user.conf files, what did they look like? Can you post them? Did you reload the contents? (ie systemctl daemon-reexec then logout and log back in) I'm pretty sure you need to do both. If I understate it correctly, a user can't have more than the system, and the system setting doesn't automatically apply to users.

1 points

What? You said:

Also, I am unable to do anything as when I log into my user account, xorg is set to boot up on login so it basically bricks my user account terminal preventing me from entering commands etc. Is there any way around this?

But now you're saying you actually could get to a console and use commands?

Is there a reason why my user cannot have Xauth permissions all the time?

Aside from making the file executable, what were the other permissions? Why do you think it's a permissions problem? You haven't given any log or error message information that would confirm that suspicion.

1 points

I only got through the first two sentences...

Some laptops are higher fitted to operating Linux than others. Whereas many Linux customers get pleasure from fixing varied software program points brought on by incompatible , most favor to deal with extra fruitful pursuits.

I also prefer to deal with extra fruitful pursuits, like not reading this blog.

3 points

Last couple of months I use powerpill and bauerbill instead of pacman. There are some issues and I started looking for an alternatives. I tried to use aurman as one of the most promised alternatives for everyday usage. Couple of days ago I start syncing for AUR packages and there was a new version of aurman with dependency changes. "expac" from Extra repository should be changed to "expac-git". As I don't have enough time I skip this update until today. But before changing expac to expac-git I wanted to clarify the reason of this changes. I checked a READMY file, a wiki and a list of open issues in aurman repository and didn't find any mentions about expac. I create an issue about this change. After a couple of minutes some guy responded to me and explain me about the reason and I closed this issue. But an owner banned me after an hour and blame me about not googling and searching closed issues. Maybe I deserved to be banned, because I forgot to check closed issues, but I close my issue before I was banned. So be careful if you want to open issue for aurman, maybe you could be banned too

Stop whining.

https://github.com/polygamma/aurman/issues/140

People are being banned for filing bugs that aren't bugs to reduce developer overload and frustration. The fact that you made a 2nd Github account to complain there and then came here to complain is bullshit. Grow some thicker skin. This type of behaviour is why the pacaur developer stopped developing it, so unless you want to have to switch AUR helpers every other week because developers get tired of dealing with people who can't use google and who blame them for things that have nothing to do with their package, just accept you fucked up and let it go.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.