linux

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

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.

1984, (edited ) in Thinking about making the big switch – recommend me a distro!
@1984@lemmy.today avatar

Pop OS is the best, from System 76.

pop.system76.com

gregorum,

Seconded

palebluethought, (edited ) in NixOS - neovim plugins

Not sure about 1, but 2 and 3 both have the same answer. Both TSInstall and Mason are just trying to install other software packages on your system, and you’re on NixOS, so of course they can’t do that. You don’t install your software, you declare it. Add the Treesitter parsers you need right next to your plugins (there is a sub collection under the vimPlugins collection just for Treesitter parsers), and put whatever Mason would be installing into your user packages instead.

That said, I agree with the other commenter. Even though the community has done a lot of work on rich config options for Neovim, they’re just too far away from the normal way of doing things in the Neovim world, and plenty of plugins are written in ways that assume it’s configured in “normal” ways. Plus configuring Neovim is already kinda like assembling your own car from parts in any case, so it’s honestly better to just use nix to install Lazyvim or whatever flavor of choice and let it handle the plugin management/config. And believe me, I really tried to do it all in Nix, I wanted to do it that way. But it’s just not worth the headache at this point

wwwgem, (edited )
@wwwgem@lemmy.ml avatar

Thanks for this feedback, it helps me feel a little bit less stupid :) With everything setup in NixOS documentation for neovim in appearance I thought really dumb to not be able to have it worked.

Using the approach proposed by @flashgnash (i.e. using lazy.vim) let me install neovim and all my plugins.

ScreaminOctopus,

It’s also a nightmare if you want your config to work with both nix and non nix platforms. If I’m using my config on windows or at work, I’m not going to have nix and home manager to interpret the nix version of my vim config. On my systems with home manager, I’d like be able to install my nvim config as part of home manager rebuild. If I have home manager pull my configs git repo, it causes lazy to freak out whenever I try to update my plugins. It’d be nice to have some sort of integration with lazy that exists with cargo and similar tools but it doesn’t look like anyone’s been working on it.

hojjat, (edited ) in how do i install the latest version of neovim (for nvchad) linux mint

I use bob. It’s a version manager for Neovim.

Shady_Shiroe,
@Shady_Shiroe@lemmy.world avatar

Hi Bob.

Sorry I had to do this reference from “For All Mankind”

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

Hate the clickbait article naming. Downvoted.

SquigglyEmpire,

Are you implying they list…less than four reasons?

Aurix, (edited )

No, because the headline has no information on what it is. And when I opened the site indeed it is devoid of informational content.

flashgnash, in NixOS - neovim plugins

Have tried this myself and never had much luck trying to install nvim plugins via nix.

I’ve found the best way is to just use the plugin managers built for neovim, I’m not sure if this applies to all of them but lazy.nvim seems to be fairly declarative anyway, have home-manager map a directory to .config/nvim/ and away you go

As a side note though I think it is rather silly just how many different neovim package managers there are, which at the end of the day all do the same thing in very similar ways

wwwgem, (edited )
@wwwgem@lemmy.ml avatar

Thanks for the feedback. I’m used to packer but it’s not maintained anymore so may be a good time to switch to lazy.
I’ll see if I can have it work in NixOS.

wwwgem,
@wwwgem@lemmy.ml avatar

It worked. Thanks! Just a question though: why is there instructions and all the packages in NixOS if it’s not yet reliable?

flashgnash,

I have no idea, from what I gather there aren’t all the packages

I’m not sure what if anything installing them via nix does I’ve just come to the realisation it’s already declarative so why would people bother getting it working under nix

Phoenix3875,

As other comments point out, they are usually not properly packaged through nix.

If you read the , for most plugins, the derivation just downloads the plugin, puts it to nix-store, and makes it available to the editor through environment variables. So it’s similar to the binary distributed software. Two most notable restrictions:

  1. Nix is not aware of transient dependencies.
  2. The plugin is not aware of the nix-store model.

So for plugins that don’t have external dependencies (or dependencies other than the “common” ones like python or sh that happen to be available), and that don’t interact with the filesystems, this approach would be fine, but the more complex ones would fail.

In your example, mason failed because of 1, home-manager wasn’t aware that the pip module is a transient dependency of this plugin; and treesitter failed because of 2, because it doesn’t know that nix-store is read-only and should be managed by nix.

There are no general solutions, but people may have nixified some plugins on a case-by-case basis. If you don’t want to spend a lot of time (and remember that it might be broken by the next plugin upgrade), as others have suggested, take the traditional plugin management approach. (Personally, I use LunarVim which uses Lazy.nvim and it’s been working fine.)

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

Not the installation strictly speaking, but my most “funny” fuckup was setting up xfree86. There was a configuration for crt monitor scan frequency that you had to setup. I messed up something and the monitor started to squeel like crazy and quickly hit hard reset in panic.

The monitor didn’t die, but it had a slight high pitch noise to it after.

aard,
@aard@kyu.de avatar

Back then I was testing modelines to see the maximum I could push to my 14" monitor. I then backed it with a 1200x1600 virtual screen.

My girlfriend got sick from watching me scrolling around and bought me a 19" display which could do that resolution - and ended up frustrated when I added a larger virtual screen.

hawgietonight,

A 19" monitor was quite big for the day, and expensive! I hope your gf didn’t beat you up too much for that :)

Delta_44,

I know little about crt because I was born in 2000. Can you explain why did the monitor started to make scary sounds?

I know that crt monitors didn’t have any method to report the supported frequency, aside from more recent models, correct?

hawgietonight,

Yeah, monitors were somewhat dumb, just received and did what the vga output asked to do.

The noise most likely came from the semiconductors that controlled the magnet field that directed the rays onto the screen. These components are selected for a specific speed that the monitor can handle. So going under or over it’s spec can make something resonate in the audible range, and could even destroy the components if stressed too much.

The thing is that for each resolution and refresh rate you had two values to configure, one for the vertical speed in Hz, and horizontal speed in kHz. These values were usually specified in the owners manual. Typos can happen, and this was quite a risky operation.

aard,
@aard@kyu.de avatar

A good starting point for a wikipedia rabbit hole covering the software aspects on how to drive a display: en.wikipedia.org/wiki/XFree86_Modeline

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

A few years ago I was having obscure audio problems on Ubuntu so I tried replacing pulseaudio with pipewire. I was feeling pretty cocky with using the package manager so I tried

sudo apt install pipewire

Installed successfully, realized nothing changed, figured maybe I had to get rid of pulseaudio to make it stick.

sudo apt remove pulseaudio

Just two commands. Instant black screen, PC reboots into the terminal interface. No GUI. Rebooting again just brings me back to the terminal.

I fixed it eventually, but I’m really not very computer literate despite using Linux, so I was sweating bullets for a minute that I might have bricked it irreversibly or something.

xavier666,

I feel like you can fix linux as quickly as you can fuck it up

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

I once did an apt-get upgrade in the middle of when debian testing was recompiling all packages and moving to a new gcc version. I get it, using testing invites stuff like this. But come on, there should at least be a way to warn people beforehand.

fl42v,

That’s kinda weird: shouldn’t they recompile everything first and then replace repos’ contents?

xavier666,

Me: I want to change my car tire

Car: Hey, your car is going at 60 mph now. Do you want to change your tire now?

Me: Is it not possible?

Car: It’s your car, anything is possible with enough effort. As per Google one guy managed to change a tire of a bullock cart while it was moving at 2 mph.

Me: Sounds good. Let’s gooo!

This is the experience for Linux tinkerers.

quantumfoam,

In my case it was:

Me: I want to change my car tire, and i naturally assume we are parked safely in the garage. This is a routine maintenance thing after all.

Car: Sure thing! bork

Me: Umm, why are wrapped around a tree?

Car: Well, we were currently going 60mph, and we posted about it on this website.

Me: Why is there no warning that tells me that doing maintenance now will crash my car?

Car: Well like i said, there is, and it is on this website you should have gone to.

xavier666,

and we posted about it on this website.

In my personal experience, these sort of things happen rarely, unless you are using some sort of rolling-release distribution. For all my mission-critical docker apps, I wait for at least a week after a major update has been pushed and check the dev website.

hallettj, (edited ) in NixOS - edit system files
@hallettj@beehaw.org avatar

I did some digging around in the manual, and I tested this option which seems to work:


<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;
</span>

On my machine that adds this line to /etc/pam.d/doas:


<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)
</span>

Edit: Note that the NixOS option puts in the full path to pam_fprintd.so. That’s necessary because NixOS doesn’t put so files in search paths.

Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is here; there might be something in there that would work.

wwwgem,
@wwwgem@lemmy.ml avatar

Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one.

wwwgem,
@wwwgem@lemmy.ml avatar

Just realized that I had this line in my config already but the change was not applied until I reboot. 😳

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.

Here’s the options that get added using the public options including fprintAuth: github.com/NixOS/nixpkgs/blob/…/pam.nix#L621

wwwgem,
@wwwgem@lemmy.ml avatar

Thanks! I’m still not used to the diversity of all the NixOS documentarian and was not aware that arbitrary options can be found there.

hallettj,
@hallettj@beehaw.org avatar

Although they’re not in the search, they are in the manual so you can find them searching that page. This one is listed as,


<span style="color:#323232;">security.pam.services..fprintAuth
</span>

But it does take some inferences to find this, and to realize that you can put doas in place of ``

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

No, that one is in the search as well. It’s a normal option. search.nixos.org/options?show=security.pam.servic…

What isn’t and also isn’t in the manual is the rules options. Those are all internal.

wwwgem,
@wwwgem@lemmy.ml avatar

As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯_(ツ)_/¯

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.

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

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

Back when I started using Linux, I really wanted something that was super different from windows (I used Gnome 3 for like 3 years). I decided one day to try out Fedora cause, hey, I can live on the bleeding edge.

Second day I had it installed, I was having issues with the audio. Decided to try reinstalling pulse. Apt autoremoved it and somehow completely nuked the entire GUI. Stuck in terminal mode, I found that I had no ethernet to connect to, nor could I figure out how to connect to a wifi network with a password or download packages to a USB. After a couple hours, I gave up, wiped the drive, and went back to Mint.

Nowadays I’m happier in my little comfort zone.

ethanolparty,

Same thing happened to me! I was on Ubuntu, trying to replace pulse and when it got removed instantly kicked me to the terminal. Eventually I fixed it but now I also just Mint, lol

ikidd, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes
@ikidd@lemmy.world avatar

I see an issue about providing sudo credentials that has been resolved as “implemented” but I can’t figure out where you do that for a connection that you’ve ssh’d into as a user.

Any pointers?

crschnick,

It uses the sudo credentials from the SSH connection, even if you don’t need to provide a password to login. So if you set a password for a SSH connection, it should use that for the sudo elevation.

ikidd,
@ikidd@lemmy.world avatar

Ah, OK. I thought that was just for the connection setup only.

surfrock66, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes
@surfrock66@lemmy.world avatar

Have you considered embedding a terminal editor in the actual program? I use mRemoteNG on windows, and the integrated rdp/ssh with a sidebar full of bookmarks is the dragon I’ve been chasing on linux.

If this had remmina and vnc, and could embed terminals, it’d be a huge feature jump in my book (though it’s already great as a better way to manage my ssh sessions)

crschnick,

As a sole developer I have to prioritize features due to the time constraints. While I would definitely like to implement support for everything you listed, this would be a lot of work. For example with terminals in general, it can be very difficult to get one up to the standards of other comparable terminals. By delegating everything to other terminals, I can make the development easier.

So in the long term future this might be added. But that also depends on the project’s trajectory going forward

surfrock66,
@surfrock66@lemmy.world avatar

For sure for sure. What is your preferred mechanisms for feature requests? Small things, like in the browser pane, could we get buttons to launch terminals directly in the connections tree on the left, so I can launch the terminal without having to open the file browser for that connection, or likewise, adding a link in the connections pane to jump straight into the file browser? I envision a workflow where I keep 1 view open and can launch into file browsing or terminal directly from that view.

crschnick,

You can send me feature requests either on GitHub, Discord, or mail, whatever you like.

Your proposed enhancements make sense, I can already think about how to add this the best way. And if you want to open a proper feature request and elaborate more on that, we can make that happen for sure.

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