linux

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

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?

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.

feoh, in Ruffle (a open source re-implementation of adobe flash player) reviews improvements made in 2023

This project just warms the cockles of my nerdy old heart :)

Bringing a crappy CRAPPY old protocol to life with awesome, secure, new 100% FLOSS technology so boatloads of homegrown art and culture can be saved?

YES PLEASE! :)

maness300,

But I thought ppl didn’t do work for free…

feoh,

They certainly can if it’s a passion project! :)

Kanedias, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@Kanedias@lemmy.ml avatar

Just straight up overwriting boot sector and superblock of my hard drive thinking it’s the USB drive.

Udev tried to warn me, saying there’s no permission, and I just typed sudo without thinking.

Then after a second I remembered USB block devices are usually writable by users, but it was too late.

Jordan_U,

USB block devices containing mountable filesystems (on Desktop systems) can generally have those filesystems mounted and files written to them by regular users; But the block device itself stays only root writeable.

So, you need root privileges either way.

(Going from memory, but also decently confident)

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

This thread should be renamed to 101 reasons why business give Windows or Macs to their employees.

fl42v,

It’s not like you can’t shoot yourself in the foot while using windows (not sure about macs, tho, but likely just as well). I remember breaking windows countless times while figuring out what service crap can be disabled, removing edge or defender, yada yada.

On the contrary, in my experience, if you’re not actively messing with linux, it’s overall more stable than windows. Like I had to install windows on an actual machine a short while ago, and it was a clusterheck. Drivers failed to auto install (touchpad/trackpoint drivers, for Chaos’s sake), random bsod after an hour or so of normal use, etc. As for linux breaking on itself, I remember like 3 times that happened with me in my ~5 yrs of daily driving different distros, and 2 of those were fixable by switching to a tty (the 3rd didn’t boot, as far as I remember, due to some incompatibility between bedrock and arch).

iegod,

A system update broke a dependency for libre Sprite, which hasn’t had an update in like two years. You can say they should but let’s be real, my apps shouldn’t break with an update. One of my laptop needs was portable graphics creation. This broke one of my major use cases. Yay.

Adanisi,
@Adanisi@lemmy.zip avatar

Some Windows updates completely break the whole system. It’s not unique to Linux based systems.

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!

jordanlund, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@jordanlund@lemmy.world avatar

Not me, but one I saw… dude used chmod to lock down permissions across the board… including root… including the chmod command.

“What do I do?”

🤔

“Re-install?”

Kjev,
@Kjev@discuss.tchncs.de avatar

oh… uh…

elkalbil,
@elkalbil@jlai.lu avatar

You could boot on an USB, mount the filesystem and change the permissions. But if the dude changed a whole lot of permissions, reinstalling might be the smart thing to do…

jordanlund,
@jordanlund@lemmy.world avatar

Changed it all to 000. ಠ⁠_⁠ಠ

stackoverflow.com/…/who-can-access-a-file-with-oc…

cmnybo,

I managed to do that back when I was new. Luckily it was a fresh install, so I didn’t lose much when I had to reinstall.

So far, that has been the only time I really screwed something up outside of a virtual machine.

captainjaneway,
@captainjaneway@lemmy.world avatar

There’s got to be other tools though that could change the file permissions on chmod, right? Though I suppose you’d need permission to use them and/or download them.

fl42v,

You can dump the permissions from the working system and restore them. Quite useful when working with archives that don’t support those attributes or when you run random stuff from the web 😁

Petter1, (edited )

Many distros offer a automated file/directory ownership restore feature on their liveOS

fl42v,

Yeah, a very unfortunate one: probably, the most painful to recover from. I’d just reinstall, honesty 😅 At least with mine I could simply add the necessary stuff from chroot or pacstrap and not spend a metric ton of time tracking all the files with incorrect permissions

rhys,
@rhys@rhys.wtf avatar

@jordanlund @fl42v I think this one could be recoverable if they had a terminal still active by using the dynamic loader to call chmod — or by booting from a liveCD and chmodding from there.

That'd likely get you to a 'working' state quickly, but it'd take forever to get back to a 'sane' state with correct permissions on everything.

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

Exactly. There’s no way to even know what the previous permissions were for everything.

They were TRYING to recursively change permissions in a single directory, accidentally hit the whole system. :(

sxan, in How to fool a laptop into thinking a monitor is connected?
@sxan@midwest.social avatar

Is it getting stuck in the BIOS? If you can’t ssh in, can you even ping it? Network should come up before graphics.

Have you disabled the display manager?

As someone eles mentioned, boot it with a screen and check the BIOS. Since this was a laptop, the BIOS is certainly expecting a display, so you might have to adjust something there.

tubbadu,

Yes I can ping it!

Have you disabled the display manager?

yep, I did `systemctl set-default multi-user.target’

As someone eles mentioned, boot it with a screen and check the BIOS. Since this was a laptop, the BIOS is certainly expecting a display, so you might have to adjust something there.

I already looked into the bios but it was pretty empty, just a few options, nothing about displays or graphics card

but now I have a doubts, perhaps there is a “show advanced settings” button somewhere that I didn’t see? I have to look for it

sxan,
@sxan@midwest.social avatar

It could be Linux, too. Some distros have fancy boot graphics - look for something called “plasma” - not the KDE one, but a different one - and uninstall or disable that. It’s a common thing that hides the boot log behind a logo-and-progress bar. Arch doesn’t use it, so I haven’t seen it in years, but IIRC it can cause problems on headless systems.

teawrecks,

Most likely it’s hard coded in the firmware and not exposed as a BIOS option because the OEM didn’t ever think anyone would run into this. The dummy plug is your lowest effort workaround. Hope that works, good luck!

tubbadu,

Thanks!!

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

Accidentally deleted system Python, which on GNOME meant my DE was toast as well. Luckily very freshly set up, so no harm done.

Related note, add this in your shell profile:

bash
export PIP_REQUIRE_VIRTUALENV=true

proper scripting language
set PIP_REQUIRE_VIRTUALENV true

Delta_44,

What does it do? Is it some kind of failsafe?

WalrusByte,
@WalrusByte@lemmy.world avatar

Makes it so when you install packages with pip, it will only work if it’s using a virtual environment. This keeps any installed packages separate from ones your system uses.

If you want to learn about python virtual environments, check this out.

Delta_44,

Nice! Thanks!

the16bitgamer, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@the16bitgamer@lemmy.world avatar

stupid was when I wanted to test Linux Mint on an external SSD, and didn’t check that the bootloader wasn’t going to overwrite my internal drive’s.

So anyway I’m running Linux Mint now.

fl42v,

That’s an interesting way to distro hop for sure

martinb,

It’s a fine distribution. I have it on my desktop and at least one laptop. But yes, a weird way to decide to distro hop 🤣

the16bitgamer,
@the16bitgamer@lemmy.world avatar

I was on Manjaro, and I didn’t want to put the effort in for a third time just to break it again. While I prefer arch based distros, I’ve been liking Mint since I can almost use it without a terminal like manjaro.

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

Installed python3 before it was made the native python on the dist. Half broke everything, including apt & python. So I uninstalled it, and then everything was broken. Finally got python3 reinstalled, and lived with it kindof working & awful distribution updates.

I have finally freed myself of that prison last month, by nuking everything and starting fresh.

martinb,

You can have both python 2 and 3 on the system. It just depends upon which is the default as to how much you break it 👍 The symlink to /usr/bin/python is the important bit for most software. For deb-based at least, update-alternative is your friend.

HotChickenFeet,

I’ll happily say I must have overlooked something, but I did try using update-alternatives. I don’t remember all the nuts and bolts from the start, but it involves python3 and distribution upgrades. I spent a good number of nights over the years trying to unmess it up, and am happy to never think about it ever again.

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

Why would I want to use this instead of AWS Session Manager? I have a policy of no SSH enabled on any of my servers. Is this compatible with SSM connections too?

crschnick,

The screenshots are just sample connections, you can connect to arbitrary systems via SSH so it is not really a tool intended specifically for AWS.

Obviously if you are using taylor made tools for AWS by amazon itself, XPipe can probably not compete with that in terms of features. This is more of a general purpose application that you can use with any servers, virtual machines, containers, and more.

Deebster, in Mozilla Firefox 122 Is Now Available for Download, Here's What's New
@Deebster@lemmy.ml avatar

In addition, the “Search Bar” settings in Settings > Search, which let you choose between using the address bar for search and navigation or add the search bar in the toolbar, is also gone in Firefox 122.

This doesn’t affect me, but I’m sure there’s going to be a vocal tiny percent that absolutely hate this news.

Spectacle8011,
@Spectacle8011@lemmy.comfysnug.space avatar

Motherfuckers!

kbal,
@kbal@fedia.io avatar

A quick look at the documentation seems to indicate that they have not removed or officially deprecated the feature, only made it more complicated to configure it.

soulfirethewolf,

Average Mozilla development

kbal, in Mozilla Firefox 122 Is Now Available for Download, Here's What's New
@kbal@fedia.io avatar

will finally ship with a DEB package for Debian-based distributions

That's good news for the more specifically Ubuntu-based distributions and their users. I trust that Debian will continue to build its own packages.

SuperSpruce,

Interestingly, just today I switched Firefox from a snap to a deb due to the limitations of the former on Ubuntu.

wiki_me,

I had some issues that happened on debian and not on firefox nix package, maybe debian packaging is not great and this can help improve it.

kevincox,
@kevincox@lemmy.ml avatar

It may still be nice to have a reference implementation. For example maybe they can see if there are extra hardening options that they can enable or adopt the more seamless update flow.

Ephera,

Yeah, really happy about this. $WORKPLACE uses Ubuntu and the Snap is just mildly broken in multiple ways. The .tar.bz2 works, but we would have had to script the download + creation of the .desktop file. We successfully procrastinated doing the latter long enough, that Mozilla fixed it.

Adanisi, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@Adanisi@lemmy.zip avatar

Writing and running a script to delete the first 2 characters from all files and folders recursively.

It started backtracking to my home folder. :/

siha,

at’s a funny story, hope you got everything backed up

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