Inside my iPad Pro SSH Setup - TMUX

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 136

  • @jeffreyhunter4115
    @jeffreyhunter4115 2 года назад +12

    This may be the day where I make the switch from ‘screen’ after many decades! Great video. Very well organized.

    • @tech_craft
      @tech_craft  2 года назад +3

      I moved over to tmux from screen many, many years ago and I haven't looked back. I remapped Ctrl-A to the prefix for a while before deciding I wanted to locate it somewhere more convenient, but I think it helped with the move.

  • @chirpybee
    @chirpybee 2 года назад +1

    Been using Tmux for years and ashamed to admit I had never used a number of these options. Thank you 👍

  • @MelRiffe
    @MelRiffe 2 года назад +3

    I've been using tmux for a while, but not consistently. Because of your video I'll be doing some customizations, especially mouse support. And, until you mentioned it, I hadn't thought to start tmux sessions on my Linux SSH sessions. IMHO, a great tip right there. Thanks!

  • @paulmesaric5059
    @paulmesaric5059 2 года назад +5

    Love the way you layout your videos, intro, tours and timestamps

  • @traal
    @traal 2 года назад +3

    I've been using GNU screen instead for decades... This video finally gave me the push to switch over to tmux. No major problems yet, so I think it'll work. 😊

    • @tech_craft
      @tech_craft  2 года назад +1

      I was screen user too. I do think tmux is a nice upgrade and I hope you'll not be disappointed!

  • @Oscar-ni3fx
    @Oscar-ni3fx 2 года назад +14

    Great video as always. A small suggestion that would have been helpful for this video. Blink has keycast, which shows on screen the keys you are pressing. For regular videos where what’s important is the text you are typing, it does not matter, but here it could have been useful to show the sequence of prefix+shorcut. Blink even lets you toggle keycast with a keyboard shorcut so you can activate it only when necessary.

  • @micleh
    @micleh 2 года назад +12

    Never bothered about using tmux, but you had me sold right from the start. I enjoyed every bit of your explanation and your selection of shortcuts and configuration items felt sensible through and through. Thanks so much for another extremely helpful video.

    • @tech_craft
      @tech_craft  2 года назад +2

      I don't think you'll regret giving tmux a whirl. The more you use it, the more it becomes like second nature.

  • @fredlaxton
    @fredlaxton 2 года назад +2

    I used to use screen for many years, until it was abandoned. I switched to tmux with little pain, remapping it to use Ctrl-a as the prefix, like screen (muscle memory!). Instead of using ssh directly, I use mosh, which uses ssh internally to connect.
    Why mosh? Because you can close your laptop, iPad, whatever on one network, go somewhere else where you’re on a different network. Open it back up and your mosh connection is still working. No more dead ssh sessions! Also, it will predict feedback and type it on the screen, even on a slow connection, so it makes slow connections “feel” faster than they really are.
    I did learn a few tricks, especially about the status line customization. I’d been doing it the hard way with powerline - I will give this a try. Great video!

    • @tech_craft
      @tech_craft  2 года назад +1

      Fully agree with the mosh sentiment - I covered that in my previous video.

    • @fredlaxton
      @fredlaxton 2 года назад

      @@tech_craft AND I too had done this tmux status line the hard way. I got it set up on Linux and then couldn’t duplicate it on Mac. Following your instructions, I threw out my old powerline mods and got it set up with Dracula in about 10 minutes. THANK YOU!

  • @夕阳-n1h
    @夕阳-n1h Год назад +1

    Such a great video. Thanks for making this, was able to start from never having used tmux to complete setup in under 30 mins.

  • @dmitrykhangulyan4349
    @dmitrykhangulyan4349 2 года назад +2

    I like this channel -- it is so much fun to listen to the explanations of why the tools I use (xmonad, tmux, etc) are the best.

  • @GPTkhan
    @GPTkhan 2 года назад

    broken it down makes it seem so user-friendly and easy to use. I can’t wait to start making soft! Thanks again!

  • @PowerLlama
    @PowerLlama 9 месяцев назад +1

    not sure if it's mentioned in the comments, but something that helped me remember the prefix is that "b" stands for "buffer". so Buffer-o to cycle etc

  • @ViniciusProvenzano
    @ViniciusProvenzano 2 года назад

    This the best tmux vídeo i’ve sene! Great work!

  • @prgnify
    @prgnify 2 года назад

    I used to use TMUX because it was simply the first thing that showed up when I looked for what I wanted/needed to do. But one day it hit me > "I have a thousand lines long vimrc that simply goes to waste when I'm remoting somewhere, especially if all there is is vi".
    That was when I started using EMACS, of course with evil mode. Since you can open terminals and run a multiplexer from inside emacs, you can just use your editor on literally everything.

  • @kwadwoamponsah
    @kwadwoamponsah 2 года назад

    Your content is like an Ipad pro masterclass.

    • @tech_craft
      @tech_craft  2 года назад +1

      Very kind of you to say so!

  • @JEROENHAHAHA
    @JEROENHAHAHA 2 года назад

    My left ear really enjoyed this informative video.

  • @Samji3877
    @Samji3877 2 года назад

    fantastic Tech Craft, and you make your setup look SOOOOOOOO beautiful

  • @nathanaelculver5308
    @nathanaelculver5308 2 года назад +4

    Good video, as always. But what I’d really like to see is a tutorial on automation and inter-pane and inter-window communication, such as sending commands to other panes. You could, for example, script the creation of a tmux layout and launch and control apps in other panes, and so forth.

    • @ryanmchale8902
      @ryanmchale8902 Год назад

      How do you do this?

    • @nathanaelculver5308
      @nathanaelculver5308 Год назад

      @@ryanmchale8902 Here’s an example script that will open three panes and send a command to each. You’ll need to run the script from within TMUX:
      tmux new-session -d
      tmux rename-window ‘TMUX-automation’
      tmux split-window -v -p 35
      tmux split-window -h -p 50
      tmux select-pane -t 0 ; tmux send-keys ‘echo THIS IS PANE 0’ C-m
      tmux select-pane -t 1 ; tmux send-keys ‘echo THIS IS PANE 1’ C-m
      tmux select-pane -t 2 ; tmux send-keys ‘echo THIS IS PANE 2’ C-m
      tmux -2 attach-session

  • @aronthomas5224
    @aronthomas5224 2 года назад +1

    Very interesting, useful and clear as always. Thank you!

  • @endodoc
    @endodoc 2 года назад +1

    Great video ! Please more - i learn a lot! Thank you

  • @youssefoubrik5254
    @youssefoubrik5254 2 месяца назад

    Thank you please keep sharing like those tutorials

  • @zonnefroske3225
    @zonnefroske3225 2 года назад

    Thank you so much for sharing your experience with us. God bless you .

  • @joaopauloalbq
    @joaopauloalbq 2 года назад +1

    I use tiling window manager (Awesome) which has similar behavior but can be used in GUI programs too, it's the most productive environment!

  • @hugovelasco5776
    @hugovelasco5776 2 года назад

    Thanks for the tutorial! Would love if you came out with one on installing and configuring xmonad

  • @billeterk
    @billeterk 2 года назад

    Ooh.. I’ll have to check out plug-ins. It took me a little while to find a free enough key combo for a prefix but have settled on ctrl-space which works well with space as vim leader too.

  • @nathanaelculver5308
    @nathanaelculver5308 2 года назад

    I also remap CapsLock as Ctrl, then A as the prefix key, making it super-convenient.

  • @halemmor
    @halemmor 2 года назад +1

    Which font are you using here? I don’t see it listed in the description. Great video! Been using tmux for a while, albeit very basic setup, but definitely going to incorporate some of the tips and customisations from this video

  • @Klausterfull
    @Klausterfull 2 года назад

    Thanks a ton! Didn't know Tmux had a package manager!

  • @navajyoth814
    @navajyoth814 2 года назад +1

    Hey Rob, fantastic video as usual! I am really interested in how you customized your shell. Mind doing a video on that or sharing the dotfiles?

    • @tech_craft
      @tech_craft  2 года назад

      I have this video that covers most of the shell setup: ruclips.net/video/8LcTA5m6_ts/видео.html - if you have questions you can get me on Twitter @tech_crafted

  • @doomikusz
    @doomikusz 2 года назад +1

    Please consider either going stereo or dual-mono. Thank you for your videos

    • @tech_craft
      @tech_craft  2 года назад +2

      This issue has been fixed on my latest video. I have a new camera and it's taken me a while to get it sorted.

  • @marcelwiget8996
    @marcelwiget8996 2 года назад

    I'm using Blink with tmux for some time now. The lack of using mouse to resize pane issue I worked around by using the standard ^B and hitting the arrow keys while keeping ^B pressed. This is good enough for me.

    • @tech_craft
      @tech_craft  2 года назад +1

      Same. I just need the touch to work for my sanity. It really annoys me I haven’t figured it out.

  • @drumpf4all
    @drumpf4all 2 года назад

    Fecking brillliant mate!

  • @JaisonMiller
    @JaisonMiller 2 года назад

    Cool video, going to give it a go - what do you think of byobu? It’s a bit like a preconfigured tmux install that’s quite nice ‘out the box’ :)

  • @OlaInTheClouds
    @OlaInTheClouds 2 года назад

    Great tips, been using tmux for a while. awesome tool, being able to leave a running session and pick it up again from else where. It's funny how these "old" terminal tools like vi(m) and screen (from 1987) replaced by tmux is having a second coming. GUI dev tools are nice but sometimes you can't use them and need good cmd line alternatives.

  • @sfuoncall
    @sfuoncall 2 года назад +1

    I like tmux for the automation that is possible. The one thing that I prefer "screen" over tmux is that screen can:
    1. Save the output to a log file.
    2. You can scroll back.
    screen is only full screen unlike tmux that lets you create panes.

    • @sfuoncall
      @sfuoncall 2 года назад +1

      Note: I use both.

    • @sfuoncall
      @sfuoncall 2 года назад +2

      Another Note: I also re-map the prefix from Ctrl-B to Ctrl-Z because I am a heavy vim user.

    • @fredlaxton
      @fredlaxton 2 года назад

      You can scroll back with tmux too.

    • @sfuoncall
      @sfuoncall 2 года назад

      @@fredlaxton Yeah. I posted a little prematuraly and missed the scroll back. But I still like the log feature to capture the output of long running tasks quickly

    • @fredlaxton
      @fredlaxton 2 года назад

      @@sfuoncall I was under the impression that screen was abandoned, right? That was a major factor in me switching to TMUX. Has it had more development?

  • @smoocher
    @smoocher Год назад

    I've recently started using my iPad as my main laptop and have been using one terminal window to connect to my Pi. This will help a lot. Thanks!!

  • @cppdev2729
    @cppdev2729 Год назад

    dude u saved my life

  • @gregf9160
    @gregf9160 2 года назад

    You and your channel are marvellous 👍😘

    • @tech_craft
      @tech_craft  2 года назад

      Very kind of you to say so.

  • @theloniuser
    @theloniuser 2 года назад

    Fantastic video. I have done all of this and am excited to use in my workflow. I am getting question marks in the powerline ststus bar at the bottom despite having install what I thought were the correct fonts. Also, I noticed that all sessions disappear on reboot. Thanks!

    • @tech_craft
      @tech_craft  2 года назад

      Sadly sessions won’t survive reboot of the host.
      The question marks sounds like you have a font that’s missing the powerline characters. Which font is it? It may have a dedicated powerline variant that you can find in NerdFonts

    • @theloniuser
      @theloniuser 2 года назад

      @@tech_craft I'm not sure how to tell which one it's missing.

  • @nomoremeetings1183
    @nomoremeetings1183 2 года назад

    Very informative! Cheers!

  • @micleh
    @micleh 2 года назад +1

    Hi. As to tux and macOS, are you aware that the tmux keyboard combinations can be remapped to match those commonly used in macOS (and other OSs)?. There is a great tutorial by
    Josh Medeski called "macos keyboard shortcuts for tmux". Thought this info might be interesting.

    • @tech_craft
      @tech_craft  2 года назад +1

      Nice idea. I've gone the other way - I use the same shortcuts I have in my XMonad setup on the Mac.

  • @SeunKyleJohnsonn
    @SeunKyleJohnsonn 2 года назад

    Been waiting for this video for a while
    Quick question: do you use homebrew on any of your Pi’s ? Is there any need since it already has a package manager ?

    • @tech_craft
      @tech_craft  2 года назад +1

      I don't use Homebrew on the Pi because apt is available, but you certainly can use it. I have considered using Linuxbrew and Homebrew as a way of sharing more of my setup across machines.

  • @acafella11Music
    @acafella11Music 3 месяца назад

    Is this a jail broken iPad? How else is he running a different os?

  • @niallkelly1577
    @niallkelly1577 2 года назад

    you are a legend!

  • @acafella11Music
    @acafella11Music 3 месяца назад

    Noob here.
    What exactly is he using these terminals for?

  • @rul1175
    @rul1175 4 месяца назад

    What theme are u running. Cappuccino?

  • @Taddy_Mason
    @Taddy_Mason 7 месяцев назад

    You're rocking 125Gb of RAM on the Mac? 😮😮

  • @darkisildur
    @darkisildur 2 года назад

    This is just great!! Thanks for sharing. The way your kitty profile looks is also great, would you share your config file? or would you do a tutorial on kitty, please! :)

  • @WeilongYou
    @WeilongYou Год назад

    I guess my question is, what terminal are you using (that I have to setup) before install tmux...

  • @zestynotions
    @zestynotions 2 года назад

    Long term user of tmux too, but never tried to tpm plugin manager, brilliant! have you tried the tmuxinator for async session and automation that works with tmux? you can then start predefined tmux environment with panes etc and run commands automatically in those panes. Can also have it create multiple ssh sessions in the panes to update many servers async etc. :)

    • @zestynotions
      @zestynotions 2 года назад +1

      btw this is also nice to add in your .zshrc or .bashrc on the servers you connect to = tmux attach || tmux new
      That way on ssh/mosh login you will always automatically connect to the previous tmux session or create a new if one does not exist :)

    • @tech_craft
      @tech_craft  2 года назад +1

      I was using tmuxinator for a few years, but then I stopped in favour of just leaving the sessions running on machine that I rarely shutdown.
      I may have to revisit to see what is new though!

    • @zestynotions
      @zestynotions 2 года назад +1

      @@tech_craft Good point, I guess it is more useful for session management on mac so not very helpful if your primary dev environment is the ipad :)

  • @totallyperfectworld
    @totallyperfectworld 2 года назад +1

    Okay, so how do you combine tmux with mosh in blink - so basically try to attach to an existing tmux session, but if non exists, then create a new session?

    • @tech_craft
      @tech_craft  2 года назад +2

      Essentially yes. You can configure Blink to launch tmux automatically when you log in. You can use a command like `tmux new -A -s ` to attach to a session,creating it if it doesn't already exist.

  • @MuhammadIqbal-fh8em
    @MuhammadIqbal-fh8em 2 года назад

    Can you please do beginner's tutorial for soft soft mobile....please...

  • @kalekold
    @kalekold 2 года назад

    Forget tmux, just use Terminator as your terminal emulator, it has window splitting and tabs straight out of the box.

    • @tech_craft
      @tech_craft  2 года назад

      A fine option for terminal directly on the machine, but terminator doesn't help with saving remote sessions.

  • @derpho
    @derpho 2 года назад +4

    My left ear hurts now

    • @sebscripts
      @sebscripts 9 месяцев назад +1

      first reply in one year

  • @cedricvillani8502
    @cedricvillani8502 2 года назад

    Blink commercial? I mean of course you can do all this and normally, terminal setups are really old, still use them but there’s so many options and obviously you want to first get Blink. But that’s more of a environment setup like i3w lol or was it iw3, for Linux a free easy one is Terminator

    • @tech_craft
      @tech_craft  2 года назад

      I’m not really certain what your point is. Terminator and i3 don’t run on iPad. The bulk of this video is about tmux and not blink.

  • @x0rZ15t
    @x0rZ15t 2 года назад +1

    TMUX has also different plug-ins that can be managed by TPM (Tmux Plugin Manager). Plugins I use on day-to-day bases are:
    tmux-sensible
    tmux-resurrect
    tmux-continuum
    tmux-sessionist
    tmux-logging

  • @StefanWolfrum
    @StefanWolfrum 2 года назад

    Couldn't wait and started immediately. 😂 Problem: after adding the Dracula plugin line to the .tmux.config file, saving it, reloading with ctrl-t r and doing a ctrl-t I - nothing happens. I don't get that fancy status bar that we see in your video. 😞 Am I maybe missing an installation step for the Dracula tmux theme? On the other hand: no extra installation seems to be needed according to their webpage. #bummer

    • @StefanWolfrum
      @StefanWolfrum 2 года назад

      Ohhkayy ... exited the tmux session completely, started a new one, learned that the config file should be named .tmux.conf (not .tmux.config) to be read automatically (because all of a sudden ctrl-t wasn't the command key anymore) and all of a sudden, dracula showed up! 😉

    • @StefanWolfrum
      @StefanWolfrum 2 года назад

      Now even configured the hosts I connect to in Blink so that mosh & tmux starts autmatically, tmux attaching to the last session. Very nice! Now I need a cheat sheet for tmux commands next to my iPad Pro screen! 😂 And I have yet to find my command key because ctrl-t is bound in some tools (like nano) to other functions.

    • @billeterk
      @billeterk 2 года назад +1

      @@StefanWolfrum ctrl- is good for me.

  • @basilfeitknecht6430
    @basilfeitknecht6430 5 месяцев назад

    what app is that on the ipad?

  • @inversebrah
    @inversebrah 2 года назад

    good stuff

  • @bobsisic5714
    @bobsisic5714 Год назад

    Can you install Tmux on iPad without having to ssh to a network pi

    • @tech_craft
      @tech_craft  Год назад

      You can try it out with the iSH app, but there's no native support on iPad sadly.

  • @cid-chan-2
    @cid-chan-2 2 года назад

    I used my pocket money to pay for a vps.
    Best decision of my life. My dad banned me from using my computer over weeks.
    But let me use a small 7" tablet.
    Let's just say, I learned vim that time.

  • @joshb7415
    @joshb7415 Год назад

    Cool

  • @luisdario1493
    @luisdario1493 2 года назад

    Which app for iPad did you use?

  • @A___Way
    @A___Way Год назад

    Sweet, controls are closer to linux screen,minicom etc. Btw nice video :-). I use blink on a ipad pro , blink supports mosh ( mobile ssh) install easy on target machine. Mosh or mosh-server distro dependant. After you can switch wifi to mobile, the connection stays open all day. And im go9ng to try tmux, screen i have used. Good work.just from blink mosh user@machine, all other same.

  • @kragrrr
    @kragrrr 2 года назад

    I would love to use Ubuntu on iPad Pro using Raspberry Pi, if you can figure somehow.

    • @tech_craft
      @tech_craft  2 года назад +2

      I have that working now. I updated the pre-built images with an Ubuntu Server image: github.com/techcraftco/rpi-usb-gadget/
      For Ubuntu Desktop, the resulting images are too large for Github. I'm looking for a good hosting alternative, but I'll also post a video with instructions on how to set up Ubuntu Desktop with a nice VNC setup too.

    • @kragrrr
      @kragrrr 2 года назад +1

      @@tech_craft Why do you need hosting? Make an image on the SD Card. Ubuntu 20.04 natively now supports on Raspberry Pi.

    • @tech_craft
      @tech_craft  2 года назад +2

      I am hosting my own images with the necessary USB-C configuration in them. You can certainly add this configuration on top of Ubuntu yourself - and I'll film a video about that - but some viewers prefer using the images with the config baked in.

    • @kragrrr
      @kragrrr 2 года назад

      @@tech_craft I am planning to convert my old Laptop into a TrueNAS. Can that be used as for hosting the image?

  • @ryanholt9393
    @ryanholt9393 2 года назад

    Productivity for what? What kind of work can you actually get done like this?

    • @tech_craft
      @tech_craft  2 года назад

      I mean, anything you can run in the terminal, so hundreds of thousands of different apps. Systems admin, website creation, software engineering, writing, the list goes on.

    • @ryanholt9393
      @ryanholt9393 2 года назад +1

      @@tech_craft Ah I see. I would love to see more videos where you go over the practical application. Or workflows where you are getting real work done. For web development. Which I do. I don’t see how this can work because I need to run a liver visual server to see changes live in a browser.

    • @tech_craft
      @tech_craft  2 года назад

      That’s one of my main uses. I run the editor in one tab, then I’m running Eleventy with live preview in another tab. I have my browser window open and basically just get to see the changes live as I make them. For a bit extra I also have tests on auto execute in a terminal tab too. Works a treat.

    • @ryanholt9393
      @ryanholt9393 2 года назад +1

      @@tech_craft wow very cool! Do you have a video showing the how to get setup with this and start rolling??

    • @tech_craft
      @tech_craft  2 года назад

      I haven't but I'm planning some of this deeper content to see how people like it.

  • @IdoSamuelson
    @IdoSamuelson 2 года назад

    have you tried byobu?

    • @tech_craft
      @tech_craft  2 года назад +1

      I have. I used that for a while a few years back and I have a few friends who use it daily. A great option.

  • @totallyperfectworld
    @totallyperfectworld 2 года назад

    I grow up with screens :-)

  • @joseport123456789
    @joseport123456789 2 года назад

    If only we could select text while scrolling, that’s the only thing refraining me from fully switching to tmux

    • @tech_craft
      @tech_craft  2 года назад +1

      You can. What’s your setup (platform/terminal)? I’ll see if I can dig out the right config.

    • @joseport123456789
      @joseport123456789 2 года назад

      @@tech_craft Hello, I don't know why but I have typed my reply three times and it has been removed everytime. Anyways, I work on Mac OS on its native terminal. Meanwhile, I've found that manually entering copy-mode instead of enabling mouse on the config file allowed me to select text while scrolling. There's just the "hassle" of having to enter the keyboard shortcut every time. If you have a better configuration, please tell me.

  • @DigiDriftZone
    @DigiDriftZone 2 года назад

    Hmm, just out of interest, why kitty over iterm on mac? - iterm is one of the reasons I like using Mac so much for dev!

    • @tech_craft
      @tech_craft  2 года назад

      Mostly because I can use the same terminal on Linux too. Helps me reduce the amount of config I’m maintaining.
      I think kitty looks a little nicer and definitely faster but those are nice to have a for me.

    • @DigiDriftZone
      @DigiDriftZone 2 года назад

      @@tech_craft Makes sense, been playing with it a bit and it's pretty nifty. Blink is pretty nifty too. Thank you for making these videos, the iPad may finally find a place in my development workflow :)

  • @dediaprianto3951
    @dediaprianto3951 2 года назад

    ikr

  • @thaifalang4064
    @thaifalang4064 2 года назад

    Only one question? Wh don't you just use a Macbook instead of an iPad with many many stupid workarounds?

  • @minhtrinh7081
    @minhtrinh7081 2 года назад

    free hack is always scare, but this is safe, checked

  • @kickbuttowsk2i
    @kickbuttowsk2i 2 года назад

    125 gigs?

  • @jaspert1895
    @jaspert1895 2 года назад

    lol

  • @bonafontciel
    @bonafontciel 2 года назад

    Tmux user here. Which iPad app are you using for ssh?

    • @tech_craft
      @tech_craft  2 года назад +1

      It’s Blink Shell. blink.sh

  • @jamilaalainieh3494
    @jamilaalainieh3494 2 года назад

    Ive watched tNice tutorials a couple tis and i tNice tutorialnk the key is to slow the video down to .75. TRY IT!!!

  • @rhettmelton
    @rhettmelton 9 месяцев назад

    I got ads for male enhancement and virtual girlfriends throughout your video 🫣

  • @markusjohansson4949
    @markusjohansson4949 2 года назад

    What font are you using?