There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

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

jalkasieni , in [SOLVED] [Request] KDE Plasma Widget to Show JSON Results

store.kde.org/p/1166510 might fit the bill.

frizzle OP ,

Thanks! That is exactly what I was looking for. Success

Now I just need to clean it up and make it look a little nicer.

hiyaaaaa23 ,

Was gonna suggest this

djrubbie , in Can you please ELI5 tmux?

Well, not knowing what other explanations you've read but don't understand/grasp makes it a bit difficult to narrow down specifics, though to start from the beginning, tmux is a terminal multiplexer, what that means is that it will allow multiple sessions running concurrently under the same virtual terminal. It provides keyboard shortcuts to switch between them, or split them and display them concurrently.

The biggest use case for me however (though I use an older one called screen out of hard to shake habits) is the ability to detach and attach at will, so that any disconnected remote sessions won't kill whatever I happen to be working on. Alternatively, I can have running sessions locally on my current machine and then I can go elsewhere and remote in and resume from where I've left off.

A somewhat frowned upon use case is to use it to run "background" processes on a remote server - like a development web service that you just can't be bothered to properly package/daemonize - just open screen or tmux, start it, and detach the session and it should stay running barring any other problems.

janAkali , (edited )

A somewhat frowned upon use case is to use it to run “background” processes on a remote server

in most cases screen/tmux is an overkill, I prefer using setsid for quick and dirty scripts, it just starts a process in a new session, detached from parent terminal. Or nohup when I need to check the output. Both available on most linux systems by default.

Deebster ,
@Deebster@lemmy.ml avatar

I use screen still too, partly because it’s generally installed on everything already, like vim. I hardly ever use anything but a maximised (i.e. full-terminal) screen at once, so it doesn’t sound like I’m missing much from tmux.

De/reattaching’s extremely useful and another thing I really like in screen is being able to scroll and search the scrollbuffer.

If I was ready for an upgrade, I’d probably go for zellij.

tal ,
@tal@kbin.social avatar

I use screen as well. It is significantly faster than tmux.

Sebito , (edited ) in What are your must-have packages?
@Sebito@lemmy.ml avatar
  • Kitty
  • fish + all the shell builtins
  • LunarVim (Neovim)
  • git + lazygit
  • openssh
  • npm
  • cargo
  • docker

Edit:

  • wget
  • httpie
  • tar & (un)zip
letbelight ,

Try podman it’s lighter than docker. 😂

andrew ,
@andrew@lemmy.stuart.fun avatar

And runs in unprivileged mode (nonroot) quite nicely.

Sebito ,
@Sebito@lemmy.ml avatar

I will! I once already used it for cross compiling and it seemed really nice ^^

0xd4n , in What are your must-have packages?
  • vim
  • bashtop
  • cmus
  • ghidra
  • jq (pretty print Json)
  • screen
  • hexedit
  • python3 with pwntools
  • GCC, g++, make & libc6-dev
  • gdb with pwndbg
  • alacritty
0xtero , in Can you please ELI5 tmux?
@0xtero@kbin.social avatar

I guess the best analogy is a "virtual desktop" but for the terminal.
It's is a program which runs in a terminal and allows multiple other terminal programs to be run inside it.

Each program inside tmux gets its own "page" or "screen" and you can jump between them (next-screen, previous-screen etc).
So instead of having multiple terminal windows, you only have one and switch the screen/page inside it.

You can detech from the program and leave it running - so next time you log on to the server, you can re-attach to it and all your screens/sessions are still there.

Not super useful on your local machine - but when you have to connect to a remote server (or several) is really shines. Especially if you have to go through a jumphost. You can just connect to your jumphost, start tmux, then create a "screen" for each server you need to connect to - do your stuff and deattach. Next time, just re-attach and all your stuff is there.

Did that help?

jackofalltrades OP ,

Ok, now I guess I am seeing the value of it, specially with the “virtual desktop” analogy and the remote scenario, since I need to do some of it at work and having everything as I left it last time will be nice. Thank you!

topperharlie ,

plus, if you disconnect in the middle of a command execution it doesn’t get killed (very important for system updates for example)

richardwonka ,

…. or if you get disconnected by, say, dodgy internet connection or such.

bionicjoey ,

Mosh is really good for that as well. It’s like the tmux of ssh

waspentalive ,

I use the “being able to detach and re-attach” capability to run my Minecraft server on my in-home server box.

BaconIsAVeg ,

Imagine you ssh into a server to do a database import, and from previous experience you know it will take about 3 hours. You start the restore, then get up to make dinner. You come back an hour later and realize you forgot to plug your laptop in.

Is the import command still running? Who knows.

With tmux you just charge your laptop, ssh in again, and reconnect to the virtual term that was running the command to check.

nous ,

You can also split windows to have multiple terminals side by side, or above below each other. Many use it locally as a tileing window manager when their main terminal or window manager does not support tiling.

adj ,

I actually get a lot of use out of it locally. I usually have multiple sessions for different concerns and prefix + s lets me switch between them quickly using vi keybindings. I can even do prefix + w to switch to a specific window in a different session.

I don’t use vscode much lately, but when I did it was also useful sometimes to have the same window in my terminal client on one desktop and in vscode’s terminal on another when switching back and forth a lot to see a browser or database client or whatever. Just having the freedom to move the session around to different applications is nice.

SpaceCadet ,
@SpaceCadet@lemmy.world avatar

deleted_by_author

  • Loading...
  • spauldo ,

    Yeesh, I never knew about that. Probably because I normally only worry about SIGHUP on *BSD.

    What kind of arrogance does it take to just decide to change how signals work?

    4am ,
    @4am@lemmy.world avatar

    Ugh I remembering learning upstart and getting decent with it and then everyone went “nope, systemd”

    Let’s just improve what we have and not change the whole goddamn thing again. That’s more annoying.

    Also, some of the people on hackernews are so cringy. Like, dude we get it there is a bad default. Make your case and stop being a total jerkoff, because no one is going to listen to that guy and I bet that’s like 20% of the reason the other übernerds are digging their heels in about changing it.

    Also fuck systemd 😅

    s38b35M5 ,
    @s38b35M5@lemmy.world avatar

    Adding to this comment that tmux allows team members spread through the world to work on the same terminal together on different SSH sessions.

    Both admins connect, then one spins up the tmux and the other can attach to it and both collaborate and see all inputs/outputs.

    larchy , in New Steam Client Stable Update Fixes UI Issues on Linux for Intel/AMD Users

    Just did a new Mint install yesterday and spent ages trying to figure out why steam was going bananas! Much joy.

    kurotora , in Can you please ELI5 tmux?

    Probably somebody can provide a better answer, but for me tmux is useful due that it has session manager (really useful if your remote connection drops) and the ability to split the screen in multiple screens (usually I split vertical, but you can create easily 4x4 screen).

    The only trick is the learning curve of the actions (usually ctrl + b and the key required). For example to split the window vertical, you must do ctrl + b and then %.

    But as I said, probably you will get better and more technical answers ^_^U

    EDIT: some grammar mistakes.

    drhoopoe ,

    The irony is that once you find your way around through the default keys and search a little you soon discover how easy it is to reset them with “sane” settings. Same for window frames, etc. But yes, there’s definitely a learning curve.

    taaz , (edited ) in What are your must-have packages?

    I don’t see enough of these here:

    • fzf
    • z (or zoxide)

    Check them out

    Titou , in What are your must-have packages?
    • OpenDoas
    • Emacs
    • Git
    fruitywelsh , in What's the best way to restore your desktop environment after install?

    I’m a /home on separate drive/partition kind of guy. I like it just following my installs. Though seeing some using guix/nixos to create a config for my desktop has got me wanting to spend a weekend trying that out.

    fruitywelsh ,

    The rest, ansible for any sufficiently complex enough setup at the moment. Good for integration work with LDAP, etc if your using that. Again may play around with guix on that front.

    apprehensively_human ,

    I was just thinking yesterday when looking at how NixOS works. The config file seems to be quite reminiscent of an Ansible Playbook. I mean maybe I’m way off the mark, I haven’t really dug into Nix much yet.

    fruitywelsh ,

    Guix/nix seem very powerful. The reproducibility is something ansible just isn’t built to same level robustness for, which makes them seem very promising to me.

    swordsmanluke OP ,

    That’s been my approach too, but I’ve reached ten plus years of God knows what in my dotfiles. It’s time for a clean reinstall. 😁

    IlliteratiDomine ,
    @IlliteratiDomine@infosec.pub avatar

    I’ve been using chezmoi for dotfile management and have been really happy with it. You can directly import existing files to get started and template out any differences between systems.

    mvirts , in Advice for a middle-age, moderately pc knowledgeable person to finally switch to or become proficient with Linux?

    Only one thing: never give up. You’ll get things fixed by copy and paste until one day youll have a broken system and think wait I actually know how to fix this because I’ve been through it five times before.

    spclagntdanazoe ,

    I was never happier than when I found Timeshift. itsfoss.com/backup-restore-linux-timeshift/

    OrnateLuna ,

    Who needs time shift when you can just slowly break your system while trying to fix a bug and then just either reinstall the os or switch to a different distro bc might as well

    starscapesarah ,
    @starscapesarah@mastodon.social avatar

    @OrnateLuna @spclagntdanazoe [ cries in distro hopping 8 times in one weekend ]

    llii , in Endeavour OS looking sexy

    Looks great, is that XFCE?

    Digester OP ,
    @Digester@lemmy.world avatar

    It is indeed, I tried to go straight WM (i3) but I’m not used to it so I installed xfce which I’m familiar with (I’m also using it on my server running Lubuntu).

    Digester OP ,
    @Digester@lemmy.world avatar

    It is indeed!

    p5f20w18k , in Suggest me a distro
    @p5f20w18k@lemmy.world avatar

    Try arch and you’ll never distro hop again

    Dirk ,
    @Dirk@lemmy.ml avatar

    I can confirm that.

    SneakyThunder ,

    Tried to reconfigure some systemd services, switched to Artix (runit flavored btw)

    ar0177417 ,
    @ar0177417@lemmy.world avatar

    to reconfigure some systemd services, switched to Artix (runit flavored btw)

    Artix is definitely better than Arch. (using dinit flavor btw)

    fabian_drinks_milk ,

    I can’t confirm that (I distro hopped to NixOS) I can confirm that Arch is a solid distro worth learning and will give you the skills to manage it long-term. Compared to Arch based distros like Manjaro, EndeavorOS and Garuda where people tend to screw up their install easily when installing the wrong packages from the AUR and updating with dependency conflicts.

    p5f20w18k ,
    @p5f20w18k@lemmy.world avatar

    I tried manjaro, it was a total mess after a few days of setting it up. Decided to just nuke it and go with arch and I’ve never looked back. Been 5 years now :)

    FilE , in What are your must-have packages?
    • ranger
    • openssl
    • aria2
    • fzf
    • nitrogen
    • w3m
    RelativeArea0 , in looks like 2023 is finally the year!

    Might be, china plans to implement their “opensource” version of kylin os to ditch windows

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines