linux

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

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

Couldn’t you just check the rsync exit codes? echo $? check if both return 0?

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

Chance that your Ubuntu version already supports OpenVPN and wireguard (check your settings -> network). If so, just download wireguard/OpenVPN config files from mullvad: mullvad.net/account/openvpn-config?platform=linux

doppelgangmember, in Happy 1704067200 seconds since 1970

This is so Gnu to me!

bjoern_tantau, in Is there such a thing as split-screen grep?
@bjoern_tantau@swg-empire.de avatar

I usually solve this kind of problem by piping to less or a logfile and then just searching in there. You can get it to refresh new content by pressing the End key twice. Or maybe less just needs the -f flag or something similar. I’m too lazy to look it up.

savedbythezsh, (edited )

less can enter a grep-like mode by hitting /

Edit: it’s & for the grep mode, / is search.

caseyweederman,

More info: / only searches from cursor to end of file. ? searches from cursor to start of file.

savedbythezsh,

Oops yeah I just edited my comment, put the wrong symbol!

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

That’s not at all grep-like. Grep is a line filter, not a character sequence highlighter.

savedbythezsh,

Oops sorry it’s &! / is find

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

I know you're on ubuntu, but installing programs depends on your distribution. Some programs are in your software library, some aren't. But there will always be a way to get the program. For instance, I use Gentoo and Mullvad. The way I set it up is with Wireguard so I control it through the terminal, this is because Gentoo has no mullvad app. Otherwise, you can often add new libraries to your system. Again, on Gentoo Steam is not in my repository by default. So, I added the steam repository to my system so I could get it. For Mullvad, I'm pretty sure they offer a deb package, which Ubuntu can use. Otherwise, some other distributions offer a mullvad app in their repository by default. Try other distributions and see what clicks. A lot of linux is experimentation. I personally prefer doing a lot of things fairly manully, so I use Gentoo with essentially only a terminal for control. Linux Mint, Devian, Arch, Void, Nix, Gentoo; there's tons of choices so there's going to be something that you click with.

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

I think if you read through this you have pretty much everything you asked about. As for understanding what these sorts of commands do in the future I think ChatGPT is actually really useful for stuff like this with good documentation. Just ask what the commands do and it is usually quite helpful. Someone already said it but you have to want to learn this. If you want something easy to use and you don’t have to learn buy a Mac, you want great software compatibility buy a windows pc. If you want something that is more private and a community effort use Linux but unless you are using steam os on a steam deck it is not even close to being as user friendly as the others. I hope this changes but the current goals and mindsets of people in this community will prevent Linux from becoming easy to use and in the case of steam os you just need lots of money to make it an easy experience. There are a million other reasons that Linux’s current state is this way but this is the gist.

ReversalHatchery,

If you want something easy to use and you don’t have to learn buy a Mac, you want great software compatibility buy a windows pc.

That is very bad advice, as that may well not be a solution. There are people who want to use their computers without the ads, data mining and forced program defaults windows is doing.

That’s true that if people switch OS, they’ll need to learn a lot of new things. But don’t forget that not only sysadmins and adventurous people use Linux.

That being said, there are distros that give you a decent GUI frontend to the package manager, for example openSUSE

TheAnnoyingFruit,

Well what you said is true but this depends on the person you are recommending it. I didn’t know the op and generally can’t determine how interested they are in computers. I have friends who are just so use to their current understanding of using a computer with windows they wouldn’t be willing to learn anything else at all. They didn’t find yast easy to use because yes you have a gui for installing things but they don’t know all the things they need to install and it isn’t the most simplistic gui. Again you aren’t wrong it’s just that I’m hesitant to recommend people to use it unless they want the benefits of using Linux and are willing to learn.

library_napper,
@library_napper@monyet.cc avatar

ChatGPT is garbage in garbage out. It’ll probably tell you to curl a file off the internet and pipe it to bash as root.

TheAnnoyingFruit,

I’m just suggesting he ask ChatGPT to explain what commands he copied off the internet do. I don’t suggest asking it for commands

deathbird,

To translate the second sentence for OP: it’ll probably tell you to run a command to download a sus file and immediately run it as admin.

Critical_Insight,

I made this thread because I try to learn/understand

I have a Macbook, it’s what I use the most. I used to have Win7 on my gaming rig but Steam dropped their support for it so my options was either to go with a newer Windows or try Linux. As all of the games I play seemed to work on Linux with just minor tweaks I thought I’d give it a try. So far I’m really happy with how to OS works once it’s set up but it’s the setting up part that’s really confusing to me.

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

Run rsync, pipe to tee, and redirect the output to a named pipe (mkfifo). Open a second terminal and direct the named pipe into a grep command. Arrange the terminals in whatever way you want.


<span style="color:#323232;">mkfifo mypipe
</span><span style="color:#323232;">rsync | tee mypipe
</span><span style="color:#323232;">grep "denied" < mypipe
</span>
canadaduane,
@canadaduane@lemmy.ca avatar

Elegant and flexible, thank you!

canadaduane, in Is there such a thing as split-screen grep?
@canadaduane@lemmy.ca avatar

ChatGPT suggests the following:

  1. Run tmux
  2. rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | tee /tmp/rsync_output.txt
  3. Ctrl+B % # splits screen vertically
  4. Ctrl+B right-arrow-key # moves to right split
  5. tail -f /tmp/rsync_output.txt | grep denied

Not quite a one-liner, but I can see how tmux is a big help here.

mkwarman,

I know this isn’t an answer you’re looking for, but I’ll at least say that I find tmux to be infinitely useful and highly recommend checking it out

s38b35M5,
@s38b35M5@lemmy.world avatar

Tmux is also good for long operations, as tmux is running as a server and you can close the terminal while tmux chugs away. Others can also connect to the tmux session through ssh and share screens.

wuphysics87,

Don’t feed the beast.

canis_majoris, in I have started using fedora silverblue
@canis_majoris@lemmy.ca avatar

Silverblue rocks, I use it for my mission critical laptop.

For gaming it’s hard to beat Arch, still, because of how much active development is being put in by people like Steam.

Unmapped, (edited ) in I have started using fedora silverblue

Doesn’t normal Fedora silverblue already have flatpak? Why did you have to rebase to ublue for flatpak?

Lettuceeatlettuce, in I have started using fedora silverblue
@Lettuceeatlettuce@lemmy.ml avatar

I need to play around with Silverblue and other immutable distros. Been considering them for a family member that is interested in switching to Linux.

Glad it’s been good to you so far!

juli, in I have started using fedora silverblue

What do you mean ublue has flstpak included in the image?

kionite231,

I mean flatpak binary. Other people have mentioned that it’s already included in fedora silverblue. I didn’t know that.

uzay,

I mean, it’s the main way of installing software in immutable Fedora distributions, so it would be very surprising if it wasn’t preinstalled.

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

If Mullvad is not available as a Snap or Flatpak (2 ways of installing self-sufficient auto-updateable packages without dependencies on other packages) then youre probably stuck with either adding this 3rd party repository (something which isn’t always recommendable either) which gives you automatic updates or using a .deb installation file like you would probably prefer and then manually retrieving updates when needed.

Anyways, others have told you as much already anyways. What I’d like to add is that it is definitely worth it to learn to work the terminal. I get that there are many people looking for an alternative to Windows or just an open approach to computing in general without looking for added complexity. Who wants complexity right? Whether such an experience exists in the Linux world is probably subjective. Ubuntu has definitely been a safe bet for the flattest learning curve required since its inception in 2004. But its still a niche thing that won’t experience user-friendly support from everyone (ie Mullvad).

So one could conclude that in order to truly be “free” (as in Free Software freedom) one needs to claim that freedom. You will fuck things up. You will learn from your mistakes. You will regroup and you will grow as a user and dare I say PC-curious person.

4z01235, in I have started using fedora silverblue

OK

stepanzak, in Terminal Utility Mega list!

Trashy is another rm command that sends files to trash that I really like. They recently fixed zsh completions bug, but maybe only in the latest git version. It’s also written in rust.

Steamymoomilk,

added and looks rather usr friendly

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