Advanced Search
Search Results
141 total results found
Creating Roles
Ansible Galaxy Ansible has a built in tool ansible-galaxy which allows us to quickly create a set of folders and files that are needed in the creation of an Ansible role. Simply run ansible-galaxy init rolename --offline and a folder will be created within y...
Creating Playbooks
Ad-Hoc Commands First, we should be sure that ansible is configured correctly, to run commands on a server or a group of servers within the /etc/ansible/hosts file, run any of the below commands ansible -m ping hostname ansible -m ping 134.23.4.5 ansible -a "...
Configuring Vim
Customizing ~/.vimrc Vim is a text editor that is difficult to get comfortable with, but once you have a set configuration that works for you it's very portable and really nice to use when editing files on remote hosts, especially when you take the time to co...
Heimdall
Defining Services Creating a Heimdall service using docker-compose can be done with the below basic docker-compose.yml - --- version: "2" services: heimdall: image: linuxserver/heimdall container_name: heimdall environment: - PUID=...
Configure Postfix
Postfix is a Mail Transfer Agent (MTA) that can act as an SMTP server or client to send or receive email. There are many reasons why you would want to configure Postfix to send email using Google Apps and Gmail. One reason is to avoid getting your mail flagg...
OSSEC Ubuntu Server
OSSEC is a useful tool in monitoring for malicious activity across various servers. It's lightweight, and easy to install an agent and have it reporting to the master server within minutes. Unfortunately, there is no automated solution to configuring agents re...
Jekyll
Jekyll can be installed by following the Installation Instructions hosted on the official website. So if you are on Ubuntu Linux, sudo apt-get install ruby-full build-essential zlib1g-dev echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc echo 'export ...
Hexo
Hexo is a static site generator that converts Markdown syntax into prebuilt dynamic themes. Hexo's use of Node.js, HTML, and CSS / YAML makes for a simple, scalable website that is easy to maintain, build upon, or migrate. Check out the book on Systemd Servic...
OSSEC Rules
Global ossec.conf Settings OSSEC comes with a server-wide configuration file. Its important to look for and modify this file on the host that runs the server your agents connect to. This configuration will control the alerting and rules used on the server and...
Unattended Upgrades
To configure linux hosts to automatically install updates and upgrades, add or edit the following lines in /etc/apt/apt.conf.d/50unattended-upgrades. Feel free to change the settings as you see fit. Unattended-Upgrade::Mail "user@example.com"; Unattended-Upg...
Audio Devices
When using various Linux Distributions, you may (or may not) run into some issues with audio devices. See some of the configs, logs, and commands below for helpful output in troubleshooting these issues. GUI Tools / Applications If looking for a GUI Tool to ...
i3
i3 is a tiling window manager. See i3 User Guide for official documentation. Also see my notes below on various settings, modules, etc Because this is such a broad topic, I'll put some links here for the sources I used to configure my own Manjaro Linux system ...
Installing Fonts
See the Arch wiki on Fonts for much more information. Some of this information has been copied from there for my own reference / notes. List Installed Fonts These commands will list installed fonts, see the subcategories below for sorting through installed f...
tmux
Multiplexers can be used to reattach to previous sessions and manage clipboard content / session history. This means that when you close a terminal, the session still exists in the background and can be called to the foreground using your choice of tmux comman...
System Sensors
Your system likely has many sensors built in for displaying useful information on internal hardware status. For example, the commands below will help in finding the path to system temperature sensors. user@host ~ $:sensors -f coretemp-isa-0000 Adapter: ISA ...
Swap Allocation
Creating swap memory for your host could prevent system or services from crashing when under heavy loads. To do this, run the following commands. Creating Swap Files # To createa 512MiB swap file - sudo dd if=/dev/zero of=/swapfile bs=1M count=512 status=prog...
Crontab
Using crontab to schedule tasks for the system to perform is fairly straight forward, once you get familiar with the syntax used within the configuration. Run crontab -e to open the file for editing, and modify to your needs using the examples below Tell cron...
Linux on Chromebooks
Booting Persistent USB It is possible to boot into a 3.1 USB stick with persistent data saved between sessions. There are plenty of cheap options out there for ultra portable USBs that you'll hardly notice due to their low-profiles. Even better, if you have a ...