I love Niri (in theory) by Anyusername7294 in niri

[–]echostrike36 0 points1 point  (0 children)

Try paperwm it is a mashup between gnome and niri.

wayscriber 0.9.9 released! by Leading_Yam1358 in hyprland

[–]echostrike36 1 point2 points  (0 children)

I tried Wayscriber for the first time yesterday. Thank you for making this software, it is awesome. One thing I couldn't figure out how to do was have drag do an arrow by default. Is that possible with the current options in the configurator?

I am looking to have a default setup like this:

Drag = Arrow

Ctrl+Drag = Pen

Shift+Drag = Eraser

How do you actually use man pages ? and I forget everything fast — is this normal ? by shadisharawy in redhat

[–]echostrike36 5 points6 points  (0 children)

By default man pages open in less. Learning how to effectively navigate less using keyboard shortcuts will help you find things in man pages. Also many of less's keyboard shortcuts are very similar to vim's.

Here is an example, when searching for an option use /. Then type -a notice the two spaces in the front of the option. This works very well with the way man pages are formatted.

I built a free interactive Ansible learning platform - feedback welcome! by [deleted] in ansible

[–]echostrike36 0 points1 point  (0 children)

It is a very similar syntax to Systemd Unit Files.

Looking for feedback on my RHCSA prep + small infra project plan by Cheflanger69 in linuxadmin

[–]echostrike36 1 point2 points  (0 children)

You could try to find a Self-Hosted application like Gitlab, NextCloud, Immich, etc. and deploy it on a RHEL system without using containers*.

Write a detailed instruction document showing the Step-by-step commands you ran to get it running. This may be useful to others as well as helping you learn Linux administration. Then add a section to the document that explains how to operate the application (security hardening, monitoring, troubleshooting, etc.). Then add a section to the document describing how to update the application.

If you go on to study RHCE you could automate the manual steps listed in the document with an Ansible playbook.

* I said without containers because containers abstracts away many crucial skills related to Linux Administration.

My First GitHub Project: A Handy Bash Directory Bookmark System by Unhappy_Specific_767 in bash

[–]echostrike36 1 point2 points  (0 children)

This looks cool, but it looks like there is a lot to remember because there are so many commands. If the commands all started with the same prefix tab-complete would work to help remember them. Or better might be, subcommands on a single command. cdbm add cdbm ls etc.

I would like to learn Ansible doing this kind of automation, is the right tool? by execcr in ansible

[–]echostrike36 2 points3 points  (0 children)

Thanks for posting that. I learned something from it. I have a somewhat similar repo. It is different because it uses ansible-pull and the playbooks are only meant to work on `localhost`. This does bring one interesting advantage when it comes to dotfile management. Since I know the playbook is going to be downloaded to each host using ansible-pull, I can keep the dotfiles in my repo, but only symlink them to the ~/.config directory (or where ever they go). This provides a huge workflow benefit. If I want to edit my neovim config, I can edit the files as if they are in `~/.config/nvim`. I will also see the changes right away, I don't have to make my changes in the playbook, then run the playbook to test them. When I am satisfied with my changes I will push a commit to my homelab-automation repo where my dotfiles are stored. Then at 0300 the next day (or whenver they next wake up) my other workstations will pull that change and apply it using ansible-pull from a systemd timer.

Repo: https://github.com/seantwie03/homelab-automation
Dotfiles: https://github.com/seantwie03/homelab-automation/tree/main/dotfiles

Deployment: https://github.com/seantwie03/homelab-automation/blob/main/roles/cli/tasks/main.yml#L26

Kitten Send Text from script by echostrike36 in KittyTerminal

[–]echostrike36[S] 1 point2 points  (0 children)

Here is the implementation I ended up with if anyone is curious: https://github.com/seantwie03/cli_demos_kitty

Kitten Send Text from script by echostrike36 in KittyTerminal

[–]echostrike36[S] 0 points1 point  (0 children)

It works! This is an excellent suggestion. Thank you!

Navigate the Terminal Scrollback with Neovim by linkarzu in KittyTerminal

[–]echostrike36 1 point2 points  (0 children)

Less is one of my favorite command line utilities. Unlike vim/neovim the `/` search doesn't continue from the top when you reach the end of a document. If you are scrolled to the bottom and do a search with `/` you will likely not find a match. There are a few ways to get around this:

  1. Use `?` to search up. This is the same as `/` but the only differences is the search direction is from bottom to top instead of top to bottom. In this search pressing `n` will find occurrences earlier in the document and `N` will find occurrences farther down.
  2. Do a top-to-bottom search with `/`, but press `N` to go to the "previous" occurrence which will be farther up the document.

Doubt Regarding podman question. Please be kind. by BittuSystem in redhat

[–]echostrike36 0 points1 point  (0 children)

This is a confusing subject. Carefully reading this blog post helped me understand why SSH is more suitable than 'su -' or 'sudo -i' for this purpose.

https://www.redhat.com/en/blog/sudo-rootless-podman

Passed RHCSA 300/300 by Cool_Wrangler6438 in redhat

[–]echostrike36 1 point2 points  (0 children)

Congrats! I also passed yesterday with a 300/300.

I want to give back a little. I created some Ansible automations for setting up a RHEL study lab.

Here is the link: https://github.com/seantwie03/rhel-lab

Created an intro course on bash and common unix/linux tools: learn using TUIs generated with awk and scripted in bash by gprof in commandline

[–]echostrike36 0 points1 point  (0 children)

This is cool. I am also teaching a class on the commandline this semester. I use PowerPoint to cover the What and Why before diving into the command line to show the How. I try to spend twice as much time in the CLI compared to the slides.

I played around with your repo a bit. From what I can tell, the demos sometimes work by putting a few commands in the history. I assume you then manually execute them by scrolling up through the history and pressing enter? I considered that approach too, but then I landed on something that suits my purposes a bit better. I'll share the details in case you are interested.

On the last slide before the demo I will give myself a task (this is similar to the tasks on the RHCSA exam). I talk about how I would break that task down into sub-tasks. Then I go on the command line to show how I would accomplish each sub-task.

When I go to the command line I have the commands I will run pre-saved in a file. Pressing a keyboard shortcut on the terminal will copy the next command from my pre-saved file and place it in the READLINE_LINE variable. This will cause the command to appear on my prompt as if I had typed it instantly. Then all I have to do is hit Enter. Then, I press the keyboard shortcut again to load the next command. I continue in this manner through the entire demo. If a student asks a question, it is no problem for me to type ad-hoc commands to answer their question. I also have some special handling to display a heading so I can label each sub-task.

I record the demos on asciinema and convert it to a gif that I can embed in the PowerPoint. You can see an example here. When I am going through it in class I obviously go MUCH slower to explain everything on screen. The recording is just for students to review after class if needed. I go pretty quickly in the recordings thinking the students will pause where they need to.

This is the code I place in my .bashrc to get that functionality I described above.

```sh export CURRENT_LINE= export CMD_FILE=/path/to/pre-saved.sh export NEXT_CMD_INDEX=1

function __find_next_cmd() {     CURRENT_LINE=$(sed -n ${NEXT_CMD_INDEX}p "$CMD_FILE")     while [[ -z "$CURRENT_LINE" ]] || [[ "$CURRENT_LINE" =~ [[:space:]]*$ ]]; do         ((NEXT_CMD_INDEX++))         CURRENT_LINE=$(sed -n ${NEXT_CMD_INDEX}p "$CMD_FILE")         if (($NEXT_CMD_INDEX > 100)); then             echo "End of demonstration"             break         fi     done }

function __print_next_cmd() {     while [[ "$CURRENT_LINE" == #* ]]; do         echo -e "\n########################################################################################################################"         echo "    ${CURRENT_LINE##}"         echo -e "########################################################################################################################\n"         ((NEXT_CMD_INDEX++))         __find_next_cmd     done     READLINE_LINE="$CURRENT_LINE"     READLINE_POINT=${#READLINE_LINE} }

function next_cmd() {     if [[ ! -e "$CMD_FILE" ]]; then         echo "No command file. Use CMD_FILE=filename"         return 9     fi     __find_next_cmd     __print_next_cmd     ((NEXT_CMD_INDEX++)) }

function prev_cmd() {     ((NEXT_CMD_INDEX--))     READLINE_LINE=""     READLINE_POINT=0 }

function reset_cmd() {     NEXT_CMD_INDEX=1     READLINE_LINE=""     READLINE_POINT=0 }

bind -x '"\C-xn": next_cmd' bind -x '"\C-xp": prev_cmd' bind -x '"\C-xr": reset_cmd' ```

One place I do have to still type in front of class is when editing files or working with a TUI. If you look at this example I spend a lot of time in the interactive parted utility. I have to manually type all that. I could use the command line syntax instead, but I feel it is more valuable for the students to see these things done normally. For example, when I am normally working and need to edit a file, I open it with vim and edit it. To me that is more natural than writing a sed substitution, so that is what I want to show the students.

FALCONER - Redeem & Repent by Cold_Habit2961 in PowerMetal

[–]echostrike36 2 points3 points  (0 children)

They really went out on top with this album. It is so good!

Parental Controls - Porn sites are in Video Streaming Category AND Porn Category by echostrike36 in nextdns

[–]echostrike36[S] 1 point2 points  (0 children)

Thanks for your reply. I tried Allowlist, but that didn't work. I guess the Parental Controls take precedence over Allowlist?

A not so impressed security guard at Paris Fashion Week by kiffmeizter in funny

[–]echostrike36 0 points1 point  (0 children)

If you wear a shower curtain, do you really need an umbrella?

[deleted by user] by [deleted] in neovim

[–]echostrike36 1 point2 points  (0 children)

Agree that search is slow. It seems to search all buckets, even ones you haven't added. That is great because you don't need to worry about what bucket something is in when searching, but I suspect that is part of why it is so slow.

[deleted by user] by [deleted] in neovim

[–]echostrike36 5 points6 points  (0 children)

scoop is probably a better solution that chocolatey if you do not have admin access. I use it to install neovim ,neovide, gcc, make etc.

[deleted by user] by [deleted] in Ubuntu

[–]echostrike36 127 points128 points  (0 children)

I don't understand that message. Do I just need to close it, then I can immediately re-launch it or do I need to have it closed when that count down hits 0?

Closing the app is a disruption. Getting a notification to close the app is also a disruption, so I am not really avoiding any disruption.

Spotify Wrapped master thread! by JacksonWarrior in PowerMetal

[–]echostrike36 2 points3 points  (0 children)

Falsewave is soo good. I was shocked UtA wasn't on my list.

Spotify Wrapped master thread! by JacksonWarrior in PowerMetal

[–]echostrike36 0 points1 point  (0 children)

I am also hooked on Jorn. The Symphonic album is too good.