this post was submitted on 11 Jul 2024
55 points (95.1% liked)

Linux

48329 readers
668 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I wanted to have a separate laptop where I only use the terminal for my use cases. At the moment I am somewhat confident using the terminal, but I think limiting myself to tty only would build my confidence even more. Any tips?

EDIT: I am already using nvim and I already have installed a minimal distro (Arch). I just need advice on how to actually run this system effectively.

you are viewing a single comment's thread
view the rest of the comments
[–] CsXGF8uzUAOh6fqV@lemmy.world 38 points 4 months ago (4 children)
  • set a good tty font (it's almost all you're gonna see)
  • be comfy with basic core utils (mv, cp, chmod, ...)
  • choose a shell (bash, fish, ...) and set up some useful aliases/abbreviations
  • fzf or something similar does wonders (also replaces things like dmenu)
  • terminal multiplexers are used instead of window managers
  • some applications allow you to do some graphics (like mpv to play video)
  • there is more advanced stuff you can do with frame buffers
  • there are terminal browsers like w3m or lynx
  • a good extensible text editor is essential (vim, nvim, emacs, helix, ...)
  • research some cli applications for your usecase (cal (calendar), neomutt (email), ...)

Over time your collection of aliases and scripts will grow to make common tasks you do easier.

[–] atzanteol@sh.itjust.works 12 points 4 months ago (1 children)

I disagree on the aliases. I'd recommend using almost none. It builds competence with the commands on all systems even without your special .bashrc. It'll be easier to write scipts and change shells as well.

[–] CsXGF8uzUAOh6fqV@lemmy.world 6 points 4 months ago (1 children)

I use fish abbreviations. Unlike bash/zsh aliases, they expand when you press space or enter. This way you see the original command every time you use the alias, and you can edit as well. This should lighten the concern you have a bit. Your concern is something that sysadmins keep in mind e.g. default vim bindings so you are always comfortable on any server. However for desktop use I don't think leaving the speed and comfort on table is worth it. Most desktop users only use their own systems anyway.

[–] atzanteol@sh.itjust.works 4 points 4 months ago (1 children)

It's about building muscle memory as well though. You are right that many home-gamers will probably never be without their customizations though. But if you do re-installs, setup VMs, try new distros, etc. it's beneficial.

Just my opinion though.

[–] Shareni@programming.dev 1 points 4 months ago

That really depends on what you're doing. It's only really useful when you're regularly SSH-ing into other machines for work. Otherwise you're wasting time every day so that you might save a second once every few years.

[–] ctr1@fl0w.cc 6 points 4 months ago (1 children)

Great list. Customizing the font is definitely a priority. I recommend one of the Terminus fonts. Also zellij multiplexer + helix editor is a great combo that works well in the tty.

One thing to add is that it took me a while to create a decent 16-color theme for helix and vim, and while they're okay by default you can actually get a pretty nice looking IDE if you spend some time tinkering with the colors

[–] gramgan@lemmy.ml 3 points 4 months ago (1 children)

+1 for the Terminus + zellij + helix combo

[–] cybersandwich@lemmy.world 1 points 4 months ago (1 children)

How does zellij do copy and paste? That's the only thing keeping me from diving into tmux (beyond using it as a persistent terminal).

[–] ctr1@fl0w.cc 0 points 4 months ago* (last edited 4 months ago)

I'm not sure how to paste directly into a pane, but you can copy by opening up the scrollback in EDITOR from search mode using Ctrl+S e. This creates a file in /tmp so I try to make sure to clear it when I'm done.

I usually only copy and paste between editor windows using a script that mimics xclip (automatically used by helix), and if I need to paste a command I either edit my bash history or write a script.

[–] theshyprisoner@lemmy.ml 3 points 4 months ago (1 children)

Thanks a lot, I'll definitely try the terminal multiplexers you're talking about. I wondered how you would get different windows in tty.

[–] vipaal@aussie.zone 1 points 4 months ago (1 children)

Byobu provides good abstraction on tmux as well as screen. Allows you to choose keybindings from any of the two.

[–] sem@lemmy.blahaj.zone 1 points 4 months ago

I really enjoy byobu, especially since it has nice colors and is a mature well supported project

[–] MonkderDritte@feddit.de 0 points 4 months ago
  • terminal multiplexers are used instead of window managers

Well, there's twin.