Tagged: Linux Toggle Comment Threads | Keyboard Shortcuts

  • Ady Romantika 6:25 pm on November 29, 2017 Permalink | Reply
    Tags: Linux   

    List All Trusted Certificate Authorities (CA) on Linux 

    Debian 8

    awk -v cmd='openssl x509 -noout -subject' '
     /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt

    Amazon Linux

    awk -v cmd='openssl x509 -noout -subject' '
    /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.trust.crt

    The Amazon Linux file is probably the same as other RedHat derivatives.

  • Ady Romantika 1:43 am on March 2, 2014 Permalink | Reply
    Tags: Linux,   

    dnsmasq stop-dns-rebind 

    My current team uses Amazon’s Route 53 to define addresses to local test machines, and I’ve been wondering why my dnsmasq on my DD-WRT is returning blank for addresses that resolves to private IP ranges.

    The answer is the option “stop-dns-rebind”. Disable that, and it works.

    In the web GUI, the option is called “No DNS Rebind” and it’s located in the “Services” tab and sub-tab.

  • Ady Romantika 4:39 pm on January 7, 2014 Permalink | Reply
    Tags: Linux   

    Debian 6.0 RAID and GRUB 

    One of the three hard disk failed on the ancient Linux firewall at the office. It had all disks configured into one logical volume.

    Two other disks are fine, so I decided to pair them into RAID 1. To save time, I’m using the Debian 6.0 DVD found in the office.

    All went well until it’s time to install GRUB. It turned out, mdmadm wasn’t installed on the target system.

    chroot /target apt-get install mdmadm
    chroot /target grub-install /dev/sda
    chroot /target grub-install /dev/sdb

    Installing GRUB on both MBR will ensure that the machine will be able to boot even if one of the disks fails. At least, that’s the theory. Will test if time permits.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc