Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Friday May 11 2018, @04:31AM   Printer-friendly
from the pimp-my-tmux dept.

Tmux is a well-written terminal multiplexer. It allows access to multiple separate terminal sessions inside a single terminal window or remote terminal session. It can do quite a lot when advanced configurations are taken into account. Here Gregory Pakosz' explains his pretty and versatile tmux status bar modifications line by line. His modifications look great and just work, combining form and function.

https://github.com/gpakosz/.tmux/blob/master/README.md


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 3, Interesting) by Subsentient on Friday May 11 2018, @07:21AM (15 children)

    by Subsentient (1111) on Friday May 11 2018, @07:21AM (#678289) Homepage Journal
    Maybe I'm retarded for wanting the GUI way, but I like Terminator. I actually had someone get pretty pissed at me for liking Terminator once, and they suggested tmux. I tried it, and the ugly, choppy, semi-unreadable line output for, say, split screen compilation jobs, was intolerable. I don't like the bloat that terminator brings, but goddamn, do I love the terminal itself.
    --
    "It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti
    Starting Score:    1  point
    Moderation   +1  
       Interesting=1, Total=1
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   3  
  • (Score: 3, Insightful) by RamiK on Friday May 11 2018, @09:48AM (2 children)

    by RamiK (1813) on Friday May 11 2018, @09:48AM (#678302)

    i3 [i3wm.org] solves the problem at the root cause. Though admittedly, you'd still want lxde (for lxappearance) and/or xfce around to adjust GTK themes and fix the odd glitch in some apps just in case. But I honestly haven't touched those in years...

    --
    compiling...
    • (Score: 1, Interesting) by Anonymous Coward on Friday May 11 2018, @11:08AM

      by Anonymous Coward on Friday May 11 2018, @11:08AM (#678306)

      at some point I was looking into this, but ended up using plasma (I still think of it as kde, but whatever), with multiple separate terminator windows that I tile using "xdotool" from inside the terminal.
      I wrote a little script which takes desired grid shape/position as parameters, and then applies them to the current window.
      once the terminals are in place, I can resize everything else with "snap" functionality.
      this works beautifully on my 3840x2160 display.

    • (Score: 2) by JNCF on Friday May 11 2018, @04:43PM

      by JNCF (4317) on Friday May 11 2018, @04:43PM (#678459) Journal

      i3 locally, tmux remotely, vim either way. Tiles in tiles in tiles, dawg.

  • (Score: 2) by DannyB on Friday May 11 2018, @02:41PM (11 children)

    by DannyB (5839) Subscriber Badge on Friday May 11 2018, @02:41PM (#678394) Journal

    tmux (or screen) are what you want when you SSH into a system that doesn't have any GUI.

    Yes, such "headless" Linux configurations actually do exist. Both on Cloud Servers (VPS), and on headless Raspberry PIs.

    Otherwise, Terminator sounds like a nice GUI program. But in a GUI, I've never needed anything more than multiple tabs in a terminal emulator.

    Here is something that should be obvious, but seems to have escaped the attention of enough people to surprise me. A remote headless system with SSH allows you not only to get a multiplexed command line interface, but also to remotely view and manipulate its file system! Yes, really. SSH allows you to remotely manipulate the file system. You can use FileZilla on any platform. Or any SFTP type program (like on a Mac). Or WinSCP on a Windows. On any Linux desktop your typical File Manager can accept a URL like:

    sftp://danny@somewhere.com/home/danny/foobar/fop

    (where "fop" is "failure oriented programming")

    If you need to do heavy-duty editing, more than you would do in VIM, then simply drag-drop the file to your desktop, edit it in favorite Whizbang IDE, and drag it back. Pretty simple.

    --
    If your boy is chewing on electrical cords, then ground him until he conducts himself properly.
    • (Score: 2) by Subsentient on Friday May 11 2018, @04:45PM

      by Subsentient (1111) on Friday May 11 2018, @04:45PM (#678464) Homepage Journal
      I just open another ssh connection to the server in terminator's split screen. Not tmux or screen required.
      --
      "It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti
    • (Score: 2) by Subsentient on Friday May 11 2018, @04:48PM (5 children)

      by Subsentient (1111) on Friday May 11 2018, @04:48PM (#678468) Homepage Journal
      Oh, and I'm well aware of SFTP. Look up "sshfs", it's very useful. You can mount a path on ssh like a regular filesystem via FUSE. I use it a lot.
      --
      "It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti
      • (Score: 2) by DannyB on Friday May 11 2018, @07:31PM (2 children)

        by DannyB (5839) Subscriber Badge on Friday May 11 2018, @07:31PM (#678541) Journal

        I've never tried it.

        With PIs, they might get rebooted a lot.

        With a VPS, it might be worth a try.

        --
        If your boy is chewing on electrical cords, then ground him until he conducts himself properly.
        • (Score: 2) by Subsentient on Saturday May 12 2018, @05:49AM (1 child)

          by Subsentient (1111) on Saturday May 12 2018, @05:49AM (#678720) Homepage Journal
          You can pass the -o reconnect option to sshfs, and that problem goes away, reboots won't matter. That's what I do.
          --
          "It is no measure of health to be well adjusted to a profoundly sick society." -Jiddu Krishnamurti
          • (Score: 2) by DannyB on Monday May 14 2018, @03:46PM

            by DannyB (5839) Subscriber Badge on Monday May 14 2018, @03:46PM (#679603) Journal

            I'll have to check that out. Thank you.

            Even better is if it could reconnect when the "client" has a roving IP address. (Moving between WiFi and cellular networks.)

            --
            If your boy is chewing on electrical cords, then ground him until he conducts himself properly.
      • (Score: 2) by DannyB on Friday May 11 2018, @07:35PM

        by DannyB (5839) Subscriber Badge on Friday May 11 2018, @07:35PM (#678544) Journal

        I'm not saying YOU weren't aware of what I pointed out, but I am surprised at people that don't realize that -- hey I've got a GUI at MY end. GUIs are a wonderful productivity invention (decades ago) that are to be embraced. But still there are systems that are (and probably should be) GUI-less. (Hear that Microsoft?)

        --
        If your boy is chewing on electrical cords, then ground him until he conducts himself properly.
      • (Score: 2) by Nerdfest on Friday May 11 2018, @07:40PM

        by Nerdfest (80) on Friday May 11 2018, @07:40PM (#678545)

        I fucking love SSHFS. Mounting remote machines as file systems is extremely handy, and adds to the "defense in depth" approach.

    • (Score: 3, Interesting) by TheRaven on Friday May 11 2018, @05:11PM (3 children)

      by TheRaven (270) on Friday May 11 2018, @05:11PM (#678486) Journal

      I don't care if the remote system doesn't have a GUI, my local one does. My terminal emulator sets a UUID in an environment variable, so I use a small script to ssh to remote systems that sets up a tmux session at the remote end with that name and uses autossh. If I move between networks, or reboot my local machine (or just restart the terminal program) then all of my connections are restored.

      I would love to have something that does less than tmux. It's always an uphill struggle to convince tmux that I don't want it to take over from my terminal emulator (for example, I need something in my tmux config to say 'hey, you're running in a terminal that supports unicode characters, which you could tell if you weren't stupid, just pass through UTF-8 characters from the remote system to my terminal'). I want something that creates a tty on the target system, buffers input whenever I'm not connected, sends it all when I am, and does nothing else. My local terminal has scrollback. My local terminal has the ability to create multiple windows and tabs. My local terminal has selection and copy-and-paste. My local terminal does all of the things that tmux tries to do, better than tmux does most of them.

      --
      sudo mod me up
      • (Score: 2) by DannyB on Friday May 11 2018, @07:33PM

        by DannyB (5839) Subscriber Badge on Friday May 11 2018, @07:33PM (#678542) Journal

        What I would love is something like SSH that allows the "client" end to have a roving IP address. Like a mobile phone or Pixelbook that may be on various WiFi's, or cellular IP addresses.

        I looked at Mosh, but I don't think it does everything SSH does.

        --
        If your boy is chewing on electrical cords, then ground him until he conducts himself properly.
      • (Score: 0) by Anonymous Coward on Friday May 11 2018, @08:32PM (1 child)

        by Anonymous Coward on Friday May 11 2018, @08:32PM (#678558)

        abduco is what you want. I only use tmux on my OpenBSD machine because it's in base (and even there only in my urxvt-kuake script because tiling+virtual desktops mean I can just open another terminal, no need for tabs and all that), for everything else I use abduco.

        • (Score: 2) by TheRaven on Sunday May 13 2018, @07:42AM

          by TheRaven (270) on Sunday May 13 2018, @07:42AM (#679122) Journal
          Thanks, that does look a lot more like what I want. It's a shame that the tmux and screen developers don't follow the UNIX philosophy and make the pane management and session management components separate.
          --
          sudo mod me up