Advertisement
FocusedWolf

Arch: Use tmux to split-screen install linux while reading notes

Jun 6th, 2024 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. 1. Copy your install notes to Arch USB stick.
  2.  
  3. 2. Boot system with Arch USB and begin install process.
  4.  
  5. 3. Access the files you copied to Arch USB:
  6.  
  7. NOTE: First mount your root partition to /mnt/ or else you'll need to redo these steps after.
  8.  
  9. $ mkdir -p /mnt/usb
  10. $ lsblk -f <-- Find the Arch USB device. It likely is /dev/sdb1.
  11. $ mount /dev/sdb1 /mnt/usb
  12. $ cd /mnt/usb/
  13. $ ls -al
  14. <Now you can see what you copied to the Arch USB>
  15.  
  16. 4. Use tmux to split screen:
  17.  
  18. $ tmux
  19. $ vim your_install_notes.txt
  20. [Ctrl + b] " <-- Split window vertically, so vim on top and terminal on bottom.
  21. [Ctrl + b] o <-- Select the next pane, use to navigate to/from vim to scroll through notes.
  22.  
  23. -----
  24.  
  25. Mini-tutorial on using tmux:
  26.  
  27. Use tmux to split terminal, e.g. with vim on top and terminal on bottom to enter commands.
  28.  
  29. $ tmux
  30.  
  31. [Ctrl + b] ? <-- Show help. Q to exit help.
  32.  
  33. [Ctrl + b] " <-- Split window vertically.
  34. [Ctrl + b] % <-- Split window horizontally.
  35. [Ctrl + b] space <-- Select next layout.
  36.  
  37. [Ctrl + b] arrow <-- Select the pane in the arrow direction.
  38. [Ctrl + b] o <-- Select the next pane.
  39. [Ctrl + b] [Ctrl + o] <-- Rotate panes.
  40. [Ctrl + b] x or $ exit <-- Kill the active pane.
  41. [Ctrl + b] z <-- Zoom the active pane.
  42.  
  43. [Ctrl + b] & <-- Kill current window. If only one window then exits tmux.
  44. [Ctrl + b] 0-9 <-- Select window N.
  45. [Ctrl + b] c <-- Create a new window.
  46. [Ctrl + b] n <-- Select the next window.
  47. [Ctrl + b] p <-- Select the previous window.
  48.  
  49. 5. Type commands to install Arch in the second pane, while reading/editing your install notes in the first pane, like a boss.
  50.  
  51. 6. One small issue to fix:
  52.  
  53. When you do [$ genfstab -U /mnt >> /mnt/etc/fstab] <-- Done after pacstrap step if you follow https://wiki.archlinux.org/title/Installation_guide
  54. the mounted usb will get added to /mnt/etc/fstab.
  55.  
  56. You need to remove these lines from /mnt/etc/fstab (e.g. $ vim /mnt/etc/fstab, delete the /usb line, and save)
  57. or else Linux will not boot without the USB plugged in:
  58.  
  59. # /dev/sdb1 LABEL=ARCH_######
  60. UUID=####-#### /usb vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement