Mark Caudill

Categories

Articles in the misc category

  1. Weather Shell Function

    Here's the weather function I use when I'm too lazy to look out the window. The only configuration is a free forecast.io API key. The main selling point is that it geolocates so you don't have to remember where you are. Though this has drawbacks if you're running it …

  2. CIFS, fstab, and You

    Let's say you're a Linux admin in a Windows shop (ha) and you'd like to be able to access your company shares via a real operating system. Even more, you'd like these shares to be accessible immediately after boot.

    //<server>/path /path/to/mount  cifs credentials=/home/<username>/.smbcreds,uid …
  3. Leveraging LVM Caching

    I recently implemented LVM caching based largely on Richard WM Jones' post and thought I'd document my own experience here.

    I started with an SSD containing /, /home, and swap, two 2 TB HDDs (sdb, and sdc) and an additional SSD (sdd).

    [root@bender ~]# lsblk
    NAME            MAJ:MIN RM   SIZE RO …
  4. Enable SSD Trim Support with systemd

    # systemctl enable fstrim.timer
    Created symlink from /etc/systemd/system/multi-user.target.wants/fstrim.timer to /usr/lib/systemd/system/fstrim.timer.
    # systemctl start fstrim.timer
    # systemctl status fstrim.timer
     fstrim.timer - Discard unused blocks once a week
       Loaded: loaded (/usr/lib/systemd/system/fstrim.timer; enabled; vendor preset: disabled …
  5. CentOS 7 FirewallD Initial Setup

    I fired up my first CentOS 7 instance and there are a lot of new things that I’ve been avoiding learning. Namely, FirewallD. According to the wiki page:

    firewalld provides a dynamically managed firewall with support for network/firewall zones to define the trust level of network connections or …

« Page 2 / 2