linux

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

Penguincoder, (edited ) in Is there such a thing as split-screen grep?

Your request goes against the unix philosophy. Grep does one thing and does it well. If you desire additional functionality, you should add another utility to accomplish what you want.

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | grep denied

In your specific task, utilize bashims to do (what I think) you want:

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ || echo “task failed”

dario, in What are your opinions of Guix?

Parabola GNU/Linux-libre user here. On paper, GNU Guix System looks exactly what I want from an operating system. The problem I have with it is the software repository full of severely outdated packages. Heck, last time I checked GNOME was three major versions behind. This is a deal breaker for me. It’s a downside that I don’t see coming up often in discussions.

canadaduane,
@canadaduane@lemmy.ca avatar

This is the case for me as well. I tried NixOS this weekend, and even though it has more adoption than Guix, it still does not have 100% coverage of all software I wanted. That said, the packages I did install were pretty up-to-date. I guess NixOS is as close to “critical mass” as we’ve got when it comes to this type of OS. But if I were a wizard devops type person with more time, I’d probably enjoy Guix more.

dai,

I’ve found that the unstable branch of nixos has almost all the packages that I want / need at the bleeding edge. For more obscure packages I build from source.

Interested to hear what packages you were chasing that are outdated / not present.

CanadaPlus, (edited )

It’s a bit of a nitpick, but I’d argue there’s more than one critical mass, and NixOS is already there for the purposes of tinkerers and some early adopters. General Linux people are next, and it’s probably not quite there, which is I think what you’re getting at.

Since it’s the frontrunner as you point out, I have high hopes it will make it.

CanadaPlus,

Keeping a community going is a beast all on it’s own, which is probably what’s missing. Lemmy was pretty dead before Reddit refugees arrived too, or so I hear.

69420, in How i can sign .pf2 files for using them with GRUB?

I’ve never had to sign font files, but I imagine you would use the same keys you used to sign your bootloader. sbsign is what I use to sign EFI Stubs.

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

sbsign fails with the error “Invalid DOS header magic”

69420,

Apparently sbsign is only for signing kernel images. You may be able to sign fonts using gpg.

prettydarknwild,
@prettydarknwild@lemmy.world avatar

how i can do it?

Adanisi, (edited ) in New Linux user here. Is this really how I'm supposed to install apps on Linux?
@Adanisi@lemmy.zip avatar

Download the .deb and double click it. mullvad.net/en/download/app/deb/latest

People seem to be making this a more difficult job than it needs to be. Yeah I get we’re powerusers but can’t we drop that for 2 minutes while giving advice so a new user can actually get a job done quickly? Windows EXEs don’t automatically update either. Sure it might not be the best way to do it but it’s fast and not confusing. (EDIT: Apparently this specific program actually has it’s own auto updater)

Things take time to learn. Throwing all of the existing knowledge of repo management at a new user at once does not work.

princessnorah,
@princessnorah@lemmy.blahaj.zone avatar

Probably better to link the downloads page, rather than the direct download link: mullvad.net/en/download/vpn/linux

Blue_Morpho,

It’s funny how quickly Lemmy turns on a dime between “Linux is easier than Windows” in threads about adopting Linux to “spend some time learning the terminal” when presented with a question that should be a single click (installing an app).

Before the hate train starts, I’ve been using Linux off and on for 30 years now. And I still struggle with making distros do things that shouldn’t be that hard because they aren’t hard in Windows.

Adanisi, (edited )
@Adanisi@lemmy.zip avatar

In this case, to do the exact same as Windows, it literally is just a click.

To auto-update from a repository, it’s a similar deal in Windows.

In this case, they’re the same. Repos are preferred in GNU/Linux and installers in Windows, but both can do both.

where_am_i, in New Linux user here. Is this really how I'm supposed to install apps on Linux?

This is a troll, clearly. Purge this guy.

jackpot,
@jackpot@lemmy.ml avatar

?

Opisek, (edited ) in Terminal Utility Mega list!

I’d like to suggest:

kugmo, in Is DNS Bloat too?
@kugmo@sh.itjust.works avatar

Embrace GNS.

Alborlin, in New Linux user here. Is this really how I'm supposed to install apps on Linux?

My advice is get zorin or popos and see if there is installer in their software store. I am a new user like you are well and this sense to be common, i resroted to keep it on old laptop ,as server so in install and thin necessary things and then dinner user it at all. Linux Community on Lemmy is humbug, they will downvote as soon as you say Linux is not for regular person

StrangeAstronomer, in Is there such a thing as split-screen grep?

I daresay there’s a way to do something like this with fzf

notabot, in Is there such a thing as split-screen grep?

Tmux is a very helpful terminal multiplexer, meaning it can split your terminal into multiple panes. So, create two side by side panes, then one way of doing it is:

  • on the left, run your cmd | tee >(grep ‘denied’ > error.log)
  • on the right, run tail -f error.log

The tee process takes it’s standard in, and writes itbto both standard out, so you see all the lines, and the path it’s been given. The >(…) operator runs the grep in a subprocess, and returns the path to it’s standard input pipe, so grep receives every line, and writes the denied lines to a log file which you display with tail in the other pane.

Rather than using a file for error.log you could also use a named pipe in much the same way.

canadaduane,
@canadaduane@lemmy.ca avatar

Thanks! I’m curious if there is a way to do this as a one-liner?

notabot,

Sorry for th slow answer, I’ve been away. There is a way, if it’s still useful to you:

First, create a named fifo, you only need to do this once:


<span style="color:#323232;">mkfifo logview
</span>

Run your rsync in one pane, with a filtered view in the second:


<span style="color:#323232;">tmux new 'rsync ...options... |& tee logview' ; split-window -h 'grep "denied" logview'
</span>

Replace …options… with your normal rsync command line.

That should give you a split view, with all the normal messages on the left, and only messages containing ‘denied’ on the right.

The |& makes sure we capture both stdout and stderr, tee then writes them to the fifo and displays them. split-window tells tmux to create a second pane, and display the output of grep.

canadaduane,
@canadaduane@lemmy.ca avatar

Thanks!

bfg9k, (edited ) in Is there such a thing as split-screen grep?
@bfg9k@lemmy.world avatar

Funnily enough Astrogrep on Windows is great for this

ikidd, in Terminal Utility Mega list!
@ikidd@lemmy.world avatar

I’ve been playing with SSHwifty for a centralized browser based terminal gateway. You set up the docker and can then use it as a central gateway for ssh servers in your networks.

The setup is a bit opaque but the maintainer looks really helpful in the Issues pages.

skillful_garbage, in New Linux user here. Is this really how I'm supposed to install apps on Linux?

Download the .deb from their downloads page and run it, just like you would either a .exe on Windows. Their instructions list that as an option further down on the page. Should be higher up imo

library_napper,
@library_napper@monyet.cc avatar

They probably lowered it became mullvad is a security company and downlaoing .deb files from the Internet ia a vector for attack

flashgnash, in Terminal Utility Mega list!

I love that the terminal based browser depends on firefox

GenderNeutralBro, in New Linux user here. Is this really how I'm supposed to install apps on Linux?

That page lists multiple installation methods, for multiple distros. There simplest one for you is just two steps.

  1. Download .deb installer
  2. Run apt install ~/Downloads/MullvadVPN-*_amd64.deb

It’s not that complicated. That’s just confusingly written. And caters to a wide range of users.

library_napper,
@library_napper@monyet.cc avatar

Its more secure to go through a package manager. Checking signatures is important.

GenderNeutralBro,

You can verify the signature of the manual download as well. Either way, you are trusting the files you download over HTTPS from mullvad.net. There’s no real difference, except that when you use the repo, you are trusting it indefinitely, whereas if you download the deb directly, you are only trusting it once.

Using the repo is less secure, because it opens you to future attacks against the repo itself.

library_napper,
@library_napper@monyet.cc avatar

Https is vulnerable to loads of attack. That’s why we sign packages.

GenderNeutralBro,

You’re downloading the signing key over HTTPS either way, from the same server. That’s the common point of failure.

library_napper, (edited )
@library_napper@monyet.cc avatar

That’s why you download the key from multiple distinct domains from multiple distinct locations using multiple distinct devices and veryify their fingerprints match. If the key/fingerprint is only available on one domain, open a bug report with the maintainer.

GenderNeutralBro,

Agreed.

Unfortunately, Mullvad’s instructions just have you download the key from mullvad.net and add it in with no further validation.

You can also get it from their GitHub page, at least for the individual debs. Not sure if they have the repo key on GitHub.

where_am_i, (edited )

bad advise, OP should use a repo if they have apt

edit: yes, I understand, one day I’ll get rooted by whoever hacked the VPN app’s servers

GenderNeutralBro,

There’s nothing wrong with installing a .deb manually.

Personally, I’d hesitate to add any third-party repos unless there is a very good reason. In this case, the only real difference is that you won’t get the updates automatically with sudo apt update; sudo apt upgrade without the repo. Either way, the desktop app will notify you when updates are available. There’s very little advantage to using the repo.

Adding a repo is very rarely required. It has deeper consequences than simply installing an app, and requires a higher level of trust. If you don’t understand the security implications of adding a repo (and its associated key), then my advice is: just don’t.

library_napper,
@library_napper@monyet.cc avatar

Yes, there is. You’re risking downloading malicious software.

BoneALisa,
@BoneALisa@lemm.ee avatar

What are you on about? If you are using the 3rd party repo, you are just as likely to get malware than if you download the deb directly from the wbsite. Its literally the same thing, just adding the repo means that the malware could get installed automatically and without you knowing where it came from.

library_napper,
@library_napper@monyet.cc avatar

No, you’re confusing two vectors of attack. I’m saying that if you fan trust the vendor, then you’re still at risk from downloading malicious software that was manipulated between the vendor and you (man in the middle attack), unless you verified a signature using a key stores offline (note https is still vulnerable because the keys are stored online)

BoneALisa,
@BoneALisa@lemm.ee avatar

Not untrue, and I don’t think that the possibility should be glossed over, but honestly, what do you think is more likely: this specific person getting specifically MitM’ed by a bad actor, or a bad actor taking control of a repo that hundreds of people blindly trust. I have a sneaking suspicion that OP’s threat model isn’t sophisticated enough to need to really, truly, be worrying about that.

library_napper,
@library_napper@monyet.cc avatar

This sort of thing happens dragnet. And mullvad users are definitely a group to be targeted. Dont assume OP isnt a refugee or journalist and give them bad advice that could get them killed

BoneALisa,
@BoneALisa@lemm.ee avatar

If OP is a journalist or refugee at risk of being targeted and killed, my advice is don’t use a VPN, use TOR lol.

Falcon,

The Deb and ppa will have the same content, the ppa is just automatic, assuming the owner maintains it.

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