Inside my iPad Pro SSH Setup - TMUX

Поділитися
Вставка
  • Опубліковано 1 жов 2024

КОМЕНТАРІ • 136

  • @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.

  • @jeffreyhunter4115
    @jeffreyhunter4115 2 роки тому +11

    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.

  • @derpho
    @derpho 2 роки тому +4

    My left ear hurts now

    • @sebscripts
      @sebscripts 7 місяців тому +1

      first reply in one year

  • @paulmesaric5059
    @paulmesaric5059 2 роки тому +5

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

  • @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!

  • @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!

  • @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.

  • @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.

  • @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!

  • @PowerLlama
    @PowerLlama 7 місяців тому +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

  • @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.

  • @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

  • @夕阳-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.

  • @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!

  • @acafella11Music
    @acafella11Music Місяць тому

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

  • @acafella11Music
    @acafella11Music Місяць тому

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

  • @Taddy_Mason
    @Taddy_Mason 5 місяців тому

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

  • @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

  • @chirpybee
    @chirpybee 2 роки тому +1

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

  • @endodoc
    @endodoc 2 роки тому +1

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

  • @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.

  • @aronthomas5224
    @aronthomas5224 2 роки тому +1

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

  • @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: ua-cam.com/video/8LcTA5m6_ts/v-deo.html - if you have questions you can get me on Twitter @tech_crafted

  • @youssefoubrik5254
    @youssefoubrik5254 23 дні тому

    Thank you please keep sharing like those tutorials

  • @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.

  • @MuhammadIqbal-fh8em
    @MuhammadIqbal-fh8em 2 роки тому

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

  • @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’ :)

  • @rul1175
    @rul1175 2 місяці тому

    What theme are u running. Cappuccino?

  • @nathanaelculver5308
    @nathanaelculver5308 2 роки тому

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

  • @billeterk
    @billeterk Рік тому

    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.

  • @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.

  • @zonnefroske3225
    @zonnefroske3225 2 роки тому

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

  • @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.

  • @Samji3877
    @Samji3877 2 роки тому

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

  • @JEROENHAHAHA
    @JEROENHAHAHA 2 роки тому

    My left ear really enjoyed this informative video.

  • @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!

  • @hugovelasco5776
    @hugovelasco5776 2 роки тому

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

  • @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!!!

  • @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.

  • @basilfeitknecht6430
    @basilfeitknecht6430 3 місяці тому

    what app is that on the ipad?

  • @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.

  • @thaifalang4064
    @thaifalang4064 2 роки тому

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

  • @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.

  • @joshb7415
    @joshb7415 Рік тому

    Cool

  • @Klausterfull
    @Klausterfull 2 роки тому

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

  • @jaspert1895
    @jaspert1895 2 роки тому

    lol

  • @minhtrinh7081
    @minhtrinh7081 2 роки тому

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

  • @WeilongYou
    @WeilongYou Рік тому

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

  • @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?

  • @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! :)

  • @ViniciusProvenzano
    @ViniciusProvenzano 2 роки тому

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

  • @kalekold
    @kalekold Рік тому

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

    • @tech_craft
      @tech_craft  Рік тому

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

  • @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 Рік тому +1

      @@StefanWolfrum ctrl- is good for me.

  • @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.

  • @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 :)

  • @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.

  • @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.

  • @dediaprianto3951
    @dediaprianto3951 2 роки тому

    ikr

  • @totallyperfectworld
    @totallyperfectworld 2 роки тому

    I grow up with screens :-)

  • @drumpf4all
    @drumpf4all 2 роки тому

    Fecking brillliant mate!

  • @cppdev2729
    @cppdev2729 Рік тому

    dude u saved my life

  • @theloniuser
    @theloniuser Рік тому

    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  Рік тому

      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 Рік тому

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

  • @nomoremeetings1183
    @nomoremeetings1183 2 роки тому

    Very informative! Cheers!

  • @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.

  • @inversebrah
    @inversebrah 2 роки тому

    good stuff

  • @niallkelly1577
    @niallkelly1577 2 роки тому

    you are a legend!

  • @kwadwoamponsah
    @kwadwoamponsah Рік тому

    Your content is like an Ipad pro masterclass.

  • @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?

  • @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 :)

  • @gregf9160
    @gregf9160 2 роки тому

    You and your channel are marvellous 👍😘

    • @tech_craft
      @tech_craft  2 роки тому

      Very kind of you to say so.

  • @luisdario1493
    @luisdario1493 2 роки тому

    Which app for iPad did you use?

  • @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.

  • @markusjohansson4949
    @markusjohansson4949 2 роки тому

    What font are you using?

  • @kickbuttowsk2i
    @kickbuttowsk2i 2 роки тому

    125 gigs?

  • @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

  • @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.

  • @bonafontciel
    @bonafontciel Рік тому

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

    • @tech_craft
      @tech_craft  Рік тому +1

      It’s Blink Shell. blink.sh

  • @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!!

  • @rhettmelton
    @rhettmelton 7 місяців тому

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