linux

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

lemmyvore, in With Firefox on X11, any page can pastejack you anytime

There’s one tiny little problem with the hijack scenario – people only ever paste from the primary selection immediately after selecting something themselves (and thus overwriting whatever was in there). That’s precisely because the primary selection is so easy to overwrite (basically when you select anything), so you want to select and then immediately paste so you don’t lose it.

So in reality this scenario in which a random page injects something in the primary selection and the user pastes it sometime later in a terminal, of all things, probably has like a million to one chance of occuring.

PS: Also, just for trivia, any user who’s been around the console for a while will hit Ctrl+C out of reflex when confronted with unexpected output, not Enter.

Whatnot, in Help me choose a distro, please!

I’m a beginner Linux user, without background in informatics, but after trying many distro, Ubuntu, Ark, Manjaro… the easiest to maintain and work as needed is Debian for me.

hiddengoat, in Help me choose a distro, please!

Fucking any of them. Seriously. It doesn't really matter. Eventually you'll come to the realization that until you're talking about oddball shit designed for one douchebag's personal proclivities it's all the same shit under the hood. They just have fourteen incompatible package managers because, again, douchebag personal proclivities.

Jumuta,

but just don’t choose Manjaro

chicken, in With Firefox on X11, any page can pastejack you anytime

this is not a real security issue

This could be a huge security issue for anyone doing cryptocurrency stuff

ClemaX, in With Firefox on X11, any page can pastejack you anytime

Maybe Firefox needs to add a new “Clipboard access” permission that can be granted on a site-per-site basis. When disabled, simple highlight and copy could still be enabled if hidden text cannot be added in between normal text.

The same permission model could be used system wide, but I do not think that such a feature exists on the X server or Wayland. Maybe using a wrapper that runs before the Desktop Environment?

wgs, in [Question] Which shell prompt do you use and why?
@wgs@lemmy.sdf.org avatar

I’m on the boring side…

https://lemmy.sdf.org/pictrs/image/8c7134f6-39df-43d2-a6d4-9b4fb8a4ba5c.png


<span style="color:#323232;">PS1="% "
</span>

I like it though, it gives me more room for commands !

hellfire103, in [Question] Which shell prompt do you use and why?
@hellfire103@sopuli.xyz avatar

I use Zsh with the Oh My Zsh! framework, and I use a different theme depending on which subuserland I’m in, by customising ~/.zshrc. For example, I use the gentoo theme on Debian and its derivatives, agnoster on NixOS, darkblood on Arch, strug for Mageia, apple on my macOS device, aussiegeek on FreeBSD, and gallifrey on OpenBSD. Different themes helps me remember which package manager to use and which distro-specific commands will work.

I’ll send some screenshots in a bit, when I boot up my PC.

I like Zsh because of its tab completion and command history. I also quite like its plugins.

Before anyone asks, I have tried Fish before, and I prefer Zsh. I have tried configuring Bash before, and I prefer Zsh. I have played with Ksh and Tcsh on BSD, and I prefer Zsh. I used PowerShell a long time ago, and I prefer Zsh.

idefix, in Flatpak standing the test of time: modern Flatpak apps running on Ubuntu 16.04 ESM, a 7-year-old distro

Having a rock-solid Debian stable as a desktop with up-to-date softwares when it matters. It sounded impossible a few years ago but that might be achievable now with Flatpak. That’s awesome.

smileyhead, in With Firefox on X11, any page can pastejack you anytime

JavaScript was a mistake.

LufyCZ,

Yes, pure html pages are so much better and nicer to use!

ProgrammingSocks, in With Firefox on X11, any page can pastejack you anytime

Wow am I glad for my NoScript usage right now. I’m definitely going to be even more restrictive after this.

CameronDev, in MIcrosoft teams

The web interface still works? Might need chrome for it to work, it was broken in firefox last time i tried it.

Dotdev, in MIcrosoft teams
@Dotdev@programming.dev avatar

Well you can use the web version.

vivia, in How Ubuntu Linux snuck into high-end Dell laptops (and why it's called 'Project Sputnik')

Earlier this year I was given one of those XPS machines with Ubuntu and decided to install Debian on it. The camera driver was so bad - I can’t remember technical details but you can’t simply get it to run on another kernel, it was a mess of hacks to get it to work. I decided I won’t get a camera driver. “We ship a laptop with Ubuntu” does not necessarily mean working Linux drivers.

EDIT: To add insult to injury, the touch bar suddenly decided to stop responding to input. It’s already bad enough to not have tactile feedback for Esc / Fn keys / Delete / Print Screen.

xcjs,
@xcjs@programming.dev avatar

I bought a used 2018 model over a new current model because of the lack of physical function keys.

Also, Dell, bring back Fn + Left for Home and Fn + Right for End!

Who looked at a great keyboard layout and decided, “I know! I’ll make this Developer Edition hardware more difficult to develop on!”

Pantherina,

Crazy! So it was only the ubuntu kernel, with some akmods or PPA?

vivia,

You needed: kernel driver, closed source userspace driver, GStreamer plugin, v4l2 loopback driver, v4l2 relay daemon copying frames from the GStreamer source into v4l2 loopback. Technically I could have made it work, I just decided not to.

launchpad.net/~oem-solutions-group/…/intel-ipu6github.com/intel/ipu6-camera-bins

Pantherina,

Damn Dell. What the fuck XD

sebastiancarlos, in [Question] Which shell prompt do you use and why?

https://lemmy.sdf.org/pictrs/image/938229ad-4c04-413b-b2ae-18925e5b0e6e.png

.bashrc:


<span style="color:#323232;"># Prompt
</span><span style="color:#323232;"># "Make it simple, just the dollar sign"
</span><span style="color:#323232;"># "Say no more, fam"
</span><span style="color:#323232;"># - if error code is not 0, then prepend [N] where N is the error code
</span><span style="color:#323232;"># - if user is root, use red and #
</span><span style="color:#323232;">blue='e[34m'
</span><span style="color:#323232;">red='e[31m'
</span><span style="color:#323232;">bold='e[1m'
</span><span style="color:#323232;">reset='e[0m'
</span><span style="color:#323232;">PS1='$( status=$?; [ $status -ne 0 ] &amp;&amp; echo "[$status] ")['"$blue""$bold"']$['"$reset"'] '
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [[ $EUID -eq 0 ]]; then
</span><span style="color:#323232;">  PS1='$( status=$?; [ $status -ne 0 ] &amp;&amp; echo "[$status] ")['"$red""$bold"']#['"$reset"'] '
</span><span style="color:#323232;">fi
</span>

.inputrc:


<span style="color:#323232;"># vi mode, change to 'emacs' here if you prefer
</span><span style="color:#323232;">set editing-mode vi
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi INSERT prompt
</span><span style="color:#323232;">set vi-ins-mode-string "1e[30;44m2 INS 1e[0m2 "
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi NORMAL prompt
</span><span style="color:#323232;">set vi-cmd-mode-string "1e[30;47m2 NOR 1e[0m2 "
</span>
afk, in Xwayland rootful - part1
@afk@ttrpg.network avatar

I wonder if this would help with HiDPI monitors and Xwayland apps looking blurry

afk,
@afk@ttrpg.network avatar

Turns out that kind of?

Xwayland rootful - part 2 …blogspot.com/…/xwayland-rootful-part-2.html

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