Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BI
Posts
2
Comments
425
Joined
2 yr. ago

  • You have entries for different debian releases but no entry for the one you actually installed (bookworm). Change this to

     
        
    deb https://deb.debian.org/debian/ bookworm main contrib non-free-firmware non-free
    deb https://deb.debian.org/debian/ bookworm-updates main contrib non-free-firmware non-free
    deb https://security.debian.org/debian-security bookworm-security main contrib non-free-firmware non-free
    
      

    Then run apt update and apt dist-upgrade to update all packages that you installed from older repos. Then apt autoremove to remove packages that are not longer needed.

    After that you may still have to downgrade packages installed from trixie repos or remove them if they are not in bookworm. To do this, edit your /etc/apt/preferences file (create it if it does not exist) and add

     
        
    Package: *
    Pin: release n=bookworm
    Pin-Priority: 1001
    
    Package: *
    Pin: origin ""
    Pin-Priority: -10
    
      

    Then run apt dist-upgrade and apt autoremove again. When all packages are downgraded, remove these lines from /etc/apt/preferences.

    For more details, refer to the documentation:

  • When using "<<-", shell removes all tabs from the beginning of each line. So you have to use tabs for formatting inside your script and then spaces for HTML formatting, as in my example. Or use "<<" without dash to preserve tabs.

  • Your mistake is that after variable substitution bash does not handle quoted strings, i.e. it does not remove single quotes from sed command line. If you really need this to happen, you have to use eval:

    i1xmr=$(echo "$i1p/$apiresponse*1000" | bc -l | eval $rmdec)

    However using functions is a better solution in general. But in this particular case, I guess, you only need to change the bc's scale instead of using sed:

    i1xmr=$(echo "scale=17; $i1p/$apiresponse*1000" | bc -l)

    For better readability you may use heredoc instead of echo:

     
        ~~~
    i1xmr=$( bc -l << EOF
    scale=17
    $i1p/$apiresponse*1000
    EOF
    )
    ~~~
      
  • I used mc many yeas ago until I learned CLI utils well enough to use them efficiently. I think, it is the main point: you get a tool that does not require a lot of time to start using it. But in most usage scenarios TUI FMs are less effective than CLI.

  • --purge does not do anything with dependencies. You will need to explicitly remove all packages that are marked as installed manually, i. e. all packages that you pointed a package manager to install. If a DE was installed automatically by Debian installer, or if you installed it with apt install xfce4, the only manually installed component it the xfce4 metapackage, and using the --auto-remove flag will remove all its dependencies. But if you additionally installed any components or packages that depend on that components, you will also need to clean them up manually.

  • Non-ASCII characters can cause troubles because of different encodings and because you may need to type them on a machine where corresponding keyboard layout is missing.

    The password length limit is nothing short of stupid.

  • Bad practice is not using sudo (I do use it), but assuming that everyone has sudo installed and configured the same way as you have.

    Additionally, which distro doesn’t have sudo? I’m sure there are some but by far the majority of distos have and use sudo.

    Almost all distros have sudo. But many of them don't install it by default. Most popular distros except Ubuntu (I mean Debian, Fedora and RHEL clones) provide a choice to user at install time: set the root password or install sudo and enable it for the admin user. In OpenSUSE sudo is installed by default, however it is configured in slightly different way than usually. Etc., etc.

  • You are doing something wrong. I stopped distrohopping ~13 years ago and never had to reinstall OS after that. If I get error messages, they are helpful enough to figure out the root of the problem (unlike that in Windows, where everything under the hood is hidden from user). For me Windows and macOS are frustrating, not Linux.

    Maybe Linux is not good enough for you, maybe you are not good enough for Linux. Anyway, don't constrain yourself, use software that you are comfortable with.