linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

AapoL, in Error when installing AMDGPU drivers on Fedora

Here’s also the dnf log:


<span style="color:#323232;">[aapo@aapo-fedora ~]$ sudo dnf install amdgpu-core
</span><span style="color:#323232;">AMDGPU 5.4 repository                           588  B/s | 548  B     00:00    
</span><span style="color:#323232;">Errors during downloading metadata for repository 'amdgpu':
</span><span style="color:#323232;">  - Status code: 404 for https://repo.radeon.com/amdgpu/5.4/rhel//main/x86_64/repodata/repomd.xml (IP: 13.82.220.49)
</span><span style="color:#323232;">Error: Failed to download metadata for repo 'amdgpu': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
</span><span style="color:#323232;">Ignoring repositories: amdgpu
</span><span style="color:#323232;">Last metadata expiration check: 0:00:43 ago on Tue 23 Jan 2024 04:14:52 PM EET.
</span><span style="color:#323232;">Dependencies resolved.
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;"> Package     Arch   Version
</span><span style="color:#323232;">                         Repository                                        Size
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Installing:
</span><span style="color:#323232;"> amdgpu-core noarch 1:5.4.50400-1510348.el8
</span><span style="color:#323232;">                         repo.radeon.com_amdgpu_5.4_rhel_8.7_main_x86_64_ 8.1 k
</span><span style="color:#323232;">
</span><span style="color:#323232;">Transaction Summary
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Install  1 Package
</span><span style="color:#323232;">
</span><span style="color:#323232;">Total download size: 8.1 k
</span><span style="color:#323232;">Installed size: 0  
</span><span style="color:#323232;">Is this ok [y/N]: y
</span><span style="color:#323232;">Downloading Packages:
</span><span style="color:#323232;">amdgpu-core-5.4.50400-1510348.el8.noarch.rpm     19 kB/s | 8.1 kB     00:00    
</span><span style="color:#323232;">--------------------------------------------------------------------------------
</span><span style="color:#323232;">Total                                            19 kB/s | 8.1 kB     00:00     
</span><span style="color:#323232;">Running transaction check
</span><span style="color:#323232;">Transaction check succeeded.
</span><span style="color:#323232;">Running transaction test
</span><span style="color:#323232;">Transaction test succeeded.
</span><span style="color:#323232;">Running transaction
</span><span style="color:#323232;">  Preparing        :                                                        1/1 
</span><span style="color:#323232;">  Running scriptlet: amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">ERROR: This package can only be installed on EL8.
</span><span style="color:#323232;">error: %prein(amdgpu-core-1:5.4.50400-1510348.el8.noarch) scriptlet failed, exit status 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error in PREIN scriptlet in rpm package amdgpu-core
</span><span style="color:#323232;">  Verifying        : amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">
</span><span style="color:#323232;">Failed:
</span><span style="color:#323232;">  amdgpu-core-1:5.4.50400-1510348.el8.noarch                                    
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error: Transaction failed
</span><span style="color:#323232;">[aapo@aapo-fedora ~]$ 
</span>
ABeeinSpace, (edited ) in What I've Learned This Week

This is really great info! I never knew Multipass existed, thanks for sharing.

For macOS, Homebrew can be used to selectively replace certain parts of the coreutils with the GNU versions

Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go

harsh3466,

You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.

It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!

genie, (edited ) in What I've Learned This Week

Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.

I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works

You may know this already, but I’ve found the man (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for file, sh, and bash that may help you track it down.


<span style="font-style:italic;color:#969896;"># simply type man [some-command]
</span><span style="color:#323232;">man file
</span><span style="color:#323232;">man sh
</span><span style="color:#323232;">man bash
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!
</span>

Manpages are local to your system so they’re extremely fast to pull up and searchable!

Here’s some online info on man if you’re interested:

(30 sec read) Unix stack exchange tips & tricks

(5 min read) It’s FOSS writeup

harsh3466,

Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down.

genie,

It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)

Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.

Cheers and happy tinkering!

harsh3466,

I agree, and I’d like to be there as well so that I can easily read and understand a man page.

AapoL, in Error when installing AMDGPU drivers on Fedora

Ok, update. I removed some improper repos that the amdgpu-install had installed and I got things mostly working. Only problem is that rendering in Blender on GPU crashes it and I can’t seem to get good logs for the problem. I will try to get some logs and post them here.

devnull406, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Connect via ssh to my home server from work

Using a cli torrent client to download stuff

Decide I need a VPN.

Install VPN again from CLI

Run VPN which disconnects my ssh connection

Even when I get home, the server is headless so I have to locate a keyboard and mouse before I can fix.

fl42v,

Dang, similar stuff happened to me on nixos. Had to instruct one of the relatives on how to reboot the machine and choose a previous generation in the boitloader 🤣

smitten, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes

Wow, yep. Totally trying this out. Currently I have a directory full of scripts to ssh into each of my servers. Kinda want to get rid of that.

Goun,

Interesting, do you mind giving an example on what those scripts do? Why not just put the hosts into .ssh/config ?

smitten,

Most of them are literally just “ssh name@host”, some of them open ssh proxies (I have a weird network setup)

Keep in mind, I didn’t search for any better way to do this before doing it.

tigerjerusalem, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

sudo apt upgrade -y

To this day I can’t figure out why it killed the GUI and all terminal commands on a Mint install…

Menteros,

I stay away from apt. apt-update for me has never messed like apt has.

Mayonnaise,

I’m relatively new to Mint, but I thought that sudo apt update just checked for updates and sudo apt upgrade -y was for actually installing the updates. I don’t see why that would break it though.

tigerjerusalem,

You’re right, I messed up - I always switch between the two, because “update” makes more sense in my head. I fixed the text.

thayer, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes

I appreciate the writeup and that you’ve taken the time to post about it here, however I am 100% leery of managing remote access or credentials using closed source software. I’ll definitely keep an eye on the project, but it’s a hard pass for me until the app is fully open source.

crschnick,

Alright that is understandable, everyone has a different attitude towards that matter.

maryjayjay,

Anyone who isn’t an idiot agrees with the person you’re replying to

stinerman, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@stinerman@midwest.social avatar

I’ve literally done the rm -rf / thing. I thought I was in a different subdirectory, but I was in / and did rm -rf .

When it didn’t return after half a second, I looked at the command again and hit CTRL+C about 20 times in the span of 3 seconds.

I had to rebuild the install, but luckily didn’t lose anything in /home.

Deckweiss, (edited ) in What I've Learned This Week

Well, if you didn’t replace grep with gnu/grep then you should call it belllabs/gnu/linux. Oh and don’t forget canonical for consistency: canonical/belllabs/gnu/linux

Keep in mind to sort the complete list by cpu cycles used by each of the projects on your specific system in ascending order. Maybe you can write a canonical/belllabs/gnu/linux script to automatically keep track and output an up to date string for easy proper nomenclature.

/s

davidgro,

I generally agree with the message behind this sarcasm, but in this specific case OP really is learning the GNU utilities in particular (via Linux) so I don’t mind the extra nomenclature.

Deckweiss, (edited )

except for grep and multipass, which aren’t gnu, and amount to half of the utilities mentioned in the post if I read it correctly 🤷

davidgro,

You’re certainly right about Multipass, but the grep included in Ubuntu does seem to be from GNU.

Jumuta, in Follow-up to installing Arch

have you turned off avx512

Hellmo_Luciferrari,

I have not, but I can look into how to do that. What would that do, if I may ask?

Jumuta, (edited )

it’s an instruction set only available in early 12th gen intel chips, so you can usually go into the bios and find settings to turn it off.

It’s because Linus really didn’t like it.

Hellmo_Luciferrari,

What benefit would disabling it have for someone such as myself?

Jumuta, (edited )

it just didn’t boot for me when that was enabled

Grangle1, in 4 reasons to try Mozilla’s new Firefox Linux package for Ubuntu and Debian derivatives | The Mozilla Blog

Is this Mozilla just essentially offering an alternative to the Firefox snap, or is there anything actually different in this package feature-wise compared to other packages (snap, flatpak, etc)?

jbk,

Probably not, what could even be different?

Shdwdrgn, in 4 reasons to try Mozilla’s new Firefox Linux package for Ubuntu and Debian derivatives | The Mozilla Blog

So does that mean they’re finally going to make clicking on the address bar compatible with the Linux method of doing things (a single click puts the cursor where you clicked, NOT highlight the entire address, which is completely different from every other application on the desktop)? Because this whole business of “we’re not going to fix this even though it previously worked correctly because we insist everyone should do things the Microsoft way” has been an annoyance for the past few years since they changed the basic function on that one thing.

AnUnusualRelic,
@AnUnusualRelic@lemmy.world avatar

I agree with you. There was a big outcry when they changed it, granted this was quite some time ago and the young ones here may not remember, but it’s still a break from the way everything else works.

But as usual, broken stuff becomes the new normal after a while.

n2burns, (edited )

So does that mean they’re finally going to make clicking on the address bar compatible with the Linux method of doing things (a single click puts the cursor where you clicked, NOT highlight the entire address, which is completely different from every other application on the desktop)?

I’ve never heard of this before, do you have a source for this? I got this same behaviour on Epiphany, Chrome, and Chromium, so it’s not just Firefox. Is there any web-browser that handles this the “correct” way?

Shdwdrgn,

I think it was around FF78 that they changed this behavior. Before that a single click just placed the cursor, double-click highlighted a word, and triple-click highlighted the entire address. This is the behavior for anything I click anywhere on my desktop (debian/mate) so I suspect what happened is the firefox devs decided to hard-code the behavior instead of letting the desktop handle it. I know there was a bug report for the issue which the devs repeatedly closed as won’t fix, at one point literally saying this was the way things worked in Windows and they were following that path for consistency across all operating systems, despite multiple examples given to show this was NOT the expected behavior on any Linux platform.

I’m not too surprised Chrome does this too, but it does make me wonder if Chrome following this path is the reason why the FF devs decided to copy it? Just because everyone else is doing it doesn’t mean that is the correct or expected behavior. ;-)

jjlinux, (edited )

Vivaldi does that crap too. I’m used to clicking the bar, and selecting from there. Vivaldi fucks it up by suddenly showing the “https://” part and shifting everything else to the right. So fucking annoying.

Shdwdrgn,

I found it annoying when FF no longer showed the http part of an address, but since nearly everything is on https these days it very rarely bounces back and forth for me any more.

eager_eagle, (edited )
@eager_eagle@lemmy.world avatar

wtf is this nitpicking

Every browser I tried does that. They’d be inconsistent if adopting a different behavior.

Idk about others, but most times I click the address bar I want to either copy the address, change it entirely, or search for something. Selecting the entire text just makes sense, especially on mobile where selecting things sucks.

jjlinux,

Maybe on mobile, I’ll give that the benefit of the doubt. But doing it in desktop is just ridiculous and annoying as hell.

eager_eagle,
@eager_eagle@lemmy.world avatar

I’d be more annoyed to have to click it 2 or 3 times in order to search for something.

Shdwdrgn,

They all do it NOW. They did not always do it this way. Firefox is what I’ve always used, so I know they used to let the desktop handle how clicks were managed. Literally anything else on my desktop, if I click once it simply places the cursor where I clicked. And since I need to copy partial URLs multiple times a day, this change is something that constantly aggravates me. Now I have to click the address bar four times quickly in order for it to finally place the cursor where I’m clicking at. It’s not nitpicking if they intentionally changed an operation to no longer follow the rules of everything else on the desktop. Being inconsistent is not user-friendly.

jjlinux,

(☝︎ ՞ਊ ՞)☝︎

Euphoma,

If you hold down the mouse button while hovering over the address bar, that starts selecting stuff. Is there a reason your usecase isn’t covered by this?

Shdwdrgn,

It certainly helps, that was already mentioned by someone else and wasn’t an option I was aware of.

eager_eagle, (edited )
@eager_eagle@lemmy.world avatar

Well, if they did it as you want it, a bunch of other people would complain they’re inconsistent because they’re the only browser that does that (today).

And what’s “everything else on the desktop”? I’m struggling to find more examples other than browsers and file managers. And a few popular file managers don’t even have editable text path inputs enabled by default, so you can’t even say this is a “rule”.

Shdwdrgn,

Open any document. Single click somewhere within that document. What do you expect to happen? Do you expect your cursor to be placed where you clicked, or do you expect the entire line to be highlighted? My guess is that you expect consistency in every application doing the same thing for a single click.

Just because one browser decided to change how they react, and everybody else copied that behavior, does not mean it is the correct or expected behavior. You’ve just gotten used to the difference that was forced on you, but imagine if every application on your desktop reacted differently depending on how many times you clicked a spot? What happens when they also start modifying the results of a right-click into something unexpected like clearing your cookies? Is that also OK just because one browser started doing it and every other browser copied that function?

eager_eagle, (edited )
@eager_eagle@lemmy.world avatar

The problem is you’re expecting consistency between elements that should not have consistent behavior for having completely different functions.

A line of text in a PDF, in a WYSIWYG editor, text in UI labels, and text in an address bar all have different roles and should be expected to behave differently, idk why you’re surprised for this “inconsistency”.

AnUnusualRelic,
@AnUnusualRelic@lemmy.world avatar

A single line text field in any interface doesn’t behave the same way as the single line text field in the address bar. It certainly does break conventions.

Shdwdrgn,

Maybe because it WAS consistent until the FF devs made the choice to change it? As I said before, if they decided to change the role of the right-click to no longer bring up a context menu, would you be ok with that as well? What about the difference between clicking on text in a browser article or clicking into a textarea? Those also have different roles, so if the devs decide that a user single-clicking into the textarea should automatically select the entire field, would that make sense to you? If I click on any text anywhere in any application, I expect to get the same results, and not have to remember how every application handles that click differently. Sure if I was clicking on something other than text then different actions might make sense in different applications, but the idea of a single click on the address bar selecting everything is akin to clicking an icon on my desktop and having all the surrounding icons also getting selected – it just doesn’t make sense and it’s not consistent with a single click in any other application.

octopus_ink,

Just want to say this has been a rollercoaster to read @eager_eagle and @Shdwdrgn. That is all.

eager_eagle,
@eager_eagle@lemmy.world avatar

Selecting the address with a single click does make sense for the reasons I listed in my first comment.

And it’s consistent across most applications that have an address bar nowadays.

It doesn’t need to be consistent with other kinds of text fields because that wouldn’t make sense.

Shdwdrgn,

So it’s ok that it works for your use-case and screw consistency? My point is that if you say it’s ok for one application to do things their own way, it basically invites every other app developer to ignore the standards and just do whatever they want. And no, single-click selecting the entire URL shouldn’t be considered a standard, it’s just something that changed in the last few years when one browser made the call and everyone else played follow-the-leader.

By the way, you mentioned that “all” of your browsers behave the same way . I’d like to remind you that Chrome, Chromium, and Safari all use the same engine so they’re basically the same thing. I think Opera stands alone but I don’t have that installed here so I can’t check it immediately. I’d ask if anyone had checked Exploder, but who in their right mind uses that except for work-related stuff where their developers can’t write HTML, and Microsoft is probably the ones who started this mess anything since they’re well know for ignoring standards. That really only leaves four unique browsers though. Not saying you didn’t consider this already, I just wanted to point it out in case you hadn’t.

If you want an example similar to an address bar, how about the current path in any file manager – I have Caja, Dolphin, and something called PCManFM here (not sure where that came from)? Once again, a single click does not select the entire path, it just places the cursor exactly where you clicked and nothing is selected. I can’t think of any other types of applications where you have some kind of a navigation bar, but that’s the closest example I know.

pixelscript,

imagine if every application on your desktop reacted differently depending on how many times you clicked a spot

yeah, wow, imagine. different applications using different design patterns for different contexts. perish the thought!

Is that also OK just because one browser started doing it and every other browser copied that function?

one browser did an arguably useful thing, every other browser agreed it was arguably useful, and it became a widely adopted feature? sounds ok to me. gee, it’s almost like this is how standard patterns come to be, or something…

tanuki, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

The first time I wanted to try Linux I did by installing elementary OS in dual boot mode (with windows) and everything went well, I played with it a bit and then I returned to Windows…

So, few days after that I realize that I have a lot of space in the Linux partition and I didn’t have plans to use it anymore so I go to drive’s & partition’s manager on windows to delete my elementary OS partition…

Oh Lord when I restarted my PC, grub was showing nonsenses and I couldn’t boot on windows again, I was in panic, I spent the rest of the day trying to fix grub to boot windows. At the end of the day I did it and save all my files and I uninstall grub properly, but what a day 😂

avidamoeba, (edited ) in 4 reasons to try Mozilla’s new Firefox Linux package for Ubuntu and Debian derivatives | The Mozilla Blog
@avidamoeba@lemmy.ca avatar

Finally doing what they should have done ages ago. If you leave packaging and backporting work to distro maintainers, you’ll get whatever they have the time for, whether they’re volunteers or employees. If the results are not okay for you - package it yourself.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #