silhanō.cz

IT Blog

IT, Linux, Guides
  • Posted on

    Install BASH autocomplete package:

    apt install bash-completion
    

    Add autocomplete for your user:

    echo "source /etc/profile.d/bash_completion.sh" >> ~/.bashrc
    

    OPT: Add autocomplete also for root user:

    echo "source /etc/profile.d/bash_completion.sh" >> /root/.bashrc
    
  • Posted on

    List users

    ipmitool user list
    

    Change password

    ipmitool user set password 2
    

    Print IPMI LAN info

    ipmitool lan print
    

    Set static IP option

    ipmitool lan set 1 ipsrc static
    

    Set IP address

    ipmitool lan set 1 ipaddr 192.168.0.100
    

    Set Netmask

    ipmitool lan set 1 netmask 255.255.255.0
    

    Set Gateway

    ipmitool lan set 1 defgw ipaddr 192.168.0.1
    
  • Posted on

    Show all certificates

    certbot certificates
    

    Get new certificate (without Apache config)

    certbot certonly -d api.example.com --apache
    

    Get new certificate with Apache config

    certbot -d api.example.com --apache
    

    Renew all certificates

    certbot renew
    

    Add new certificate to existing one

    certbot --expand -d example.com -d new.example.com
    

    Delete certificate

    certbot delete --cert-name example.com