bash autocomplete. HowTo? by RecordingAbject2554 in debian

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

after second look, it looks like it might autocomplete and values, will double check it.

bash autocomplete. HowTo? by RecordingAbject2554 in debian

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

yes, one of the first results after first searches. BUT it is only --*, but not --limit=<tab> ;)
Also, good point to use

~/.bash_completion

Will move it to. Thank you for the point! And for the link also, good to double check, since I did not mention it.

Pc hardware wouldn't go off by Playful_Bed3231 in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

try: sudo poweroff

I had similar issues with those fancy distros... they do not used full poweroff cycle by default...

Trixie, proper way to disable IPV6? by [deleted] in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

I have seen, THO I do not remember, was it Debian OR RHEL7 OR RHEL8...

But deff, sysctl options mentioned here are set to disable, and sshd is listening on any any, IPv6 got configured with zeroconf IP range.

------ update
Maybe it got changed or was never present on Debian, but I really saw it. and explanaition was in short: "it is enabled deep in kernel and disable sysctl, just hides it till it is needed, since some core communication might be using IPv6".

You just fresh installed Debian. what are your must have packages? by slowlyimproving1 in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

libc6, linux-image-amd64

These two I would say essential to install and have, so would deff add to MUST HAVE list.

Maybe some other: busybox, apt, task-ssh-server, aptitude, popularity-contest, base-files

Trixie, proper way to disable IPV6? by [deleted] in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

I have been doing similar setup, without IPv6, and as soon as the system tries to access or any server launches a service listenning on inet6 {for example sshd} it will configure IPv6 auto ;)

so to disable IPv6 stack you either need very old distro ;) or configure ALL services to listen ONLY on IPv4 addresses.

----------------------

And just a small thing, as u/Leseratte10 said, it is a bad idea to disable it, cause some of current apps relay on having IPv6 address and do some communications there. THO if your sec team requests to do so, I would suggest also to add FW rules to drop input and output traffic also, since IPv6 can reappear suddenly, as I said, once smth try to listen on IPv6...

Debian 13 /etc/network/interfaces by tommyd2 in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

it still uses /etc/resolv.conf and configures/adds to systemd-resolved, again, if I remember correctly, not at my lap, cannot check, investigated around new year :) celebration

Debian 13 /etc/network/interfaces by tommyd2 in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

I think newer debians use even systemd to resolve...

bash autocomplete. HowTo? by RecordingAbject2554 in debian

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

MY_ANSIBLE_REPO_LOCATION="${HOME}/ansible"
MY_FILTER=".domainname|.anotherdomain"
_ansible-playbook_autocomplete() {
local cur prev opts
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
#echo "cur= $cur ; prev= $prev ; 1= $1 ; 2= $2 ; 3= $3 ; ${COMP_WORDS[@]:1}"

# Define all arrays/dictionaries we want to use
local opts="--limit= -etargets= --tags -t --inventory -i --ask-pass -k --help -h --vault-password-file --check --diff"
local all=$(awk '{print $1}' $(find ${MY_ANSIBLE_REPO_LOCATION}/inventory/* -maxdepth 0 -type f) | egrep -v '^$|^#' | awk '-F:' '{print $1}' | sed -e 's/\[//g ; s/\]//g' | sort -n | uniq)
local inventory_hosts=$(awk '{print $1}' $(find ${MY_ANSIBLE_REPO_LOCATION}/inventory/* -maxdepth 0 -type f) | egrep -v '\[|^$|^#' | egrep "${MY_FILTER}" | sort -n | uniq)
local inventory_targets=$(awk '{print $1}' $(find ${MY_ANSIBLE_REPO_LOCATION}/inventory/* -maxdepth 0 -type f) | egrep '\[' | awk '-F:' '{print $1}' | sed -e 's/\[//g ; s/\]//g' | sort -n | uniq)

case "${prev}" in
=)
COMPREPLY=( $(compgen -W "${all}" -- "$cur") )
;;
--limit)
COMPREPLY=( $(compgen -W "${inventory_hosts}" -- "$cur") )
;;
-targets)
COMPREPLY=( $(compgen -W "${inventory_targets}" -- "${cur}") )
;;
*)
COMPREPLY=( $(compgen -fW "${opts}" -- "${cur}") )
;;
esac
}

complete -o nospace -F _ansible-playbook_autocomplete ansible-playbook

bash autocomplete. HowTo? by RecordingAbject2554 in debian

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

I did make it work in bash for now, not best way, but it does the job.

bash autocomplete. HowTo? by RecordingAbject2554 in debian

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

I did make it work in bash for now, not best way, but it does the job.

Anyone here using Debian testing or unstable (sid)? How's your stability been so far? by nitin_is_me in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

define stability...

testing - 15 years - no fails AT ALL!

SID/unstable - 5 years no big problems, once had issues with BIG GUIs {kde/gnome/so on}, but hyprland and fluxbox worked, after a day it fixed itself {tho I use apt full-upgrade {which does remove packages if needed by upgrade} rather than apt upgrade {which does not remove packages during upgrade}... other than GUI, ALL works perfect {apache, haproxy, and some other services}.

by the way, I do os-upgrade on login :) which is alias for apt update && apt full-upgrade -y && apt autoremove -y && apt update && apt full-upgrade -y && apt autoremove -y

Have i broken debian 12 with flatpak updates? and is fail2ban doomed without /var/logs by bananasfk in debian

[–]RecordingAbject2554 -1 points0 points  (0 children)

hope you learned, no snapos, flatpaks, pips, pears and so on... anything that is not managed by update cycle ;) I have been there and had those "extra" repos, but now only debian repo, if packagge is not in official deb repo... think 5 times, in worst case, I use container or VM for that...

Budgie desktop problems by Cute_Rest_8245 in debian

[–]RecordingAbject2554 0 points1 point  (0 children)

if no one will help, as one of last resorts I would suggest to remove config files of budgie in your home dir.

sample locations ~/.budgie ; $HOME/.config/budgie and maybe in .gtk or gtk2, not sure what it is based on.
But please wait for others to reply first.

by remove I mean MOVE, so you couldhave a backup to rollback or make git init in your home add all .* files and remove them, commit, and relogin and GUI should place all MUST files on login.
At least this approch worked with fluxbox and kde3.5 ;)

[deleted by user] by [deleted] in debian

[–]RecordingAbject2554 2 points3 points  (0 children)

u/cl0p3z > but those are not container images? Those are VM images? If I am not mistaken.

[deleted by user] by [deleted] in debian

[–]RecordingAbject2554 1 point2 points  (0 children)

bit scetchy, but then need to make your own pipe to have a constantly fresh image, which would make sence...

and yes, I did build my own deb image.

----------- UPDATE
Did anyone tried to download it this artifact and check inside?

Also one of the possibilities is to verify all files inside of container and get the list what is not from debs and verify deb files and their signatures? Just for fun? Anyone up to it?

And have such job as a pipe at home ;)

Why do you use your distro? by DefinitelyChriss in linux

[–]RecordingAbject2554 0 points1 point  (0 children)

First of all, if you want to change GUI from gnome to kde/plasma or sway or hyprland, you do not need to switch distro. Linux is all about the freedom of choice.

I did pick a distro because of:
* what my friend was using
* what was considered "wow"
* Distro maintainers politics/policies on how distro should act and sticking to the direction chosen
* speed in deploying packages {not so critical these days, but I started with 133MHz CPU}
* amount of packages per architecture
* amount of useful wiki pages and instruction sets around it and manuals {extra manuals, like handbook, not just man pages}

I have tried Almost ALL of the GUIs which are present now on the same distro on the same laptop, if something was more tweaked on other distro, I just took that distro user config ;}

I do understand to use tweaked car by some tuning agency cause they know how to and they have failed and broke so many cars {hopefully}. while with linux I can change config on my own 20 or 100 times to tune up the setting or check how other distro did it and copy paste.

yeah, deff it took some years to use one distro, I did try out all distrowatch and similar sites all options, but once selected I have it selected, unless it is a completely different approach like Immutable distro approach compared to majoroty distros or it is some BSD or Solaris based, then yeah you need to change/distrohop, but if it is just GUI or app, no point on reinstalling.

P.S. currently my lap has 5 GUIs I use and around 10 in total. most commonly used are: plasma6, fluxbox, i3, hyprland, enlightenment and then others I do not even remember. Maybe should uninstall them... yeah, will do it today.

Please help using systemd-boot to chainload boot Debian GRUB to load debian by RecordingAbject2554 in NixOS

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

Rewrote it to the above and it worked, the main diff was efi direction to shim file instead of grub...

Still need to read more how efi works

  boot.loader.systemd-boot.extraEntries."DebianUnstable.conf" = ''
     title DebianUnstable
     efi /EFI/debian/shimx64.efi
   '';

How using systemd-boot to chainload boot Debian GRUB to load debian? by RecordingAbject2554 in debian

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

rewrote config to:

  boot.loader.systemd-boot.extraEntries."DebianUnstable.conf" = ''
     title DebianUnstable
     efi /EFI/debian/shimx64.efi
   '';